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

onehanded

package
v0.0.8 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	TransactionIOneHandedStartOneHanded = binder.FirstCallTransaction + 0
	TransactionIOneHandedStopOneHanded  = binder.FirstCallTransaction + 1
)
View Source
const (
	MethodIOneHandedStartOneHanded = "startOneHanded"
	MethodIOneHandedStopOneHanded  = "stopOneHanded"
)
View Source
const DescriptorIOneHanded = "com.android.wm.shell.onehanded.IOneHanded"

Variables

This section is empty.

Functions

This section is empty.

Types

type IOneHanded

type IOneHanded interface {
	AsBinder() binder.IBinder
	StartOneHanded(ctx context.Context) error
	StopOneHanded(ctx context.Context) error
}

func NewOneHandedStub

func NewOneHandedStub(
	impl IOneHandedServer,
) IOneHanded

NewOneHandedStub creates a server-side IOneHanded wrapping the given server implementation. The returned value satisfies IOneHanded 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 IOneHandedServer

type IOneHandedServer interface {
	StartOneHanded(ctx context.Context) error
	StopOneHanded(ctx context.Context) error
}

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

type OneHandedProxy

type OneHandedProxy struct {
	Remote binder.IBinder
}

func NewOneHandedProxy

func NewOneHandedProxy(
	remote binder.IBinder,
) *OneHandedProxy

func (*OneHandedProxy) AsBinder

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

func (*OneHandedProxy) StartOneHanded

func (p *OneHandedProxy) StartOneHanded(
	ctx context.Context,
) error

func (*OneHandedProxy) StopOneHanded

func (p *OneHandedProxy) StopOneHanded(
	ctx context.Context,
) error

type OneHandedStub

type OneHandedStub struct {
	Impl      IOneHanded
	Transport binder.VersionAwareTransport
}

OneHandedStub dispatches incoming binder transactions to a typed IOneHanded implementation.

func (*OneHandedStub) Descriptor

func (s *OneHandedStub) Descriptor() string

func (*OneHandedStub) OnTransaction

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