Documentation
¶
Index ¶
- Constants
- type DynamicSystemServiceProxy
- func (p *DynamicSystemServiceProxy) Abort(ctx context.Context) (bool, error)
- func (p *DynamicSystemServiceProxy) AsBinder() binder.IBinder
- func (p *DynamicSystemServiceProxy) ClosePartition(ctx context.Context) (bool, error)
- func (p *DynamicSystemServiceProxy) CreatePartition(ctx context.Context, name string, size int64, readOnly bool) (int32, error)
- func (p *DynamicSystemServiceProxy) FinishInstallation(ctx context.Context) (bool, error)
- func (p *DynamicSystemServiceProxy) GetActiveDsuSlot(ctx context.Context) (string, error)
- func (p *DynamicSystemServiceProxy) GetAvbPublicKey(ctx context.Context, dst any) (bool, error)
- func (p *DynamicSystemServiceProxy) GetInstallationProgress(ctx context.Context) (any, error)
- func (p *DynamicSystemServiceProxy) IsEnabled(ctx context.Context) (bool, error)
- func (p *DynamicSystemServiceProxy) IsInUse(ctx context.Context) (bool, error)
- func (p *DynamicSystemServiceProxy) IsInstalled(ctx context.Context) (bool, error)
- func (p *DynamicSystemServiceProxy) Remove(ctx context.Context) (bool, error)
- func (p *DynamicSystemServiceProxy) SetAshmem(ctx context.Context, fd int32, size int64) (bool, error)
- func (p *DynamicSystemServiceProxy) SetEnable(ctx context.Context, enable bool, oneShot bool) (bool, error)
- func (p *DynamicSystemServiceProxy) StartInstallation(ctx context.Context, dsuSlot string) (bool, error)
- func (p *DynamicSystemServiceProxy) SubmitFromAshmem(ctx context.Context, bytes int64) (bool, error)
- func (p *DynamicSystemServiceProxy) SuggestScratchSize(ctx context.Context) (int64, error)
- type DynamicSystemServiceStub
- type IDynamicSystemService
- type IDynamicSystemServiceServer
Constants ¶
const ( TransactionIDynamicSystemServiceStartInstallation = binder.FirstCallTransaction + 0 TransactionIDynamicSystemServiceCreatePartition = binder.FirstCallTransaction + 1 TransactionIDynamicSystemServiceClosePartition = binder.FirstCallTransaction + 2 TransactionIDynamicSystemServiceFinishInstallation = binder.FirstCallTransaction + 3 TransactionIDynamicSystemServiceGetInstallationProgress = binder.FirstCallTransaction + 4 TransactionIDynamicSystemServiceAbort = binder.FirstCallTransaction + 5 TransactionIDynamicSystemServiceIsInUse = binder.FirstCallTransaction + 6 TransactionIDynamicSystemServiceIsInstalled = binder.FirstCallTransaction + 7 TransactionIDynamicSystemServiceIsEnabled = binder.FirstCallTransaction + 8 TransactionIDynamicSystemServiceRemove = binder.FirstCallTransaction + 9 TransactionIDynamicSystemServiceSetEnable = binder.FirstCallTransaction + 10 TransactionIDynamicSystemServiceSetAshmem = binder.FirstCallTransaction + 11 TransactionIDynamicSystemServiceSubmitFromAshmem = binder.FirstCallTransaction + 12 TransactionIDynamicSystemServiceGetAvbPublicKey = binder.FirstCallTransaction + 13 TransactionIDynamicSystemServiceSuggestScratchSize = binder.FirstCallTransaction + 14 TransactionIDynamicSystemServiceGetActiveDsuSlot = binder.FirstCallTransaction + 15 )
const ( MethodIDynamicSystemServiceStartInstallation = "startInstallation" MethodIDynamicSystemServiceCreatePartition = "createPartition" MethodIDynamicSystemServiceClosePartition = "closePartition" MethodIDynamicSystemServiceFinishInstallation = "finishInstallation" MethodIDynamicSystemServiceGetInstallationProgress = "getInstallationProgress" MethodIDynamicSystemServiceAbort = "abort" MethodIDynamicSystemServiceIsInUse = "isInUse" MethodIDynamicSystemServiceIsInstalled = "isInstalled" MethodIDynamicSystemServiceIsEnabled = "isEnabled" MethodIDynamicSystemServiceRemove = "remove" MethodIDynamicSystemServiceSetEnable = "setEnable" MethodIDynamicSystemServiceSetAshmem = "setAshmem" MethodIDynamicSystemServiceSubmitFromAshmem = "submitFromAshmem" MethodIDynamicSystemServiceGetAvbPublicKey = "getAvbPublicKey" MethodIDynamicSystemServiceSuggestScratchSize = "suggestScratchSize" MethodIDynamicSystemServiceGetActiveDsuSlot = "getActiveDsuSlot" )
const DescriptorIDynamicSystemService = "android.os.image.IDynamicSystemService"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DynamicSystemServiceProxy ¶
func GetDynamicSystemService ¶
func GetDynamicSystemService( ctx context.Context, sm *servicemanager.ServiceManager, ) (*DynamicSystemServiceProxy, error)
GetDynamicSystemService retrieves the DynamicSystemService service and returns a typed proxy.
func NewDynamicSystemServiceProxy ¶
func NewDynamicSystemServiceProxy( remote binder.IBinder, ) *DynamicSystemServiceProxy
func (*DynamicSystemServiceProxy) Abort ¶
func (p *DynamicSystemServiceProxy) Abort( ctx context.Context, ) (bool, error)
func (*DynamicSystemServiceProxy) AsBinder ¶
func (p *DynamicSystemServiceProxy) AsBinder() binder.IBinder
func (*DynamicSystemServiceProxy) ClosePartition ¶
func (p *DynamicSystemServiceProxy) ClosePartition( ctx context.Context, ) (bool, error)
func (*DynamicSystemServiceProxy) CreatePartition ¶
func (*DynamicSystemServiceProxy) FinishInstallation ¶
func (p *DynamicSystemServiceProxy) FinishInstallation( ctx context.Context, ) (bool, error)
func (*DynamicSystemServiceProxy) GetActiveDsuSlot ¶
func (p *DynamicSystemServiceProxy) GetActiveDsuSlot( ctx context.Context, ) (string, error)
func (*DynamicSystemServiceProxy) GetAvbPublicKey ¶
func (*DynamicSystemServiceProxy) GetInstallationProgress ¶
func (p *DynamicSystemServiceProxy) GetInstallationProgress( ctx context.Context, ) (any, error)
func (*DynamicSystemServiceProxy) IsEnabled ¶
func (p *DynamicSystemServiceProxy) IsEnabled( ctx context.Context, ) (bool, error)
func (*DynamicSystemServiceProxy) IsInUse ¶
func (p *DynamicSystemServiceProxy) IsInUse( ctx context.Context, ) (bool, error)
func (*DynamicSystemServiceProxy) IsInstalled ¶
func (p *DynamicSystemServiceProxy) IsInstalled( ctx context.Context, ) (bool, error)
func (*DynamicSystemServiceProxy) Remove ¶
func (p *DynamicSystemServiceProxy) Remove( ctx context.Context, ) (bool, error)
func (*DynamicSystemServiceProxy) StartInstallation ¶
func (*DynamicSystemServiceProxy) SubmitFromAshmem ¶
func (*DynamicSystemServiceProxy) SuggestScratchSize ¶
func (p *DynamicSystemServiceProxy) SuggestScratchSize( ctx context.Context, ) (int64, error)
type DynamicSystemServiceStub ¶
type DynamicSystemServiceStub struct {
Impl IDynamicSystemService
Transport binder.VersionAwareTransport
}
DynamicSystemServiceStub dispatches incoming binder transactions to a typed IDynamicSystemService implementation.
func (*DynamicSystemServiceStub) Descriptor ¶
func (s *DynamicSystemServiceStub) Descriptor() string
func (*DynamicSystemServiceStub) OnTransaction ¶
func (s *DynamicSystemServiceStub) OnTransaction( ctx context.Context, code binder.TransactionCode, _data *parcel.Parcel, ) (*parcel.Parcel, error)
type IDynamicSystemService ¶
type IDynamicSystemService interface {
AsBinder() binder.IBinder
StartInstallation(ctx context.Context, dsuSlot string) (bool, error)
CreatePartition(ctx context.Context, name string, size int64, readOnly bool) (int32, error)
ClosePartition(ctx context.Context) (bool, error)
FinishInstallation(ctx context.Context) (bool, error)
GetInstallationProgress(ctx context.Context) (any, error)
Abort(ctx context.Context) (bool, error)
IsInUse(ctx context.Context) (bool, error)
IsInstalled(ctx context.Context) (bool, error)
IsEnabled(ctx context.Context) (bool, error)
Remove(ctx context.Context) (bool, error)
SetEnable(ctx context.Context, enable bool, oneShot bool) (bool, error)
SetAshmem(ctx context.Context, fd int32, size int64) (bool, error)
SubmitFromAshmem(ctx context.Context, bytes int64) (bool, error)
GetAvbPublicKey(ctx context.Context, dst any) (bool, error)
SuggestScratchSize(ctx context.Context) (int64, error)
GetActiveDsuSlot(ctx context.Context) (string, error)
}
func NewDynamicSystemServiceStub ¶
func NewDynamicSystemServiceStub( impl IDynamicSystemServiceServer, ) IDynamicSystemService
NewDynamicSystemServiceStub creates a server-side IDynamicSystemService wrapping the given server implementation. The returned value satisfies IDynamicSystemService 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 IDynamicSystemServiceServer ¶
type IDynamicSystemServiceServer interface {
StartInstallation(ctx context.Context, dsuSlot string) (bool, error)
CreatePartition(ctx context.Context, name string, size int64, readOnly bool) (int32, error)
ClosePartition(ctx context.Context) (bool, error)
FinishInstallation(ctx context.Context) (bool, error)
GetInstallationProgress(ctx context.Context) (any, error)
Abort(ctx context.Context) (bool, error)
IsInUse(ctx context.Context) (bool, error)
IsInstalled(ctx context.Context) (bool, error)
IsEnabled(ctx context.Context) (bool, error)
Remove(ctx context.Context) (bool, error)
SetEnable(ctx context.Context, enable bool, oneShot bool) (bool, error)
SetAshmem(ctx context.Context, fd int32, size int64) (bool, error)
SubmitFromAshmem(ctx context.Context, bytes int64) (bool, error)
GetAvbPublicKey(ctx context.Context, dst any) (bool, error)
SuggestScratchSize(ctx context.Context) (int64, error)
GetActiveDsuSlot(ctx context.Context) (string, error)
}
IDynamicSystemServiceServer is the server-side interface that user implementations provide to NewDynamicSystemServiceStub. It contains only the business methods, without AsBinder (which is provided by the stub itself).