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 ¶
func NewControlProxy ¶
func NewControlProxy( remote binder.IBinder, ) *ControlProxy
func (*ControlProxy) AsBinder ¶
func (p *ControlProxy) AsBinder() binder.IBinder
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 ¶
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 ¶
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).
Click to show internal directories.
Click to hide internal directories.