Documentation
¶
Index ¶
- Constants
- type AddressType
- type BluetoothLmpEventCallbackProxy
- type BluetoothLmpEventCallbackStub
- type BluetoothLmpEventProxy
- func (p *BluetoothLmpEventProxy) AsBinder() binder.IBinder
- func (p *BluetoothLmpEventProxy) RegisterForLmpEvents(ctx context.Context, callback IBluetoothLmpEventCallback, ...) error
- func (p *BluetoothLmpEventProxy) UnregisterLmpEvents(ctx context.Context, addressType AddressType, address []byte) error
- type BluetoothLmpEventStub
- type Direction
- type IBluetoothLmpEvent
- type IBluetoothLmpEventCallback
- type IBluetoothLmpEventCallbackServer
- type IBluetoothLmpEventServer
- type LmpEventId
- type Timestamp
Constants ¶
const ( TransactionIBluetoothLmpEventRegisterForLmpEvents = binder.FirstCallTransaction + 0 TransactionIBluetoothLmpEventUnregisterLmpEvents = binder.FirstCallTransaction + 1 )
const ( MethodIBluetoothLmpEventRegisterForLmpEvents = "registerForLmpEvents" MethodIBluetoothLmpEventUnregisterLmpEvents = "unregisterLmpEvents" )
const ( TransactionIBluetoothLmpEventCallbackOnEventGenerated = binder.FirstCallTransaction + 0 TransactionIBluetoothLmpEventCallbackOnRegistered = binder.FirstCallTransaction + 1 )
const ( MethodIBluetoothLmpEventCallbackOnEventGenerated = "onEventGenerated" MethodIBluetoothLmpEventCallbackOnRegistered = "onRegistered" )
const DescriptorIBluetoothLmpEvent = "android.hardware.bluetooth.lmp_event.IBluetoothLmpEvent"
const DescriptorIBluetoothLmpEventCallback = "android.hardware.bluetooth.lmp_event.IBluetoothLmpEventCallback"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddressType ¶
type AddressType byte
const ( AddressTypePUBLIC AddressType = 0 AddressTypeRANDOM AddressType = 1 )
type BluetoothLmpEventCallbackProxy ¶
func NewBluetoothLmpEventCallbackProxy ¶
func NewBluetoothLmpEventCallbackProxy( remote binder.IBinder, ) *BluetoothLmpEventCallbackProxy
func (*BluetoothLmpEventCallbackProxy) AsBinder ¶
func (p *BluetoothLmpEventCallbackProxy) AsBinder() binder.IBinder
func (*BluetoothLmpEventCallbackProxy) OnEventGenerated ¶
func (p *BluetoothLmpEventCallbackProxy) OnEventGenerated( ctx context.Context, timestamp Timestamp, addressType AddressType, address []byte, direction Direction, lmpEventId LmpEventId, connEventCounter uint16, ) error
func (*BluetoothLmpEventCallbackProxy) OnRegistered ¶
func (p *BluetoothLmpEventCallbackProxy) OnRegistered( ctx context.Context, status bool, ) error
type BluetoothLmpEventCallbackStub ¶
type BluetoothLmpEventCallbackStub struct {
Impl IBluetoothLmpEventCallback
Transport binder.VersionAwareTransport
}
BluetoothLmpEventCallbackStub dispatches incoming binder transactions to a typed IBluetoothLmpEventCallback implementation.
func (*BluetoothLmpEventCallbackStub) Descriptor ¶
func (s *BluetoothLmpEventCallbackStub) Descriptor() string
func (*BluetoothLmpEventCallbackStub) OnTransaction ¶
func (s *BluetoothLmpEventCallbackStub) OnTransaction( ctx context.Context, code binder.TransactionCode, _data *parcel.Parcel, ) (*parcel.Parcel, error)
type BluetoothLmpEventProxy ¶
func NewBluetoothLmpEventProxy ¶
func NewBluetoothLmpEventProxy( remote binder.IBinder, ) *BluetoothLmpEventProxy
func (*BluetoothLmpEventProxy) AsBinder ¶
func (p *BluetoothLmpEventProxy) AsBinder() binder.IBinder
func (*BluetoothLmpEventProxy) RegisterForLmpEvents ¶
func (p *BluetoothLmpEventProxy) RegisterForLmpEvents( ctx context.Context, callback IBluetoothLmpEventCallback, addressType AddressType, address []byte, lmpEventIds []LmpEventId, ) error
func (*BluetoothLmpEventProxy) UnregisterLmpEvents ¶
func (p *BluetoothLmpEventProxy) UnregisterLmpEvents( ctx context.Context, addressType AddressType, address []byte, ) error
type BluetoothLmpEventStub ¶
type BluetoothLmpEventStub struct {
Impl IBluetoothLmpEvent
Transport binder.VersionAwareTransport
}
BluetoothLmpEventStub dispatches incoming binder transactions to a typed IBluetoothLmpEvent implementation.
func (*BluetoothLmpEventStub) Descriptor ¶
func (s *BluetoothLmpEventStub) Descriptor() string
func (*BluetoothLmpEventStub) OnTransaction ¶
func (s *BluetoothLmpEventStub) OnTransaction( ctx context.Context, code binder.TransactionCode, _data *parcel.Parcel, ) (*parcel.Parcel, error)
type IBluetoothLmpEvent ¶
type IBluetoothLmpEvent interface {
AsBinder() binder.IBinder
RegisterForLmpEvents(ctx context.Context, callback IBluetoothLmpEventCallback, addressType AddressType, address []byte, lmpEventIds []LmpEventId) error
UnregisterLmpEvents(ctx context.Context, addressType AddressType, address []byte) error
}
func NewBluetoothLmpEventStub ¶
func NewBluetoothLmpEventStub( impl IBluetoothLmpEventServer, ) IBluetoothLmpEvent
NewBluetoothLmpEventStub creates a server-side IBluetoothLmpEvent wrapping the given server implementation. The returned value satisfies IBluetoothLmpEvent and can be passed to proxy methods; its AsBinder() returns a *binder.StubBinder that is auto-registered with the binder driver on first use.
type IBluetoothLmpEventCallback ¶
type IBluetoothLmpEventCallback interface {
AsBinder() binder.IBinder
OnEventGenerated(ctx context.Context, timestamp Timestamp, addressType AddressType, address []byte, direction Direction, lmpEventId LmpEventId, connEventCounter uint16) error
OnRegistered(ctx context.Context, status bool) error
}
func NewBluetoothLmpEventCallbackStub ¶
func NewBluetoothLmpEventCallbackStub( impl IBluetoothLmpEventCallbackServer, ) IBluetoothLmpEventCallback
NewBluetoothLmpEventCallbackStub creates a server-side IBluetoothLmpEventCallback wrapping the given server implementation. The returned value satisfies IBluetoothLmpEventCallback and can be passed to proxy methods; its AsBinder() returns a *binder.StubBinder that is auto-registered with the binder driver on first use.
type IBluetoothLmpEventCallbackServer ¶
type IBluetoothLmpEventCallbackServer interface {
OnEventGenerated(ctx context.Context, timestamp Timestamp, addressType AddressType, address []byte, direction Direction, lmpEventId LmpEventId, connEventCounter uint16) error
OnRegistered(ctx context.Context, status bool) error
}
IBluetoothLmpEventCallbackServer is the server-side interface that user implementations provide to NewBluetoothLmpEventCallbackStub. It contains only the business methods, without AsBinder (which is provided by the stub itself).
type IBluetoothLmpEventServer ¶
type IBluetoothLmpEventServer interface {
RegisterForLmpEvents(ctx context.Context, callback IBluetoothLmpEventCallback, addressType AddressType, address []byte, lmpEventIds []LmpEventId) error
UnregisterLmpEvents(ctx context.Context, addressType AddressType, address []byte) error
}
IBluetoothLmpEventServer is the server-side interface that user implementations provide to NewBluetoothLmpEventStub. It contains only the business methods, without AsBinder (which is provided by the stub itself).
type LmpEventId ¶
type LmpEventId byte
const ( LmpEventIdConnectInd LmpEventId = 0 LmpEventIdLlPhyUpdateInd LmpEventId = 1 )