finder

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

Documentation

Index

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

type BluetoothFinderProxy struct {
	Remote binder.IBinder
}

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 Eid

type Eid struct {
	Bytes []byte
}

func (*Eid) MarshalParcel

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

func (*Eid) UnmarshalParcel

func (s *Eid) UnmarshalParcel(
	p *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).

Jump to

Keyboard shortcuts

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