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

infra

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

Documentation

Index

Constants

View Source
const DescriptorIAndroidFuture = "com.android.internal.infra.IAndroidFuture"
View Source
const (
	MethodIAndroidFutureComplete = "complete"
)
View Source
const (
	TransactionIAndroidFutureComplete = binder.FirstCallTransaction + 0
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AndroidFuture

type AndroidFuture struct {
	Done bool
}

func (*AndroidFuture) MarshalParcel

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

func (*AndroidFuture) UnmarshalParcel

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

type AndroidFutureProxy

type AndroidFutureProxy struct {
	Remote binder.IBinder
}

func NewAndroidFutureProxy

func NewAndroidFutureProxy(
	remote binder.IBinder,
) *AndroidFutureProxy

func (*AndroidFutureProxy) AsBinder

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

func (*AndroidFutureProxy) Complete

func (p *AndroidFutureProxy) Complete(
	ctx context.Context,
	resultContainer AndroidFuture,
) error

type AndroidFutureStub

type AndroidFutureStub struct {
	Impl      IAndroidFuture
	Transport binder.VersionAwareTransport
}

AndroidFutureStub dispatches incoming binder transactions to a typed IAndroidFuture implementation.

func (*AndroidFutureStub) Descriptor

func (s *AndroidFutureStub) Descriptor() string

func (*AndroidFutureStub) OnTransaction

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

type IAndroidFuture

type IAndroidFuture interface {
	AsBinder() binder.IBinder
	Complete(ctx context.Context, resultContainer AndroidFuture) error
}

func NewAndroidFutureStub

func NewAndroidFutureStub(
	impl IAndroidFutureServer,
) IAndroidFuture

NewAndroidFutureStub creates a server-side IAndroidFuture wrapping the given server implementation. The returned value satisfies IAndroidFuture 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 IAndroidFutureServer

type IAndroidFutureServer interface {
	Complete(ctx context.Context, resultContainer AndroidFuture) error
}

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