os

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: 6 Imported by: 0

Documentation

Overview

Package os provides Go bindings for android.os.

Index

Constants

View Source
const (
	ShowClassloader                             = consts.ShowClassloader
	ShowFullDetail                              = consts.ShowFullDetail
	ShowInitialized                             = consts.ShowInitialized
	TraceCountAllocs                            = consts.TraceCountAllocs
	Creator                                     = consts.Creator
	PatternAdvancedGlob                         = consts.PatternAdvancedGlob
	PatternLiteral                              = consts.PatternLiteral
	PatternPrefix                               = consts.PatternPrefix
	PatternSimpleGlob                           = consts.PatternSimpleGlob
	PatternSuffix                               = consts.PatternSuffix
	TriggerTypeAnr                              = consts.TriggerTypeAnr
	TriggerTypeAppFullyDrawn                    = consts.TriggerTypeAppFullyDrawn
	TriggerTypeNone                             = consts.TriggerTypeNone
	FlagBypassInterruptionPolicy                = consts.FlagBypassInterruptionPolicy
	UsageAccessibility                          = consts.UsageAccessibility
	UsageAlarm                                  = consts.UsageAlarm
	UsageClassAlarm                             = consts.UsageClassAlarm
	UsageClassFeedback                          = consts.UsageClassFeedback
	UsageClassMask                              = consts.UsageClassMask
	UsageClassMedia                             = consts.UsageClassMedia
	UsageClassUnknown                           = consts.UsageClassUnknown
	UsageCommunicationRequest                   = consts.UsageCommunicationRequest
	UsageHardwareFeedback                       = consts.UsageHardwareFeedback
	UsageMedia                                  = consts.UsageMedia
	UsageNotification                           = consts.UsageNotification
	UsagePhysicalEmulation                      = consts.UsagePhysicalEmulation
	UsageRingtone                               = consts.UsageRingtone
	UsageTouch                                  = consts.UsageTouch
	UsageUnknown                                = consts.UsageUnknown
	EnergyUnavailable                           = consts.EnergyUnavailable
	DeviceTemperatureBattery                    = consts.DeviceTemperatureBattery
	DeviceTemperatureCpu                        = consts.DeviceTemperatureCpu
	DeviceTemperatureGpu                        = consts.DeviceTemperatureGpu
	DeviceTemperatureSkin                       = consts.DeviceTemperatureSkin
	TemperatureCurrent                          = consts.TemperatureCurrent
	TemperatureShutdown                         = consts.TemperatureShutdown
	TemperatureThrottling                       = consts.TemperatureThrottling
	TemperatureThrottlingBelowVrMin             = consts.TemperatureThrottlingBelowVrMin
	SerialExecutor                              = consts.SerialExecutor
	ThreadPoolExecutor                          = consts.ThreadPoolExecutor
	Finished                                    = consts.Finished
	Pending                                     = consts.Pending
	Running                                     = consts.Running
	BluetoothUid                                = consts.BluetoothUid
	FirstApplicationUid                         = consts.FirstApplicationUid
	InvalidPid                                  = consts.InvalidPid
	InvalidUid                                  = consts.InvalidUid
	LastApplicationUid                          = consts.LastApplicationUid
	PhoneUid                                    = consts.PhoneUid
	RootUid                                     = consts.RootUid
	ShellUid                                    = consts.ShellUid
	SignalKill                                  = consts.SignalKill
	SignalQuit                                  = consts.SignalQuit
	SignalUsr1                                  = consts.SignalUsr1
	SystemUid                                   = consts.SystemUid
	ThreadPriorityAudio                         = consts.ThreadPriorityAudio
	ThreadPriorityBackground                    = consts.ThreadPriorityBackground
	ThreadPriorityDefault                       = consts.ThreadPriorityDefault
	ThreadPriorityDisplay                       = consts.ThreadPriorityDisplay
	ThreadPriorityForeground                    = consts.ThreadPriorityForeground
	ThreadPriorityLessFavorable                 = consts.ThreadPriorityLessFavorable
	ThreadPriorityLowest                        = consts.ThreadPriorityLowest
	ThreadPriorityMoreFavorable                 = consts.ThreadPriorityMoreFavorable
	ThreadPriorityUrgentAudio                   = consts.ThreadPriorityUrgentAudio
	ThreadPriorityUrgentDisplay                 = consts.ThreadPriorityUrgentDisplay
	ThreadPriorityVideo                         = consts.ThreadPriorityVideo
	WifiUid                                     = consts.WifiUid
	GpuHeadroomCalculationTypeAverage           = consts.GpuHeadroomCalculationTypeAverage
	GpuHeadroomCalculationTypeMin               = consts.GpuHeadroomCalculationTypeMin
	GpuHeadroomCalculationWindowMillisMax       = consts.GpuHeadroomCalculationWindowMillisMax
	GpuHeadroomCalculationWindowMillisMin       = consts.GpuHeadroomCalculationWindowMillisMin
	Access                                      = consts.Access
	AllEvents                                   = consts.AllEvents
	Attrib                                      = consts.Attrib
	CloseNowrite                                = consts.CloseNowrite
	CloseWrite                                  = consts.CloseWrite
	Create                                      = consts.Create
	Delete                                      = consts.Delete
	DeleteSelf                                  = consts.DeleteSelf
	Modify                                      = consts.Modify
	MovedFrom                                   = consts.MovedFrom
	MovedTo                                     = consts.MovedTo
	MoveSelf                                    = consts.MoveSelf
	Open                                        = consts.Open
	Empty                                       = consts.Empty
	ErrorFailedExecuting                        = consts.ErrorFailedExecuting
	ErrorFailedInvalidRequest                   = consts.ErrorFailedInvalidRequest
	ErrorFailedNoDiskSpace                      = consts.ErrorFailedNoDiskSpace
	ErrorFailedPostProcessing                   = consts.ErrorFailedPostProcessing
	ErrorFailedProfilingInProgress              = consts.ErrorFailedProfilingInProgress
	ErrorFailedRateLimitProcess                 = consts.ErrorFailedRateLimitProcess
	ErrorFailedRateLimitSystem                  = consts.ErrorFailedRateLimitSystem
	ErrorNone                                   = consts.ErrorNone
	ErrorUnknown                                = consts.ErrorUnknown
	BugreportErrorAnotherReportInProgress       = consts.BugreportErrorAnotherReportInProgress
	BugreportErrorInvalidInput                  = consts.BugreportErrorInvalidInput
	BugreportErrorNoBugreportToRetrieve         = consts.BugreportErrorNoBugreportToRetrieve
	BugreportErrorRuntime                       = consts.BugreportErrorRuntime
	BugreportErrorUserConsentTimedOut           = consts.BugreportErrorUserConsentTimedOut
	BugreportErrorUserDeniedConsent             = consts.BugreportErrorUserDeniedConsent
	Lax                                         = consts.Lax
	EventError                                  = consts.EventError
	EventInput                                  = consts.EventInput
	EventOutput                                 = consts.EventOutput
	ContentsFileDescriptor                      = consts.ContentsFileDescriptor
	ParcelableWriteReturnValue                  = consts.ParcelableWriteReturnValue
	IsEmpty                                     = consts.IsEmpty
	IsGzipped                                   = consts.IsGzipped
	IsText                                      = consts.IsText
	FrozenCalleePolicyDrop                      = consts.FrozenCalleePolicyDrop
	FrozenCalleePolicyEnqueueAll                = consts.FrozenCalleePolicyEnqueueAll
	FrozenCalleePolicyEnqueueMostRecent         = consts.FrozenCalleePolicyEnqueueMostRecent
	FrozenCalleePolicyUnset                     = consts.FrozenCalleePolicyUnset
	ProfilingTypeHeapProfile                    = consts.ProfilingTypeHeapProfile
	ProfilingTypeJavaHeapDump                   = consts.ProfilingTypeJavaHeapDump
	ProfilingTypeStackSampling                  = consts.ProfilingTypeStackSampling
	ProfilingTypeSystemTrace                    = consts.ProfilingTypeSystemTrace
	StringCreator                               = consts.StringCreator
	PowerMonitorTypeConsumer                    = consts.PowerMonitorTypeConsumer
	PowerMonitorTypeMeasurement                 = consts.PowerMonitorTypeMeasurement
	DumpTransaction                             = consts.DumpTransaction
	FirstCallTransaction                        = consts.FirstCallTransaction
	FlagOneway                                  = consts.FlagOneway
	InterfaceTransaction                        = consts.InterfaceTransaction
	LastCallTransaction                         = consts.LastCallTransaction
	LikeTransaction                             = consts.LikeTransaction
	PingTransaction                             = consts.PingTransaction
	TweetTransaction                            = consts.TweetTransaction
	StateFrozen                                 = consts.StateFrozen
	StateUnfrozen                               = consts.StateUnfrozen
	CpuHeadroomCalculationTypeAverage           = consts.CpuHeadroomCalculationTypeAverage
	CpuHeadroomCalculationTypeMin               = consts.CpuHeadroomCalculationTypeMin
	QuietModeDisableOnlyIfCredentialNotRequired = consts.QuietModeDisableOnlyIfCredentialNotRequired
	UserCreationFailedNotPermitted              = consts.UserCreationFailedNotPermitted
	UserCreationFailedNoMoreUsers               = consts.UserCreationFailedNoMoreUsers
	UserOperationErrorCurrentUser               = consts.UserOperationErrorCurrentUser
	UserOperationErrorLowStorage                = consts.UserOperationErrorLowStorage
	UserOperationErrorManagedProfile            = consts.UserOperationErrorManagedProfile
	UserOperationErrorMaxRunningUsers           = consts.UserOperationErrorMaxRunningUsers
	UserOperationErrorMaxUsers                  = consts.UserOperationErrorMaxUsers
	UserOperationErrorUnknown                   = consts.UserOperationErrorUnknown
	UserOperationSuccess                        = consts.UserOperationSuccess
	DefaultAmplitude                            = consts.DefaultAmplitude
	EffectClick                                 = consts.EffectClick
	EffectDoubleClick                           = consts.EffectDoubleClick
	EffectHeavyClick                            = consts.EffectHeavyClick
	EffectTick                                  = consts.EffectTick
	DelayTypePause                              = consts.DelayTypePause
	DelayTypeRelativeStartOffset                = consts.DelayTypeRelativeStartOffset
	PrimitiveClick                              = consts.PrimitiveClick
	PrimitiveLowTick                            = consts.PrimitiveLowTick
	PrimitiveQuickFall                          = consts.PrimitiveQuickFall
	PrimitiveQuickRise                          = consts.PrimitiveQuickRise
	PrimitiveSlowRise                           = consts.PrimitiveSlowRise
	PrimitiveSpin                               = consts.PrimitiveSpin
	PrimitiveThud                               = consts.PrimitiveThud
	PrimitiveTick                               = consts.PrimitiveTick
)
View Source
const (
	ActionDropboxEntryAdded                   = consts.ActionDropboxEntryAdded
	ExtraDroppedCount                         = consts.ExtraDroppedCount
	ExtraTag                                  = consts.ExtraTag
	ExtraTime                                 = consts.ExtraTime
	KeyKernelVersion                          = consts.KeyKernelVersion
	KeySystemSpl                              = consts.KeySystemSpl
	KeyVendorSpl                              = consts.KeyVendorSpl
	AllowParentProfileAppLinking              = consts.AllowParentProfileAppLinking
	DisallowAddManagedProfile                 = consts.DisallowAddManagedProfile
	DisallowAddPrivateProfile                 = consts.DisallowAddPrivateProfile
	DisallowAddUser                           = consts.DisallowAddUser
	DisallowAddWifiConfig                     = consts.DisallowAddWifiConfig
	DisallowAdjustVolume                      = consts.DisallowAdjustVolume
	DisallowAirplaneMode                      = consts.DisallowAirplaneMode
	DisallowAmbientDisplay                    = consts.DisallowAmbientDisplay
	DisallowAppsControl                       = consts.DisallowAppsControl
	DisallowAssistContent                     = consts.DisallowAssistContent
	DisallowAutofill                          = consts.DisallowAutofill
	DisallowBluetooth                         = consts.DisallowBluetooth
	DisallowBluetoothSharing                  = consts.DisallowBluetoothSharing
	DisallowCameraToggle                      = consts.DisallowCameraToggle
	DisallowCellular2g                        = consts.DisallowCellular2g
	DisallowChangeNearFieldCommunicationRadio = consts.DisallowChangeNearFieldCommunicationRadio
	DisallowChangeWifiState                   = consts.DisallowChangeWifiState
	DisallowConfigBluetooth                   = consts.DisallowConfigBluetooth
	DisallowConfigBrightness                  = consts.DisallowConfigBrightness
	DisallowConfigCellBroadcasts              = consts.DisallowConfigCellBroadcasts
	DisallowConfigCredentials                 = consts.DisallowConfigCredentials
	DisallowConfigDateTime                    = consts.DisallowConfigDateTime
	DisallowConfigDefaultApps                 = consts.DisallowConfigDefaultApps
	DisallowConfigLocale                      = consts.DisallowConfigLocale
	DisallowConfigLocation                    = consts.DisallowConfigLocation
	DisallowConfigMobileNetworks              = consts.DisallowConfigMobileNetworks
	DisallowConfigPrivateDns                  = consts.DisallowConfigPrivateDns
	DisallowConfigScreenTimeout               = consts.DisallowConfigScreenTimeout
	DisallowConfigTethering                   = consts.DisallowConfigTethering
	DisallowConfigVpn                         = consts.DisallowConfigVpn
	DisallowConfigWifi                        = consts.DisallowConfigWifi
	DisallowContentCapture                    = consts.DisallowContentCapture
	DisallowContentSuggestions                = consts.DisallowContentSuggestions
	DisallowCreateWindows                     = consts.DisallowCreateWindows
	DisallowCrossProfileCopyPaste             = consts.DisallowCrossProfileCopyPaste
	DisallowDataRoaming                       = consts.DisallowDataRoaming
	DisallowDebuggingFeatures                 = consts.DisallowDebuggingFeatures
	DisallowFactoryReset                      = consts.DisallowFactoryReset
	DisallowFun                               = consts.DisallowFun
	DisallowGrantAdmin                        = consts.DisallowGrantAdmin
	DisallowInstallApps                       = consts.DisallowInstallApps
	DisallowInstallUnknownSources             = consts.DisallowInstallUnknownSources
	DisallowInstallUnknownSourcesGlobally     = consts.DisallowInstallUnknownSourcesGlobally
	DisallowMicrophoneToggle                  = consts.DisallowMicrophoneToggle
	DisallowModifyAccounts                    = consts.DisallowModifyAccounts
	DisallowMountPhysicalMedia                = consts.DisallowMountPhysicalMedia
	DisallowNearFieldCommunicationRadio       = consts.DisallowNearFieldCommunicationRadio
	DisallowNetworkReset                      = consts.DisallowNetworkReset
	DisallowOutgoingBeam                      = consts.DisallowOutgoingBeam
	DisallowOutgoingCalls                     = consts.DisallowOutgoingCalls
	DisallowPrinting                          = consts.DisallowPrinting
	DisallowRemoveManagedProfile              = consts.DisallowRemoveManagedProfile
	DisallowRemoveUser                        = consts.DisallowRemoveUser
	DisallowSafeBoot                          = consts.DisallowSafeBoot
	DisallowSetUserIcon                       = consts.DisallowSetUserIcon
	DisallowSetWallpaper                      = consts.DisallowSetWallpaper
	DisallowShareIntoManagedProfile           = consts.DisallowShareIntoManagedProfile
	DisallowShareLocation                     = consts.DisallowShareLocation
	DisallowSharingAdminConfiguredWifi        = consts.DisallowSharingAdminConfiguredWifi
	DisallowSimGlobally                       = consts.DisallowSimGlobally
	DisallowSms                               = consts.DisallowSms
	DisallowSystemErrorDialogs                = consts.DisallowSystemErrorDialogs
	DisallowThreadNetwork                     = consts.DisallowThreadNetwork
	DisallowUltraWidebandRadio                = consts.DisallowUltraWidebandRadio
	DisallowUnifiedPassword                   = consts.DisallowUnifiedPassword
	DisallowUninstallApps                     = consts.DisallowUninstallApps
	DisallowUnmuteMicrophone                  = consts.DisallowUnmuteMicrophone
	DisallowUsbFileTransfer                   = consts.DisallowUsbFileTransfer
	DisallowUserSwitch                        = consts.DisallowUserSwitch
	DisallowWifiDirect                        = consts.DisallowWifiDirect
	DisallowWifiTethering                     = consts.DisallowWifiTethering
	EnsureVerifyApps                          = consts.EnsureVerifyApps
	KeyRestrictionsPending                    = consts.KeyRestrictionsPending
	UserTypeProfileClone                      = consts.UserTypeProfileClone
	UserTypeProfileManaged                    = consts.UserTypeProfileManaged
	UserTypeProfilePrivate                    = consts.UserTypeProfilePrivate
)
View Source
const (
	UndefinedTemperature = consts.UndefinedTemperature
)

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 AsyncTask

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

AsyncTask wraps android.os.AsyncTask.

func (*AsyncTask) Cancel

func (m *AsyncTask) Cancel(arg0 bool) (bool, error)

Cancel calls android.os.AsyncTask.cancel.

func (*AsyncTask) Execute

func (m *AsyncTask) Execute(arg0 *jni.Object) error

Execute calls android.os.AsyncTask.execute.

func (*AsyncTask) Get0

func (m *AsyncTask) Get0() (*jni.Object, error)

Get0 calls android.os.AsyncTask.get.

func (*AsyncTask) Get2_1

func (m *AsyncTask) Get2_1(arg0 int64, arg1 *jni.Object) (*jni.Object, error)

Get2_1 calls android.os.AsyncTask.get.

func (*AsyncTask) GetStatus

func (m *AsyncTask) GetStatus() (*jni.Object, error)

GetStatus calls android.os.AsyncTask.getStatus.

func (*AsyncTask) IsCancelled

func (m *AsyncTask) IsCancelled() (bool, error)

IsCancelled calls android.os.AsyncTask.isCancelled.

type AsyncTaskStatus

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

AsyncTaskStatus wraps android.os.AsyncTask$Status.

func (*AsyncTaskStatus) ValueOf

func (m *AsyncTaskStatus) ValueOf(arg0 string) (*jni.Object, error)

ValueOf calls android.os.AsyncTask$Status.valueOf.

func (*AsyncTaskStatus) Values

func (m *AsyncTaskStatus) Values() (*jni.Object, error)

Values calls android.os.AsyncTask$Status.values.

type BadParcelableException

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

BadParcelableException wraps android.os.BadParcelableException.

func NewBadParcelableException

func NewBadParcelableException(vm *jni.VM, arg0 *jni.Object) (*BadParcelableException, error)

NewBadParcelableException creates a new android.os.BadParcelableException instance.

type BaseBundle

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

BaseBundle wraps android.os.BaseBundle.

func (*BaseBundle) Clear

func (m *BaseBundle) Clear() error

Clear calls android.os.BaseBundle.clear.

func (*BaseBundle) ContainsKey

func (m *BaseBundle) ContainsKey(arg0 string) (bool, error)

ContainsKey calls android.os.BaseBundle.containsKey.

func (*BaseBundle) Get

func (m *BaseBundle) Get(arg0 string) (*jni.Object, error)

Get calls android.os.BaseBundle.get.

func (*BaseBundle) GetBoolean1

func (m *BaseBundle) GetBoolean1(arg0 string) (bool, error)

GetBoolean1 calls android.os.BaseBundle.getBoolean.

func (*BaseBundle) GetBoolean2_1

func (m *BaseBundle) GetBoolean2_1(arg0 string, arg1 bool) (bool, error)

GetBoolean2_1 calls android.os.BaseBundle.getBoolean.

func (*BaseBundle) GetBooleanArray

func (m *BaseBundle) GetBooleanArray(arg0 string) (*jni.Object, error)

GetBooleanArray calls android.os.BaseBundle.getBooleanArray.

func (*BaseBundle) GetDouble1

func (m *BaseBundle) GetDouble1(arg0 string) (float64, error)

GetDouble1 calls android.os.BaseBundle.getDouble.

func (*BaseBundle) GetDouble2_1

func (m *BaseBundle) GetDouble2_1(arg0 string, arg1 float64) (float64, error)

GetDouble2_1 calls android.os.BaseBundle.getDouble.

func (*BaseBundle) GetDoubleArray

func (m *BaseBundle) GetDoubleArray(arg0 string) (*jni.Object, error)

GetDoubleArray calls android.os.BaseBundle.getDoubleArray.

func (*BaseBundle) GetInt1

func (m *BaseBundle) GetInt1(arg0 string) (int32, error)

GetInt1 calls android.os.BaseBundle.getInt.

func (*BaseBundle) GetInt2_1

func (m *BaseBundle) GetInt2_1(arg0 string, arg1 int32) (int32, error)

GetInt2_1 calls android.os.BaseBundle.getInt.

func (*BaseBundle) GetIntArray

func (m *BaseBundle) GetIntArray(arg0 string) (*jni.Object, error)

GetIntArray calls android.os.BaseBundle.getIntArray.

func (*BaseBundle) GetLong1

func (m *BaseBundle) GetLong1(arg0 string) (int64, error)

GetLong1 calls android.os.BaseBundle.getLong.

func (*BaseBundle) GetLong2_1

func (m *BaseBundle) GetLong2_1(arg0 string, arg1 int64) (int64, error)

GetLong2_1 calls android.os.BaseBundle.getLong.

func (*BaseBundle) GetLongArray

func (m *BaseBundle) GetLongArray(arg0 string) (*jni.Object, error)

GetLongArray calls android.os.BaseBundle.getLongArray.

func (*BaseBundle) GetString1

func (m *BaseBundle) GetString1(arg0 string) (string, error)

GetString1 calls android.os.BaseBundle.getString.

func (*BaseBundle) GetString2_1

func (m *BaseBundle) GetString2_1(arg0 string, arg1 string) (string, error)

GetString2_1 calls android.os.BaseBundle.getString.

func (*BaseBundle) GetStringArray

func (m *BaseBundle) GetStringArray(arg0 string) (*jni.Object, error)

GetStringArray calls android.os.BaseBundle.getStringArray.

func (*BaseBundle) IsEmpty

func (m *BaseBundle) IsEmpty() (bool, error)

IsEmpty calls android.os.BaseBundle.isEmpty.

func (*BaseBundle) PutAll

func (m *BaseBundle) PutAll(arg0 *jni.Object) error

PutAll calls android.os.BaseBundle.putAll.

func (*BaseBundle) PutBoolean

func (m *BaseBundle) PutBoolean(arg0 string, arg1 bool) error

PutBoolean calls android.os.BaseBundle.putBoolean.

func (*BaseBundle) PutBooleanArray

func (m *BaseBundle) PutBooleanArray(arg0 string, arg1 *jni.Object) error

PutBooleanArray calls android.os.BaseBundle.putBooleanArray.

func (*BaseBundle) PutDouble

func (m *BaseBundle) PutDouble(arg0 string, arg1 float64) error

PutDouble calls android.os.BaseBundle.putDouble.

func (*BaseBundle) PutDoubleArray

func (m *BaseBundle) PutDoubleArray(arg0 string, arg1 *jni.Object) error

PutDoubleArray calls android.os.BaseBundle.putDoubleArray.

func (*BaseBundle) PutInt

func (m *BaseBundle) PutInt(arg0 string, arg1 int32) error

PutInt calls android.os.BaseBundle.putInt.

func (*BaseBundle) PutIntArray

func (m *BaseBundle) PutIntArray(arg0 string, arg1 *jni.Object) error

PutIntArray calls android.os.BaseBundle.putIntArray.

func (*BaseBundle) PutLong

func (m *BaseBundle) PutLong(arg0 string, arg1 int64) error

PutLong calls android.os.BaseBundle.putLong.

func (*BaseBundle) PutLongArray

func (m *BaseBundle) PutLongArray(arg0 string, arg1 *jni.Object) error

PutLongArray calls android.os.BaseBundle.putLongArray.

func (*BaseBundle) PutString

func (m *BaseBundle) PutString(arg0 string, arg1 string) error

PutString calls android.os.BaseBundle.putString.

func (*BaseBundle) PutStringArray

func (m *BaseBundle) PutStringArray(arg0 string, arg1 *jni.Object) error

PutStringArray calls android.os.BaseBundle.putStringArray.

func (*BaseBundle) Remove

func (m *BaseBundle) Remove(arg0 string) error

Remove calls android.os.BaseBundle.remove.

func (*BaseBundle) Size

func (m *BaseBundle) Size() (int32, error)

Size calls android.os.BaseBundle.size.

type Binder

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

Binder wraps android.os.Binder.

func NewBinder

func NewBinder(vm *jni.VM) (*Binder, error)

NewBinder creates a new android.os.Binder instance.

func (*Binder) AttachInterface

func (m *Binder) AttachInterface(arg0 *jni.Object, arg1 string) error

AttachInterface calls android.os.Binder.attachInterface.

func (*Binder) ClearCallingIdentity

func (m *Binder) ClearCallingIdentity() (int64, error)

ClearCallingIdentity calls android.os.Binder.clearCallingIdentity.

func (*Binder) ClearCallingWorkSource

func (m *Binder) ClearCallingWorkSource() (int64, error)

ClearCallingWorkSource calls android.os.Binder.clearCallingWorkSource.

func (*Binder) Dump

func (m *Binder) Dump(arg0 *jni.Object, arg1 *jni.Object) error

Dump calls android.os.Binder.dump.

func (*Binder) DumpAsync

func (m *Binder) DumpAsync(arg0 *jni.Object, arg1 *jni.Object) error

DumpAsync calls android.os.Binder.dumpAsync.

func (*Binder) FlushPendingCommands

func (m *Binder) FlushPendingCommands() error

FlushPendingCommands calls android.os.Binder.flushPendingCommands.

func (*Binder) GetCallingPid

func (m *Binder) GetCallingPid() (int32, error)

GetCallingPid calls android.os.Binder.getCallingPid.

func (*Binder) GetCallingUid

func (m *Binder) GetCallingUid() (int32, error)

GetCallingUid calls android.os.Binder.getCallingUid.

func (*Binder) GetCallingUidOrThrow

func (m *Binder) GetCallingUidOrThrow() (int32, error)

GetCallingUidOrThrow calls android.os.Binder.getCallingUidOrThrow.

func (*Binder) GetCallingUserHandle

func (m *Binder) GetCallingUserHandle() (*jni.Object, error)

GetCallingUserHandle calls android.os.Binder.getCallingUserHandle.

func (*Binder) GetCallingWorkSourceUid

func (m *Binder) GetCallingWorkSourceUid() (int32, error)

GetCallingWorkSourceUid calls android.os.Binder.getCallingWorkSourceUid.

func (*Binder) GetInterfaceDescriptor

func (m *Binder) GetInterfaceDescriptor() (string, error)

GetInterfaceDescriptor calls android.os.Binder.getInterfaceDescriptor.

func (*Binder) IsBinderAlive

func (m *Binder) IsBinderAlive() (bool, error)

IsBinderAlive calls android.os.Binder.isBinderAlive.

func (*Binder) JoinThreadPool

func (m *Binder) JoinThreadPool() error

JoinThreadPool calls android.os.Binder.joinThreadPool.

func (*Binder) LinkToDeath

func (m *Binder) LinkToDeath(arg0 *jni.Object, arg1 int32) error

LinkToDeath calls android.os.Binder.linkToDeath.

func (*Binder) PingBinder

func (m *Binder) PingBinder() (bool, error)

PingBinder calls android.os.Binder.pingBinder.

func (*Binder) QueryLocalInterface

func (m *Binder) QueryLocalInterface(arg0 string) (*jni.Object, error)

QueryLocalInterface calls android.os.Binder.queryLocalInterface.

func (*Binder) RestoreCallingIdentity

func (m *Binder) RestoreCallingIdentity(arg0 int64) error

RestoreCallingIdentity calls android.os.Binder.restoreCallingIdentity.

func (*Binder) RestoreCallingWorkSource

func (m *Binder) RestoreCallingWorkSource(arg0 int64) error

RestoreCallingWorkSource calls android.os.Binder.restoreCallingWorkSource.

func (*Binder) SetCallingWorkSourceUid

func (m *Binder) SetCallingWorkSourceUid(arg0 int32) (int64, error)

SetCallingWorkSourceUid calls android.os.Binder.setCallingWorkSourceUid.

func (*Binder) Transact

func (m *Binder) Transact(
	arg0 int32,
	arg1 *jni.Object,
	arg2 *jni.Object,
	arg3 int32,
) (bool, error)

Transact calls android.os.Binder.transact.

func (*Binder) UnlinkToDeath

func (m *Binder) UnlinkToDeath(arg0 *jni.Object, arg1 int32) (bool, error)

UnlinkToDeath calls android.os.Binder.unlinkToDeath.

type BugreportManager

type BugreportManager struct {
	VM  *jni.VM
	Ctx *app.Context
	Obj *jni.GlobalRef
}

BugreportManager wraps android.os.BugreportManager.

func NewBugreportManager

func NewBugreportManager(ctx *app.Context) (*BugreportManager, error)

NewBugreportManager obtains android.os.BugreportManager from the Android system service manager.

func (*BugreportManager) CancelBugreport

func (m *BugreportManager) CancelBugreport() error

CancelBugreport calls android.os.BugreportManager.cancelBugreport.

func (*BugreportManager) Close

func (m *BugreportManager) Close()

Close releases the global reference to the underlying Java object. After Close, the BugreportManager must not be used.

func (*BugreportManager) StartConnectivityBugreport

func (m *BugreportManager) StartConnectivityBugreport(
	arg0 *jni.Object,
	arg1 *jni.Object,
	arg2 *jni.Object,
) error

StartConnectivityBugreport calls android.os.BugreportManager.startConnectivityBugreport.

type BugreportManagerBugreportCallback

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

BugreportManagerBugreportCallback wraps android.os.BugreportManager$BugreportCallback.

func (*BugreportManagerBugreportCallback) OnEarlyReportFinished

func (m *BugreportManagerBugreportCallback) OnEarlyReportFinished() error

OnEarlyReportFinished calls android.os.BugreportManager$BugreportCallback.onEarlyReportFinished.

func (*BugreportManagerBugreportCallback) OnError

OnError calls android.os.BugreportManager$BugreportCallback.onError.

func (*BugreportManagerBugreportCallback) OnFinished

func (m *BugreportManagerBugreportCallback) OnFinished() error

OnFinished calls android.os.BugreportManager$BugreportCallback.onFinished.

func (*BugreportManagerBugreportCallback) OnProgress

func (m *BugreportManagerBugreportCallback) OnProgress(arg0 float32) error

OnProgress calls android.os.BugreportManager$BugreportCallback.onProgress.

type CombinedVibration

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

CombinedVibration wraps android.os.CombinedVibration.

func (*CombinedVibration) CreateParallel

func (m *CombinedVibration) CreateParallel(arg0 *jni.Object) (*jni.Object, error)

CreateParallel calls android.os.CombinedVibration.createParallel.

func (*CombinedVibration) DescribeContents

func (m *CombinedVibration) DescribeContents() (int32, error)

DescribeContents calls android.os.CombinedVibration.describeContents.

func (*CombinedVibration) StartParallel

func (m *CombinedVibration) StartParallel() (*jni.Object, error)

StartParallel calls android.os.CombinedVibration.startParallel.

type CombinedVibrationParallelCombination

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

CombinedVibrationParallelCombination wraps android.os.CombinedVibration$ParallelCombination.

func (*CombinedVibrationParallelCombination) AddVibrator

func (m *CombinedVibrationParallelCombination) AddVibrator(arg0 int32, arg1 *jni.Object) (*jni.Object, error)

AddVibrator calls android.os.CombinedVibration$ParallelCombination.addVibrator.

func (*CombinedVibrationParallelCombination) Combine

Combine calls android.os.CombinedVibration$ParallelCombination.combine.

type ConditionVariable

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

ConditionVariable wraps android.os.ConditionVariable.

func NewConditionVariable

func NewConditionVariable(vm *jni.VM) (*ConditionVariable, error)

NewConditionVariable creates a new android.os.ConditionVariable instance.

func (*ConditionVariable) Block0

func (m *ConditionVariable) Block0() error

Block0 calls android.os.ConditionVariable.block.

func (*ConditionVariable) Block1_1

func (m *ConditionVariable) Block1_1(arg0 int64) (bool, error)

Block1_1 calls android.os.ConditionVariable.block.

func (*ConditionVariable) Close

func (m *ConditionVariable) Close() error

Close calls android.os.ConditionVariable.close.

func (*ConditionVariable) Open

func (m *ConditionVariable) Open() error

Open calls android.os.ConditionVariable.open.

type CountDownTimer

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

CountDownTimer wraps android.os.CountDownTimer.

func (*CountDownTimer) OnFinish

func (m *CountDownTimer) OnFinish() error

OnFinish calls android.os.CountDownTimer.onFinish.

func (*CountDownTimer) OnTick

func (m *CountDownTimer) OnTick(arg0 int64) error

OnTick calls android.os.CountDownTimer.onTick.

type CpuHeadroomParams

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

CpuHeadroomParams wraps android.os.CpuHeadroomParams.

func (*CpuHeadroomParams) Equals

func (m *CpuHeadroomParams) Equals(arg0 *jni.Object) (bool, error)

Equals calls android.os.CpuHeadroomParams.equals.

func (*CpuHeadroomParams) GetCalculationType

func (m *CpuHeadroomParams) GetCalculationType() (int32, error)

GetCalculationType calls android.os.CpuHeadroomParams.getCalculationType.

func (*CpuHeadroomParams) GetCalculationWindowMillis

func (m *CpuHeadroomParams) GetCalculationWindowMillis() (int64, error)

GetCalculationWindowMillis calls android.os.CpuHeadroomParams.getCalculationWindowMillis.

func (*CpuHeadroomParams) GetTids

func (m *CpuHeadroomParams) GetTids() (*jni.Object, error)

GetTids calls android.os.CpuHeadroomParams.getTids.

func (*CpuHeadroomParams) HashCode

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

HashCode calls android.os.CpuHeadroomParams.hashCode.

func (*CpuHeadroomParams) ToBuilder

func (m *CpuHeadroomParams) ToBuilder() (*jni.Object, error)

ToBuilder calls android.os.CpuHeadroomParams.toBuilder.

func (*CpuHeadroomParams) ToString

func (m *CpuHeadroomParams) ToString() (string, error)

ToString calls android.os.CpuHeadroomParams.toString.

type CpuHeadroomParamsBuilder

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

CpuHeadroomParamsBuilder wraps android.os.CpuHeadroomParams$Builder.

func (*CpuHeadroomParamsBuilder) Build

func (m *CpuHeadroomParamsBuilder) Build() (*jni.Object, error)

Build calls android.os.CpuHeadroomParams$Builder.build.

func (*CpuHeadroomParamsBuilder) SetCalculationType

func (m *CpuHeadroomParamsBuilder) SetCalculationType(arg0 int32) (*jni.Object, error)

SetCalculationType calls android.os.CpuHeadroomParams$Builder.setCalculationType.

func (*CpuHeadroomParamsBuilder) SetCalculationWindowMillis

func (m *CpuHeadroomParamsBuilder) SetCalculationWindowMillis(arg0 int32) (*jni.Object, error)

SetCalculationWindowMillis calls android.os.CpuHeadroomParams$Builder.setCalculationWindowMillis.

func (*CpuHeadroomParamsBuilder) SetTids

func (m *CpuHeadroomParamsBuilder) SetTids(arg0 *jni.Object) (*jni.Object, error)

SetTids calls android.os.CpuHeadroomParams$Builder.setTids.

type CpuUsageInfo

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

CpuUsageInfo wraps android.os.CpuUsageInfo.

func (*CpuUsageInfo) DescribeContents

func (m *CpuUsageInfo) DescribeContents() (int32, error)

DescribeContents calls android.os.CpuUsageInfo.describeContents.

func (*CpuUsageInfo) GetActive

func (m *CpuUsageInfo) GetActive() (int64, error)

GetActive calls android.os.CpuUsageInfo.getActive.

func (*CpuUsageInfo) GetTotal

func (m *CpuUsageInfo) GetTotal() (int64, error)

GetTotal calls android.os.CpuUsageInfo.getTotal.

func (*CpuUsageInfo) WriteToParcel

func (m *CpuUsageInfo) WriteToParcel(arg0 *jni.Object, arg1 int32) error

WriteToParcel calls android.os.CpuUsageInfo.writeToParcel.

type DeadObjectException

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

DeadObjectException wraps android.os.DeadObjectException.

func NewDeadObjectException

func NewDeadObjectException(vm *jni.VM) (*DeadObjectException, error)

NewDeadObjectException creates a new android.os.DeadObjectException instance.

type DeadSystemException

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

DeadSystemException wraps android.os.DeadSystemException.

func NewDeadSystemException

func NewDeadSystemException(vm *jni.VM) (*DeadSystemException, error)

NewDeadSystemException creates a new android.os.DeadSystemException instance.

type Debug

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

Debug wraps android.os.Debug.

func (*Debug) AttachJvmtiAgent

func (m *Debug) AttachJvmtiAgent(
	arg0 string,
	arg1 string,
	arg2 *jni.Object,
) error

AttachJvmtiAgent calls android.os.Debug.attachJvmtiAgent.

func (*Debug) ChangeDebugPort

func (m *Debug) ChangeDebugPort(arg0 int32) error

ChangeDebugPort calls android.os.Debug.changeDebugPort.

func (*Debug) DumpHprofData

func (m *Debug) DumpHprofData(arg0 string) error

DumpHprofData calls android.os.Debug.dumpHprofData.

func (*Debug) DumpService

func (m *Debug) DumpService(
	arg0 string,
	arg1 *jni.Object,
	arg2 *jni.Object,
) (bool, error)

DumpService calls android.os.Debug.dumpService.

func (*Debug) EnableEmulatorTraceOutput

func (m *Debug) EnableEmulatorTraceOutput() error

EnableEmulatorTraceOutput calls android.os.Debug.enableEmulatorTraceOutput.

func (*Debug) GetBinderDeathObjectCount

func (m *Debug) GetBinderDeathObjectCount() (int32, error)

GetBinderDeathObjectCount calls android.os.Debug.getBinderDeathObjectCount.

func (*Debug) GetBinderLocalObjectCount

func (m *Debug) GetBinderLocalObjectCount() (int32, error)

GetBinderLocalObjectCount calls android.os.Debug.getBinderLocalObjectCount.

func (*Debug) GetBinderProxyObjectCount

func (m *Debug) GetBinderProxyObjectCount() (int32, error)

GetBinderProxyObjectCount calls android.os.Debug.getBinderProxyObjectCount.

func (*Debug) GetBinderReceivedTransactions

func (m *Debug) GetBinderReceivedTransactions() (int32, error)

GetBinderReceivedTransactions calls android.os.Debug.getBinderReceivedTransactions.

func (*Debug) GetBinderSentTransactions

func (m *Debug) GetBinderSentTransactions() (int32, error)

GetBinderSentTransactions calls android.os.Debug.getBinderSentTransactions.

func (*Debug) GetGlobalAllocCount

func (m *Debug) GetGlobalAllocCount() (int32, error)

GetGlobalAllocCount calls android.os.Debug.getGlobalAllocCount.

func (*Debug) GetGlobalAllocSize

func (m *Debug) GetGlobalAllocSize() (int32, error)

GetGlobalAllocSize calls android.os.Debug.getGlobalAllocSize.

func (*Debug) GetGlobalClassInitCount

func (m *Debug) GetGlobalClassInitCount() (int32, error)

GetGlobalClassInitCount calls android.os.Debug.getGlobalClassInitCount.

func (*Debug) GetGlobalClassInitTime

func (m *Debug) GetGlobalClassInitTime() (int32, error)

GetGlobalClassInitTime calls android.os.Debug.getGlobalClassInitTime.

func (*Debug) GetGlobalExternalAllocCount

func (m *Debug) GetGlobalExternalAllocCount() (int32, error)

GetGlobalExternalAllocCount calls android.os.Debug.getGlobalExternalAllocCount.

func (*Debug) GetGlobalExternalAllocSize

func (m *Debug) GetGlobalExternalAllocSize() (int32, error)

GetGlobalExternalAllocSize calls android.os.Debug.getGlobalExternalAllocSize.

func (*Debug) GetGlobalExternalFreedCount

func (m *Debug) GetGlobalExternalFreedCount() (int32, error)

GetGlobalExternalFreedCount calls android.os.Debug.getGlobalExternalFreedCount.

func (*Debug) GetGlobalExternalFreedSize

func (m *Debug) GetGlobalExternalFreedSize() (int32, error)

GetGlobalExternalFreedSize calls android.os.Debug.getGlobalExternalFreedSize.

func (*Debug) GetGlobalFreedCount

func (m *Debug) GetGlobalFreedCount() (int32, error)

GetGlobalFreedCount calls android.os.Debug.getGlobalFreedCount.

func (*Debug) GetGlobalFreedSize

func (m *Debug) GetGlobalFreedSize() (int32, error)

GetGlobalFreedSize calls android.os.Debug.getGlobalFreedSize.

func (*Debug) GetGlobalGcInvocationCount

func (m *Debug) GetGlobalGcInvocationCount() (int32, error)

GetGlobalGcInvocationCount calls android.os.Debug.getGlobalGcInvocationCount.

func (*Debug) GetLoadedClassCount

func (m *Debug) GetLoadedClassCount() (int32, error)

GetLoadedClassCount calls android.os.Debug.getLoadedClassCount.

func (*Debug) GetMemoryInfo

func (m *Debug) GetMemoryInfo(arg0 *jni.Object) error

GetMemoryInfo calls android.os.Debug.getMemoryInfo.

func (*Debug) GetNativeHeapAllocatedSize

func (m *Debug) GetNativeHeapAllocatedSize() (int64, error)

GetNativeHeapAllocatedSize calls android.os.Debug.getNativeHeapAllocatedSize.

func (*Debug) GetNativeHeapFreeSize

func (m *Debug) GetNativeHeapFreeSize() (int64, error)

GetNativeHeapFreeSize calls android.os.Debug.getNativeHeapFreeSize.

func (*Debug) GetNativeHeapSize

func (m *Debug) GetNativeHeapSize() (int64, error)

GetNativeHeapSize calls android.os.Debug.getNativeHeapSize.

func (*Debug) GetPss

func (m *Debug) GetPss() (int64, error)

GetPss calls android.os.Debug.getPss.

func (*Debug) GetRss

func (m *Debug) GetRss() (int64, error)

GetRss calls android.os.Debug.getRss.

func (*Debug) GetRuntimeStat

func (m *Debug) GetRuntimeStat(arg0 string) (string, error)

GetRuntimeStat calls android.os.Debug.getRuntimeStat.

func (*Debug) GetThreadAllocCount

func (m *Debug) GetThreadAllocCount() (int32, error)

GetThreadAllocCount calls android.os.Debug.getThreadAllocCount.

func (*Debug) GetThreadAllocSize

func (m *Debug) GetThreadAllocSize() (int32, error)

GetThreadAllocSize calls android.os.Debug.getThreadAllocSize.

func (*Debug) GetThreadExternalAllocCount

func (m *Debug) GetThreadExternalAllocCount() (int32, error)

GetThreadExternalAllocCount calls android.os.Debug.getThreadExternalAllocCount.

func (*Debug) GetThreadExternalAllocSize

func (m *Debug) GetThreadExternalAllocSize() (int32, error)

GetThreadExternalAllocSize calls android.os.Debug.getThreadExternalAllocSize.

func (*Debug) GetThreadGcInvocationCount

func (m *Debug) GetThreadGcInvocationCount() (int32, error)

GetThreadGcInvocationCount calls android.os.Debug.getThreadGcInvocationCount.

func (*Debug) IsDebuggerConnected

func (m *Debug) IsDebuggerConnected() (bool, error)

IsDebuggerConnected calls android.os.Debug.isDebuggerConnected.

func (*Debug) PrintLoadedClasses

func (m *Debug) PrintLoadedClasses(arg0 int32) error

PrintLoadedClasses calls android.os.Debug.printLoadedClasses.

func (*Debug) ResetAllCounts

func (m *Debug) ResetAllCounts() error

ResetAllCounts calls android.os.Debug.resetAllCounts.

func (*Debug) ResetGlobalAllocCount

func (m *Debug) ResetGlobalAllocCount() error

ResetGlobalAllocCount calls android.os.Debug.resetGlobalAllocCount.

func (*Debug) ResetGlobalAllocSize

func (m *Debug) ResetGlobalAllocSize() error

ResetGlobalAllocSize calls android.os.Debug.resetGlobalAllocSize.

func (*Debug) ResetGlobalClassInitCount

func (m *Debug) ResetGlobalClassInitCount() error

ResetGlobalClassInitCount calls android.os.Debug.resetGlobalClassInitCount.

func (*Debug) ResetGlobalClassInitTime

func (m *Debug) ResetGlobalClassInitTime() error

ResetGlobalClassInitTime calls android.os.Debug.resetGlobalClassInitTime.

func (*Debug) ResetGlobalExternalAllocCount

func (m *Debug) ResetGlobalExternalAllocCount() error

ResetGlobalExternalAllocCount calls android.os.Debug.resetGlobalExternalAllocCount.

func (*Debug) ResetGlobalExternalAllocSize

func (m *Debug) ResetGlobalExternalAllocSize() error

ResetGlobalExternalAllocSize calls android.os.Debug.resetGlobalExternalAllocSize.

func (*Debug) ResetGlobalExternalFreedCount

func (m *Debug) ResetGlobalExternalFreedCount() error

ResetGlobalExternalFreedCount calls android.os.Debug.resetGlobalExternalFreedCount.

func (*Debug) ResetGlobalExternalFreedSize

func (m *Debug) ResetGlobalExternalFreedSize() error

ResetGlobalExternalFreedSize calls android.os.Debug.resetGlobalExternalFreedSize.

func (*Debug) ResetGlobalFreedCount

func (m *Debug) ResetGlobalFreedCount() error

ResetGlobalFreedCount calls android.os.Debug.resetGlobalFreedCount.

func (*Debug) ResetGlobalFreedSize

func (m *Debug) ResetGlobalFreedSize() error

ResetGlobalFreedSize calls android.os.Debug.resetGlobalFreedSize.

func (*Debug) ResetGlobalGcInvocationCount

func (m *Debug) ResetGlobalGcInvocationCount() error

ResetGlobalGcInvocationCount calls android.os.Debug.resetGlobalGcInvocationCount.

func (*Debug) ResetThreadAllocCount

func (m *Debug) ResetThreadAllocCount() error

ResetThreadAllocCount calls android.os.Debug.resetThreadAllocCount.

func (*Debug) ResetThreadAllocSize

func (m *Debug) ResetThreadAllocSize() error

ResetThreadAllocSize calls android.os.Debug.resetThreadAllocSize.

func (*Debug) ResetThreadExternalAllocCount

func (m *Debug) ResetThreadExternalAllocCount() error

ResetThreadExternalAllocCount calls android.os.Debug.resetThreadExternalAllocCount.

func (*Debug) ResetThreadExternalAllocSize

func (m *Debug) ResetThreadExternalAllocSize() error

ResetThreadExternalAllocSize calls android.os.Debug.resetThreadExternalAllocSize.

func (*Debug) ResetThreadGcInvocationCount

func (m *Debug) ResetThreadGcInvocationCount() error

ResetThreadGcInvocationCount calls android.os.Debug.resetThreadGcInvocationCount.

func (*Debug) SetAllocationLimit

func (m *Debug) SetAllocationLimit(arg0 int32) (int32, error)

SetAllocationLimit calls android.os.Debug.setAllocationLimit.

func (*Debug) SetGlobalAllocationLimit

func (m *Debug) SetGlobalAllocationLimit(arg0 int32) (int32, error)

SetGlobalAllocationLimit calls android.os.Debug.setGlobalAllocationLimit.

func (*Debug) StartAllocCounting

func (m *Debug) StartAllocCounting() error

StartAllocCounting calls android.os.Debug.startAllocCounting.

func (*Debug) StartMethodTracing0

func (m *Debug) StartMethodTracing0() error

StartMethodTracing0 calls android.os.Debug.startMethodTracing.

func (*Debug) StartMethodTracing1_1

func (m *Debug) StartMethodTracing1_1(arg0 string) error

StartMethodTracing1_1 calls android.os.Debug.startMethodTracing.

func (*Debug) StartMethodTracing2_2

func (m *Debug) StartMethodTracing2_2(arg0 string, arg1 int32) error

StartMethodTracing2_2 calls android.os.Debug.startMethodTracing.

func (*Debug) StartMethodTracing3_3

func (m *Debug) StartMethodTracing3_3(
	arg0 string,
	arg1 int32,
	arg2 int32,
) error

StartMethodTracing3_3 calls android.os.Debug.startMethodTracing.

func (*Debug) StartMethodTracingSampling

func (m *Debug) StartMethodTracingSampling(
	arg0 string,
	arg1 int32,
	arg2 int32,
) error

StartMethodTracingSampling calls android.os.Debug.startMethodTracingSampling.

func (*Debug) StartNativeTracing

func (m *Debug) StartNativeTracing() error

StartNativeTracing calls android.os.Debug.startNativeTracing.

func (*Debug) StopAllocCounting

func (m *Debug) StopAllocCounting() error

StopAllocCounting calls android.os.Debug.stopAllocCounting.

func (*Debug) StopMethodTracing

func (m *Debug) StopMethodTracing() error

StopMethodTracing calls android.os.Debug.stopMethodTracing.

func (*Debug) StopNativeTracing

func (m *Debug) StopNativeTracing() error

StopNativeTracing calls android.os.Debug.stopNativeTracing.

func (*Debug) ThreadCpuTimeNanos

func (m *Debug) ThreadCpuTimeNanos() (int64, error)

ThreadCpuTimeNanos calls android.os.Debug.threadCpuTimeNanos.

func (*Debug) WaitForDebugger

func (m *Debug) WaitForDebugger() error

WaitForDebugger calls android.os.Debug.waitForDebugger.

func (*Debug) WaitingForDebugger

func (m *Debug) WaitingForDebugger() (bool, error)

WaitingForDebugger calls android.os.Debug.waitingForDebugger.

type DebugInstructionCount

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

DebugInstructionCount wraps android.os.Debug$InstructionCount.

func (*DebugInstructionCount) Collect

func (m *DebugInstructionCount) Collect() (bool, error)

Collect calls android.os.Debug$InstructionCount.collect.

func (*DebugInstructionCount) GlobalMethodInvocations

func (m *DebugInstructionCount) GlobalMethodInvocations() (int32, error)

GlobalMethodInvocations calls android.os.Debug$InstructionCount.globalMethodInvocations.

func (*DebugInstructionCount) GlobalTotal

func (m *DebugInstructionCount) GlobalTotal() (int32, error)

GlobalTotal calls android.os.Debug$InstructionCount.globalTotal.

func (*DebugInstructionCount) ResetAndStart

func (m *DebugInstructionCount) ResetAndStart() (bool, error)

ResetAndStart calls android.os.Debug$InstructionCount.resetAndStart.

type DebugMemoryInfo

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

DebugMemoryInfo wraps android.os.Debug$MemoryInfo.

func (*DebugMemoryInfo) DescribeContents

func (m *DebugMemoryInfo) DescribeContents() (int32, error)

DescribeContents calls android.os.Debug$MemoryInfo.describeContents.

func (*DebugMemoryInfo) GetMemoryStat

func (m *DebugMemoryInfo) GetMemoryStat(arg0 string) (string, error)

GetMemoryStat calls android.os.Debug$MemoryInfo.getMemoryStat.

func (*DebugMemoryInfo) GetTotalPrivateClean

func (m *DebugMemoryInfo) GetTotalPrivateClean() (int32, error)

GetTotalPrivateClean calls android.os.Debug$MemoryInfo.getTotalPrivateClean.

func (*DebugMemoryInfo) GetTotalPrivateDirty

func (m *DebugMemoryInfo) GetTotalPrivateDirty() (int32, error)

GetTotalPrivateDirty calls android.os.Debug$MemoryInfo.getTotalPrivateDirty.

func (*DebugMemoryInfo) GetTotalPss

func (m *DebugMemoryInfo) GetTotalPss() (int32, error)

GetTotalPss calls android.os.Debug$MemoryInfo.getTotalPss.

func (*DebugMemoryInfo) GetTotalSharedClean

func (m *DebugMemoryInfo) GetTotalSharedClean() (int32, error)

GetTotalSharedClean calls android.os.Debug$MemoryInfo.getTotalSharedClean.

func (*DebugMemoryInfo) GetTotalSharedDirty

func (m *DebugMemoryInfo) GetTotalSharedDirty() (int32, error)

GetTotalSharedDirty calls android.os.Debug$MemoryInfo.getTotalSharedDirty.

func (*DebugMemoryInfo) GetTotalSwappablePss

func (m *DebugMemoryInfo) GetTotalSwappablePss() (int32, error)

GetTotalSwappablePss calls android.os.Debug$MemoryInfo.getTotalSwappablePss.

func (*DebugMemoryInfo) ReadFromParcel

func (m *DebugMemoryInfo) ReadFromParcel(arg0 *jni.Object) error

ReadFromParcel calls android.os.Debug$MemoryInfo.readFromParcel.

func (*DebugMemoryInfo) WriteToParcel

func (m *DebugMemoryInfo) WriteToParcel(arg0 *jni.Object, arg1 int32) error

WriteToParcel calls android.os.Debug$MemoryInfo.writeToParcel.

type DropBoxManager

type DropBoxManager struct {
	VM  *jni.VM
	Ctx *app.Context
	Obj *jni.GlobalRef
}

DropBoxManager wraps android.os.DropBoxManager.

func NewDropBoxManager

func NewDropBoxManager(ctx *app.Context) (*DropBoxManager, error)

NewDropBoxManager obtains android.os.DropBoxManager from the Android system service manager.

func (*DropBoxManager) AddData

func (m *DropBoxManager) AddData(
	arg0 string,
	arg1 *jni.Object,
	arg2 int32,
) error

AddData calls android.os.DropBoxManager.addData.

func (*DropBoxManager) AddFile

func (m *DropBoxManager) AddFile(
	arg0 string,
	arg1 *jni.Object,
	arg2 int32,
) error

AddFile calls android.os.DropBoxManager.addFile.

func (*DropBoxManager) AddText

func (m *DropBoxManager) AddText(arg0 string, arg1 string) error

AddText calls android.os.DropBoxManager.addText.

func (*DropBoxManager) Close

func (m *DropBoxManager) Close()

Close releases the global reference to the underlying Java object. After Close, the DropBoxManager must not be used.

func (*DropBoxManager) GetNextEntry

func (m *DropBoxManager) GetNextEntry(arg0 string, arg1 int64) (*jni.Object, error)

GetNextEntry calls android.os.DropBoxManager.getNextEntry.

func (*DropBoxManager) IsTagEnabled

func (m *DropBoxManager) IsTagEnabled(arg0 string) (bool, error)

IsTagEnabled calls android.os.DropBoxManager.isTagEnabled.

type DropBoxManagerEntry

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

DropBoxManagerEntry wraps android.os.DropBoxManager$Entry.

func (*DropBoxManagerEntry) Close

func (m *DropBoxManagerEntry) Close() error

Close calls android.os.DropBoxManager$Entry.close.

func (*DropBoxManagerEntry) DescribeContents

func (m *DropBoxManagerEntry) DescribeContents() (int32, error)

DescribeContents calls android.os.DropBoxManager$Entry.describeContents.

func (*DropBoxManagerEntry) GetFlags

func (m *DropBoxManagerEntry) GetFlags() (int32, error)

GetFlags calls android.os.DropBoxManager$Entry.getFlags.

func (*DropBoxManagerEntry) GetInputStream

func (m *DropBoxManagerEntry) GetInputStream() (*jni.Object, error)

GetInputStream calls android.os.DropBoxManager$Entry.getInputStream.

func (*DropBoxManagerEntry) GetTag

func (m *DropBoxManagerEntry) GetTag() (string, error)

GetTag calls android.os.DropBoxManager$Entry.getTag.

func (*DropBoxManagerEntry) GetText

func (m *DropBoxManagerEntry) GetText(arg0 int32) (string, error)

GetText calls android.os.DropBoxManager$Entry.getText.

func (*DropBoxManagerEntry) GetTimeMillis

func (m *DropBoxManagerEntry) GetTimeMillis() (int64, error)

GetTimeMillis calls android.os.DropBoxManager$Entry.getTimeMillis.

func (*DropBoxManagerEntry) WriteToParcel

func (m *DropBoxManagerEntry) WriteToParcel(arg0 *jni.Object, arg1 int32) error

WriteToParcel calls android.os.DropBoxManager$Entry.writeToParcel.

type FileObserver

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

FileObserver wraps android.os.FileObserver.

func (*FileObserver) OnEvent

func (m *FileObserver) OnEvent(arg0 int32, arg1 string) error

OnEvent calls android.os.FileObserver.onEvent.

func (*FileObserver) StartWatching

func (m *FileObserver) StartWatching() error

StartWatching calls android.os.FileObserver.startWatching.

func (*FileObserver) StopWatching

func (m *FileObserver) StopWatching() error

StopWatching calls android.os.FileObserver.stopWatching.

type FileUriExposedException

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

FileUriExposedException wraps android.os.FileUriExposedException.

func NewFileUriExposedException

func NewFileUriExposedException(vm *jni.VM, arg0 string) (*FileUriExposedException, error)

NewFileUriExposedException creates a new android.os.FileUriExposedException instance.

type FileUtils

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

FileUtils wraps android.os.FileUtils.

func (*FileUtils) CloseQuietly1

func (m *FileUtils) CloseQuietly1(arg0 *jni.Object) error

CloseQuietly1 calls android.os.FileUtils.closeQuietly.

func (*FileUtils) CloseQuietly1_1

func (m *FileUtils) CloseQuietly1_1(arg0 *jni.Object) error

CloseQuietly1_1 calls android.os.FileUtils.closeQuietly.

func (*FileUtils) Copy2

func (m *FileUtils) Copy2(arg0 *jni.Object, arg1 *jni.Object) (int64, error)

Copy2 calls android.os.FileUtils.copy.

func (*FileUtils) Copy2_2

func (m *FileUtils) Copy2_2(arg0 *jni.Object, arg1 *jni.Object) (int64, error)

Copy2_2 calls android.os.FileUtils.copy.

func (*FileUtils) Copy5_1

func (m *FileUtils) Copy5_1(
	arg0 *jni.Object,
	arg1 *jni.Object,
	arg2 *jni.Object,
	arg3 *jni.Object,
	arg4 *jni.Object,
) (int64, error)

Copy5_1 calls android.os.FileUtils.copy.

func (*FileUtils) Copy5_3

func (m *FileUtils) Copy5_3(
	arg0 *jni.Object,
	arg1 *jni.Object,
	arg2 *jni.Object,
	arg3 *jni.Object,
	arg4 *jni.Object,
) (int64, error)

Copy5_3 calls android.os.FileUtils.copy.

type FileUtilsProgressListener

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

FileUtilsProgressListener wraps android.os.FileUtils$ProgressListener.

func (*FileUtilsProgressListener) OnProgress

func (m *FileUtilsProgressListener) OnProgress(arg0 int64) error

OnProgress calls android.os.FileUtils$ProgressListener.onProgress.

type GpuHeadroomParams

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

GpuHeadroomParams wraps android.os.GpuHeadroomParams.

func (*GpuHeadroomParams) Equals

func (m *GpuHeadroomParams) Equals(arg0 *jni.Object) (bool, error)

Equals calls android.os.GpuHeadroomParams.equals.

func (*GpuHeadroomParams) GetCalculationType

func (m *GpuHeadroomParams) GetCalculationType() (int32, error)

GetCalculationType calls android.os.GpuHeadroomParams.getCalculationType.

func (*GpuHeadroomParams) GetCalculationWindowMillis

func (m *GpuHeadroomParams) GetCalculationWindowMillis() (int32, error)

GetCalculationWindowMillis calls android.os.GpuHeadroomParams.getCalculationWindowMillis.

func (*GpuHeadroomParams) HashCode

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

HashCode calls android.os.GpuHeadroomParams.hashCode.

func (*GpuHeadroomParams) ToString

func (m *GpuHeadroomParams) ToString() (string, error)

ToString calls android.os.GpuHeadroomParams.toString.

type GpuHeadroomParamsBuilder

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

GpuHeadroomParamsBuilder wraps android.os.GpuHeadroomParams$Builder.

func (*GpuHeadroomParamsBuilder) Build

func (m *GpuHeadroomParamsBuilder) Build() (*jni.Object, error)

Build calls android.os.GpuHeadroomParams$Builder.build.

func (*GpuHeadroomParamsBuilder) SetCalculationType

func (m *GpuHeadroomParamsBuilder) SetCalculationType(arg0 int32) (*jni.Object, error)

SetCalculationType calls android.os.GpuHeadroomParams$Builder.setCalculationType.

func (*GpuHeadroomParamsBuilder) SetCalculationWindowMillis

func (m *GpuHeadroomParamsBuilder) SetCalculationWindowMillis(arg0 int32) (*jni.Object, error)

SetCalculationWindowMillis calls android.os.GpuHeadroomParams$Builder.setCalculationWindowMillis.

type Handler

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

Handler wraps android.os.Handler.

func NewHandler

func NewHandler(vm *jni.VM) (*Handler, error)

NewHandler creates a new android.os.Handler instance.

func (*Handler) CreateAsync

func (m *Handler) CreateAsync(arg0 *jni.Object) (*jni.Object, error)

CreateAsync calls android.os.Handler.createAsync.

func (*Handler) DispatchMessage

func (m *Handler) DispatchMessage(arg0 *jni.Object) error

DispatchMessage calls android.os.Handler.dispatchMessage.

func (*Handler) Dump

func (m *Handler) Dump(arg0 *jni.Object, arg1 string) error

Dump calls android.os.Handler.dump.

func (*Handler) GetLooper

func (m *Handler) GetLooper() (*jni.Object, error)

GetLooper calls android.os.Handler.getLooper.

func (*Handler) GetMessageName

func (m *Handler) GetMessageName(arg0 *jni.Object) (string, error)

GetMessageName calls android.os.Handler.getMessageName.

func (*Handler) HandleMessage

func (m *Handler) HandleMessage(arg0 *jni.Object) error

HandleMessage calls android.os.Handler.handleMessage.

func (*Handler) HasCallbacks

func (m *Handler) HasCallbacks(arg0 *jni.Object) (bool, error)

HasCallbacks calls android.os.Handler.hasCallbacks.

func (*Handler) HasMessages1

func (m *Handler) HasMessages1(arg0 int32) (bool, error)

HasMessages1 calls android.os.Handler.hasMessages.

func (*Handler) HasMessages2_1

func (m *Handler) HasMessages2_1(arg0 int32, arg1 *jni.Object) (bool, error)

HasMessages2_1 calls android.os.Handler.hasMessages.

func (*Handler) ObtainMessage0

func (m *Handler) ObtainMessage0() (*jni.Object, error)

ObtainMessage0 calls android.os.Handler.obtainMessage.

func (*Handler) ObtainMessage1_1

func (m *Handler) ObtainMessage1_1(arg0 int32) (*jni.Object, error)

ObtainMessage1_1 calls android.os.Handler.obtainMessage.

func (*Handler) ObtainMessage2_4

func (m *Handler) ObtainMessage2_4(arg0 int32, arg1 *jni.Object) (*jni.Object, error)

ObtainMessage2_4 calls android.os.Handler.obtainMessage.

func (*Handler) ObtainMessage3_2

func (m *Handler) ObtainMessage3_2(
	arg0 int32,
	arg1 int32,
	arg2 int32,
) (*jni.Object, error)

ObtainMessage3_2 calls android.os.Handler.obtainMessage.

func (*Handler) ObtainMessage4_3

func (m *Handler) ObtainMessage4_3(
	arg0 int32,
	arg1 int32,
	arg2 int32,
	arg3 *jni.Object,
) (*jni.Object, error)

ObtainMessage4_3 calls android.os.Handler.obtainMessage.

func (*Handler) Post

func (m *Handler) Post(arg0 *jni.Object) (bool, error)

Post calls android.os.Handler.post.

func (*Handler) PostAtFrontOfQueue

func (m *Handler) PostAtFrontOfQueue(arg0 *jni.Object) (bool, error)

PostAtFrontOfQueue calls android.os.Handler.postAtFrontOfQueue.

func (*Handler) PostAtTime2_1

func (m *Handler) PostAtTime2_1(arg0 *jni.Object, arg1 int64) (bool, error)

PostAtTime2_1 calls android.os.Handler.postAtTime.

func (*Handler) PostAtTime3

func (m *Handler) PostAtTime3(
	arg0 *jni.Object,
	arg1 *jni.Object,
	arg2 int64,
) (bool, error)

PostAtTime3 calls android.os.Handler.postAtTime.

func (*Handler) PostDelayed2_1

func (m *Handler) PostDelayed2_1(arg0 *jni.Object, arg1 int64) (bool, error)

PostDelayed2_1 calls android.os.Handler.postDelayed.

func (*Handler) PostDelayed3

func (m *Handler) PostDelayed3(
	arg0 *jni.Object,
	arg1 *jni.Object,
	arg2 int64,
) (bool, error)

PostDelayed3 calls android.os.Handler.postDelayed.

func (*Handler) RemoveCallbacks1

func (m *Handler) RemoveCallbacks1(arg0 *jni.Object) error

RemoveCallbacks1 calls android.os.Handler.removeCallbacks.

func (*Handler) RemoveCallbacks2_1

func (m *Handler) RemoveCallbacks2_1(arg0 *jni.Object, arg1 *jni.Object) error

RemoveCallbacks2_1 calls android.os.Handler.removeCallbacks.

func (*Handler) RemoveCallbacksAndMessages

func (m *Handler) RemoveCallbacksAndMessages(arg0 *jni.Object) error

RemoveCallbacksAndMessages calls android.os.Handler.removeCallbacksAndMessages.

func (*Handler) RemoveMessages1

func (m *Handler) RemoveMessages1(arg0 int32) error

RemoveMessages1 calls android.os.Handler.removeMessages.

func (*Handler) RemoveMessages2_1

func (m *Handler) RemoveMessages2_1(arg0 int32, arg1 *jni.Object) error

RemoveMessages2_1 calls android.os.Handler.removeMessages.

func (*Handler) SendEmptyMessage

func (m *Handler) SendEmptyMessage(arg0 int32) (bool, error)

SendEmptyMessage calls android.os.Handler.sendEmptyMessage.

func (*Handler) SendEmptyMessageAtTime

func (m *Handler) SendEmptyMessageAtTime(arg0 int32, arg1 int64) (bool, error)

SendEmptyMessageAtTime calls android.os.Handler.sendEmptyMessageAtTime.

func (*Handler) SendEmptyMessageDelayed

func (m *Handler) SendEmptyMessageDelayed(arg0 int32, arg1 int64) (bool, error)

SendEmptyMessageDelayed calls android.os.Handler.sendEmptyMessageDelayed.

func (*Handler) SendMessage

func (m *Handler) SendMessage(arg0 *jni.Object) (bool, error)

SendMessage calls android.os.Handler.sendMessage.

func (*Handler) SendMessageAtFrontOfQueue

func (m *Handler) SendMessageAtFrontOfQueue(arg0 *jni.Object) (bool, error)

SendMessageAtFrontOfQueue calls android.os.Handler.sendMessageAtFrontOfQueue.

func (*Handler) SendMessageAtTime

func (m *Handler) SendMessageAtTime(arg0 *jni.Object, arg1 int64) (bool, error)

SendMessageAtTime calls android.os.Handler.sendMessageAtTime.

func (*Handler) SendMessageDelayed

func (m *Handler) SendMessageDelayed(arg0 *jni.Object, arg1 int64) (bool, error)

SendMessageDelayed calls android.os.Handler.sendMessageDelayed.

func (*Handler) ToString

func (m *Handler) ToString() (string, error)

ToString calls android.os.Handler.toString.

type HandlerCallback

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

HandlerCallback wraps android.os.Handler$Callback.

func (*HandlerCallback) HandleMessage

func (m *HandlerCallback) HandleMessage(arg0 *jni.Object) (bool, error)

HandleMessage calls android.os.Handler$Callback.handleMessage.

type HandlerThread

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

HandlerThread wraps android.os.HandlerThread.

func NewHandlerThread

func NewHandlerThread(vm *jni.VM, arg0 string) (*HandlerThread, error)

NewHandlerThread creates a new android.os.HandlerThread instance.

func (*HandlerThread) Close

func (m *HandlerThread) Close()

Close quits the thread safely and releases the global reference.

func (*HandlerThread) GetLooper

func (m *HandlerThread) GetLooper() (*jni.Object, error)

GetLooper calls android.os.HandlerThread.getLooper.

func (*HandlerThread) GetThreadId

func (m *HandlerThread) GetThreadId() (int32, error)

GetThreadId calls android.os.HandlerThread.getThreadId.

func (*HandlerThread) Quit

func (m *HandlerThread) Quit() (bool, error)

Quit calls android.os.HandlerThread.quit.

func (*HandlerThread) QuitSafely

func (m *HandlerThread) QuitSafely() (bool, error)

QuitSafely calls android.os.HandlerThread.quitSafely.

func (*HandlerThread) Run

func (m *HandlerThread) Run() error

Run calls android.os.HandlerThread.run.

type HardwarePropertiesManager

type HardwarePropertiesManager struct {
	VM  *jni.VM
	Ctx *app.Context
	Obj *jni.GlobalRef
}

HardwarePropertiesManager wraps android.os.HardwarePropertiesManager.

func NewHardwarePropertiesManager

func NewHardwarePropertiesManager(ctx *app.Context) (*HardwarePropertiesManager, error)

NewHardwarePropertiesManager obtains android.os.HardwarePropertiesManager from the Android system service manager.

func (*HardwarePropertiesManager) Close

func (m *HardwarePropertiesManager) Close()

Close releases the global reference to the underlying Java object. After Close, the HardwarePropertiesManager must not be used.

func (*HardwarePropertiesManager) GetCpuUsages

func (m *HardwarePropertiesManager) GetCpuUsages() (*jni.Object, error)

GetCpuUsages calls android.os.HardwarePropertiesManager.getCpuUsages.

func (*HardwarePropertiesManager) GetDeviceTemperatures

func (m *HardwarePropertiesManager) GetDeviceTemperatures(arg0 int32, arg1 int32) (*jni.Object, error)

GetDeviceTemperatures calls android.os.HardwarePropertiesManager.getDeviceTemperatures.

func (*HardwarePropertiesManager) GetFanSpeeds

func (m *HardwarePropertiesManager) GetFanSpeeds() (*jni.Object, error)

GetFanSpeeds calls android.os.HardwarePropertiesManager.getFanSpeeds.

type IBinder

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

IBinder wraps android.os.IBinder.

func (*IBinder) Dump

func (m *IBinder) Dump(arg0 *jni.Object, arg1 *jni.Object) error

Dump calls android.os.IBinder.dump.

func (*IBinder) DumpAsync

func (m *IBinder) DumpAsync(arg0 *jni.Object, arg1 *jni.Object) error

DumpAsync calls android.os.IBinder.dumpAsync.

func (*IBinder) GetInterfaceDescriptor

func (m *IBinder) GetInterfaceDescriptor() (string, error)

GetInterfaceDescriptor calls android.os.IBinder.getInterfaceDescriptor.

func (*IBinder) GetSuggestedMaxIpcSizeBytes

func (m *IBinder) GetSuggestedMaxIpcSizeBytes() (int32, error)

GetSuggestedMaxIpcSizeBytes calls android.os.IBinder.getSuggestedMaxIpcSizeBytes.

func (*IBinder) IsBinderAlive

func (m *IBinder) IsBinderAlive() (bool, error)

IsBinderAlive calls android.os.IBinder.isBinderAlive.

func (*IBinder) LinkToDeath

func (m *IBinder) LinkToDeath(arg0 *jni.Object, arg1 int32) error

LinkToDeath calls android.os.IBinder.linkToDeath.

func (*IBinder) PingBinder

func (m *IBinder) PingBinder() (bool, error)

PingBinder calls android.os.IBinder.pingBinder.

func (*IBinder) QueryLocalInterface

func (m *IBinder) QueryLocalInterface(arg0 string) (*jni.Object, error)

QueryLocalInterface calls android.os.IBinder.queryLocalInterface.

func (*IBinder) Transact

func (m *IBinder) Transact(
	arg0 int32,
	arg1 *jni.Object,
	arg2 *jni.Object,
	arg3 int32,
) (bool, error)

Transact calls android.os.IBinder.transact.

func (*IBinder) UnlinkToDeath

func (m *IBinder) UnlinkToDeath(arg0 *jni.Object, arg1 int32) (bool, error)

UnlinkToDeath calls android.os.IBinder.unlinkToDeath.

type IBinderDeathRecipient

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

IBinderDeathRecipient wraps android.os.IBinder$DeathRecipient.

func (*IBinderDeathRecipient) BinderDied

func (m *IBinderDeathRecipient) BinderDied() error

BinderDied calls android.os.IBinder$DeathRecipient.binderDied.

type IBinderFrozenStateChangeCallback

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

IBinderFrozenStateChangeCallback wraps android.os.IBinder$FrozenStateChangeCallback.

func (*IBinderFrozenStateChangeCallback) OnFrozenStateChanged

func (m *IBinderFrozenStateChangeCallback) OnFrozenStateChanged(arg0 *jni.Object, arg1 int32) error

OnFrozenStateChanged calls android.os.IBinder$FrozenStateChangeCallback.onFrozenStateChanged.

type IInterface

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

IInterface wraps android.os.IInterface.

func (*IInterface) AsBinder

func (m *IInterface) AsBinder() (*jni.Object, error)

AsBinder calls android.os.IInterface.asBinder.

type LimitExceededException

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

LimitExceededException wraps android.os.LimitExceededException.

func NewLimitExceededException

func NewLimitExceededException(vm *jni.VM) (*LimitExceededException, error)

NewLimitExceededException creates a new android.os.LimitExceededException instance.

type LocaleList

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

LocaleList wraps android.os.LocaleList.

func NewLocaleList

func NewLocaleList(vm *jni.VM, arg0 *jni.Object) (*LocaleList, error)

NewLocaleList creates a new android.os.LocaleList instance.

func (*LocaleList) DescribeContents

func (m *LocaleList) DescribeContents() (int32, error)

DescribeContents calls android.os.LocaleList.describeContents.

func (*LocaleList) Equals

func (m *LocaleList) Equals(arg0 *jni.Object) (bool, error)

Equals calls android.os.LocaleList.equals.

func (*LocaleList) ForLanguageTags

func (m *LocaleList) ForLanguageTags(arg0 string) (*jni.Object, error)

ForLanguageTags calls android.os.LocaleList.forLanguageTags.

func (*LocaleList) Get

func (m *LocaleList) Get(arg0 int32) (*jni.Object, error)

Get calls android.os.LocaleList.get.

func (*LocaleList) GetAdjustedDefault

func (m *LocaleList) GetAdjustedDefault() (*jni.Object, error)

GetAdjustedDefault calls android.os.LocaleList.getAdjustedDefault.

func (*LocaleList) GetDefault

func (m *LocaleList) GetDefault() (*jni.Object, error)

GetDefault calls android.os.LocaleList.getDefault.

func (*LocaleList) GetEmptyLocaleList

func (m *LocaleList) GetEmptyLocaleList() (*jni.Object, error)

GetEmptyLocaleList calls android.os.LocaleList.getEmptyLocaleList.

func (*LocaleList) GetFirstMatch

func (m *LocaleList) GetFirstMatch(arg0 *jni.Object) (*jni.Object, error)

GetFirstMatch calls android.os.LocaleList.getFirstMatch.

func (*LocaleList) HashCode

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

HashCode calls android.os.LocaleList.hashCode.

func (*LocaleList) IndexOf

func (m *LocaleList) IndexOf(arg0 *jni.Object) (int32, error)

IndexOf calls android.os.LocaleList.indexOf.

func (*LocaleList) IsEmpty

func (m *LocaleList) IsEmpty() (bool, error)

IsEmpty calls android.os.LocaleList.isEmpty.

func (*LocaleList) IsPseudoLocale

func (m *LocaleList) IsPseudoLocale(arg0 *jni.Object) (bool, error)

IsPseudoLocale calls android.os.LocaleList.isPseudoLocale.

func (*LocaleList) MatchesLanguageAndScript

func (m *LocaleList) MatchesLanguageAndScript(arg0 *jni.Object, arg1 *jni.Object) (bool, error)

MatchesLanguageAndScript calls android.os.LocaleList.matchesLanguageAndScript.

func (*LocaleList) SetDefault

func (m *LocaleList) SetDefault(arg0 *jni.Object) error

SetDefault calls android.os.LocaleList.setDefault.

func (*LocaleList) Size

func (m *LocaleList) Size() (int32, error)

Size calls android.os.LocaleList.size.

func (*LocaleList) ToLanguageTags

func (m *LocaleList) ToLanguageTags() (string, error)

ToLanguageTags calls android.os.LocaleList.toLanguageTags.

func (*LocaleList) ToString

func (m *LocaleList) ToString() (string, error)

ToString calls android.os.LocaleList.toString.

func (*LocaleList) WriteToParcel

func (m *LocaleList) WriteToParcel(arg0 *jni.Object, arg1 int32) error

WriteToParcel calls android.os.LocaleList.writeToParcel.

type Looper

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

Looper wraps android.os.Looper.

func (*Looper) Dump

func (m *Looper) Dump(arg0 *jni.Object, arg1 string) error

Dump calls android.os.Looper.dump.

func (*Looper) GetMainLooper

func (m *Looper) GetMainLooper() (*jni.Object, error)

GetMainLooper calls android.os.Looper.getMainLooper.

func (*Looper) GetQueue

func (m *Looper) GetQueue() (*jni.Object, error)

GetQueue calls android.os.Looper.getQueue.

func (*Looper) GetThread

func (m *Looper) GetThread() (*jni.Object, error)

GetThread calls android.os.Looper.getThread.

func (*Looper) IsCurrentThread

func (m *Looper) IsCurrentThread() (bool, error)

IsCurrentThread calls android.os.Looper.isCurrentThread.

func (*Looper) Loop

func (m *Looper) Loop() error

Loop calls android.os.Looper.loop.

func (*Looper) MyLooper

func (m *Looper) MyLooper() (*jni.Object, error)

MyLooper calls android.os.Looper.myLooper.

func (*Looper) MyQueue

func (m *Looper) MyQueue() (*jni.Object, error)

MyQueue calls android.os.Looper.myQueue.

func (*Looper) Prepare

func (m *Looper) Prepare() error

Prepare calls android.os.Looper.prepare.

func (*Looper) PrepareMainLooper

func (m *Looper) PrepareMainLooper() error

PrepareMainLooper calls android.os.Looper.prepareMainLooper.

func (*Looper) Quit

func (m *Looper) Quit() error

Quit calls android.os.Looper.quit.

func (*Looper) QuitSafely

func (m *Looper) QuitSafely() error

QuitSafely calls android.os.Looper.quitSafely.

func (*Looper) SetMessageLogging

func (m *Looper) SetMessageLogging(arg0 *jni.Object) error

SetMessageLogging calls android.os.Looper.setMessageLogging.

func (*Looper) ToString

func (m *Looper) ToString() (string, error)

ToString calls android.os.Looper.toString.

type MemoryFile

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

MemoryFile wraps android.os.MemoryFile.

func NewMemoryFile

func NewMemoryFile(vm *jni.VM, arg0 string, arg1 int32) (*MemoryFile, error)

NewMemoryFile creates a new android.os.MemoryFile instance.

func (*MemoryFile) Close

func (m *MemoryFile) Close() error

Close calls android.os.MemoryFile.close.

func (*MemoryFile) GetInputStream

func (m *MemoryFile) GetInputStream() (*jni.Object, error)

GetInputStream calls android.os.MemoryFile.getInputStream.

func (*MemoryFile) GetOutputStream

func (m *MemoryFile) GetOutputStream() (*jni.Object, error)

GetOutputStream calls android.os.MemoryFile.getOutputStream.

func (*MemoryFile) IsPurgingAllowed

func (m *MemoryFile) IsPurgingAllowed() (bool, error)

IsPurgingAllowed calls android.os.MemoryFile.isPurgingAllowed.

func (*MemoryFile) Length

func (m *MemoryFile) Length() (int32, error)

Length calls android.os.MemoryFile.length.

func (*MemoryFile) ReadBytes

func (m *MemoryFile) ReadBytes(
	arg0 *jni.Object,
	arg1 int32,
	arg2 int32,
	arg3 int32,
) (int32, error)

ReadBytes calls android.os.MemoryFile.readBytes.

func (*MemoryFile) WriteBytes

func (m *MemoryFile) WriteBytes(
	arg0 *jni.Object,
	arg1 int32,
	arg2 int32,
	arg3 int32,
) error

WriteBytes calls android.os.MemoryFile.writeBytes.

type Message

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

Message wraps android.os.Message.

func NewMessage

func NewMessage(vm *jni.VM) (*Message, error)

NewMessage creates a new android.os.Message instance.

func (*Message) CopyFrom

func (m *Message) CopyFrom(arg0 *jni.Object) error

CopyFrom calls android.os.Message.copyFrom.

func (*Message) DescribeContents

func (m *Message) DescribeContents() (int32, error)

DescribeContents calls android.os.Message.describeContents.

func (*Message) GetCallback

func (m *Message) GetCallback() (*jni.Object, error)

GetCallback calls android.os.Message.getCallback.

func (*Message) GetData

func (m *Message) GetData() (*jni.Object, error)

GetData calls android.os.Message.getData.

func (*Message) GetTarget

func (m *Message) GetTarget() (*jni.Object, error)

GetTarget calls android.os.Message.getTarget.

func (*Message) GetWhen

func (m *Message) GetWhen() (int64, error)

GetWhen calls android.os.Message.getWhen.

func (*Message) IsAsynchronous

func (m *Message) IsAsynchronous() (bool, error)

IsAsynchronous calls android.os.Message.isAsynchronous.

func (*Message) Obtain0

func (m *Message) Obtain0() (*jni.Object, error)

Obtain0 calls android.os.Message.obtain.

func (*Message) Obtain1_1

func (m *Message) Obtain1_1(arg0 *jni.Object) (*jni.Object, error)

Obtain1_1 calls android.os.Message.obtain.

func (*Message) PeekData

func (m *Message) PeekData() (*jni.Object, error)

PeekData calls android.os.Message.peekData.

func (*Message) Recycle

func (m *Message) Recycle() error

Recycle calls android.os.Message.recycle.

func (*Message) SendToTarget

func (m *Message) SendToTarget() error

SendToTarget calls android.os.Message.sendToTarget.

func (*Message) SetAsynchronous

func (m *Message) SetAsynchronous(arg0 bool) error

SetAsynchronous calls android.os.Message.setAsynchronous.

func (*Message) SetData

func (m *Message) SetData(arg0 *jni.Object) error

SetData calls android.os.Message.setData.

func (*Message) ToString

func (m *Message) ToString() (string, error)

ToString calls android.os.Message.toString.

func (*Message) WriteToParcel

func (m *Message) WriteToParcel(arg0 *jni.Object, arg1 int32) error

WriteToParcel calls android.os.Message.writeToParcel.

type MessageQueue

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

MessageQueue wraps android.os.MessageQueue.

func (*MessageQueue) AddOnFileDescriptorEventListener

func (m *MessageQueue) AddOnFileDescriptorEventListener(
	arg0 *jni.Object,
	arg1 int32,
	arg2 *jni.Object,
) error

AddOnFileDescriptorEventListener calls android.os.MessageQueue.addOnFileDescriptorEventListener.

func (*MessageQueue) IsIdle

func (m *MessageQueue) IsIdle() (bool, error)

IsIdle calls android.os.MessageQueue.isIdle.

func (*MessageQueue) RemoveOnFileDescriptorEventListener

func (m *MessageQueue) RemoveOnFileDescriptorEventListener(arg0 *jni.Object) error

RemoveOnFileDescriptorEventListener calls android.os.MessageQueue.removeOnFileDescriptorEventListener.

type MessageQueueIdleHandler

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

MessageQueueIdleHandler wraps android.os.MessageQueue$IdleHandler.

func (*MessageQueueIdleHandler) QueueIdle

func (m *MessageQueueIdleHandler) QueueIdle() (bool, error)

QueueIdle calls android.os.MessageQueue$IdleHandler.queueIdle.

type MessageQueueOnFileDescriptorEventListener

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

MessageQueueOnFileDescriptorEventListener wraps android.os.MessageQueue$OnFileDescriptorEventListener.

func (*MessageQueueOnFileDescriptorEventListener) OnFileDescriptorEvents

func (m *MessageQueueOnFileDescriptorEventListener) OnFileDescriptorEvents(arg0 *jni.Object, arg1 int32) (int32, error)

OnFileDescriptorEvents calls android.os.MessageQueue$OnFileDescriptorEventListener.onFileDescriptorEvents.

type Messenger

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

Messenger wraps android.os.Messenger.

func NewMessenger

func NewMessenger(vm *jni.VM, arg0 *jni.Object) (*Messenger, error)

NewMessenger creates a new android.os.Messenger instance.

func (*Messenger) DescribeContents

func (m *Messenger) DescribeContents() (int32, error)

DescribeContents calls android.os.Messenger.describeContents.

func (*Messenger) Equals

func (m *Messenger) Equals(arg0 *jni.Object) (bool, error)

Equals calls android.os.Messenger.equals.

func (*Messenger) GetBinder

func (m *Messenger) GetBinder() (*jni.Object, error)

GetBinder calls android.os.Messenger.getBinder.

func (*Messenger) HashCode

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

HashCode calls android.os.Messenger.hashCode.

func (*Messenger) ReadMessengerOrNullFromParcel

func (m *Messenger) ReadMessengerOrNullFromParcel(arg0 *jni.Object) (*jni.Object, error)

ReadMessengerOrNullFromParcel calls android.os.Messenger.readMessengerOrNullFromParcel.

func (*Messenger) Send

func (m *Messenger) Send(arg0 *jni.Object) error

Send calls android.os.Messenger.send.

func (*Messenger) WriteMessengerOrNullToParcel

func (m *Messenger) WriteMessengerOrNullToParcel(arg0 *jni.Object, arg1 *jni.Object) error

WriteMessengerOrNullToParcel calls android.os.Messenger.writeMessengerOrNullToParcel.

func (*Messenger) WriteToParcel

func (m *Messenger) WriteToParcel(arg0 *jni.Object, arg1 int32) error

WriteToParcel calls android.os.Messenger.writeToParcel.

type NetworkOnMainThreadException

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

NetworkOnMainThreadException wraps android.os.NetworkOnMainThreadException.

func NewNetworkOnMainThreadException

func NewNetworkOnMainThreadException(vm *jni.VM) (*NetworkOnMainThreadException, error)

NewNetworkOnMainThreadException creates a new android.os.NetworkOnMainThreadException instance.

type OperationCanceledException

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

OperationCanceledException wraps android.os.OperationCanceledException.

func NewOperationCanceledException

func NewOperationCanceledException(vm *jni.VM) (*OperationCanceledException, error)

NewOperationCanceledException creates a new android.os.OperationCanceledException instance.

type Parcel

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

Parcel wraps android.os.Parcel.

func (*Parcel) AppendFrom

func (m *Parcel) AppendFrom(
	arg0 *jni.Object,
	arg1 int32,
	arg2 int32,
) error

AppendFrom calls android.os.Parcel.appendFrom.

func (*Parcel) CreateBinderArray

func (m *Parcel) CreateBinderArray() (*jni.Object, error)

CreateBinderArray calls android.os.Parcel.createBinderArray.

func (*Parcel) CreateBooleanArray

func (m *Parcel) CreateBooleanArray() (*jni.Object, error)

CreateBooleanArray calls android.os.Parcel.createBooleanArray.

func (*Parcel) CreateByteArray

func (m *Parcel) CreateByteArray() (*jni.Object, error)

CreateByteArray calls android.os.Parcel.createByteArray.

func (*Parcel) CreateCharArray

func (m *Parcel) CreateCharArray() (*jni.Object, error)

CreateCharArray calls android.os.Parcel.createCharArray.

func (*Parcel) CreateDoubleArray

func (m *Parcel) CreateDoubleArray() (*jni.Object, error)

CreateDoubleArray calls android.os.Parcel.createDoubleArray.

func (*Parcel) CreateFloatArray

func (m *Parcel) CreateFloatArray() (*jni.Object, error)

CreateFloatArray calls android.os.Parcel.createFloatArray.

func (*Parcel) CreateIntArray

func (m *Parcel) CreateIntArray() (*jni.Object, error)

CreateIntArray calls android.os.Parcel.createIntArray.

func (*Parcel) CreateLongArray

func (m *Parcel) CreateLongArray() (*jni.Object, error)

CreateLongArray calls android.os.Parcel.createLongArray.

func (*Parcel) CreateStringArray

func (m *Parcel) CreateStringArray() (*jni.Object, error)

CreateStringArray calls android.os.Parcel.createStringArray.

func (*Parcel) DataAvail

func (m *Parcel) DataAvail() (int32, error)

DataAvail calls android.os.Parcel.dataAvail.

func (*Parcel) DataCapacity

func (m *Parcel) DataCapacity() (int32, error)

DataCapacity calls android.os.Parcel.dataCapacity.

func (*Parcel) DataPosition

func (m *Parcel) DataPosition() (int32, error)

DataPosition calls android.os.Parcel.dataPosition.

func (*Parcel) DataSize

func (m *Parcel) DataSize() (int32, error)

DataSize calls android.os.Parcel.dataSize.

func (*Parcel) EnforceInterface

func (m *Parcel) EnforceInterface(arg0 string) error

EnforceInterface calls android.os.Parcel.enforceInterface.

func (*Parcel) EnforceNoDataAvail

func (m *Parcel) EnforceNoDataAvail() error

EnforceNoDataAvail calls android.os.Parcel.enforceNoDataAvail.

func (*Parcel) HasFileDescriptors0

func (m *Parcel) HasFileDescriptors0() (bool, error)

HasFileDescriptors0 calls android.os.Parcel.hasFileDescriptors.

func (*Parcel) HasFileDescriptors2_1

func (m *Parcel) HasFileDescriptors2_1(arg0 int32, arg1 int32) (bool, error)

HasFileDescriptors2_1 calls android.os.Parcel.hasFileDescriptors.

func (*Parcel) Marshall

func (m *Parcel) Marshall() (*jni.Object, error)

Marshall calls android.os.Parcel.marshall.

func (*Parcel) Obtain0

func (m *Parcel) Obtain0() (*jni.Object, error)

Obtain0 calls android.os.Parcel.obtain.

func (*Parcel) Obtain1_1

func (m *Parcel) Obtain1_1(arg0 *jni.Object) (*jni.Object, error)

Obtain1_1 calls android.os.Parcel.obtain.

func (*Parcel) ReadArray

func (m *Parcel) ReadArray(arg0 *jni.Object) (*jni.Object, error)

ReadArray calls android.os.Parcel.readArray.

func (*Parcel) ReadArrayList

func (m *Parcel) ReadArrayList(arg0 *jni.Object) (*jni.Object, error)

ReadArrayList calls android.os.Parcel.readArrayList.

func (*Parcel) ReadBinderArray

func (m *Parcel) ReadBinderArray(arg0 *jni.Object) error

ReadBinderArray calls android.os.Parcel.readBinderArray.

func (*Parcel) ReadBlob

func (m *Parcel) ReadBlob() (*jni.Object, error)

ReadBlob calls android.os.Parcel.readBlob.

func (*Parcel) ReadBoolean

func (m *Parcel) ReadBoolean() (bool, error)

ReadBoolean calls android.os.Parcel.readBoolean.

func (*Parcel) ReadBooleanArray

func (m *Parcel) ReadBooleanArray(arg0 *jni.Object) error

ReadBooleanArray calls android.os.Parcel.readBooleanArray.

func (*Parcel) ReadBundle0

func (m *Parcel) ReadBundle0() (*jni.Object, error)

ReadBundle0 calls android.os.Parcel.readBundle.

func (*Parcel) ReadBundle1_1

func (m *Parcel) ReadBundle1_1(arg0 *jni.Object) (*jni.Object, error)

ReadBundle1_1 calls android.os.Parcel.readBundle.

func (*Parcel) ReadByteArray

func (m *Parcel) ReadByteArray(arg0 *jni.Object) error

ReadByteArray calls android.os.Parcel.readByteArray.

func (*Parcel) ReadByteValue

func (m *Parcel) ReadByteValue() (int8, error)

ReadByteValue calls android.os.Parcel.readByte.

func (*Parcel) ReadCharArray

func (m *Parcel) ReadCharArray(arg0 *jni.Object) error

ReadCharArray calls android.os.Parcel.readCharArray.

func (*Parcel) ReadDouble

func (m *Parcel) ReadDouble() (float64, error)

ReadDouble calls android.os.Parcel.readDouble.

func (*Parcel) ReadDoubleArray

func (m *Parcel) ReadDoubleArray(arg0 *jni.Object) error

ReadDoubleArray calls android.os.Parcel.readDoubleArray.

func (*Parcel) ReadException0

func (m *Parcel) ReadException0() error

ReadException0 calls android.os.Parcel.readException.

func (*Parcel) ReadException2_1

func (m *Parcel) ReadException2_1(arg0 int32, arg1 string) error

ReadException2_1 calls android.os.Parcel.readException.

func (*Parcel) ReadFileDescriptor

func (m *Parcel) ReadFileDescriptor() (*jni.Object, error)

ReadFileDescriptor calls android.os.Parcel.readFileDescriptor.

func (*Parcel) ReadFloat

func (m *Parcel) ReadFloat() (float32, error)

ReadFloat calls android.os.Parcel.readFloat.

func (*Parcel) ReadFloatArray

func (m *Parcel) ReadFloatArray(arg0 *jni.Object) error

ReadFloatArray calls android.os.Parcel.readFloatArray.

func (*Parcel) ReadHashMap

func (m *Parcel) ReadHashMap(arg0 *jni.Object) (*jni.Object, error)

ReadHashMap calls android.os.Parcel.readHashMap.

func (*Parcel) ReadInt

func (m *Parcel) ReadInt() (int32, error)

ReadInt calls android.os.Parcel.readInt.

func (*Parcel) ReadIntArray

func (m *Parcel) ReadIntArray(arg0 *jni.Object) error

ReadIntArray calls android.os.Parcel.readIntArray.

func (*Parcel) ReadList

func (m *Parcel) ReadList(arg0 *jni.Object, arg1 *jni.Object) error

ReadList calls android.os.Parcel.readList.

func (*Parcel) ReadLong

func (m *Parcel) ReadLong() (int64, error)

ReadLong calls android.os.Parcel.readLong.

func (*Parcel) ReadLongArray

func (m *Parcel) ReadLongArray(arg0 *jni.Object) error

ReadLongArray calls android.os.Parcel.readLongArray.

func (*Parcel) ReadMap

func (m *Parcel) ReadMap(arg0 *jni.Object, arg1 *jni.Object) error

ReadMap calls android.os.Parcel.readMap.

func (*Parcel) ReadParcelableArray

func (m *Parcel) ReadParcelableArray(arg0 *jni.Object) (*jni.Object, error)

ReadParcelableArray calls android.os.Parcel.readParcelableArray.

func (*Parcel) ReadPersistableBundle0

func (m *Parcel) ReadPersistableBundle0() (*jni.Object, error)

ReadPersistableBundle0 calls android.os.Parcel.readPersistableBundle.

func (*Parcel) ReadPersistableBundle1_1

func (m *Parcel) ReadPersistableBundle1_1(arg0 *jni.Object) (*jni.Object, error)

ReadPersistableBundle1_1 calls android.os.Parcel.readPersistableBundle.

func (*Parcel) ReadSerializable

func (m *Parcel) ReadSerializable() (*jni.Object, error)

ReadSerializable calls android.os.Parcel.readSerializable.

func (*Parcel) ReadSize

func (m *Parcel) ReadSize() (*jni.Object, error)

ReadSize calls android.os.Parcel.readSize.

func (*Parcel) ReadSizeF

func (m *Parcel) ReadSizeF() (*jni.Object, error)

ReadSizeF calls android.os.Parcel.readSizeF.

func (*Parcel) ReadSparseBooleanArray

func (m *Parcel) ReadSparseBooleanArray() (*jni.Object, error)

ReadSparseBooleanArray calls android.os.Parcel.readSparseBooleanArray.

func (*Parcel) ReadString

func (m *Parcel) ReadString() (string, error)

ReadString calls android.os.Parcel.readString.

func (*Parcel) ReadStringArray

func (m *Parcel) ReadStringArray(arg0 *jni.Object) error

ReadStringArray calls android.os.Parcel.readStringArray.

func (*Parcel) ReadStrongBinder

func (m *Parcel) ReadStrongBinder() (*jni.Object, error)

ReadStrongBinder calls android.os.Parcel.readStrongBinder.

func (*Parcel) ReadValue

func (m *Parcel) ReadValue(arg0 *jni.Object) (*jni.Object, error)

ReadValue calls android.os.Parcel.readValue.

func (*Parcel) Recycle

func (m *Parcel) Recycle() error

Recycle calls android.os.Parcel.recycle.

func (*Parcel) SetDataCapacity

func (m *Parcel) SetDataCapacity(arg0 int32) error

SetDataCapacity calls android.os.Parcel.setDataCapacity.

func (*Parcel) SetDataPosition

func (m *Parcel) SetDataPosition(arg0 int32) error

SetDataPosition calls android.os.Parcel.setDataPosition.

func (*Parcel) SetDataSize

func (m *Parcel) SetDataSize(arg0 int32) error

SetDataSize calls android.os.Parcel.setDataSize.

func (*Parcel) SetPropagateAllowBlocking

func (m *Parcel) SetPropagateAllowBlocking() error

SetPropagateAllowBlocking calls android.os.Parcel.setPropagateAllowBlocking.

func (*Parcel) Unmarshall

func (m *Parcel) Unmarshall(
	arg0 *jni.Object,
	arg1 int32,
	arg2 int32,
) error

Unmarshall calls android.os.Parcel.unmarshall.

func (*Parcel) WriteArray

func (m *Parcel) WriteArray(arg0 *jni.Object) error

WriteArray calls android.os.Parcel.writeArray.

func (*Parcel) WriteBinderArray

func (m *Parcel) WriteBinderArray(arg0 *jni.Object) error

WriteBinderArray calls android.os.Parcel.writeBinderArray.

func (*Parcel) WriteBlob1

func (m *Parcel) WriteBlob1(arg0 *jni.Object) error

WriteBlob1 calls android.os.Parcel.writeBlob.

func (*Parcel) WriteBlob3_1

func (m *Parcel) WriteBlob3_1(
	arg0 *jni.Object,
	arg1 int32,
	arg2 int32,
) error

WriteBlob3_1 calls android.os.Parcel.writeBlob.

func (*Parcel) WriteBoolean

func (m *Parcel) WriteBoolean(arg0 bool) error

WriteBoolean calls android.os.Parcel.writeBoolean.

func (*Parcel) WriteBooleanArray

func (m *Parcel) WriteBooleanArray(arg0 *jni.Object) error

WriteBooleanArray calls android.os.Parcel.writeBooleanArray.

func (*Parcel) WriteBundle

func (m *Parcel) WriteBundle(arg0 *jni.Object) error

WriteBundle calls android.os.Parcel.writeBundle.

func (*Parcel) WriteByteArray1

func (m *Parcel) WriteByteArray1(arg0 *jni.Object) error

WriteByteArray1 calls android.os.Parcel.writeByteArray.

func (*Parcel) WriteByteArray3_1

func (m *Parcel) WriteByteArray3_1(
	arg0 *jni.Object,
	arg1 int32,
	arg2 int32,
) error

WriteByteArray3_1 calls android.os.Parcel.writeByteArray.

func (*Parcel) WriteByteValue

func (m *Parcel) WriteByteValue(arg0 int8) error

WriteByteValue calls android.os.Parcel.writeByte.

func (*Parcel) WriteCharArray

func (m *Parcel) WriteCharArray(arg0 *jni.Object) error

WriteCharArray calls android.os.Parcel.writeCharArray.

func (*Parcel) WriteDouble

func (m *Parcel) WriteDouble(arg0 float64) error

WriteDouble calls android.os.Parcel.writeDouble.

func (*Parcel) WriteDoubleArray

func (m *Parcel) WriteDoubleArray(arg0 *jni.Object) error

WriteDoubleArray calls android.os.Parcel.writeDoubleArray.

func (*Parcel) WriteException

func (m *Parcel) WriteException(arg0 *jni.Object) error

WriteException calls android.os.Parcel.writeException.

func (*Parcel) WriteFileDescriptor

func (m *Parcel) WriteFileDescriptor(arg0 *jni.Object) error

WriteFileDescriptor calls android.os.Parcel.writeFileDescriptor.

func (*Parcel) WriteFloat

func (m *Parcel) WriteFloat(arg0 float32) error

WriteFloat calls android.os.Parcel.writeFloat.

func (*Parcel) WriteFloatArray

func (m *Parcel) WriteFloatArray(arg0 *jni.Object) error

WriteFloatArray calls android.os.Parcel.writeFloatArray.

func (*Parcel) WriteInt

func (m *Parcel) WriteInt(arg0 int32) error

WriteInt calls android.os.Parcel.writeInt.

func (*Parcel) WriteIntArray

func (m *Parcel) WriteIntArray(arg0 *jni.Object) error

WriteIntArray calls android.os.Parcel.writeIntArray.

func (*Parcel) WriteInterfaceToken

func (m *Parcel) WriteInterfaceToken(arg0 string) error

WriteInterfaceToken calls android.os.Parcel.writeInterfaceToken.

func (*Parcel) WriteList

func (m *Parcel) WriteList(arg0 *jni.Object) error

WriteList calls android.os.Parcel.writeList.

func (*Parcel) WriteLong

func (m *Parcel) WriteLong(arg0 int64) error

WriteLong calls android.os.Parcel.writeLong.

func (*Parcel) WriteLongArray

func (m *Parcel) WriteLongArray(arg0 *jni.Object) error

WriteLongArray calls android.os.Parcel.writeLongArray.

func (*Parcel) WriteMap

func (m *Parcel) WriteMap(arg0 *jni.Object) error

WriteMap calls android.os.Parcel.writeMap.

func (*Parcel) WriteNoException

func (m *Parcel) WriteNoException() error

WriteNoException calls android.os.Parcel.writeNoException.

func (*Parcel) WriteParcelable

func (m *Parcel) WriteParcelable(arg0 *jni.Object, arg1 int32) error

WriteParcelable calls android.os.Parcel.writeParcelable.

func (*Parcel) WriteParcelableCreator

func (m *Parcel) WriteParcelableCreator(arg0 *jni.Object) error

WriteParcelableCreator calls android.os.Parcel.writeParcelableCreator.

func (*Parcel) WritePersistableBundle

func (m *Parcel) WritePersistableBundle(arg0 *jni.Object) error

WritePersistableBundle calls android.os.Parcel.writePersistableBundle.

func (*Parcel) WriteSerializable

func (m *Parcel) WriteSerializable(arg0 *jni.Object) error

WriteSerializable calls android.os.Parcel.writeSerializable.

func (*Parcel) WriteSize

func (m *Parcel) WriteSize(arg0 *jni.Object) error

WriteSize calls android.os.Parcel.writeSize.

func (*Parcel) WriteSizeF

func (m *Parcel) WriteSizeF(arg0 *jni.Object) error

WriteSizeF calls android.os.Parcel.writeSizeF.

func (*Parcel) WriteSparseBooleanArray

func (m *Parcel) WriteSparseBooleanArray(arg0 *jni.Object) error

WriteSparseBooleanArray calls android.os.Parcel.writeSparseBooleanArray.

func (*Parcel) WriteString

func (m *Parcel) WriteString(arg0 string) error

WriteString calls android.os.Parcel.writeString.

func (*Parcel) WriteStringArray

func (m *Parcel) WriteStringArray(arg0 *jni.Object) error

WriteStringArray calls android.os.Parcel.writeStringArray.

func (*Parcel) WriteStrongBinder

func (m *Parcel) WriteStrongBinder(arg0 *jni.Object) error

WriteStrongBinder calls android.os.Parcel.writeStrongBinder.

func (*Parcel) WriteStrongInterface

func (m *Parcel) WriteStrongInterface(arg0 *jni.Object) error

WriteStrongInterface calls android.os.Parcel.writeStrongInterface.

func (*Parcel) WriteValue

func (m *Parcel) WriteValue(arg0 *jni.Object) error

WriteValue calls android.os.Parcel.writeValue.

type ParcelFormatException

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

ParcelFormatException wraps android.os.ParcelFormatException.

func NewParcelFormatException

func NewParcelFormatException(vm *jni.VM) (*ParcelFormatException, error)

NewParcelFormatException creates a new android.os.ParcelFormatException instance.

type ParcelUuid

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

ParcelUuid wraps android.os.ParcelUuid.

func NewParcelUuid

func NewParcelUuid(vm *jni.VM, arg0 *jni.Object) (*ParcelUuid, error)

NewParcelUuid creates a new android.os.ParcelUuid instance.

func (*ParcelUuid) DescribeContents

func (m *ParcelUuid) DescribeContents() (int32, error)

DescribeContents calls android.os.ParcelUuid.describeContents.

func (*ParcelUuid) Equals

func (m *ParcelUuid) Equals(arg0 *jni.Object) (bool, error)

Equals calls android.os.ParcelUuid.equals.

func (*ParcelUuid) FromString

func (m *ParcelUuid) FromString(arg0 string) (*jni.Object, error)

FromString calls android.os.ParcelUuid.fromString.

func (*ParcelUuid) GetUuid

func (m *ParcelUuid) GetUuid() (*jni.Object, error)

GetUuid calls android.os.ParcelUuid.getUuid.

func (*ParcelUuid) HashCode

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

HashCode calls android.os.ParcelUuid.hashCode.

func (*ParcelUuid) ToString

func (m *ParcelUuid) ToString() (string, error)

ToString calls android.os.ParcelUuid.toString.

func (*ParcelUuid) WriteToParcel

func (m *ParcelUuid) WriteToParcel(arg0 *jni.Object, arg1 int32) error

WriteToParcel calls android.os.ParcelUuid.writeToParcel.

type Parcelable

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

Parcelable wraps android.os.Parcelable.

func (*Parcelable) DescribeContents

func (m *Parcelable) DescribeContents() (int32, error)

DescribeContents calls android.os.Parcelable.describeContents.

func (*Parcelable) WriteToParcel

func (m *Parcelable) WriteToParcel(arg0 *jni.Object, arg1 int32) error

WriteToParcel calls android.os.Parcelable.writeToParcel.

type PatternMatcher

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

PatternMatcher wraps android.os.PatternMatcher.

func NewPatternMatcher

func NewPatternMatcher(vm *jni.VM, arg0 *jni.Object) (*PatternMatcher, error)

NewPatternMatcher creates a new android.os.PatternMatcher instance.

func (*PatternMatcher) DescribeContents

func (m *PatternMatcher) DescribeContents() (int32, error)

DescribeContents calls android.os.PatternMatcher.describeContents.

func (*PatternMatcher) GetPath

func (m *PatternMatcher) GetPath() (string, error)

GetPath calls android.os.PatternMatcher.getPath.

func (*PatternMatcher) GetType

func (m *PatternMatcher) GetType() (int32, error)

GetType calls android.os.PatternMatcher.getType.

func (*PatternMatcher) Match

func (m *PatternMatcher) Match(arg0 string) (bool, error)

Match calls android.os.PatternMatcher.match.

func (*PatternMatcher) ToString

func (m *PatternMatcher) ToString() (string, error)

ToString calls android.os.PatternMatcher.toString.

func (*PatternMatcher) WriteToParcel

func (m *PatternMatcher) WriteToParcel(arg0 *jni.Object, arg1 int32) error

WriteToParcel calls android.os.PatternMatcher.writeToParcel.

type PerformanceHintManager

type PerformanceHintManager struct {
	VM  *jni.VM
	Ctx *app.Context
	Obj *jni.GlobalRef
}

PerformanceHintManager wraps android.os.PerformanceHintManager.

func NewPerformanceHintManager

func NewPerformanceHintManager(ctx *app.Context) (*PerformanceHintManager, error)

NewPerformanceHintManager obtains android.os.PerformanceHintManager from the Android system service manager.

func (*PerformanceHintManager) Close

func (m *PerformanceHintManager) Close()

Close releases the global reference to the underlying Java object. After Close, the PerformanceHintManager must not be used.

func (*PerformanceHintManager) CreateHintSession

func (m *PerformanceHintManager) CreateHintSession(arg0 *jni.Object, arg1 int64) (*jni.Object, error)

CreateHintSession calls android.os.PerformanceHintManager.createHintSession.

func (*PerformanceHintManager) GetPreferredUpdateRateNanos

func (m *PerformanceHintManager) GetPreferredUpdateRateNanos() (int64, error)

GetPreferredUpdateRateNanos calls android.os.PerformanceHintManager.getPreferredUpdateRateNanos.

type PerformanceHintManagerSession

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

PerformanceHintManagerSession wraps android.os.PerformanceHintManager$Session.

func (*PerformanceHintManagerSession) Close

Close calls android.os.PerformanceHintManager$Session.close.

func (*PerformanceHintManagerSession) ReportActualWorkDuration1

func (m *PerformanceHintManagerSession) ReportActualWorkDuration1(arg0 *jni.Object) error

ReportActualWorkDuration1 calls android.os.PerformanceHintManager$Session.reportActualWorkDuration.

func (*PerformanceHintManagerSession) ReportActualWorkDuration1_1

func (m *PerformanceHintManagerSession) ReportActualWorkDuration1_1(arg0 int64) error

ReportActualWorkDuration1_1 calls android.os.PerformanceHintManager$Session.reportActualWorkDuration.

func (*PerformanceHintManagerSession) SetPreferPowerEfficiency

func (m *PerformanceHintManagerSession) SetPreferPowerEfficiency(arg0 bool) error

SetPreferPowerEfficiency calls android.os.PerformanceHintManager$Session.setPreferPowerEfficiency.

func (*PerformanceHintManagerSession) SetThreads

func (m *PerformanceHintManagerSession) SetThreads(arg0 *jni.Object) error

SetThreads calls android.os.PerformanceHintManager$Session.setThreads.

func (*PerformanceHintManagerSession) UpdateTargetWorkDuration

func (m *PerformanceHintManagerSession) UpdateTargetWorkDuration(arg0 int64) error

UpdateTargetWorkDuration calls android.os.PerformanceHintManager$Session.updateTargetWorkDuration.

type PersistableBundle

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

PersistableBundle wraps android.os.PersistableBundle.

func NewPersistableBundle

func NewPersistableBundle(vm *jni.VM) (*PersistableBundle, error)

NewPersistableBundle creates a new android.os.PersistableBundle instance.

func (*PersistableBundle) Clone

func (m *PersistableBundle) Clone() (*jni.Object, error)

Clone calls android.os.PersistableBundle.clone.

func (*PersistableBundle) DeepCopy

func (m *PersistableBundle) DeepCopy() (*jni.Object, error)

DeepCopy calls android.os.PersistableBundle.deepCopy.

func (*PersistableBundle) DescribeContents

func (m *PersistableBundle) DescribeContents() (int32, error)

DescribeContents calls android.os.PersistableBundle.describeContents.

func (*PersistableBundle) GetPersistableBundle

func (m *PersistableBundle) GetPersistableBundle(arg0 string) (*jni.Object, error)

GetPersistableBundle calls android.os.PersistableBundle.getPersistableBundle.

func (*PersistableBundle) PutPersistableBundle

func (m *PersistableBundle) PutPersistableBundle(arg0 string, arg1 *jni.Object) error

PutPersistableBundle calls android.os.PersistableBundle.putPersistableBundle.

func (*PersistableBundle) ReadFromStream

func (m *PersistableBundle) ReadFromStream(arg0 *jni.Object) (*jni.Object, error)

ReadFromStream calls android.os.PersistableBundle.readFromStream.

func (*PersistableBundle) WriteToParcel

func (m *PersistableBundle) WriteToParcel(arg0 *jni.Object, arg1 int32) error

WriteToParcel calls android.os.PersistableBundle.writeToParcel.

func (*PersistableBundle) WriteToStream

func (m *PersistableBundle) WriteToStream(arg0 *jni.Object) error

WriteToStream calls android.os.PersistableBundle.writeToStream.

type PowerMonitor

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

PowerMonitor wraps android.os.PowerMonitor.

func (*PowerMonitor) DescribeContents

func (m *PowerMonitor) DescribeContents() (int32, error)

DescribeContents calls android.os.PowerMonitor.describeContents.

func (*PowerMonitor) GetName

func (m *PowerMonitor) GetName() (string, error)

GetName calls android.os.PowerMonitor.getName.

func (*PowerMonitor) GetType

func (m *PowerMonitor) GetType() (int32, error)

GetType calls android.os.PowerMonitor.getType.

func (*PowerMonitor) WriteToParcel

func (m *PowerMonitor) WriteToParcel(arg0 *jni.Object, arg1 int32) error

WriteToParcel calls android.os.PowerMonitor.writeToParcel.

type PowerMonitorReadings

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

PowerMonitorReadings wraps android.os.PowerMonitorReadings.

func (*PowerMonitorReadings) GetConsumedEnergy

func (m *PowerMonitorReadings) GetConsumedEnergy(arg0 *jni.Object) (int64, error)

GetConsumedEnergy calls android.os.PowerMonitorReadings.getConsumedEnergy.

func (*PowerMonitorReadings) GetTimestampMillis

func (m *PowerMonitorReadings) GetTimestampMillis(arg0 *jni.Object) (int64, error)

GetTimestampMillis calls android.os.PowerMonitorReadings.getTimestampMillis.

func (*PowerMonitorReadings) ToString

func (m *PowerMonitorReadings) ToString() (string, error)

ToString calls android.os.PowerMonitorReadings.toString.

type Process

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

Process wraps android.os.Process.

func NewProcess

func NewProcess(vm *jni.VM) (*Process, error)

NewProcess creates a new android.os.Process instance.

func (*Process) GetAppUidForSdkSandboxUid

func (m *Process) GetAppUidForSdkSandboxUid(arg0 int32) (int32, error)

GetAppUidForSdkSandboxUid calls android.os.Process.getAppUidForSdkSandboxUid.

func (*Process) GetElapsedCpuTime

func (m *Process) GetElapsedCpuTime() (int64, error)

GetElapsedCpuTime calls android.os.Process.getElapsedCpuTime.

func (*Process) GetExclusiveCores

func (m *Process) GetExclusiveCores() (*jni.Object, error)

GetExclusiveCores calls android.os.Process.getExclusiveCores.

func (*Process) GetGidForName

func (m *Process) GetGidForName(arg0 string) (int32, error)

GetGidForName calls android.os.Process.getGidForName.

func (*Process) GetSdkSandboxUidForAppUid

func (m *Process) GetSdkSandboxUidForAppUid(arg0 int32) (int32, error)

GetSdkSandboxUidForAppUid calls android.os.Process.getSdkSandboxUidForAppUid.

func (*Process) GetStartElapsedRealtime

func (m *Process) GetStartElapsedRealtime() (int64, error)

GetStartElapsedRealtime calls android.os.Process.getStartElapsedRealtime.

func (*Process) GetStartRequestedElapsedRealtime

func (m *Process) GetStartRequestedElapsedRealtime() (int64, error)

GetStartRequestedElapsedRealtime calls android.os.Process.getStartRequestedElapsedRealtime.

func (*Process) GetStartRequestedUptimeMillis

func (m *Process) GetStartRequestedUptimeMillis() (int64, error)

GetStartRequestedUptimeMillis calls android.os.Process.getStartRequestedUptimeMillis.

func (*Process) GetStartUptimeMillis

func (m *Process) GetStartUptimeMillis() (int64, error)

GetStartUptimeMillis calls android.os.Process.getStartUptimeMillis.

func (*Process) GetThreadPriority

func (m *Process) GetThreadPriority(arg0 int32) (int32, error)

GetThreadPriority calls android.os.Process.getThreadPriority.

func (*Process) GetUidForName

func (m *Process) GetUidForName(arg0 string) (int32, error)

GetUidForName calls android.os.Process.getUidForName.

func (*Process) Is64Bit

func (m *Process) Is64Bit() (bool, error)

Is64Bit calls android.os.Process.is64Bit.

func (*Process) IsApplicationUid

func (m *Process) IsApplicationUid(arg0 int32) (bool, error)

IsApplicationUid calls android.os.Process.isApplicationUid.

func (*Process) IsIsolated

func (m *Process) IsIsolated() (bool, error)

IsIsolated calls android.os.Process.isIsolated.

func (*Process) IsIsolatedUid

func (m *Process) IsIsolatedUid(arg0 int32) (bool, error)

IsIsolatedUid calls android.os.Process.isIsolatedUid.

func (*Process) IsSdkSandbox

func (m *Process) IsSdkSandbox() (bool, error)

IsSdkSandbox calls android.os.Process.isSdkSandbox.

func (*Process) IsSdkSandboxUid

func (m *Process) IsSdkSandboxUid(arg0 int32) (bool, error)

IsSdkSandboxUid calls android.os.Process.isSdkSandboxUid.

func (*Process) KillProcess

func (m *Process) KillProcess(arg0 int32) error

KillProcess calls android.os.Process.killProcess.

func (*Process) MyPid

func (m *Process) MyPid() (int32, error)

MyPid calls android.os.Process.myPid.

func (*Process) MyProcessName

func (m *Process) MyProcessName() (string, error)

MyProcessName calls android.os.Process.myProcessName.

func (*Process) MyTid

func (m *Process) MyTid() (int32, error)

MyTid calls android.os.Process.myTid.

func (*Process) MyUid

func (m *Process) MyUid() (int32, error)

MyUid calls android.os.Process.myUid.

func (*Process) MyUserHandle

func (m *Process) MyUserHandle() (*jni.Object, error)

MyUserHandle calls android.os.Process.myUserHandle.

func (*Process) SendSignal

func (m *Process) SendSignal(arg0 int32, arg1 int32) error

SendSignal calls android.os.Process.sendSignal.

func (*Process) SetThreadPriority1

func (m *Process) SetThreadPriority1(arg0 int32) error

SetThreadPriority1 calls android.os.Process.setThreadPriority.

func (*Process) SetThreadPriority2_1

func (m *Process) SetThreadPriority2_1(arg0 int32, arg1 int32) error

SetThreadPriority2_1 calls android.os.Process.setThreadPriority.

func (*Process) SupportsProcesses

func (m *Process) SupportsProcesses() (bool, error)

SupportsProcesses calls android.os.Process.supportsProcesses.

type ProfilingManager

type ProfilingManager struct {
	VM  *jni.VM
	Ctx *app.Context
	Obj *jni.GlobalRef
}

ProfilingManager wraps android.os.ProfilingManager.

func NewProfilingManager

func NewProfilingManager(ctx *app.Context) (*ProfilingManager, error)

NewProfilingManager obtains android.os.ProfilingManager from the Android system service manager.

func (*ProfilingManager) ClearProfilingTriggers

func (m *ProfilingManager) ClearProfilingTriggers() error

ClearProfilingTriggers calls android.os.ProfilingManager.clearProfilingTriggers.

func (*ProfilingManager) Close

func (m *ProfilingManager) Close()

Close releases the global reference to the underlying Java object. After Close, the ProfilingManager must not be used.

func (*ProfilingManager) RemoveProfilingTriggersByType

func (m *ProfilingManager) RemoveProfilingTriggersByType(arg0 *jni.Object) error

RemoveProfilingTriggersByType calls android.os.ProfilingManager.removeProfilingTriggersByType.

type ProfilingResult

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

ProfilingResult wraps android.os.ProfilingResult.

func (*ProfilingResult) DescribeContents

func (m *ProfilingResult) DescribeContents() (int32, error)

DescribeContents calls android.os.ProfilingResult.describeContents.

func (*ProfilingResult) Equals

func (m *ProfilingResult) Equals(arg0 *jni.Object) (bool, error)

Equals calls android.os.ProfilingResult.equals.

func (*ProfilingResult) GetErrorCode

func (m *ProfilingResult) GetErrorCode() (int32, error)

GetErrorCode calls android.os.ProfilingResult.getErrorCode.

func (*ProfilingResult) GetErrorMessage

func (m *ProfilingResult) GetErrorMessage() (string, error)

GetErrorMessage calls android.os.ProfilingResult.getErrorMessage.

func (*ProfilingResult) GetResultFilePath

func (m *ProfilingResult) GetResultFilePath() (string, error)

GetResultFilePath calls android.os.ProfilingResult.getResultFilePath.

func (*ProfilingResult) GetTag

func (m *ProfilingResult) GetTag() (string, error)

GetTag calls android.os.ProfilingResult.getTag.

func (*ProfilingResult) GetTriggerType

func (m *ProfilingResult) GetTriggerType() (int32, error)

GetTriggerType calls android.os.ProfilingResult.getTriggerType.

func (*ProfilingResult) HashCode

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

HashCode calls android.os.ProfilingResult.hashCode.

func (*ProfilingResult) WriteToParcel

func (m *ProfilingResult) WriteToParcel(arg0 *jni.Object, arg1 int32) error

WriteToParcel calls android.os.ProfilingResult.writeToParcel.

type ProfilingTrigger

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

ProfilingTrigger wraps android.os.ProfilingTrigger.

func (*ProfilingTrigger) GetRateLimitingPeriodHours

func (m *ProfilingTrigger) GetRateLimitingPeriodHours() (int32, error)

GetRateLimitingPeriodHours calls android.os.ProfilingTrigger.getRateLimitingPeriodHours.

func (*ProfilingTrigger) GetTriggerType

func (m *ProfilingTrigger) GetTriggerType() (int32, error)

GetTriggerType calls android.os.ProfilingTrigger.getTriggerType.

type ProfilingTriggerBuilder

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

ProfilingTriggerBuilder wraps android.os.ProfilingTrigger$Builder.

func (*ProfilingTriggerBuilder) Build

func (m *ProfilingTriggerBuilder) Build() (*jni.Object, error)

Build calls android.os.ProfilingTrigger$Builder.build.

func (*ProfilingTriggerBuilder) SetRateLimitingPeriodHours

func (m *ProfilingTriggerBuilder) SetRateLimitingPeriodHours(arg0 int32) (*jni.Object, error)

SetRateLimitingPeriodHours calls android.os.ProfilingTrigger$Builder.setRateLimitingPeriodHours.

type ProxyFileDescriptorCallback

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

ProxyFileDescriptorCallback wraps android.os.ProxyFileDescriptorCallback.

func (*ProxyFileDescriptorCallback) OnFsync

func (m *ProxyFileDescriptorCallback) OnFsync() error

OnFsync calls android.os.ProxyFileDescriptorCallback.onFsync.

func (*ProxyFileDescriptorCallback) OnGetSize

func (m *ProxyFileDescriptorCallback) OnGetSize() (int64, error)

OnGetSize calls android.os.ProxyFileDescriptorCallback.onGetSize.

func (*ProxyFileDescriptorCallback) OnRead

func (m *ProxyFileDescriptorCallback) OnRead(
	arg0 int64,
	arg1 int32,
	arg2 *jni.Object,
) (int32, error)

OnRead calls android.os.ProxyFileDescriptorCallback.onRead.

func (*ProxyFileDescriptorCallback) OnRelease

func (m *ProxyFileDescriptorCallback) OnRelease() error

OnRelease calls android.os.ProxyFileDescriptorCallback.onRelease.

func (*ProxyFileDescriptorCallback) OnWrite

func (m *ProxyFileDescriptorCallback) OnWrite(
	arg0 int64,
	arg1 int32,
	arg2 *jni.Object,
) (int32, error)

OnWrite calls android.os.ProxyFileDescriptorCallback.onWrite.

type RecoverySystem

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

RecoverySystem wraps android.os.RecoverySystem.

func (*RecoverySystem) InstallPackage

func (m *RecoverySystem) InstallPackage(arg0 *jni.Object, arg1 *jni.Object) error

InstallPackage calls android.os.RecoverySystem.installPackage.

func (*RecoverySystem) RebootWipeCache

func (m *RecoverySystem) RebootWipeCache(arg0 *jni.Object) error

RebootWipeCache calls android.os.RecoverySystem.rebootWipeCache.

func (*RecoverySystem) RebootWipeUserData

func (m *RecoverySystem) RebootWipeUserData(arg0 *jni.Object) error

RebootWipeUserData calls android.os.RecoverySystem.rebootWipeUserData.

func (*RecoverySystem) VerifyPackage

func (m *RecoverySystem) VerifyPackage(
	arg0 *jni.Object,
	arg1 *jni.Object,
	arg2 *jni.Object,
) error

VerifyPackage calls android.os.RecoverySystem.verifyPackage.

type RecoverySystemProgressListener

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

RecoverySystemProgressListener wraps android.os.RecoverySystem$ProgressListener.

func (*RecoverySystemProgressListener) OnProgress

func (m *RecoverySystemProgressListener) OnProgress(arg0 int32) error

OnProgress calls android.os.RecoverySystem$ProgressListener.onProgress.

type RemoteCallbackList

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

RemoteCallbackList wraps android.os.RemoteCallbackList.

func NewRemoteCallbackList

func NewRemoteCallbackList(vm *jni.VM) (*RemoteCallbackList, error)

NewRemoteCallbackList creates a new android.os.RemoteCallbackList instance.

func (*RemoteCallbackList) BeginBroadcast

func (m *RemoteCallbackList) BeginBroadcast() (int32, error)

BeginBroadcast calls android.os.RemoteCallbackList.beginBroadcast.

func (*RemoteCallbackList) FinishBroadcast

func (m *RemoteCallbackList) FinishBroadcast() error

FinishBroadcast calls android.os.RemoteCallbackList.finishBroadcast.

func (*RemoteCallbackList) GetBroadcastCookie

func (m *RemoteCallbackList) GetBroadcastCookie(arg0 int32) (*jni.Object, error)

GetBroadcastCookie calls android.os.RemoteCallbackList.getBroadcastCookie.

func (*RemoteCallbackList) GetExecutor

func (m *RemoteCallbackList) GetExecutor() (*jni.Object, error)

GetExecutor calls android.os.RemoteCallbackList.getExecutor.

func (*RemoteCallbackList) GetFrozenCalleePolicy

func (m *RemoteCallbackList) GetFrozenCalleePolicy() (int32, error)

GetFrozenCalleePolicy calls android.os.RemoteCallbackList.getFrozenCalleePolicy.

func (*RemoteCallbackList) GetMaxQueueSize

func (m *RemoteCallbackList) GetMaxQueueSize() (int32, error)

GetMaxQueueSize calls android.os.RemoteCallbackList.getMaxQueueSize.

func (*RemoteCallbackList) GetRegisteredCallbackCookie

func (m *RemoteCallbackList) GetRegisteredCallbackCookie(arg0 int32) (*jni.Object, error)

GetRegisteredCallbackCookie calls android.os.RemoteCallbackList.getRegisteredCallbackCookie.

func (*RemoteCallbackList) GetRegisteredCallbackCount

func (m *RemoteCallbackList) GetRegisteredCallbackCount() (int32, error)

GetRegisteredCallbackCount calls android.os.RemoteCallbackList.getRegisteredCallbackCount.

func (*RemoteCallbackList) Kill

func (m *RemoteCallbackList) Kill() error

Kill calls android.os.RemoteCallbackList.kill.

type RemoteCallbackListBuilder

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

RemoteCallbackListBuilder wraps android.os.RemoteCallbackList$Builder.

func (*RemoteCallbackListBuilder) SetExecutor

func (m *RemoteCallbackListBuilder) SetExecutor(arg0 *jni.Object) (*jni.Object, error)

SetExecutor calls android.os.RemoteCallbackList$Builder.setExecutor.

func (*RemoteCallbackListBuilder) SetMaxQueueSize

func (m *RemoteCallbackListBuilder) SetMaxQueueSize(arg0 int32) (*jni.Object, error)

SetMaxQueueSize calls android.os.RemoteCallbackList$Builder.setMaxQueueSize.

type RemoteException

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

RemoteException wraps android.os.RemoteException.

func NewRemoteException

func NewRemoteException(vm *jni.VM) (*RemoteException, error)

NewRemoteException creates a new android.os.RemoteException instance.

func (*RemoteException) RethrowAsRuntimeException

func (m *RemoteException) RethrowAsRuntimeException() (*jni.Object, error)

RethrowAsRuntimeException calls android.os.RemoteException.rethrowAsRuntimeException.

func (*RemoteException) RethrowFromSystemServer

func (m *RemoteException) RethrowFromSystemServer() (*jni.Object, error)

RethrowFromSystemServer calls android.os.RemoteException.rethrowFromSystemServer.

type ResultReceiver

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

ResultReceiver wraps android.os.ResultReceiver.

func NewResultReceiver

func NewResultReceiver(vm *jni.VM, arg0 *jni.Object) (*ResultReceiver, error)

NewResultReceiver creates a new android.os.ResultReceiver instance.

func (*ResultReceiver) DescribeContents

func (m *ResultReceiver) DescribeContents() (int32, error)

DescribeContents calls android.os.ResultReceiver.describeContents.

func (*ResultReceiver) Send

func (m *ResultReceiver) Send(arg0 int32, arg1 *jni.Object) error

Send calls android.os.ResultReceiver.send.

func (*ResultReceiver) WriteToParcel

func (m *ResultReceiver) WriteToParcel(arg0 *jni.Object, arg1 int32) error

WriteToParcel calls android.os.ResultReceiver.writeToParcel.

type SecurityStateManager

type SecurityStateManager struct {
	VM  *jni.VM
	Ctx *app.Context
	Obj *jni.GlobalRef
}

SecurityStateManager wraps android.os.SecurityStateManager.

func NewSecurityStateManager

func NewSecurityStateManager(ctx *app.Context) (*SecurityStateManager, error)

NewSecurityStateManager obtains android.os.SecurityStateManager from the Android system service manager.

func (*SecurityStateManager) Close

func (m *SecurityStateManager) Close()

Close releases the global reference to the underlying Java object. After Close, the SecurityStateManager must not be used.

func (*SecurityStateManager) GetGlobalSecurityState

func (m *SecurityStateManager) GetGlobalSecurityState() (*jni.Object, error)

GetGlobalSecurityState calls android.os.SecurityStateManager.getGlobalSecurityState.

type SharedMemory

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

SharedMemory wraps android.os.SharedMemory.

func (*SharedMemory) Close

func (m *SharedMemory) Close() error

Close calls android.os.SharedMemory.close.

func (*SharedMemory) Create

func (m *SharedMemory) Create(arg0 string, arg1 int32) (*jni.Object, error)

Create calls android.os.SharedMemory.create.

func (*SharedMemory) DescribeContents

func (m *SharedMemory) DescribeContents() (int32, error)

DescribeContents calls android.os.SharedMemory.describeContents.

func (*SharedMemory) FromFileDescriptor

func (m *SharedMemory) FromFileDescriptor(arg0 *jni.Object) (*jni.Object, error)

FromFileDescriptor calls android.os.SharedMemory.fromFileDescriptor.

func (*SharedMemory) GetSize

func (m *SharedMemory) GetSize() (int32, error)

GetSize calls android.os.SharedMemory.getSize.

func (*SharedMemory) Map

func (m *SharedMemory) Map(
	arg0 int32,
	arg1 int32,
	arg2 int32,
) (*jni.Object, error)

Map calls android.os.SharedMemory.map.

func (*SharedMemory) MapReadOnly

func (m *SharedMemory) MapReadOnly() (*jni.Object, error)

MapReadOnly calls android.os.SharedMemory.mapReadOnly.

func (*SharedMemory) MapReadWrite

func (m *SharedMemory) MapReadWrite() (*jni.Object, error)

MapReadWrite calls android.os.SharedMemory.mapReadWrite.

func (*SharedMemory) SetProtect

func (m *SharedMemory) SetProtect(arg0 int32) (bool, error)

SetProtect calls android.os.SharedMemory.setProtect.

func (*SharedMemory) WriteToParcel

func (m *SharedMemory) WriteToParcel(arg0 *jni.Object, arg1 int32) error

WriteToParcel calls android.os.SharedMemory.writeToParcel.

type StatFs

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

StatFs wraps android.os.StatFs.

func NewStatFs

func NewStatFs(vm *jni.VM, arg0 string) (*StatFs, error)

NewStatFs creates a new android.os.StatFs instance.

func (*StatFs) GetAvailableBlocks

func (m *StatFs) GetAvailableBlocks() (int32, error)

GetAvailableBlocks calls android.os.StatFs.getAvailableBlocks.

func (*StatFs) GetAvailableBlocksLong

func (m *StatFs) GetAvailableBlocksLong() (int64, error)

GetAvailableBlocksLong calls android.os.StatFs.getAvailableBlocksLong.

func (*StatFs) GetAvailableBytes

func (m *StatFs) GetAvailableBytes() (int64, error)

GetAvailableBytes calls android.os.StatFs.getAvailableBytes.

func (*StatFs) GetBlockCount

func (m *StatFs) GetBlockCount() (int32, error)

GetBlockCount calls android.os.StatFs.getBlockCount.

func (*StatFs) GetBlockCountLong

func (m *StatFs) GetBlockCountLong() (int64, error)

GetBlockCountLong calls android.os.StatFs.getBlockCountLong.

func (*StatFs) GetBlockSize

func (m *StatFs) GetBlockSize() (int32, error)

GetBlockSize calls android.os.StatFs.getBlockSize.

func (*StatFs) GetBlockSizeLong

func (m *StatFs) GetBlockSizeLong() (int64, error)

GetBlockSizeLong calls android.os.StatFs.getBlockSizeLong.

func (*StatFs) GetFreeBlocks

func (m *StatFs) GetFreeBlocks() (int32, error)

GetFreeBlocks calls android.os.StatFs.getFreeBlocks.

func (*StatFs) GetFreeBlocksLong

func (m *StatFs) GetFreeBlocksLong() (int64, error)

GetFreeBlocksLong calls android.os.StatFs.getFreeBlocksLong.

func (*StatFs) GetFreeBytes

func (m *StatFs) GetFreeBytes() (int64, error)

GetFreeBytes calls android.os.StatFs.getFreeBytes.

func (*StatFs) GetTotalBytes

func (m *StatFs) GetTotalBytes() (int64, error)

GetTotalBytes calls android.os.StatFs.getTotalBytes.

func (*StatFs) Restat

func (m *StatFs) Restat(arg0 string) error

Restat calls android.os.StatFs.restat.

type StrictMode

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

StrictMode wraps android.os.StrictMode.

func (*StrictMode) AllowThreadDiskReads

func (m *StrictMode) AllowThreadDiskReads() (*jni.Object, error)

AllowThreadDiskReads calls android.os.StrictMode.allowThreadDiskReads.

func (*StrictMode) AllowThreadDiskWrites

func (m *StrictMode) AllowThreadDiskWrites() (*jni.Object, error)

AllowThreadDiskWrites calls android.os.StrictMode.allowThreadDiskWrites.

func (*StrictMode) EnableDefaults

func (m *StrictMode) EnableDefaults() error

EnableDefaults calls android.os.StrictMode.enableDefaults.

func (*StrictMode) GetThreadPolicy

func (m *StrictMode) GetThreadPolicy() (*jni.Object, error)

GetThreadPolicy calls android.os.StrictMode.getThreadPolicy.

func (*StrictMode) GetVmPolicy

func (m *StrictMode) GetVmPolicy() (*jni.Object, error)

GetVmPolicy calls android.os.StrictMode.getVmPolicy.

func (*StrictMode) NoteSlowCall

func (m *StrictMode) NoteSlowCall(arg0 string) error

NoteSlowCall calls android.os.StrictMode.noteSlowCall.

func (*StrictMode) SetThreadPolicy

func (m *StrictMode) SetThreadPolicy(arg0 *jni.Object) error

SetThreadPolicy calls android.os.StrictMode.setThreadPolicy.

func (*StrictMode) SetVmPolicy

func (m *StrictMode) SetVmPolicy(arg0 *jni.Object) error

SetVmPolicy calls android.os.StrictMode.setVmPolicy.

type StrictModeOnThreadViolationListener

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

StrictModeOnThreadViolationListener wraps android.os.StrictMode$OnThreadViolationListener.

func (*StrictModeOnThreadViolationListener) OnThreadViolation

func (m *StrictModeOnThreadViolationListener) OnThreadViolation(arg0 *jni.Object) error

OnThreadViolation calls android.os.StrictMode$OnThreadViolationListener.onThreadViolation.

type StrictModeOnVmViolationListener

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

StrictModeOnVmViolationListener wraps android.os.StrictMode$OnVmViolationListener.

func (*StrictModeOnVmViolationListener) OnVmViolation

func (m *StrictModeOnVmViolationListener) OnVmViolation(arg0 *jni.Object) error

OnVmViolation calls android.os.StrictMode$OnVmViolationListener.onVmViolation.

type StrictModeThreadPolicy

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

StrictModeThreadPolicy wraps android.os.StrictMode$ThreadPolicy.

func (*StrictModeThreadPolicy) ToString

func (m *StrictModeThreadPolicy) ToString() (string, error)

ToString calls android.os.StrictMode$ThreadPolicy.toString.

type StrictModeVmPolicy

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

StrictModeVmPolicy wraps android.os.StrictMode$VmPolicy.

func (*StrictModeVmPolicy) ToString

func (m *StrictModeVmPolicy) ToString() (string, error)

ToString calls android.os.StrictMode$VmPolicy.toString.

type SystemClock

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

SystemClock wraps android.os.SystemClock.

func (*SystemClock) CurrentGnssTimeClock

func (m *SystemClock) CurrentGnssTimeClock() (*jni.Object, error)

CurrentGnssTimeClock calls android.os.SystemClock.currentGnssTimeClock.

func (*SystemClock) CurrentNetworkTimeClock

func (m *SystemClock) CurrentNetworkTimeClock() (*jni.Object, error)

CurrentNetworkTimeClock calls android.os.SystemClock.currentNetworkTimeClock.

func (*SystemClock) CurrentThreadTimeMillis

func (m *SystemClock) CurrentThreadTimeMillis() (int64, error)

CurrentThreadTimeMillis calls android.os.SystemClock.currentThreadTimeMillis.

func (*SystemClock) ElapsedRealtime

func (m *SystemClock) ElapsedRealtime() (int64, error)

ElapsedRealtime calls android.os.SystemClock.elapsedRealtime.

func (*SystemClock) ElapsedRealtimeNanos

func (m *SystemClock) ElapsedRealtimeNanos() (int64, error)

ElapsedRealtimeNanos calls android.os.SystemClock.elapsedRealtimeNanos.

func (*SystemClock) SetCurrentTimeMillis

func (m *SystemClock) SetCurrentTimeMillis(arg0 int64) (bool, error)

SetCurrentTimeMillis calls android.os.SystemClock.setCurrentTimeMillis.

func (*SystemClock) Sleep

func (m *SystemClock) Sleep(arg0 int64) error

Sleep calls android.os.SystemClock.sleep.

func (*SystemClock) UptimeMillis

func (m *SystemClock) UptimeMillis() (int64, error)

UptimeMillis calls android.os.SystemClock.uptimeMillis.

func (*SystemClock) UptimeNanos

func (m *SystemClock) UptimeNanos() (int64, error)

UptimeNanos calls android.os.SystemClock.uptimeNanos.

type TestLooperManager

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

TestLooperManager wraps android.os.TestLooperManager.

func (*TestLooperManager) Execute

func (m *TestLooperManager) Execute(arg0 *jni.Object) error

Execute calls android.os.TestLooperManager.execute.

func (*TestLooperManager) GetMessageQueue

func (m *TestLooperManager) GetMessageQueue() (*jni.Object, error)

GetMessageQueue calls android.os.TestLooperManager.getMessageQueue.

func (*TestLooperManager) IsBlockedOnSyncBarrier

func (m *TestLooperManager) IsBlockedOnSyncBarrier() (bool, error)

IsBlockedOnSyncBarrier calls android.os.TestLooperManager.isBlockedOnSyncBarrier.

func (*TestLooperManager) Next

func (m *TestLooperManager) Next() (*jni.Object, error)

Next calls android.os.TestLooperManager.next.

func (*TestLooperManager) PeekWhen

func (m *TestLooperManager) PeekWhen() (*jni.Object, error)

PeekWhen calls android.os.TestLooperManager.peekWhen.

func (*TestLooperManager) Poll

func (m *TestLooperManager) Poll() (*jni.Object, error)

Poll calls android.os.TestLooperManager.poll.

func (*TestLooperManager) Recycle

func (m *TestLooperManager) Recycle(arg0 *jni.Object) error

Recycle calls android.os.TestLooperManager.recycle.

func (*TestLooperManager) Release

func (m *TestLooperManager) Release() error

Release calls android.os.TestLooperManager.release.

type TokenWatcher

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

TokenWatcher wraps android.os.TokenWatcher.

func (*TokenWatcher) Acquire

func (m *TokenWatcher) Acquire(arg0 *jni.Object, arg1 string) error

Acquire calls android.os.TokenWatcher.acquire.

func (*TokenWatcher) Acquired

func (m *TokenWatcher) Acquired() error

Acquired calls android.os.TokenWatcher.acquired.

func (*TokenWatcher) Cleanup

func (m *TokenWatcher) Cleanup(arg0 *jni.Object, arg1 bool) error

Cleanup calls android.os.TokenWatcher.cleanup.

func (*TokenWatcher) Dump0

func (m *TokenWatcher) Dump0() error

Dump0 calls android.os.TokenWatcher.dump.

func (*TokenWatcher) Dump1_1

func (m *TokenWatcher) Dump1_1(arg0 *jni.Object) error

Dump1_1 calls android.os.TokenWatcher.dump.

func (*TokenWatcher) IsAcquired

func (m *TokenWatcher) IsAcquired() (bool, error)

IsAcquired calls android.os.TokenWatcher.isAcquired.

func (*TokenWatcher) Release

func (m *TokenWatcher) Release(arg0 *jni.Object) error

Release calls android.os.TokenWatcher.release.

func (*TokenWatcher) Released

func (m *TokenWatcher) Released() error

Released calls android.os.TokenWatcher.released.

type Trace

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

Trace wraps android.os.Trace.

func (*Trace) BeginAsyncSection

func (m *Trace) BeginAsyncSection(arg0 string, arg1 int32) error

BeginAsyncSection calls android.os.Trace.beginAsyncSection.

func (*Trace) BeginSection

func (m *Trace) BeginSection(arg0 string) error

BeginSection calls android.os.Trace.beginSection.

func (*Trace) EndAsyncSection

func (m *Trace) EndAsyncSection(arg0 string, arg1 int32) error

EndAsyncSection calls android.os.Trace.endAsyncSection.

func (*Trace) EndSection

func (m *Trace) EndSection() error

EndSection calls android.os.Trace.endSection.

func (*Trace) IsEnabled

func (m *Trace) IsEnabled() (bool, error)

IsEnabled calls android.os.Trace.isEnabled.

func (*Trace) SetCounter

func (m *Trace) SetCounter(arg0 string, arg1 int64) error

SetCounter calls android.os.Trace.setCounter.

type TransactionTooLargeException

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

TransactionTooLargeException wraps android.os.TransactionTooLargeException.

func NewTransactionTooLargeException

func NewTransactionTooLargeException(vm *jni.VM) (*TransactionTooLargeException, error)

NewTransactionTooLargeException creates a new android.os.TransactionTooLargeException instance.

type UserHandle

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

UserHandle wraps android.os.UserHandle.

func NewUserHandle

func NewUserHandle(vm *jni.VM, arg0 *jni.Object) (*UserHandle, error)

NewUserHandle creates a new android.os.UserHandle instance.

func (*UserHandle) DescribeContents

func (m *UserHandle) DescribeContents() (int32, error)

DescribeContents calls android.os.UserHandle.describeContents.

func (*UserHandle) Equals

func (m *UserHandle) Equals(arg0 *jni.Object) (bool, error)

Equals calls android.os.UserHandle.equals.

func (*UserHandle) GetUserHandleForUid

func (m *UserHandle) GetUserHandleForUid(arg0 int32) (*jni.Object, error)

GetUserHandleForUid calls android.os.UserHandle.getUserHandleForUid.

func (*UserHandle) HashCode

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

HashCode calls android.os.UserHandle.hashCode.

func (*UserHandle) ReadFromParcel

func (m *UserHandle) ReadFromParcel(arg0 *jni.Object) (*jni.Object, error)

ReadFromParcel calls android.os.UserHandle.readFromParcel.

func (*UserHandle) ToString

func (m *UserHandle) ToString() (string, error)

ToString calls android.os.UserHandle.toString.

func (*UserHandle) WriteToParcel2

func (m *UserHandle) WriteToParcel2(arg0 *jni.Object, arg1 int32) error

WriteToParcel2 calls android.os.UserHandle.writeToParcel.

func (*UserHandle) WriteToParcel2_1

func (m *UserHandle) WriteToParcel2_1(arg0 *jni.Object, arg1 *jni.Object) error

WriteToParcel2_1 calls android.os.UserHandle.writeToParcel.

type UserManager

type UserManager struct {
	VM  *jni.VM
	Ctx *app.Context
	Obj *jni.GlobalRef
}

UserManager wraps android.os.UserManager.

func NewUserManager

func NewUserManager(ctx *app.Context) (*UserManager, error)

NewUserManager obtains android.os.UserManager from the Android system service manager.

func (*UserManager) Close

func (m *UserManager) Close()

Close releases the global reference to the underlying Java object. After Close, the UserManager must not be used.

func (*UserManager) CreateUserCreationIntent

func (m *UserManager) CreateUserCreationIntent(
	arg0 string,
	arg1 string,
	arg2 string,
	arg3 *jni.Object,
) (*jni.Object, error)

CreateUserCreationIntent calls android.os.UserManager.createUserCreationIntent.

func (*UserManager) GetApplicationRestrictions

func (m *UserManager) GetApplicationRestrictions(arg0 string) (*jni.Object, error)

GetApplicationRestrictions calls android.os.UserManager.getApplicationRestrictions.

func (*UserManager) GetSerialNumberForUser

func (m *UserManager) GetSerialNumberForUser(arg0 *jni.Object) (int64, error)

GetSerialNumberForUser calls android.os.UserManager.getSerialNumberForUser.

func (*UserManager) GetUserCount

func (m *UserManager) GetUserCount() (int32, error)

GetUserCount calls android.os.UserManager.getUserCount.

func (*UserManager) GetUserCreationTime

func (m *UserManager) GetUserCreationTime(arg0 *jni.Object) (int64, error)

GetUserCreationTime calls android.os.UserManager.getUserCreationTime.

func (*UserManager) GetUserForSerialNumber

func (m *UserManager) GetUserForSerialNumber(arg0 int64) (*jni.Object, error)

GetUserForSerialNumber calls android.os.UserManager.getUserForSerialNumber.

func (*UserManager) GetUserName

func (m *UserManager) GetUserName() (string, error)

GetUserName calls android.os.UserManager.getUserName.

func (*UserManager) GetUserRestrictions0

func (m *UserManager) GetUserRestrictions0() (*jni.Object, error)

GetUserRestrictions0 calls android.os.UserManager.getUserRestrictions.

func (*UserManager) GetUserRestrictions1_1

func (m *UserManager) GetUserRestrictions1_1(arg0 *jni.Object) (*jni.Object, error)

GetUserRestrictions1_1 calls android.os.UserManager.getUserRestrictions.

func (*UserManager) HasUserRestriction

func (m *UserManager) HasUserRestriction(arg0 string) (bool, error)

HasUserRestriction calls android.os.UserManager.hasUserRestriction.

func (*UserManager) IsAdminUser

func (m *UserManager) IsAdminUser() (bool, error)

IsAdminUser calls android.os.UserManager.isAdminUser.

func (*UserManager) IsDemoUser

func (m *UserManager) IsDemoUser() (bool, error)

IsDemoUser calls android.os.UserManager.isDemoUser.

func (*UserManager) IsHeadlessSystemUserMode

func (m *UserManager) IsHeadlessSystemUserMode() (bool, error)

IsHeadlessSystemUserMode calls android.os.UserManager.isHeadlessSystemUserMode.

func (*UserManager) IsManagedProfile

func (m *UserManager) IsManagedProfile() (bool, error)

IsManagedProfile calls android.os.UserManager.isManagedProfile.

func (*UserManager) IsProfile

func (m *UserManager) IsProfile() (bool, error)

IsProfile calls android.os.UserManager.isProfile.

func (*UserManager) IsQuietModeEnabled

func (m *UserManager) IsQuietModeEnabled(arg0 *jni.Object) (bool, error)

IsQuietModeEnabled calls android.os.UserManager.isQuietModeEnabled.

func (*UserManager) IsSystemUser

func (m *UserManager) IsSystemUser() (bool, error)

IsSystemUser calls android.os.UserManager.isSystemUser.

func (*UserManager) IsUserAGoat

func (m *UserManager) IsUserAGoat() (bool, error)

IsUserAGoat calls android.os.UserManager.isUserAGoat.

func (*UserManager) IsUserForeground

func (m *UserManager) IsUserForeground() (bool, error)

IsUserForeground calls android.os.UserManager.isUserForeground.

func (*UserManager) IsUserRunning

func (m *UserManager) IsUserRunning(arg0 *jni.Object) (bool, error)

IsUserRunning calls android.os.UserManager.isUserRunning.

func (*UserManager) IsUserRunningOrStopping

func (m *UserManager) IsUserRunningOrStopping(arg0 *jni.Object) (bool, error)

IsUserRunningOrStopping calls android.os.UserManager.isUserRunningOrStopping.

func (*UserManager) IsUserUnlocked0

func (m *UserManager) IsUserUnlocked0() (bool, error)

IsUserUnlocked0 calls android.os.UserManager.isUserUnlocked.

func (*UserManager) IsUserUnlocked1_1

func (m *UserManager) IsUserUnlocked1_1(arg0 *jni.Object) (bool, error)

IsUserUnlocked1_1 calls android.os.UserManager.isUserUnlocked.

func (*UserManager) RequestQuietModeEnabled2

func (m *UserManager) RequestQuietModeEnabled2(arg0 bool, arg1 *jni.Object) (bool, error)

RequestQuietModeEnabled2 calls android.os.UserManager.requestQuietModeEnabled.

func (*UserManager) RequestQuietModeEnabled3_1

func (m *UserManager) RequestQuietModeEnabled3_1(
	arg0 bool,
	arg1 *jni.Object,
	arg2 int32,
) (bool, error)

RequestQuietModeEnabled3_1 calls android.os.UserManager.requestQuietModeEnabled.

func (*UserManager) SetRestrictionsChallenge

func (m *UserManager) SetRestrictionsChallenge(arg0 string) (bool, error)

SetRestrictionsChallenge calls android.os.UserManager.setRestrictionsChallenge.

func (*UserManager) SetUserRestriction

func (m *UserManager) SetUserRestriction(arg0 string, arg1 bool) error

SetUserRestriction calls android.os.UserManager.setUserRestriction.

func (*UserManager) SetUserRestrictions1

func (m *UserManager) SetUserRestrictions1(arg0 *jni.Object) error

SetUserRestrictions1 calls android.os.UserManager.setUserRestrictions.

func (*UserManager) SetUserRestrictions2_1

func (m *UserManager) SetUserRestrictions2_1(arg0 *jni.Object, arg1 *jni.Object) error

SetUserRestrictions2_1 calls android.os.UserManager.setUserRestrictions.

func (*UserManager) SupportsMultipleUsers

func (m *UserManager) SupportsMultipleUsers() (bool, error)

SupportsMultipleUsers calls android.os.UserManager.supportsMultipleUsers.

type UserManagerUserOperationException

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

UserManagerUserOperationException wraps android.os.UserManager$UserOperationException.

func (*UserManagerUserOperationException) GetUserOperationResult

func (m *UserManagerUserOperationException) GetUserOperationResult() (int32, error)

GetUserOperationResult calls android.os.UserManager$UserOperationException.getUserOperationResult.

type VibrationAttributes

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

VibrationAttributes wraps android.os.VibrationAttributes.

func (*VibrationAttributes) CreateForUsage

func (m *VibrationAttributes) CreateForUsage(arg0 int32) (*jni.Object, error)

CreateForUsage calls android.os.VibrationAttributes.createForUsage.

func (*VibrationAttributes) DescribeContents

func (m *VibrationAttributes) DescribeContents() (int32, error)

DescribeContents calls android.os.VibrationAttributes.describeContents.

func (*VibrationAttributes) Equals

func (m *VibrationAttributes) Equals(arg0 *jni.Object) (bool, error)

Equals calls android.os.VibrationAttributes.equals.

func (*VibrationAttributes) GetFlags

func (m *VibrationAttributes) GetFlags() (int32, error)

GetFlags calls android.os.VibrationAttributes.getFlags.

func (*VibrationAttributes) GetUsage

func (m *VibrationAttributes) GetUsage() (int32, error)

GetUsage calls android.os.VibrationAttributes.getUsage.

func (*VibrationAttributes) GetUsageClass

func (m *VibrationAttributes) GetUsageClass() (int32, error)

GetUsageClass calls android.os.VibrationAttributes.getUsageClass.

func (*VibrationAttributes) HashCode

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

HashCode calls android.os.VibrationAttributes.hashCode.

func (*VibrationAttributes) IsFlagSet

func (m *VibrationAttributes) IsFlagSet(arg0 int32) (bool, error)

IsFlagSet calls android.os.VibrationAttributes.isFlagSet.

func (*VibrationAttributes) ToString

func (m *VibrationAttributes) ToString() (string, error)

ToString calls android.os.VibrationAttributes.toString.

func (*VibrationAttributes) WriteToParcel

func (m *VibrationAttributes) WriteToParcel(arg0 *jni.Object, arg1 int32) error

WriteToParcel calls android.os.VibrationAttributes.writeToParcel.

type VibrationAttributesBuilder

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

VibrationAttributesBuilder wraps android.os.VibrationAttributes$Builder.

func (*VibrationAttributesBuilder) Build

func (m *VibrationAttributesBuilder) Build() (*jni.Object, error)

Build calls android.os.VibrationAttributes$Builder.build.

func (*VibrationAttributesBuilder) SetFlags

func (m *VibrationAttributesBuilder) SetFlags(arg0 int32, arg1 int32) (*jni.Object, error)

SetFlags calls android.os.VibrationAttributes$Builder.setFlags.

func (*VibrationAttributesBuilder) SetUsage

func (m *VibrationAttributesBuilder) SetUsage(arg0 int32) (*jni.Object, error)

SetUsage calls android.os.VibrationAttributes$Builder.setUsage.

type VibrationEffect

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

VibrationEffect wraps android.os.VibrationEffect.

func (*VibrationEffect) CreateOneShot

func (m *VibrationEffect) CreateOneShot(arg0 int64, arg1 int32) (*jni.Object, error)

CreateOneShot calls android.os.VibrationEffect.createOneShot.

func (*VibrationEffect) CreatePredefined

func (m *VibrationEffect) CreatePredefined(arg0 int32) (*jni.Object, error)

CreatePredefined calls android.os.VibrationEffect.createPredefined.

func (*VibrationEffect) CreateRepeatingEffect1

func (m *VibrationEffect) CreateRepeatingEffect1(arg0 *jni.Object) (*jni.Object, error)

CreateRepeatingEffect1 calls android.os.VibrationEffect.createRepeatingEffect.

func (*VibrationEffect) CreateRepeatingEffect2_1

func (m *VibrationEffect) CreateRepeatingEffect2_1(arg0 *jni.Object, arg1 *jni.Object) (*jni.Object, error)

CreateRepeatingEffect2_1 calls android.os.VibrationEffect.createRepeatingEffect.

func (*VibrationEffect) CreateWaveform2

func (m *VibrationEffect) CreateWaveform2(arg0 *jni.Object, arg1 int32) (*jni.Object, error)

CreateWaveform2 calls android.os.VibrationEffect.createWaveform.

func (*VibrationEffect) CreateWaveform3_1

func (m *VibrationEffect) CreateWaveform3_1(
	arg0 *jni.Object,
	arg1 *jni.Object,
	arg2 int32,
) (*jni.Object, error)

CreateWaveform3_1 calls android.os.VibrationEffect.createWaveform.

func (*VibrationEffect) DescribeContents

func (m *VibrationEffect) DescribeContents() (int32, error)

DescribeContents calls android.os.VibrationEffect.describeContents.

func (*VibrationEffect) StartComposition

func (m *VibrationEffect) StartComposition() (*jni.Object, error)

StartComposition calls android.os.VibrationEffect.startComposition.

type VibrationEffectBasicEnvelopeBuilder

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

VibrationEffectBasicEnvelopeBuilder wraps android.os.VibrationEffect$BasicEnvelopeBuilder.

func (*VibrationEffectBasicEnvelopeBuilder) AddControlPoint

func (m *VibrationEffectBasicEnvelopeBuilder) AddControlPoint(
	arg0 float32,
	arg1 float32,
	arg2 int64,
) (*jni.Object, error)

AddControlPoint calls android.os.VibrationEffect$BasicEnvelopeBuilder.addControlPoint.

func (*VibrationEffectBasicEnvelopeBuilder) Build

Build calls android.os.VibrationEffect$BasicEnvelopeBuilder.build.

func (*VibrationEffectBasicEnvelopeBuilder) SetInitialSharpness

func (m *VibrationEffectBasicEnvelopeBuilder) SetInitialSharpness(arg0 float32) (*jni.Object, error)

SetInitialSharpness calls android.os.VibrationEffect$BasicEnvelopeBuilder.setInitialSharpness.

type VibrationEffectComposition

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

VibrationEffectComposition wraps android.os.VibrationEffect$Composition.

func (*VibrationEffectComposition) AddPrimitive1

func (m *VibrationEffectComposition) AddPrimitive1(arg0 int32) (*jni.Object, error)

AddPrimitive1 calls android.os.VibrationEffect$Composition.addPrimitive.

func (*VibrationEffectComposition) AddPrimitive2_1

func (m *VibrationEffectComposition) AddPrimitive2_1(arg0 int32, arg1 float32) (*jni.Object, error)

AddPrimitive2_1 calls android.os.VibrationEffect$Composition.addPrimitive.

func (*VibrationEffectComposition) AddPrimitive3_2

func (m *VibrationEffectComposition) AddPrimitive3_2(
	arg0 int32,
	arg1 float32,
	arg2 int32,
) (*jni.Object, error)

AddPrimitive3_2 calls android.os.VibrationEffect$Composition.addPrimitive.

func (*VibrationEffectComposition) AddPrimitive4_3

func (m *VibrationEffectComposition) AddPrimitive4_3(
	arg0 int32,
	arg1 float32,
	arg2 int32,
	arg3 int32,
) (*jni.Object, error)

AddPrimitive4_3 calls android.os.VibrationEffect$Composition.addPrimitive.

func (*VibrationEffectComposition) Compose

func (m *VibrationEffectComposition) Compose() (*jni.Object, error)

Compose calls android.os.VibrationEffect$Composition.compose.

type VibrationEffectWaveformEnvelopeBuilder

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

VibrationEffectWaveformEnvelopeBuilder wraps android.os.VibrationEffect$WaveformEnvelopeBuilder.

func (*VibrationEffectWaveformEnvelopeBuilder) AddControlPoint

func (m *VibrationEffectWaveformEnvelopeBuilder) AddControlPoint(
	arg0 float32,
	arg1 float32,
	arg2 int64,
) (*jni.Object, error)

AddControlPoint calls android.os.VibrationEffect$WaveformEnvelopeBuilder.addControlPoint.

func (*VibrationEffectWaveformEnvelopeBuilder) Build

Build calls android.os.VibrationEffect$WaveformEnvelopeBuilder.build.

func (*VibrationEffectWaveformEnvelopeBuilder) SetInitialFrequencyHz

func (m *VibrationEffectWaveformEnvelopeBuilder) SetInitialFrequencyHz(arg0 float32) (*jni.Object, error)

SetInitialFrequencyHz calls android.os.VibrationEffect$WaveformEnvelopeBuilder.setInitialFrequencyHz.

type VibratorManager

type VibratorManager struct {
	VM  *jni.VM
	Ctx *app.Context
	Obj *jni.GlobalRef
}

VibratorManager wraps android.os.VibratorManager.

func NewVibratorManager

func NewVibratorManager(ctx *app.Context) (*VibratorManager, error)

NewVibratorManager obtains android.os.VibratorManager from the Android system service manager.

func (*VibratorManager) Cancel

func (m *VibratorManager) Cancel() error

Cancel calls android.os.VibratorManager.cancel.

func (*VibratorManager) Close

func (m *VibratorManager) Close()

Close releases the global reference to the underlying Java object. After Close, the VibratorManager must not be used.

func (*VibratorManager) GetDefaultVibrator

func (m *VibratorManager) GetDefaultVibrator() (*jni.Object, error)

GetDefaultVibrator calls android.os.VibratorManager.getDefaultVibrator.

func (*VibratorManager) GetVibrator

func (m *VibratorManager) GetVibrator(arg0 int32) (*jni.Object, error)

GetVibrator calls android.os.VibratorManager.getVibrator.

func (*VibratorManager) GetVibratorIds

func (m *VibratorManager) GetVibratorIds() (*jni.Object, error)

GetVibratorIds calls android.os.VibratorManager.getVibratorIds.

func (*VibratorManager) Vibrate1

func (m *VibratorManager) Vibrate1(arg0 *jni.Object) error

Vibrate1 calls android.os.VibratorManager.vibrate.

func (*VibratorManager) Vibrate2_1

func (m *VibratorManager) Vibrate2_1(arg0 *jni.Object, arg1 *jni.Object) error

Vibrate2_1 calls android.os.VibratorManager.vibrate.

type WorkDuration

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

WorkDuration wraps android.os.WorkDuration.

func NewWorkDuration

func NewWorkDuration(vm *jni.VM) (*WorkDuration, error)

NewWorkDuration creates a new android.os.WorkDuration instance.

func (*WorkDuration) Equals

func (m *WorkDuration) Equals(arg0 *jni.Object) (bool, error)

Equals calls android.os.WorkDuration.equals.

func (*WorkDuration) GetActualCpuDurationNanos

func (m *WorkDuration) GetActualCpuDurationNanos() (int64, error)

GetActualCpuDurationNanos calls android.os.WorkDuration.getActualCpuDurationNanos.

func (*WorkDuration) GetActualGpuDurationNanos

func (m *WorkDuration) GetActualGpuDurationNanos() (int64, error)

GetActualGpuDurationNanos calls android.os.WorkDuration.getActualGpuDurationNanos.

func (*WorkDuration) GetActualTotalDurationNanos

func (m *WorkDuration) GetActualTotalDurationNanos() (int64, error)

GetActualTotalDurationNanos calls android.os.WorkDuration.getActualTotalDurationNanos.

func (*WorkDuration) GetWorkPeriodStartTimestampNanos

func (m *WorkDuration) GetWorkPeriodStartTimestampNanos() (int64, error)

GetWorkPeriodStartTimestampNanos calls android.os.WorkDuration.getWorkPeriodStartTimestampNanos.

func (*WorkDuration) HashCode

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

HashCode calls android.os.WorkDuration.hashCode.

func (*WorkDuration) SetActualCpuDurationNanos

func (m *WorkDuration) SetActualCpuDurationNanos(arg0 int64) error

SetActualCpuDurationNanos calls android.os.WorkDuration.setActualCpuDurationNanos.

func (*WorkDuration) SetActualGpuDurationNanos

func (m *WorkDuration) SetActualGpuDurationNanos(arg0 int64) error

SetActualGpuDurationNanos calls android.os.WorkDuration.setActualGpuDurationNanos.

func (*WorkDuration) SetActualTotalDurationNanos

func (m *WorkDuration) SetActualTotalDurationNanos(arg0 int64) error

SetActualTotalDurationNanos calls android.os.WorkDuration.setActualTotalDurationNanos.

func (*WorkDuration) SetWorkPeriodStartTimestampNanos

func (m *WorkDuration) SetWorkPeriodStartTimestampNanos(arg0 int64) error

SetWorkPeriodStartTimestampNanos calls android.os.WorkDuration.setWorkPeriodStartTimestampNanos.

type WorkSource

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

WorkSource wraps android.os.WorkSource.

func NewWorkSource

func NewWorkSource(vm *jni.VM) (*WorkSource, error)

NewWorkSource creates a new android.os.WorkSource instance.

func (*WorkSource) Add

func (m *WorkSource) Add(arg0 *jni.Object) (bool, error)

Add calls android.os.WorkSource.add.

func (*WorkSource) Clear

func (m *WorkSource) Clear() error

Clear calls android.os.WorkSource.clear.

func (*WorkSource) DescribeContents

func (m *WorkSource) DescribeContents() (int32, error)

DescribeContents calls android.os.WorkSource.describeContents.

func (*WorkSource) Diff

func (m *WorkSource) Diff(arg0 *jni.Object) (bool, error)

Diff calls android.os.WorkSource.diff.

func (*WorkSource) Equals

func (m *WorkSource) Equals(arg0 *jni.Object) (bool, error)

Equals calls android.os.WorkSource.equals.

func (*WorkSource) HashCode

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

HashCode calls android.os.WorkSource.hashCode.

func (*WorkSource) Remove

func (m *WorkSource) Remove(arg0 *jni.Object) (bool, error)

Remove calls android.os.WorkSource.remove.

func (*WorkSource) Set

func (m *WorkSource) Set(arg0 *jni.Object) error

Set calls android.os.WorkSource.set.

func (*WorkSource) ToString

func (m *WorkSource) ToString() (string, error)

ToString calls android.os.WorkSource.toString.

func (*WorkSource) WriteToParcel

func (m *WorkSource) WriteToParcel(arg0 *jni.Object, arg1 int32) error

WriteToParcel calls android.os.WorkSource.writeToParcel.

Source Files

Directories

Path Synopsis
Package battery provides Go bindings for android.os.
Package battery provides Go bindings for android.os.
Package build provides Go bindings for android.os.
Package build provides Go bindings for android.os.
Package environment provides Go bindings for android.os.
Package environment provides Go bindings for android.os.
ext
Package ext provides Go bindings for android.os.ext.
Package ext provides Go bindings for android.os.ext.
Package flagging provides Go bindings for android.os.flagging.
Package flagging provides Go bindings for android.os.flagging.
Package health provides Go bindings for android.os.health.
Package health provides Go bindings for android.os.health.
Package keyguard provides Go bindings for android.app.
Package keyguard provides Go bindings for android.app.
Package power provides Go bindings for android.os.
Package power provides Go bindings for android.os.
Package storage provides Go bindings for android.os.storage.
Package storage provides Go bindings for android.os.storage.
Package strictmode provides Go bindings for android.os.strictmode.
Package strictmode provides Go bindings for android.os.strictmode.
Package vibrator provides Go bindings for android.os.
Package vibrator provides Go bindings for android.os.

Jump to

Keyboard shortcuts

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