Documentation
¶
Index ¶
Constants ¶
View Source
const DescriptorITestService = "fuzztest.ITestService"
View Source
const (
MethodITestServiceRepeatData = "repeatData"
)
View Source
const (
TransactionITestServiceRepeatData = binder.FirstCallTransaction + 0
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ITestService ¶
type ITestService interface {
AsBinder() binder.IBinder
RepeatData(ctx context.Context, token bool) (bool, error)
}
func NewTestServiceStub ¶
func NewTestServiceStub( impl ITestServiceServer, ) ITestService
NewTestServiceStub creates a server-side ITestService wrapping the given server implementation. The returned value satisfies ITestService 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 ITestServiceServer ¶
ITestServiceServer is the server-side interface that user implementations provide to NewTestServiceStub. It contains only the business methods, without AsBinder (which is provided by the stub itself).
type TestServiceProxy ¶
func NewTestServiceProxy ¶
func NewTestServiceProxy( remote binder.IBinder, ) *TestServiceProxy
func (*TestServiceProxy) AsBinder ¶
func (p *TestServiceProxy) AsBinder() binder.IBinder
func (*TestServiceProxy) RepeatData ¶
type TestServiceStub ¶
type TestServiceStub struct {
Impl ITestService
Transport binder.VersionAwareTransport
}
TestServiceStub dispatches incoming binder transactions to a typed ITestService implementation.
func (*TestServiceStub) Descriptor ¶
func (s *TestServiceStub) Descriptor() string
func (*TestServiceStub) OnTransaction ¶
func (s *TestServiceStub) OnTransaction( ctx context.Context, code binder.TransactionCode, _data *parcel.Parcel, ) (*parcel.Parcel, error)
Click to show internal directories.
Click to hide internal directories.