test

package
v0.0.6 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: 4 Imported by: 0

Documentation

Index

Constants

View Source
const DescriptorIControl = "android.binderdebug.test.IControl"
View Source
const (
	MethodIControlContinue = "Continue"
)
View Source
const (
	TransactionIControlContinue = binder.FirstCallTransaction + 0
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ControlProxy

type ControlProxy struct {
	Remote binder.IBinder
}

func NewControlProxy

func NewControlProxy(
	remote binder.IBinder,
) *ControlProxy

func (*ControlProxy) AsBinder

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

func (*ControlProxy) Continue

func (p *ControlProxy) Continue(
	ctx context.Context,
) error

type ControlStub

type ControlStub struct {
	Impl      IControl
	Transport binder.VersionAwareTransport
}

ControlStub dispatches incoming binder transactions to a typed IControl implementation.

func (*ControlStub) Descriptor

func (s *ControlStub) Descriptor() string

func (*ControlStub) OnTransaction

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

type IControl

type IControl interface {
	AsBinder() binder.IBinder
	Continue(ctx context.Context) error
}

func NewControlStub

func NewControlStub(
	impl IControlServer,
) IControl

NewControlStub creates a server-side IControl wrapping the given server implementation. The returned value satisfies IControl 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 IControlServer

type IControlServer interface {
	Continue(ctx context.Context) error
}

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