Help us shape the future of Go! Take the 2026 Go Developer Survey

ambientcontext

package
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2026 License: CC0-1.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TransactionIAmbientContextDetectionServiceStartDetection     = binder.FirstCallTransaction + 0
	TransactionIAmbientContextDetectionServiceStopDetection      = binder.FirstCallTransaction + 1
	TransactionIAmbientContextDetectionServiceQueryServiceStatus = binder.FirstCallTransaction + 2
)
View Source
const (
	MethodIAmbientContextDetectionServiceStartDetection     = "startDetection"
	MethodIAmbientContextDetectionServiceStopDetection      = "stopDetection"
	MethodIAmbientContextDetectionServiceQueryServiceStatus = "queryServiceStatus"
)
View Source
const DescriptorIAmbientContextDetectionService = "android.service.ambientcontext.IAmbientContextDetectionService"

Variables

This section is empty.

Functions

This section is empty.

Types

type AmbientContextDetectionResult

type AmbientContextDetectionResult struct {
	Flg         int32
	PackageName string
}

func (*AmbientContextDetectionResult) MarshalParcel

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

func (*AmbientContextDetectionResult) UnmarshalParcel

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

type AmbientContextDetectionServiceProxy

type AmbientContextDetectionServiceProxy struct {
	Remote binder.IBinder
}

func NewAmbientContextDetectionServiceProxy

func NewAmbientContextDetectionServiceProxy(
	remote binder.IBinder,
) *AmbientContextDetectionServiceProxy

func (*AmbientContextDetectionServiceProxy) AsBinder

func (*AmbientContextDetectionServiceProxy) QueryServiceStatus

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

func (*AmbientContextDetectionServiceProxy) StartDetection

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

func (*AmbientContextDetectionServiceProxy) StopDetection

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

type AmbientContextDetectionServiceStatus

type AmbientContextDetectionServiceStatus struct {
	Flg         int32
	StatusCode  int32
	PackageName string
}

func (*AmbientContextDetectionServiceStatus) MarshalParcel

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

func (*AmbientContextDetectionServiceStatus) UnmarshalParcel

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

type AmbientContextDetectionServiceStub

type AmbientContextDetectionServiceStub struct {
	Impl      IAmbientContextDetectionService
	Transport binder.VersionAwareTransport
}

AmbientContextDetectionServiceStub dispatches incoming binder transactions to a typed IAmbientContextDetectionService implementation.

func (*AmbientContextDetectionServiceStub) Descriptor

func (*AmbientContextDetectionServiceStub) OnTransaction

type IAmbientContextDetectionService

type IAmbientContextDetectionService interface {
	AsBinder() binder.IBinder
	StartDetection(ctx context.Context, request appAmbientcontext.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
}

func NewAmbientContextDetectionServiceStub

func NewAmbientContextDetectionServiceStub(
	impl IAmbientContextDetectionServiceServer,
) IAmbientContextDetectionService

NewAmbientContextDetectionServiceStub creates a server-side IAmbientContextDetectionService wrapping the given server implementation. The returned value satisfies IAmbientContextDetectionService 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 IAmbientContextDetectionServiceServer

type IAmbientContextDetectionServiceServer interface {
	StartDetection(ctx context.Context, request appAmbientcontext.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
}

IAmbientContextDetectionServiceServer is the server-side interface that user implementations provide to NewAmbientContextDetectionServiceStub. 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