Documentation
¶
Index ¶
- Constants
- type ExplicitHealthCheckServiceProxy
- func (p *ExplicitHealthCheckServiceProxy) AsBinder() binder.IBinder
- func (p *ExplicitHealthCheckServiceProxy) Cancel(ctx context.Context, packageName string) error
- func (p *ExplicitHealthCheckServiceProxy) GetRequestedPackages(ctx context.Context, callback os.RemoteCallback) error
- func (p *ExplicitHealthCheckServiceProxy) GetSupportedPackages(ctx context.Context, callback os.RemoteCallback) error
- func (p *ExplicitHealthCheckServiceProxy) Request(ctx context.Context, packageName string) error
- func (p *ExplicitHealthCheckServiceProxy) SetCallback(ctx context.Context, callback *os.RemoteCallback) error
- type ExplicitHealthCheckServiceStub
- type IExplicitHealthCheckService
- type IExplicitHealthCheckServiceServer
- type PackageConfig
Constants ¶
const ( TransactionIExplicitHealthCheckServiceSetCallback = binder.FirstCallTransaction + 0 TransactionIExplicitHealthCheckServiceRequest = binder.FirstCallTransaction + 1 TransactionIExplicitHealthCheckServiceCancel = binder.FirstCallTransaction + 2 TransactionIExplicitHealthCheckServiceGetSupportedPackages = binder.FirstCallTransaction + 3 TransactionIExplicitHealthCheckServiceGetRequestedPackages = binder.FirstCallTransaction + 4 )
const ( MethodIExplicitHealthCheckServiceSetCallback = "setCallback" MethodIExplicitHealthCheckServiceRequest = "request" MethodIExplicitHealthCheckServiceCancel = "cancel" MethodIExplicitHealthCheckServiceGetSupportedPackages = "getSupportedPackages" MethodIExplicitHealthCheckServiceGetRequestedPackages = "getRequestedPackages" )
const DescriptorIExplicitHealthCheckService = "android.service.watchdog.IExplicitHealthCheckService"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ExplicitHealthCheckServiceProxy ¶
func NewExplicitHealthCheckServiceProxy ¶
func NewExplicitHealthCheckServiceProxy( remote binder.IBinder, ) *ExplicitHealthCheckServiceProxy
func (*ExplicitHealthCheckServiceProxy) AsBinder ¶
func (p *ExplicitHealthCheckServiceProxy) AsBinder() binder.IBinder
func (*ExplicitHealthCheckServiceProxy) Cancel ¶
func (p *ExplicitHealthCheckServiceProxy) Cancel( ctx context.Context, packageName string, ) error
func (*ExplicitHealthCheckServiceProxy) GetRequestedPackages ¶
func (p *ExplicitHealthCheckServiceProxy) GetRequestedPackages( ctx context.Context, callback os.RemoteCallback, ) error
func (*ExplicitHealthCheckServiceProxy) GetSupportedPackages ¶
func (p *ExplicitHealthCheckServiceProxy) GetSupportedPackages( ctx context.Context, callback os.RemoteCallback, ) error
func (*ExplicitHealthCheckServiceProxy) Request ¶
func (p *ExplicitHealthCheckServiceProxy) Request( ctx context.Context, packageName string, ) error
func (*ExplicitHealthCheckServiceProxy) SetCallback ¶
func (p *ExplicitHealthCheckServiceProxy) SetCallback( ctx context.Context, callback *os.RemoteCallback, ) error
type ExplicitHealthCheckServiceStub ¶
type ExplicitHealthCheckServiceStub struct {
Impl IExplicitHealthCheckService
Transport binder.VersionAwareTransport
}
ExplicitHealthCheckServiceStub dispatches incoming binder transactions to a typed IExplicitHealthCheckService implementation.
func (*ExplicitHealthCheckServiceStub) Descriptor ¶
func (s *ExplicitHealthCheckServiceStub) Descriptor() string
func (*ExplicitHealthCheckServiceStub) OnTransaction ¶
func (s *ExplicitHealthCheckServiceStub) OnTransaction( ctx context.Context, code binder.TransactionCode, _data *parcel.Parcel, ) (*parcel.Parcel, error)
type IExplicitHealthCheckService ¶
type IExplicitHealthCheckService interface {
AsBinder() binder.IBinder
SetCallback(ctx context.Context, callback *os.RemoteCallback) error
Request(ctx context.Context, packageName string) error
Cancel(ctx context.Context, packageName string) error
GetSupportedPackages(ctx context.Context, callback os.RemoteCallback) error
GetRequestedPackages(ctx context.Context, callback os.RemoteCallback) error
}
func NewExplicitHealthCheckServiceStub ¶
func NewExplicitHealthCheckServiceStub( impl IExplicitHealthCheckServiceServer, ) IExplicitHealthCheckService
NewExplicitHealthCheckServiceStub creates a server-side IExplicitHealthCheckService wrapping the given server implementation. The returned value satisfies IExplicitHealthCheckService 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 IExplicitHealthCheckServiceServer ¶
type IExplicitHealthCheckServiceServer interface {
SetCallback(ctx context.Context, callback *os.RemoteCallback) error
Request(ctx context.Context, packageName string) error
Cancel(ctx context.Context, packageName string) error
GetSupportedPackages(ctx context.Context, callback os.RemoteCallback) error
GetRequestedPackages(ctx context.Context, callback os.RemoteCallback) error
}
IExplicitHealthCheckServiceServer is the server-side interface that user implementations provide to NewExplicitHealthCheckServiceStub. It contains only the business methods, without AsBinder (which is provided by the stub itself).
type PackageConfig ¶
type PackageConfig struct {
}
func (*PackageConfig) MarshalParcel ¶
func (s *PackageConfig) MarshalParcel( p *parcel.Parcel, ) error
func (*PackageConfig) UnmarshalParcel ¶
func (s *PackageConfig) UnmarshalParcel( p *parcel.Parcel, ) error