Documentation
¶
Index ¶
Constants ¶
const DescriptorIGarbageCollectCallback = "android.hardware.health.storage.IGarbageCollectCallback"
const DescriptorIStorage = "android.hardware.health.storage.IStorage"
const (
MethodIGarbageCollectCallbackOnFinish = "onFinish"
)
const (
MethodIStorageGarbageCollect = "garbageCollect"
)
const (
TransactionIGarbageCollectCallbackOnFinish = binder.FirstCallTransaction + 0
)
const (
TransactionIStorageGarbageCollect = binder.FirstCallTransaction + 0
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GarbageCollectCallbackProxy ¶
func NewGarbageCollectCallbackProxy ¶
func NewGarbageCollectCallbackProxy( remote binder.IBinder, ) *GarbageCollectCallbackProxy
func (*GarbageCollectCallbackProxy) AsBinder ¶
func (p *GarbageCollectCallbackProxy) AsBinder() binder.IBinder
type GarbageCollectCallbackStub ¶
type GarbageCollectCallbackStub struct {
Impl IGarbageCollectCallback
Transport binder.VersionAwareTransport
}
GarbageCollectCallbackStub dispatches incoming binder transactions to a typed IGarbageCollectCallback implementation.
func (*GarbageCollectCallbackStub) Descriptor ¶
func (s *GarbageCollectCallbackStub) Descriptor() string
func (*GarbageCollectCallbackStub) OnTransaction ¶
func (s *GarbageCollectCallbackStub) OnTransaction( ctx context.Context, code binder.TransactionCode, _data *parcel.Parcel, ) (*parcel.Parcel, error)
type IGarbageCollectCallback ¶
type IGarbageCollectCallback interface {
AsBinder() binder.IBinder
OnFinish(ctx context.Context, result Result) error
}
func NewGarbageCollectCallbackStub ¶
func NewGarbageCollectCallbackStub( impl IGarbageCollectCallbackServer, ) IGarbageCollectCallback
NewGarbageCollectCallbackStub creates a server-side IGarbageCollectCallback wrapping the given server implementation. The returned value satisfies IGarbageCollectCallback 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 IGarbageCollectCallbackServer ¶
IGarbageCollectCallbackServer is the server-side interface that user implementations provide to NewGarbageCollectCallbackStub. It contains only the business methods, without AsBinder (which is provided by the stub itself).
type IStorage ¶
type IStorage interface {
AsBinder() binder.IBinder
GarbageCollect(ctx context.Context, timeoutSeconds int64, callback IGarbageCollectCallback) error
}
func NewStorageStub ¶
func NewStorageStub( impl IStorageServer, ) IStorage
NewStorageStub creates a server-side IStorage wrapping the given server implementation. The returned value satisfies IStorage 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 IStorageServer ¶
type IStorageServer interface {
GarbageCollect(ctx context.Context, timeoutSeconds int64, callback IGarbageCollectCallback) error
}
IStorageServer is the server-side interface that user implementations provide to NewStorageStub. It contains only the business methods, without AsBinder (which is provided by the stub itself).
type StorageProxy ¶
func NewStorageProxy ¶
func NewStorageProxy( remote binder.IBinder, ) *StorageProxy
func (*StorageProxy) AsBinder ¶
func (p *StorageProxy) AsBinder() binder.IBinder
func (*StorageProxy) GarbageCollect ¶
func (p *StorageProxy) GarbageCollect( ctx context.Context, timeoutSeconds int64, callback IGarbageCollectCallback, ) error
type StorageStub ¶
type StorageStub struct {
Impl IStorage
Transport binder.VersionAwareTransport
}
StorageStub dispatches incoming binder transactions to a typed IStorage implementation.
func (*StorageStub) Descriptor ¶
func (s *StorageStub) Descriptor() string
func (*StorageStub) OnTransaction ¶
func (s *StorageStub) OnTransaction( ctx context.Context, code binder.TransactionCode, _data *parcel.Parcel, ) (*parcel.Parcel, error)