lmp_event

package
v0.0.6 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	TransactionIBluetoothLmpEventRegisterForLmpEvents = binder.FirstCallTransaction + 0
	TransactionIBluetoothLmpEventUnregisterLmpEvents  = binder.FirstCallTransaction + 1
)
View Source
const (
	MethodIBluetoothLmpEventRegisterForLmpEvents = "registerForLmpEvents"
	MethodIBluetoothLmpEventUnregisterLmpEvents  = "unregisterLmpEvents"
)
View Source
const (
	TransactionIBluetoothLmpEventCallbackOnEventGenerated = binder.FirstCallTransaction + 0
	TransactionIBluetoothLmpEventCallbackOnRegistered     = binder.FirstCallTransaction + 1
)
View Source
const (
	MethodIBluetoothLmpEventCallbackOnEventGenerated = "onEventGenerated"
	MethodIBluetoothLmpEventCallbackOnRegistered     = "onRegistered"
)
View Source
const DescriptorIBluetoothLmpEvent = "android.hardware.bluetooth.lmp_event.IBluetoothLmpEvent"
View Source
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

type BluetoothLmpEventCallbackProxy struct {
	Remote binder.IBinder
}

func NewBluetoothLmpEventCallbackProxy

func NewBluetoothLmpEventCallbackProxy(
	remote binder.IBinder,
) *BluetoothLmpEventCallbackProxy

func (*BluetoothLmpEventCallbackProxy) AsBinder

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

type BluetoothLmpEventProxy

type BluetoothLmpEventProxy struct {
	Remote binder.IBinder
}

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 Direction

type Direction byte
const (
	DirectionTX Direction = 0
	DirectionRX Direction = 1
)

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
)

type Timestamp

type Timestamp struct {
	SystemTimeUs    int64
	BluetoothTimeUs int64
}

func (*Timestamp) MarshalParcel

func (s *Timestamp) MarshalParcel(
	p *parcel.Parcel,
) error

func (*Timestamp) UnmarshalParcel

func (s *Timestamp) UnmarshalParcel(
	p *parcel.Parcel,
) error

Jump to

Keyboard shortcuts

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