om

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: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TransactionIOverlayManagerGetAllOverlays                = binder.FirstCallTransaction + 0
	TransactionIOverlayManagerGetOverlayInfosForTarget      = binder.FirstCallTransaction + 1
	TransactionIOverlayManagerGetOverlayInfo                = binder.FirstCallTransaction + 2
	TransactionIOverlayManagerGetOverlayInfoByIdentifier    = binder.FirstCallTransaction + 3
	TransactionIOverlayManagerSetEnabled                    = binder.FirstCallTransaction + 4
	TransactionIOverlayManagerSetEnabledExclusive           = binder.FirstCallTransaction + 5
	TransactionIOverlayManagerSetEnabledExclusiveInCategory = binder.FirstCallTransaction + 6
	TransactionIOverlayManagerSetPriority                   = binder.FirstCallTransaction + 7
	TransactionIOverlayManagerSetHighestPriority            = binder.FirstCallTransaction + 8
	TransactionIOverlayManagerSetLowestPriority             = binder.FirstCallTransaction + 9
	TransactionIOverlayManagerGetDefaultOverlayPackages     = binder.FirstCallTransaction + 10
	TransactionIOverlayManagerInvalidateCachesForOverlay    = binder.FirstCallTransaction + 11
	TransactionIOverlayManagerCommit                        = binder.FirstCallTransaction + 12
	TransactionIOverlayManagerGetPartitionOrder             = binder.FirstCallTransaction + 13
	TransactionIOverlayManagerIsDefaultPartitionOrder       = binder.FirstCallTransaction + 14
)
View Source
const (
	MethodIOverlayManagerGetAllOverlays                = "getAllOverlays"
	MethodIOverlayManagerGetOverlayInfosForTarget      = "getOverlayInfosForTarget"
	MethodIOverlayManagerGetOverlayInfo                = "getOverlayInfo"
	MethodIOverlayManagerGetOverlayInfoByIdentifier    = "getOverlayInfoByIdentifier"
	MethodIOverlayManagerSetEnabled                    = "setEnabled"
	MethodIOverlayManagerSetEnabledExclusive           = "setEnabledExclusive"
	MethodIOverlayManagerSetEnabledExclusiveInCategory = "setEnabledExclusiveInCategory"
	MethodIOverlayManagerSetPriority                   = "setPriority"
	MethodIOverlayManagerSetHighestPriority            = "setHighestPriority"
	MethodIOverlayManagerSetLowestPriority             = "setLowestPriority"
	MethodIOverlayManagerGetDefaultOverlayPackages     = "getDefaultOverlayPackages"
	MethodIOverlayManagerInvalidateCachesForOverlay    = "invalidateCachesForOverlay"
	MethodIOverlayManagerCommit                        = "commit"
	MethodIOverlayManagerGetPartitionOrder             = "getPartitionOrder"
	MethodIOverlayManagerIsDefaultPartitionOrder       = "isDefaultPartitionOrder"
)
View Source
const DescriptorIOverlayManager = "android.content.om.IOverlayManager"

Variables

This section is empty.

Functions

This section is empty.

Types

type IOverlayManager

type IOverlayManager interface {
	AsBinder() binder.IBinder
	GetAllOverlays(ctx context.Context) (map[string][]OverlayInfo, error)
	GetOverlayInfosForTarget(ctx context.Context, targetPackageName string) ([]OverlayInfo, error)
	GetOverlayInfo(ctx context.Context, packageName string) (OverlayInfo, error)
	GetOverlayInfoByIdentifier(ctx context.Context, packageName OverlayIdentifier) (OverlayInfo, error)
	SetEnabled(ctx context.Context, packageName string, enable bool) (bool, error)
	SetEnabledExclusive(ctx context.Context, packageName string, enable bool) (bool, error)
	SetEnabledExclusiveInCategory(ctx context.Context, packageName string) (bool, error)
	SetPriority(ctx context.Context, packageName string, newParentPackageName string) (bool, error)
	SetHighestPriority(ctx context.Context, packageName string) (bool, error)
	SetLowestPriority(ctx context.Context, packageName string) (bool, error)
	GetDefaultOverlayPackages(ctx context.Context) ([]string, error)
	InvalidateCachesForOverlay(ctx context.Context, packageName string) error
	Commit(ctx context.Context, transaction OverlayManagerTransaction) error
	GetPartitionOrder(ctx context.Context) (string, error)
	IsDefaultPartitionOrder(ctx context.Context) (bool, error)
}

func NewOverlayManagerStub

func NewOverlayManagerStub(
	impl IOverlayManagerServer,
) IOverlayManager

NewOverlayManagerStub creates a server-side IOverlayManager wrapping the given server implementation. The returned value satisfies IOverlayManager 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 IOverlayManagerServer

type IOverlayManagerServer interface {
	GetAllOverlays(ctx context.Context) (map[string][]OverlayInfo, error)
	GetOverlayInfosForTarget(ctx context.Context, targetPackageName string) ([]OverlayInfo, error)
	GetOverlayInfo(ctx context.Context, packageName string) (OverlayInfo, error)
	GetOverlayInfoByIdentifier(ctx context.Context, packageName OverlayIdentifier) (OverlayInfo, error)
	SetEnabled(ctx context.Context, packageName string, enable bool) (bool, error)
	SetEnabledExclusive(ctx context.Context, packageName string, enable bool) (bool, error)
	SetEnabledExclusiveInCategory(ctx context.Context, packageName string) (bool, error)
	SetPriority(ctx context.Context, packageName string, newParentPackageName string) (bool, error)
	SetHighestPriority(ctx context.Context, packageName string) (bool, error)
	SetLowestPriority(ctx context.Context, packageName string) (bool, error)
	GetDefaultOverlayPackages(ctx context.Context) ([]string, error)
	InvalidateCachesForOverlay(ctx context.Context, packageName string) error
	Commit(ctx context.Context, transaction OverlayManagerTransaction) error
	GetPartitionOrder(ctx context.Context) (string, error)
	IsDefaultPartitionOrder(ctx context.Context) (bool, error)
}

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

type OverlayIdentifier

type OverlayIdentifier struct {
	Flg int32
}

func (*OverlayIdentifier) MarshalParcel

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

func (*OverlayIdentifier) UnmarshalParcel

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

type OverlayInfo

type OverlayInfo struct {
	PackageName           string
	OverlayName           string
	TargetPackageName     string
	TargetOverlayableName string
	Category              string
	BaseCodePath          string
	State                 int32
	UserId                int32
	Priority              int32
	IsMutable             bool
	IsFabricated          bool
}

func (*OverlayInfo) MarshalParcel

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

func (*OverlayInfo) UnmarshalParcel

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

type OverlayManagerProxy

type OverlayManagerProxy struct {
	Remote binder.IBinder
}

func GetOverlayManager

func GetOverlayManager(
	ctx context.Context,
	sm *servicemanager.ServiceManager,
) (*OverlayManagerProxy, error)

GetOverlayManager retrieves the OverlayService service and returns a typed proxy.

func NewOverlayManagerProxy

func NewOverlayManagerProxy(
	remote binder.IBinder,
) *OverlayManagerProxy

func (*OverlayManagerProxy) AsBinder

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

func (*OverlayManagerProxy) Commit

func (p *OverlayManagerProxy) Commit(
	ctx context.Context,
	transaction OverlayManagerTransaction,
) error

func (*OverlayManagerProxy) GetAllOverlays

func (p *OverlayManagerProxy) GetAllOverlays(
	ctx context.Context,
) (map[string][]OverlayInfo, error)

func (*OverlayManagerProxy) GetDefaultOverlayPackages

func (p *OverlayManagerProxy) GetDefaultOverlayPackages(
	ctx context.Context,
) ([]string, error)

func (*OverlayManagerProxy) GetOverlayInfo

func (p *OverlayManagerProxy) GetOverlayInfo(
	ctx context.Context,
	packageName string,
) (OverlayInfo, error)

func (*OverlayManagerProxy) GetOverlayInfoByIdentifier

func (p *OverlayManagerProxy) GetOverlayInfoByIdentifier(
	ctx context.Context,
	packageName OverlayIdentifier,
) (OverlayInfo, error)

func (*OverlayManagerProxy) GetOverlayInfosForTarget

func (p *OverlayManagerProxy) GetOverlayInfosForTarget(
	ctx context.Context,
	targetPackageName string,
) ([]OverlayInfo, error)

func (*OverlayManagerProxy) GetPartitionOrder

func (p *OverlayManagerProxy) GetPartitionOrder(
	ctx context.Context,
) (string, error)

func (*OverlayManagerProxy) InvalidateCachesForOverlay

func (p *OverlayManagerProxy) InvalidateCachesForOverlay(
	ctx context.Context,
	packageName string,
) error

func (*OverlayManagerProxy) IsDefaultPartitionOrder

func (p *OverlayManagerProxy) IsDefaultPartitionOrder(
	ctx context.Context,
) (bool, error)

func (*OverlayManagerProxy) SetEnabled

func (p *OverlayManagerProxy) SetEnabled(
	ctx context.Context,
	packageName string,
	enable bool,
) (bool, error)

func (*OverlayManagerProxy) SetEnabledExclusive

func (p *OverlayManagerProxy) SetEnabledExclusive(
	ctx context.Context,
	packageName string,
	enable bool,
) (bool, error)

func (*OverlayManagerProxy) SetEnabledExclusiveInCategory

func (p *OverlayManagerProxy) SetEnabledExclusiveInCategory(
	ctx context.Context,
	packageName string,
) (bool, error)

func (*OverlayManagerProxy) SetHighestPriority

func (p *OverlayManagerProxy) SetHighestPriority(
	ctx context.Context,
	packageName string,
) (bool, error)

func (*OverlayManagerProxy) SetLowestPriority

func (p *OverlayManagerProxy) SetLowestPriority(
	ctx context.Context,
	packageName string,
) (bool, error)

func (*OverlayManagerProxy) SetPriority

func (p *OverlayManagerProxy) SetPriority(
	ctx context.Context,
	packageName string,
	newParentPackageName string,
) (bool, error)

type OverlayManagerStub

type OverlayManagerStub struct {
	Impl      IOverlayManager
	Transport binder.VersionAwareTransport
}

OverlayManagerStub dispatches incoming binder transactions to a typed IOverlayManager implementation.

func (*OverlayManagerStub) Descriptor

func (s *OverlayManagerStub) Descriptor() string

func (*OverlayManagerStub) OnTransaction

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

type OverlayManagerTransaction

type OverlayManagerTransaction struct {
	Size int32
}

func (*OverlayManagerTransaction) MarshalParcel

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

func (*OverlayManagerTransaction) UnmarshalParcel

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

Jump to

Keyboard shortcuts

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