pinner

package
v0.0.6 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const DescriptorIPinnerService = "android.app.pinner.IPinnerService"
View Source
const (
	MethodIPinnerServiceGetPinnerStats = "getPinnerStats"
)
View Source
const (
	TransactionIPinnerServiceGetPinnerStats = binder.FirstCallTransaction + 0
)

Variables

This section is empty.

Functions

This section is empty.

Types

type IPinnerService

type IPinnerService interface {
	AsBinder() binder.IBinder
	GetPinnerStats(ctx context.Context) ([]PinnedFileStat, error)
}

func NewPinnerServiceStub

func NewPinnerServiceStub(
	impl IPinnerServiceServer,
) IPinnerService

NewPinnerServiceStub creates a server-side IPinnerService wrapping the given server implementation. The returned value satisfies IPinnerService 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 IPinnerServiceServer

type IPinnerServiceServer interface {
	GetPinnerStats(ctx context.Context) ([]PinnedFileStat, error)
}

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

type PinnedFileStat

type PinnedFileStat struct {
	Filename    string
	BytesPinned int64
	GroupName   string
}

func (*PinnedFileStat) MarshalParcel

func (s *PinnedFileStat) MarshalParcel(
	p *parcel.Parcel,
) error

func (*PinnedFileStat) UnmarshalParcel

func (s *PinnedFileStat) UnmarshalParcel(
	p *parcel.Parcel,
) error

type PinnerServiceProxy

type PinnerServiceProxy struct {
	Remote binder.IBinder
}

func NewPinnerServiceProxy

func NewPinnerServiceProxy(
	remote binder.IBinder,
) *PinnerServiceProxy

func (*PinnerServiceProxy) AsBinder

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

func (*PinnerServiceProxy) GetPinnerStats

func (p *PinnerServiceProxy) GetPinnerStats(
	ctx context.Context,
) ([]PinnedFileStat, error)

type PinnerServiceStub

type PinnerServiceStub struct {
	Impl      IPinnerService
	Transport binder.VersionAwareTransport
}

PinnerServiceStub dispatches incoming binder transactions to a typed IPinnerService implementation.

func (*PinnerServiceStub) Descriptor

func (s *PinnerServiceStub) Descriptor() string

func (*PinnerServiceStub) OnTransaction

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

Jump to

Keyboard shortcuts

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