util

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

Documentation

Index

Constants

View Source
const DescriptorICommandReceiver = "com.android.frameworks.perftests.am.util.ICommandReceiver"
View Source
const DescriptorITimeReceiverCallback = "com.android.frameworks.perftests.am.util.ITimeReceiverCallback"
View Source
const (
	MethodICommandReceiverSendCommand = "sendCommand"
)
View Source
const (
	MethodITimeReceiverCallbackSendTime = "sendTime"
)
View Source
const (
	TransactionICommandReceiverSendCommand = binder.FirstCallTransaction + 0
)
View Source
const (
	TransactionITimeReceiverCallbackSendTime = binder.FirstCallTransaction + 0
)

Variables

This section is empty.

Functions

This section is empty.

Types

type CommandReceiverProxy

type CommandReceiverProxy struct {
	Remote binder.IBinder
}

func NewCommandReceiverProxy

func NewCommandReceiverProxy(
	remote binder.IBinder,
) *CommandReceiverProxy

func (*CommandReceiverProxy) AsBinder

func (p *CommandReceiverProxy) AsBinder() binder.IBinder

func (*CommandReceiverProxy) SendCommand

func (p *CommandReceiverProxy) SendCommand(
	ctx context.Context,
	command int32,
	seq int32,
	sourcePackage string,
	targetPackage string,
	flags int32,
	bundle os.Bundle,
) error

type CommandReceiverStub

type CommandReceiverStub struct {
	Impl      ICommandReceiver
	Transport binder.VersionAwareTransport
}

CommandReceiverStub dispatches incoming binder transactions to a typed ICommandReceiver implementation.

func (*CommandReceiverStub) Descriptor

func (s *CommandReceiverStub) Descriptor() string

func (*CommandReceiverStub) OnTransaction

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

type ICommandReceiver

type ICommandReceiver interface {
	AsBinder() binder.IBinder
	SendCommand(ctx context.Context, command int32, seq int32, sourcePackage string, targetPackage string, flags int32, bundle os.Bundle) error
}

func NewCommandReceiverStub

func NewCommandReceiverStub(
	impl ICommandReceiverServer,
) ICommandReceiver

NewCommandReceiverStub creates a server-side ICommandReceiver wrapping the given server implementation. The returned value satisfies ICommandReceiver 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 ICommandReceiverServer

type ICommandReceiverServer interface {
	SendCommand(ctx context.Context, command int32, seq int32, sourcePackage string, targetPackage string, flags int32, bundle os.Bundle) error
}

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

type ITimeReceiverCallback

type ITimeReceiverCallback interface {
	AsBinder() binder.IBinder
	SendTime(ctx context.Context, type_ string, timeNs int64) error
}

func NewTimeReceiverCallbackStub

func NewTimeReceiverCallbackStub(
	impl ITimeReceiverCallbackServer,
) ITimeReceiverCallback

NewTimeReceiverCallbackStub creates a server-side ITimeReceiverCallback wrapping the given server implementation. The returned value satisfies ITimeReceiverCallback 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 ITimeReceiverCallbackServer

type ITimeReceiverCallbackServer interface {
	SendTime(ctx context.Context, type_ string, timeNs int64) error
}

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

type TimeReceiverCallbackProxy

type TimeReceiverCallbackProxy struct {
	Remote binder.IBinder
}

func NewTimeReceiverCallbackProxy

func NewTimeReceiverCallbackProxy(
	remote binder.IBinder,
) *TimeReceiverCallbackProxy

func (*TimeReceiverCallbackProxy) AsBinder

func (*TimeReceiverCallbackProxy) SendTime

func (p *TimeReceiverCallbackProxy) SendTime(
	ctx context.Context,
	type_ string,
	timeNs int64,
) error

type TimeReceiverCallbackStub

type TimeReceiverCallbackStub struct {
	Impl      ITimeReceiverCallback
	Transport binder.VersionAwareTransport
}

TimeReceiverCallbackStub dispatches incoming binder transactions to a typed ITimeReceiverCallback implementation.

func (*TimeReceiverCallbackStub) Descriptor

func (s *TimeReceiverCallbackStub) Descriptor() string

func (*TimeReceiverCallbackStub) OnTransaction

func (s *TimeReceiverCallbackStub) 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