Documentation
¶
Index ¶
- Constants
- type IOverlayManager
- type IOverlayManagerServer
- type OverlayIdentifier
- type OverlayInfo
- type OverlayManagerProxy
- func (p *OverlayManagerProxy) AsBinder() binder.IBinder
- func (p *OverlayManagerProxy) Commit(ctx context.Context, transaction OverlayManagerTransaction) error
- func (p *OverlayManagerProxy) GetAllOverlays(ctx context.Context) (map[string][]OverlayInfo, error)
- func (p *OverlayManagerProxy) GetDefaultOverlayPackages(ctx context.Context) ([]string, error)
- func (p *OverlayManagerProxy) GetOverlayInfo(ctx context.Context, packageName string) (OverlayInfo, error)
- func (p *OverlayManagerProxy) GetOverlayInfoByIdentifier(ctx context.Context, packageName OverlayIdentifier) (OverlayInfo, error)
- func (p *OverlayManagerProxy) GetOverlayInfosForTarget(ctx context.Context, targetPackageName string) ([]OverlayInfo, error)
- func (p *OverlayManagerProxy) GetPartitionOrder(ctx context.Context) (string, error)
- func (p *OverlayManagerProxy) InvalidateCachesForOverlay(ctx context.Context, packageName string) error
- func (p *OverlayManagerProxy) IsDefaultPartitionOrder(ctx context.Context) (bool, error)
- func (p *OverlayManagerProxy) SetEnabled(ctx context.Context, packageName string, enable bool) (bool, error)
- func (p *OverlayManagerProxy) SetEnabledExclusive(ctx context.Context, packageName string, enable bool) (bool, error)
- func (p *OverlayManagerProxy) SetEnabledExclusiveInCategory(ctx context.Context, packageName string) (bool, error)
- func (p *OverlayManagerProxy) SetHighestPriority(ctx context.Context, packageName string) (bool, error)
- func (p *OverlayManagerProxy) SetLowestPriority(ctx context.Context, packageName string) (bool, error)
- func (p *OverlayManagerProxy) SetPriority(ctx context.Context, packageName string, newParentPackageName string) (bool, error)
- type OverlayManagerStub
- type OverlayManagerTransaction
Constants ¶
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 )
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" )
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 ¶
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 (*OverlayManagerProxy) SetEnabledExclusive ¶
func (*OverlayManagerProxy) SetEnabledExclusiveInCategory ¶
func (*OverlayManagerProxy) SetHighestPriority ¶
func (*OverlayManagerProxy) SetLowestPriority ¶
func (*OverlayManagerProxy) SetPriority ¶
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