Documentation
¶
Overview ¶
Package binder provides Go bindings for Android Binder IPC.
Index ¶
- func AIBinder_isHandlingTransaction() bool
- func AStatus_deleteDescription(description string)
- type AIBinder_Class_onCreate
- type AIBinder_Class_onDestroy
- type AIBinder_Class_onTransact
- type AIBinder_DeathRecipient_onBinderDied
- type AIBinder_DeathRecipient_onBinderUnlinked
- type AIBinder_onDump
- type AParcel_boolArrayAllocator
- type AParcel_boolArrayGetter
- type AParcel_boolArraySetter
- type AParcel_byteArrayAllocator
- type AParcel_charArrayAllocator
- type AParcel_doubleArrayAllocator
- type AParcel_floatArrayAllocator
- type AParcel_int32ArrayAllocator
- type AParcel_int64ArrayAllocator
- type AParcel_parcelableArrayAllocator
- type AParcel_readParcelableElement
- type AParcel_stringAllocator
- type AParcel_stringArrayAllocator
- type AParcel_stringArrayElementAllocator
- type AParcel_stringArrayElementGetter
- type AParcel_uint32ArrayAllocator
- type AParcel_uint64ArrayAllocator
- type AParcel_writeParcelableElement
- type Binder
- func (h *Binder) AssociateClass(clazz *Class) bool
- func (h *Binder) Close() error
- func (h *Binder) DebugGetRefCount() error
- func (h *Binder) GetClass() *Class
- func (h *Binder) GetUserData() unsafe.Pointer
- func (h *Binder) IncStrong()
- func (h *Binder) IsAlive() bool
- func (h *Binder) IsRemote() bool
- func (h *Binder) Lt(rhs *Binder) bool
- func (h *Binder) Pointer() unsafe.Pointer
- type Char16_t
- type Class
- type EX
- type Error
- type ExceptionCode
- type FLAG
- type Flags
- type IBinder_DeathRecipient
- type IBinder_Weak
- type Parcel
- type Pid_t
- type Status
- type Uid_t
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AIBinder_isHandlingTransaction ¶
func AIBinder_isHandlingTransaction() bool
AIBinder_isHandlingTransaction calls the underlying C function.
func AStatus_deleteDescription ¶
func AStatus_deleteDescription(description string)
AStatus_deleteDescription calls the underlying C function.
Types ¶
type AIBinder_Class_onCreate ¶
type AIBinder_Class_onCreate = capi.AIBinder_Class_onCreate
type AIBinder_Class_onDestroy ¶
type AIBinder_Class_onDestroy = capi.AIBinder_Class_onDestroy
type AIBinder_Class_onTransact ¶
type AIBinder_Class_onTransact = capi.AIBinder_Class_onTransact
type AIBinder_DeathRecipient_onBinderDied ¶
type AIBinder_DeathRecipient_onBinderDied = capi.AIBinder_DeathRecipient_onBinderDied
type AIBinder_DeathRecipient_onBinderUnlinked ¶
type AIBinder_DeathRecipient_onBinderUnlinked = capi.AIBinder_DeathRecipient_onBinderUnlinked
type AIBinder_onDump ¶
type AIBinder_onDump = capi.AIBinder_onDump
type AParcel_boolArrayAllocator ¶
type AParcel_boolArrayAllocator = capi.AParcel_boolArrayAllocator
type AParcel_boolArrayGetter ¶
type AParcel_boolArrayGetter = capi.AParcel_boolArrayGetter
type AParcel_boolArraySetter ¶
type AParcel_boolArraySetter = capi.AParcel_boolArraySetter
type AParcel_byteArrayAllocator ¶
type AParcel_byteArrayAllocator = capi.AParcel_byteArrayAllocator
type AParcel_charArrayAllocator ¶
type AParcel_charArrayAllocator = capi.AParcel_charArrayAllocator
type AParcel_doubleArrayAllocator ¶
type AParcel_doubleArrayAllocator = capi.AParcel_doubleArrayAllocator
type AParcel_floatArrayAllocator ¶
type AParcel_floatArrayAllocator = capi.AParcel_floatArrayAllocator
type AParcel_int32ArrayAllocator ¶
type AParcel_int32ArrayAllocator = capi.AParcel_int32ArrayAllocator
type AParcel_int64ArrayAllocator ¶
type AParcel_int64ArrayAllocator = capi.AParcel_int64ArrayAllocator
type AParcel_parcelableArrayAllocator ¶
type AParcel_parcelableArrayAllocator = capi.AParcel_parcelableArrayAllocator
type AParcel_readParcelableElement ¶
type AParcel_readParcelableElement = capi.AParcel_readParcelableElement
type AParcel_stringAllocator ¶
type AParcel_stringAllocator = capi.AParcel_stringAllocator
type AParcel_stringArrayAllocator ¶
type AParcel_stringArrayAllocator = capi.AParcel_stringArrayAllocator
type AParcel_stringArrayElementAllocator ¶
type AParcel_stringArrayElementAllocator = capi.AParcel_stringArrayElementAllocator
type AParcel_stringArrayElementGetter ¶
type AParcel_stringArrayElementGetter = capi.AParcel_stringArrayElementGetter
type AParcel_uint32ArrayAllocator ¶
type AParcel_uint32ArrayAllocator = capi.AParcel_uint32ArrayAllocator
type AParcel_uint64ArrayAllocator ¶
type AParcel_uint64ArrayAllocator = capi.AParcel_uint64ArrayAllocator
type AParcel_writeParcelableElement ¶
type AParcel_writeParcelableElement = capi.AParcel_writeParcelableElement
type Binder ¶
type Binder struct {
// contains filtered or unexported fields
}
Binder wraps the NDK AIBinder handle.
func NewBinderFromPointer ¶
NewBinderFromPointer wraps a raw AIBinder pointer.
func (*Binder) AssociateClass ¶
AssociateClass returns the value directly.
func (*Binder) DebugGetRefCount ¶
DebugGetRefCount calls the underlying NDK function.
func (*Binder) GetUserData ¶
GetUserData returns the value directly.
type Class ¶
type Class struct {
// contains filtered or unexported fields
}
Class wraps the NDK AIBinder_Class handle.
func NewClassFromPointer ¶
NewClassFromPointer wraps a raw AIBinder_Class pointer.
func (*Class) DisableInterfaceTokenHeader ¶
func (h *Class) DisableInterfaceTokenHeader()
DisableInterfaceTokenHeader calls the underlying NDK function.
func (*Class) GetDescriptor ¶
GetDescriptor returns the value directly.
type Error ¶
type Error int32
Error represents an NDK error code.
const ( ErrUnknownError Error = -2147483648 ErrNoMemory Error = -12 ErrInvalidOperation Error = -38 ErrBadValue Error = -22 ErrBadType Error = -2147483647 ErrNameNotFound Error = -2 ErrPermissionDenied Error = -1 ErrNoInit Error = -19 ErrAlreadyExists Error = -17 ErrDeadObject Error = -32 ErrFailedTransaction Error = -2147483646 ErrBadIndex Error = -75 ErrNotEnoughData Error = -61 ErrWouldBlock Error = -11 ErrTimedOut Error = -110 ErrUnknownTransaction Error = -74 ErrFdsNotAllowed Error = -2147483641 ErrUnexpectedNull Error = -2147483640 )
type ExceptionCode ¶
type ExceptionCode int32
const ( None ExceptionCode = 0 Security ExceptionCode = -1 BadParcelable ExceptionCode = -2 IllegalArgument ExceptionCode = -3 NullPointer ExceptionCode = -4 IllegalState ExceptionCode = -5 NetworkMainThread ExceptionCode = -6 UnsupportedOperation ExceptionCode = -7 ServiceSpecific ExceptionCode = -8 Parcelable ExceptionCode = -9 TransactionFailed ExceptionCode = -129 )
type IBinder_DeathRecipient ¶
type IBinder_DeathRecipient struct {
// contains filtered or unexported fields
}
IBinder_DeathRecipient wraps the NDK AIBinder_DeathRecipient handle.
func NewIBinder_DeathRecipient ¶
func NewIBinder_DeathRecipient(onBinderDied AIBinder_DeathRecipient_onBinderDied) *IBinder_DeathRecipient
NewIBinder_DeathRecipient creates a new IBinder_DeathRecipient.
func NewIBinder_DeathRecipientFromPointer ¶
func NewIBinder_DeathRecipientFromPointer(ptr unsafe.Pointer) *IBinder_DeathRecipient
NewIBinder_DeathRecipientFromPointer wraps a raw AIBinder_DeathRecipient pointer.
func (*IBinder_DeathRecipient) Close ¶
func (h *IBinder_DeathRecipient) Close() error
Close releases the underlying NDK handle.
func (*IBinder_DeathRecipient) Pointer ¶
func (h *IBinder_DeathRecipient) Pointer() unsafe.Pointer
Pointer returns the underlying pointer as unsafe.Pointer.
type IBinder_Weak ¶
type IBinder_Weak struct {
// contains filtered or unexported fields
}
IBinder_Weak wraps the NDK AIBinder_Weak handle.
func NewIBinder_Weak ¶
func NewIBinder_Weak(binder unsafe.Pointer) *IBinder_Weak
NewIBinder_Weak creates a new IBinder_Weak.
func NewIBinder_WeakFromPointer ¶
func NewIBinder_WeakFromPointer(ptr unsafe.Pointer) *IBinder_Weak
NewIBinder_WeakFromPointer wraps a raw AIBinder_Weak pointer.
func (*IBinder_Weak) Clone ¶
func (h *IBinder_Weak) Clone() *IBinder_Weak
Clone creates a new IBinder_Weak from this IBinder_Weak.
func (*IBinder_Weak) Close ¶
func (h *IBinder_Weak) Close() error
Close releases the underlying NDK handle.
func (*IBinder_Weak) Lt ¶
func (h *IBinder_Weak) Lt(rhs *IBinder_Weak) bool
Lt returns the value directly.
func (*IBinder_Weak) Pointer ¶
func (h *IBinder_Weak) Pointer() unsafe.Pointer
Pointer returns the underlying pointer as unsafe.Pointer.
func (*IBinder_Weak) Promote ¶
func (h *IBinder_Weak) Promote() *Binder
Promote creates a new Binder from this IBinder_Weak.
type Parcel ¶
type Parcel struct {
// contains filtered or unexported fields
}
Parcel wraps the NDK AParcel handle.
func NewParcelFromPointer ¶
NewParcelFromPointer wraps a raw AParcel pointer.
func (*Parcel) GetDataPosition ¶
GetDataPosition calls the underlying NDK function.
func (*Parcel) GetDataSize ¶
GetDataSize calls the underlying NDK function.
type Status ¶
type Status struct {
// contains filtered or unexported fields
}
Status wraps the NDK AStatus handle.
func AStatus_fromServiceSpecificError ¶
AStatus_fromServiceSpecificError calls the underlying C function.
func AStatus_fromServiceSpecificErrorWithMessage ¶
AStatus_fromServiceSpecificErrorWithMessage calls the underlying C function.
func NewStatusFromPointer ¶
NewStatusFromPointer wraps a raw AStatus pointer.
func (*Status) GetDescription ¶
GetDescription returns the value directly.
func (*Status) GetMessage ¶
GetMessage returns the value directly.
func (*Status) GetServiceSpecificError ¶
GetServiceSpecificError calls the underlying NDK function.
Source Files
¶
- aibinder_class_on_create.go
- aibinder_class_on_destroy.go
- aibinder_class_on_transact.go
- aibinder_death_recipient_on_binder_died.go
- aibinder_death_recipient_on_binder_unlinked.go
- aibinder_on_dump.go
- aparcel_bool_array_allocator.go
- aparcel_bool_array_getter.go
- aparcel_bool_array_setter.go
- aparcel_byte_array_allocator.go
- aparcel_char_array_allocator.go
- aparcel_double_array_allocator.go
- aparcel_float_array_allocator.go
- aparcel_int32_array_allocator.go
- aparcel_int64_array_allocator.go
- aparcel_parcelable_array_allocator.go
- aparcel_read_parcelable_element.go
- aparcel_string_allocator.go
- aparcel_string_array_allocator.go
- aparcel_string_array_element_allocator.go
- aparcel_string_array_element_getter.go
- aparcel_uint32_array_allocator.go
- aparcel_uint64_array_allocator.go
- aparcel_write_parcelable_element.go
- binder.go
- char16_t.go
- class.go
- errors.go
- ex.go
- exception_code.go
- flag.go
- flags.go
- functions.go
- ibinder_death_recipient.go
- ibinder_weak.go
- package.go
- parcel.go
- pid_t.go
- status.go
- transaction_code_t.go
- uid_t.go