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 ¶
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).
Click to show internal directories.
Click to hide internal directories.