tare

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 DescriptorIEconomyManager = "android.app.tare.IEconomyManager"
View Source
const (
	MethodIEconomyManagerGetEnabledMode = "getEnabledMode"
)
View Source
const (
	TransactionIEconomyManagerGetEnabledMode = binder.FirstCallTransaction + 0
)

Variables

This section is empty.

Functions

This section is empty.

Types

type EconomyManagerProxy

type EconomyManagerProxy struct {
	Remote binder.IBinder
}

func NewEconomyManagerProxy

func NewEconomyManagerProxy(
	remote binder.IBinder,
) *EconomyManagerProxy

func (*EconomyManagerProxy) AsBinder

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

func (*EconomyManagerProxy) GetEnabledMode

func (p *EconomyManagerProxy) GetEnabledMode(
	ctx context.Context,
) (int32, error)

type EconomyManagerStub

type EconomyManagerStub struct {
	Impl      IEconomyManager
	Transport binder.VersionAwareTransport
}

EconomyManagerStub dispatches incoming binder transactions to a typed IEconomyManager implementation.

func (*EconomyManagerStub) Descriptor

func (s *EconomyManagerStub) Descriptor() string

func (*EconomyManagerStub) OnTransaction

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

type IEconomyManager

type IEconomyManager interface {
	AsBinder() binder.IBinder
	GetEnabledMode(ctx context.Context) (int32, error)
}

func NewEconomyManagerStub

func NewEconomyManagerStub(
	impl IEconomyManagerServer,
) IEconomyManager

NewEconomyManagerStub creates a server-side IEconomyManager wrapping the given server implementation. The returned value satisfies IEconomyManager 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 IEconomyManagerServer

type IEconomyManagerServer interface {
	GetEnabledMode(ctx context.Context) (int32, error)
}

IEconomyManagerServer is the server-side interface that user implementations provide to NewEconomyManagerStub. 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