Documentation
¶
Index ¶
- Constants
- type BluetoothFinderProxy
- func (p *BluetoothFinderProxy) AsBinder() binder.IBinder
- func (p *BluetoothFinderProxy) GetPoweredOffFinderMode(ctx context.Context) (bool, error)
- func (p *BluetoothFinderProxy) SendEids(ctx context.Context, eids []Eid) error
- func (p *BluetoothFinderProxy) SetPoweredOffFinderMode(ctx context.Context, enable bool) error
- type BluetoothFinderStub
- type Eid
- type IBluetoothFinder
- type IBluetoothFinderServer
Constants ¶
View Source
const ( TransactionIBluetoothFinderSendEids = binder.FirstCallTransaction + 0 TransactionIBluetoothFinderSetPoweredOffFinderMode = binder.FirstCallTransaction + 1 TransactionIBluetoothFinderGetPoweredOffFinderMode = binder.FirstCallTransaction + 2 )
View Source
const ( MethodIBluetoothFinderSendEids = "sendEids" MethodIBluetoothFinderSetPoweredOffFinderMode = "setPoweredOffFinderMode" MethodIBluetoothFinderGetPoweredOffFinderMode = "getPoweredOffFinderMode" )
View Source
const DescriptorIBluetoothFinder = "android.hardware.bluetooth.finder.IBluetoothFinder"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BluetoothFinderProxy ¶
func NewBluetoothFinderProxy ¶
func NewBluetoothFinderProxy( remote binder.IBinder, ) *BluetoothFinderProxy
func (*BluetoothFinderProxy) AsBinder ¶
func (p *BluetoothFinderProxy) AsBinder() binder.IBinder
func (*BluetoothFinderProxy) GetPoweredOffFinderMode ¶
func (p *BluetoothFinderProxy) GetPoweredOffFinderMode( ctx context.Context, ) (bool, error)
func (*BluetoothFinderProxy) SendEids ¶
func (p *BluetoothFinderProxy) SendEids( ctx context.Context, eids []Eid, ) error
func (*BluetoothFinderProxy) SetPoweredOffFinderMode ¶
func (p *BluetoothFinderProxy) SetPoweredOffFinderMode( ctx context.Context, enable bool, ) error
type BluetoothFinderStub ¶
type BluetoothFinderStub struct {
Impl IBluetoothFinder
Transport binder.VersionAwareTransport
}
BluetoothFinderStub dispatches incoming binder transactions to a typed IBluetoothFinder implementation.
func (*BluetoothFinderStub) Descriptor ¶
func (s *BluetoothFinderStub) Descriptor() string
func (*BluetoothFinderStub) OnTransaction ¶
func (s *BluetoothFinderStub) OnTransaction( ctx context.Context, code binder.TransactionCode, _data *parcel.Parcel, ) (*parcel.Parcel, error)
type IBluetoothFinder ¶
type IBluetoothFinder interface {
AsBinder() binder.IBinder
SendEids(ctx context.Context, eids []Eid) error
SetPoweredOffFinderMode(ctx context.Context, enable bool) error
GetPoweredOffFinderMode(ctx context.Context) (bool, error)
}
func NewBluetoothFinderStub ¶
func NewBluetoothFinderStub( impl IBluetoothFinderServer, ) IBluetoothFinder
NewBluetoothFinderStub creates a server-side IBluetoothFinder wrapping the given server implementation. The returned value satisfies IBluetoothFinder 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 IBluetoothFinderServer ¶
type IBluetoothFinderServer interface {
SendEids(ctx context.Context, eids []Eid) error
SetPoweredOffFinderMode(ctx context.Context, enable bool) error
GetPoweredOffFinderMode(ctx context.Context) (bool, error)
}
IBluetoothFinderServer is the server-side interface that user implementations provide to NewBluetoothFinderStub. It contains only the business methods, without AsBinder (which is provided by the stub itself).
Click to show internal directories.
Click to hide internal directories.