strictmode

package
v0.0.7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 28, 2026 License: CC0-1.0 Imports: 5 Imported by: 0

Documentation

Overview

Package strictmode provides Go bindings for android.os.strictmode.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init(env *jni.Env) error

Init resolves all JNI class and method references for this package. It is safe to call multiple times (uses sync.Once internally). Exported for E2E testing on Android.

Types

type IncorrectContextUseViolation

type IncorrectContextUseViolation struct {
	VM  *jni.VM
	Obj *jni.GlobalRef
}

IncorrectContextUseViolation wraps android.os.strictmode.IncorrectContextUseViolation.

func NewIncorrectContextUseViolation

func NewIncorrectContextUseViolation(vm *jni.VM, arg0 string, arg1 *jni.Object) (*IncorrectContextUseViolation, error)

NewIncorrectContextUseViolation creates a new android.os.strictmode.IncorrectContextUseViolation instance.

type InstanceCountViolation

type InstanceCountViolation struct {
	VM  *jni.VM
	Obj *jni.GlobalRef
}

InstanceCountViolation wraps android.os.strictmode.InstanceCountViolation.

func (*InstanceCountViolation) GetNumberOfInstances

func (m *InstanceCountViolation) GetNumberOfInstances() (int64, error)

GetNumberOfInstances calls android.os.strictmode.InstanceCountViolation.getNumberOfInstances.

type UnsafeIntentLaunchViolation

type UnsafeIntentLaunchViolation struct {
	VM  *jni.VM
	Obj *jni.GlobalRef
}

UnsafeIntentLaunchViolation wraps android.os.strictmode.UnsafeIntentLaunchViolation.

func NewUnsafeIntentLaunchViolation

func NewUnsafeIntentLaunchViolation(vm *jni.VM, arg0 *jni.Object) (*UnsafeIntentLaunchViolation, error)

NewUnsafeIntentLaunchViolation creates a new android.os.strictmode.UnsafeIntentLaunchViolation instance.

func (*UnsafeIntentLaunchViolation) GetIntent

func (m *UnsafeIntentLaunchViolation) GetIntent() (*jni.Object, error)

GetIntent calls android.os.strictmode.UnsafeIntentLaunchViolation.getIntent.

type Violation

type Violation struct {
	VM  *jni.VM
	Obj *jni.GlobalRef
}

Violation wraps android.os.strictmode.Violation.

func (*Violation) HashCode

func (m *Violation) HashCode() (int32, error)

HashCode calls android.os.strictmode.Violation.hashCode.

func (*Violation) SetStackTrace

func (m *Violation) SetStackTrace(arg0 *jni.Object) error

SetStackTrace calls android.os.strictmode.Violation.setStackTrace.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL