wearable

package
v0.0.5 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: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TransactionIWearableSensingServiceProvideSecureConnection              = binder.FirstCallTransaction + 0
	TransactionIWearableSensingServiceProvideDataStream                    = binder.FirstCallTransaction + 1
	TransactionIWearableSensingServiceProvideData                          = binder.FirstCallTransaction + 2
	TransactionIWearableSensingServiceRegisterDataRequestObserver          = binder.FirstCallTransaction + 3
	TransactionIWearableSensingServiceUnregisterDataRequestObserver        = binder.FirstCallTransaction + 4
	TransactionIWearableSensingServiceStartHotwordRecognition              = binder.FirstCallTransaction + 5
	TransactionIWearableSensingServiceStopHotwordRecognition               = binder.FirstCallTransaction + 6
	TransactionIWearableSensingServiceOnValidatedByHotwordDetectionService = binder.FirstCallTransaction + 7
	TransactionIWearableSensingServiceStopActiveHotwordAudio               = binder.FirstCallTransaction + 8
	TransactionIWearableSensingServiceStartDetection                       = binder.FirstCallTransaction + 9
	TransactionIWearableSensingServiceStopDetection                        = binder.FirstCallTransaction + 10
	TransactionIWearableSensingServiceQueryServiceStatus                   = binder.FirstCallTransaction + 11
	TransactionIWearableSensingServiceKillProcess                          = binder.FirstCallTransaction + 12
)
View Source
const (
	MethodIWearableSensingServiceProvideSecureConnection              = "provideSecureConnection"
	MethodIWearableSensingServiceProvideDataStream                    = "provideDataStream"
	MethodIWearableSensingServiceProvideData                          = "provideData"
	MethodIWearableSensingServiceRegisterDataRequestObserver          = "registerDataRequestObserver"
	MethodIWearableSensingServiceUnregisterDataRequestObserver        = "unregisterDataRequestObserver"
	MethodIWearableSensingServiceStartHotwordRecognition              = "startHotwordRecognition"
	MethodIWearableSensingServiceStopHotwordRecognition               = "stopHotwordRecognition"
	MethodIWearableSensingServiceOnValidatedByHotwordDetectionService = "onValidatedByHotwordDetectionService"
	MethodIWearableSensingServiceStopActiveHotwordAudio               = "stopActiveHotwordAudio"
	MethodIWearableSensingServiceStartDetection                       = "startDetection"
	MethodIWearableSensingServiceStopDetection                        = "stopDetection"
	MethodIWearableSensingServiceQueryServiceStatus                   = "queryServiceStatus"
	MethodIWearableSensingServiceKillProcess                          = "killProcess"
)
View Source
const DescriptorIWearableSensingService = "android.service.wearable.IWearableSensingService"

Variables

This section is empty.

Functions

This section is empty.

Types

type IWearableSensingService

type IWearableSensingService interface {
	AsBinder() binder.IBinder
	ProvideSecureConnection(ctx context.Context, parcelFileDescriptor int32, callback os.RemoteCallback) error
	ProvideDataStream(ctx context.Context, parcelFileDescriptor int32, callback os.RemoteCallback) error
	ProvideData(ctx context.Context, data os.PersistableBundle, sharedMemory os.SharedMemory, callback os.RemoteCallback) error
	RegisterDataRequestObserver(ctx context.Context, dataType int32, dataRequestCallback os.RemoteCallback, dataRequestObserverId int32, packageName string, statusCallback os.RemoteCallback) error
	UnregisterDataRequestObserver(ctx context.Context, dataType int32, dataRequestObserverId int32, packageName string, statusCallback os.RemoteCallback) error
	StartHotwordRecognition(ctx context.Context, wearableHotwordCallback os.RemoteCallback, statusCallback os.RemoteCallback) error
	StopHotwordRecognition(ctx context.Context, statusCallback os.RemoteCallback) error
	OnValidatedByHotwordDetectionService(ctx context.Context) error
	StopActiveHotwordAudio(ctx context.Context) error
	StartDetection(ctx context.Context, request ambientcontext.AmbientContextEventRequest, packageName string, detectionResultCallback os.RemoteCallback, statusCallback os.RemoteCallback) error
	StopDetection(ctx context.Context, packageName string) error
	QueryServiceStatus(ctx context.Context, eventTypes []int32, packageName string, callback os.RemoteCallback) error
	KillProcess(ctx context.Context) error
}

func NewWearableSensingServiceStub

func NewWearableSensingServiceStub(
	impl IWearableSensingServiceServer,
) IWearableSensingService

NewWearableSensingServiceStub creates a server-side IWearableSensingService wrapping the given server implementation. The returned value satisfies IWearableSensingService 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 IWearableSensingServiceServer

type IWearableSensingServiceServer interface {
	ProvideSecureConnection(ctx context.Context, parcelFileDescriptor int32, callback os.RemoteCallback) error
	ProvideDataStream(ctx context.Context, parcelFileDescriptor int32, callback os.RemoteCallback) error
	ProvideData(ctx context.Context, data os.PersistableBundle, sharedMemory os.SharedMemory, callback os.RemoteCallback) error
	RegisterDataRequestObserver(ctx context.Context, dataType int32, dataRequestCallback os.RemoteCallback, dataRequestObserverId int32, packageName string, statusCallback os.RemoteCallback) error
	UnregisterDataRequestObserver(ctx context.Context, dataType int32, dataRequestObserverId int32, packageName string, statusCallback os.RemoteCallback) error
	StartHotwordRecognition(ctx context.Context, wearableHotwordCallback os.RemoteCallback, statusCallback os.RemoteCallback) error
	StopHotwordRecognition(ctx context.Context, statusCallback os.RemoteCallback) error
	OnValidatedByHotwordDetectionService(ctx context.Context) error
	StopActiveHotwordAudio(ctx context.Context) error
	StartDetection(ctx context.Context, request ambientcontext.AmbientContextEventRequest, packageName string, detectionResultCallback os.RemoteCallback, statusCallback os.RemoteCallback) error
	StopDetection(ctx context.Context, packageName string) error
	QueryServiceStatus(ctx context.Context, eventTypes []int32, packageName string, callback os.RemoteCallback) error
	KillProcess(ctx context.Context) error
}

IWearableSensingServiceServer is the server-side interface that user implementations provide to NewWearableSensingServiceStub. It contains only the business methods, without AsBinder (which is provided by the stub itself).

type WearableSensingServiceProxy

type WearableSensingServiceProxy struct {
	Remote binder.IBinder
}

func NewWearableSensingServiceProxy

func NewWearableSensingServiceProxy(
	remote binder.IBinder,
) *WearableSensingServiceProxy

func (*WearableSensingServiceProxy) AsBinder

func (*WearableSensingServiceProxy) KillProcess

func (p *WearableSensingServiceProxy) KillProcess(
	ctx context.Context,
) error

func (*WearableSensingServiceProxy) OnValidatedByHotwordDetectionService

func (p *WearableSensingServiceProxy) OnValidatedByHotwordDetectionService(
	ctx context.Context,
) error

func (*WearableSensingServiceProxy) ProvideData

func (p *WearableSensingServiceProxy) ProvideData(
	ctx context.Context,
	data os.PersistableBundle,
	sharedMemory os.SharedMemory,
	callback os.RemoteCallback,
) error

func (*WearableSensingServiceProxy) ProvideDataStream

func (p *WearableSensingServiceProxy) ProvideDataStream(
	ctx context.Context,
	parcelFileDescriptor int32,
	callback os.RemoteCallback,
) error

func (*WearableSensingServiceProxy) ProvideSecureConnection

func (p *WearableSensingServiceProxy) ProvideSecureConnection(
	ctx context.Context,
	parcelFileDescriptor int32,
	callback os.RemoteCallback,
) error

func (*WearableSensingServiceProxy) QueryServiceStatus

func (p *WearableSensingServiceProxy) QueryServiceStatus(
	ctx context.Context,
	eventTypes []int32,
	packageName string,
	callback os.RemoteCallback,
) error

func (*WearableSensingServiceProxy) RegisterDataRequestObserver

func (p *WearableSensingServiceProxy) RegisterDataRequestObserver(
	ctx context.Context,
	dataType int32,
	dataRequestCallback os.RemoteCallback,
	dataRequestObserverId int32,
	packageName string,
	statusCallback os.RemoteCallback,
) error

func (*WearableSensingServiceProxy) StartDetection

func (p *WearableSensingServiceProxy) StartDetection(
	ctx context.Context,
	request ambientcontext.AmbientContextEventRequest,
	packageName string,
	detectionResultCallback os.RemoteCallback,
	statusCallback os.RemoteCallback,
) error

func (*WearableSensingServiceProxy) StartHotwordRecognition

func (p *WearableSensingServiceProxy) StartHotwordRecognition(
	ctx context.Context,
	wearableHotwordCallback os.RemoteCallback,
	statusCallback os.RemoteCallback,
) error

func (*WearableSensingServiceProxy) StopActiveHotwordAudio

func (p *WearableSensingServiceProxy) StopActiveHotwordAudio(
	ctx context.Context,
) error

func (*WearableSensingServiceProxy) StopDetection

func (p *WearableSensingServiceProxy) StopDetection(
	ctx context.Context,
	packageName string,
) error

func (*WearableSensingServiceProxy) StopHotwordRecognition

func (p *WearableSensingServiceProxy) StopHotwordRecognition(
	ctx context.Context,
	statusCallback os.RemoteCallback,
) error

func (*WearableSensingServiceProxy) UnregisterDataRequestObserver

func (p *WearableSensingServiceProxy) UnregisterDataRequestObserver(
	ctx context.Context,
	dataType int32,
	dataRequestObserverId int32,
	packageName string,
	statusCallback os.RemoteCallback,
) error

type WearableSensingServiceStub

type WearableSensingServiceStub struct {
	Impl      IWearableSensingService
	Transport binder.VersionAwareTransport
}

WearableSensingServiceStub dispatches incoming binder transactions to a typed IWearableSensingService implementation.

func (*WearableSensingServiceStub) Descriptor

func (s *WearableSensingServiceStub) Descriptor() string

func (*WearableSensingServiceStub) OnTransaction

func (s *WearableSensingServiceStub) OnTransaction(
	ctx context.Context,
	code binder.TransactionCode,
	_data *parcel.Parcel,
) (*parcel.Parcel, error)

Jump to

Keyboard shortcuts

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