integration_tests

package
v0.0.7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 28, 2026 License: CC0-1.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const DescriptorIFoo = "com.google.android.lint.integration_tests.IFoo"
View Source
const (
	MethodIFooMethod = "Method"
)
View Source
const (
	TransactionIFooMethod = binder.FirstCallTransaction + 0
)

Variables

This section is empty.

Functions

This section is empty.

Types

type FooProxy

type FooProxy struct {
	Remote binder.IBinder
}

func NewFooProxy

func NewFooProxy(
	remote binder.IBinder,
) *FooProxy

func (*FooProxy) AsBinder

func (p *FooProxy) AsBinder() binder.IBinder

func (*FooProxy) Method

func (p *FooProxy) Method(
	ctx context.Context,
) error

type FooStub

type FooStub struct {
	Impl      IFoo
	Transport binder.VersionAwareTransport
}

FooStub dispatches incoming binder transactions to a typed IFoo implementation.

func (*FooStub) Descriptor

func (s *FooStub) Descriptor() string

func (*FooStub) OnTransaction

func (s *FooStub) OnTransaction(
	ctx context.Context,
	code binder.TransactionCode,
	_data *parcel.Parcel,
) (*parcel.Parcel, error)

type IFoo

type IFoo interface {
	AsBinder() binder.IBinder
	Method(ctx context.Context) error
}

func NewFooStub

func NewFooStub(
	impl IFooServer,
) IFoo

NewFooStub creates a server-side IFoo wrapping the given server implementation. The returned value satisfies IFoo 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 IFooServer

type IFooServer interface {
	Method(ctx context.Context) error
}

IFooServer is the server-side interface that user implementations provide to NewFooStub. It contains only the business methods, without AsBinder (which is provided by the stub itself).

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL