Versions in this module Expand all Collapse all v0 v0.0.6 Mar 22, 2026 Changes in this version + func ReadStatus(p *parcel.Parcel) error + func WriteBinderToParcel(ctx context.Context, p *parcel.Parcel, b IBinder, transport Transport) + func WriteStatus(p *parcel.Parcel, err error) + type CallerIdentity struct + AttributionTag string + PID int32 + PackageName string + UID int32 + UserID int32 + func DefaultCallerIdentity() CallerIdentity + type Config struct + MapSize uint32 + MaxThreads uint32 + func DefaultConfig() Config + type DeathRecipient interface + BinderDied func() + type IBinder interface + Cookie func() uintptr + Handle func() uint32 + Identity func() CallerIdentity + IsAlive func(ctx context.Context) bool + LinkToDeath func(ctx context.Context, recipient DeathRecipient) (_err error) + ResolveCode func(ctx context.Context, descriptor string, method string) (TransactionCode, error) + Transact func(ctx context.Context, code TransactionCode, flags TransactionFlags, ...) (_reply *parcel.Parcel, _err error) + Transport func() VersionAwareTransport + UnlinkToDeath func(ctx context.Context, recipient DeathRecipient) (_err error) + type Option interface + func WithMapSize(n uint32) Option + func WithMaxThreads(n uint32) Option + type Options []Option + func (opts Options) Config() Config + type ProxyBinder struct + func NewProxyBinder(transport VersionAwareTransport, identity CallerIdentity, handle uint32) *ProxyBinder + func (b *ProxyBinder) Cookie() uintptr + func (b *ProxyBinder) Handle() uint32 + func (b *ProxyBinder) Identity() CallerIdentity + func (b *ProxyBinder) IsAlive(ctx context.Context) bool + func (b *ProxyBinder) LinkToDeath(ctx context.Context, recipient DeathRecipient) (_err error) + func (b *ProxyBinder) ResolveCode(ctx context.Context, descriptor string, method string) (TransactionCode, error) + func (b *ProxyBinder) Transact(ctx context.Context, code TransactionCode, flags TransactionFlags, ...) (_reply *parcel.Parcel, _err error) + func (b *ProxyBinder) Transport() VersionAwareTransport + func (b *ProxyBinder) UnlinkToDeath(ctx context.Context, recipient DeathRecipient) (_err error) + type StubBinder struct + Receiver TransactionReceiver + func NewStubBinder(receiver TransactionReceiver) *StubBinder + func (s *StubBinder) BinderPtr() uintptr + func (s *StubBinder) Cookie() uintptr + func (s *StubBinder) Handle() uint32 + func (s *StubBinder) Identity() CallerIdentity + func (s *StubBinder) IsAlive(_ context.Context) bool + func (s *StubBinder) LinkToDeath(_ context.Context, _ DeathRecipient) error + func (s *StubBinder) RegisterWithTransport(ctx context.Context, t Transport) uintptr + func (s *StubBinder) ResolveCode(_ context.Context, _ string, _ string) (TransactionCode, error) + func (s *StubBinder) Transact(_ context.Context, _ TransactionCode, _ TransactionFlags, _ *parcel.Parcel) (*parcel.Parcel, error) + func (s *StubBinder) Transport() VersionAwareTransport + func (s *StubBinder) UnlinkToDeath(_ context.Context, _ DeathRecipient) error + type TransactionCode uint32 + const DumpTransaction + const FirstCallTransaction + const InterfaceTransaction + const LastCallTransaction + const PingTransaction + const ShellTransaction + const SyspropsTransaction + type TransactionFlags uint32 + const FlagAcceptFDs + const FlagClearBuf + const FlagCollectNotedAppOps + const FlagOneway + const FlagPrivateVendor + type TransactionReceiver interface + Descriptor func() string + OnTransaction func(ctx context.Context, code TransactionCode, data *parcel.Parcel) (*parcel.Parcel, error) + type Transport interface + AcquireHandle func(ctx context.Context, handle uint32) (_err error) + ClearDeathNotification func(ctx context.Context, handle uint32, recipient DeathRecipient) (_err error) + Close func(ctx context.Context) (_err error) + RegisterReceiver func(ctx context.Context, receiver TransactionReceiver) uintptr + ReleaseHandle func(ctx context.Context, handle uint32) (_err error) + RequestDeathNotification func(ctx context.Context, handle uint32, recipient DeathRecipient) (_err error) + Transact func(ctx context.Context, handle uint32, code TransactionCode, ...) (_reply *parcel.Parcel, _err error) + type VersionAwareTransport interface + ResolveCode func(ctx context.Context, descriptor string, method string) (TransactionCode, error)