Documentation
¶
Index ¶
Constants ¶
const DescriptorICommandReceiver = "com.android.frameworks.perftests.am.util.ICommandReceiver"
const DescriptorITimeReceiverCallback = "com.android.frameworks.perftests.am.util.ITimeReceiverCallback"
const (
MethodICommandReceiverSendCommand = "sendCommand"
)
const (
MethodITimeReceiverCallbackSendTime = "sendTime"
)
const (
TransactionICommandReceiverSendCommand = binder.FirstCallTransaction + 0
)
const (
TransactionITimeReceiverCallbackSendTime = binder.FirstCallTransaction + 0
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CommandReceiverProxy ¶
func NewCommandReceiverProxy ¶
func NewCommandReceiverProxy( remote binder.IBinder, ) *CommandReceiverProxy
func (*CommandReceiverProxy) AsBinder ¶
func (p *CommandReceiverProxy) AsBinder() binder.IBinder
type CommandReceiverStub ¶
type CommandReceiverStub struct {
Impl ICommandReceiver
Transport binder.VersionAwareTransport
}
CommandReceiverStub dispatches incoming binder transactions to a typed ICommandReceiver implementation.
func (*CommandReceiverStub) Descriptor ¶
func (s *CommandReceiverStub) Descriptor() string
func (*CommandReceiverStub) OnTransaction ¶
func (s *CommandReceiverStub) OnTransaction( ctx context.Context, code binder.TransactionCode, _data *parcel.Parcel, ) (*parcel.Parcel, error)
type ICommandReceiver ¶
type ICommandReceiver interface {
AsBinder() binder.IBinder
SendCommand(ctx context.Context, command int32, seq int32, sourcePackage string, targetPackage string, flags int32, bundle os.Bundle) error
}
func NewCommandReceiverStub ¶
func NewCommandReceiverStub( impl ICommandReceiverServer, ) ICommandReceiver
NewCommandReceiverStub creates a server-side ICommandReceiver wrapping the given server implementation. The returned value satisfies ICommandReceiver 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 ICommandReceiverServer ¶
type ICommandReceiverServer interface {
SendCommand(ctx context.Context, command int32, seq int32, sourcePackage string, targetPackage string, flags int32, bundle os.Bundle) error
}
ICommandReceiverServer is the server-side interface that user implementations provide to NewCommandReceiverStub. It contains only the business methods, without AsBinder (which is provided by the stub itself).
type ITimeReceiverCallback ¶
type ITimeReceiverCallback interface {
AsBinder() binder.IBinder
SendTime(ctx context.Context, type_ string, timeNs int64) error
}
func NewTimeReceiverCallbackStub ¶
func NewTimeReceiverCallbackStub( impl ITimeReceiverCallbackServer, ) ITimeReceiverCallback
NewTimeReceiverCallbackStub creates a server-side ITimeReceiverCallback wrapping the given server implementation. The returned value satisfies ITimeReceiverCallback 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 ITimeReceiverCallbackServer ¶
type ITimeReceiverCallbackServer interface {
SendTime(ctx context.Context, type_ string, timeNs int64) error
}
ITimeReceiverCallbackServer is the server-side interface that user implementations provide to NewTimeReceiverCallbackStub. It contains only the business methods, without AsBinder (which is provided by the stub itself).
type TimeReceiverCallbackProxy ¶
func NewTimeReceiverCallbackProxy ¶
func NewTimeReceiverCallbackProxy( remote binder.IBinder, ) *TimeReceiverCallbackProxy
func (*TimeReceiverCallbackProxy) AsBinder ¶
func (p *TimeReceiverCallbackProxy) AsBinder() binder.IBinder
type TimeReceiverCallbackStub ¶
type TimeReceiverCallbackStub struct {
Impl ITimeReceiverCallback
Transport binder.VersionAwareTransport
}
TimeReceiverCallbackStub dispatches incoming binder transactions to a typed ITimeReceiverCallback implementation.
func (*TimeReceiverCallbackStub) Descriptor ¶
func (s *TimeReceiverCallbackStub) Descriptor() string
func (*TimeReceiverCallbackStub) OnTransaction ¶
func (s *TimeReceiverCallbackStub) OnTransaction( ctx context.Context, code binder.TransactionCode, _data *parcel.Parcel, ) (*parcel.Parcel, error)