Documentation
¶
Index ¶
Constants ¶
View Source
const ( TransactionIRebootEscrowStoreKey = binder.FirstCallTransaction + 0 TransactionIRebootEscrowRetrieveKey = binder.FirstCallTransaction + 1 )
View Source
const ( MethodIRebootEscrowStoreKey = "storeKey" MethodIRebootEscrowRetrieveKey = "retrieveKey" )
View Source
const DescriptorIRebootEscrow = "android.hardware.rebootescrow.IRebootEscrow"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IRebootEscrow ¶
type IRebootEscrow interface {
AsBinder() binder.IBinder
StoreKey(ctx context.Context, kek []byte) error
RetrieveKey(ctx context.Context) ([]byte, error)
}
func NewRebootEscrowStub ¶
func NewRebootEscrowStub( impl IRebootEscrowServer, ) IRebootEscrow
NewRebootEscrowStub creates a server-side IRebootEscrow wrapping the given server implementation. The returned value satisfies IRebootEscrow 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 IRebootEscrowServer ¶
type IRebootEscrowServer interface {
StoreKey(ctx context.Context, kek []byte) error
RetrieveKey(ctx context.Context) ([]byte, error)
}
IRebootEscrowServer is the server-side interface that user implementations provide to NewRebootEscrowStub. It contains only the business methods, without AsBinder (which is provided by the stub itself).
type RebootEscrowProxy ¶
func NewRebootEscrowProxy ¶
func NewRebootEscrowProxy( remote binder.IBinder, ) *RebootEscrowProxy
func (*RebootEscrowProxy) AsBinder ¶
func (p *RebootEscrowProxy) AsBinder() binder.IBinder
func (*RebootEscrowProxy) RetrieveKey ¶
func (p *RebootEscrowProxy) RetrieveKey( ctx context.Context, ) ([]byte, error)
type RebootEscrowStub ¶
type RebootEscrowStub struct {
Impl IRebootEscrow
Transport binder.VersionAwareTransport
}
RebootEscrowStub dispatches incoming binder transactions to a typed IRebootEscrow implementation.
func (*RebootEscrowStub) Descriptor ¶
func (s *RebootEscrowStub) Descriptor() string
func (*RebootEscrowStub) OnTransaction ¶
func (s *RebootEscrowStub) OnTransaction( ctx context.Context, code binder.TransactionCode, _data *parcel.Parcel, ) (*parcel.Parcel, error)
Click to show internal directories.
Click to hide internal directories.