Help us shape the future of Go! Take the 2026 Go Developer Survey

watchdog

package
v0.0.9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 6, 2026 License: CC0-1.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TransactionIExplicitHealthCheckServiceSetCallback          = binder.FirstCallTransaction + 0
	TransactionIExplicitHealthCheckServiceRequest              = binder.FirstCallTransaction + 1
	TransactionIExplicitHealthCheckServiceCancel               = binder.FirstCallTransaction + 2
	TransactionIExplicitHealthCheckServiceGetSupportedPackages = binder.FirstCallTransaction + 3
	TransactionIExplicitHealthCheckServiceGetRequestedPackages = binder.FirstCallTransaction + 4
)
View Source
const (
	MethodIExplicitHealthCheckServiceSetCallback          = "setCallback"
	MethodIExplicitHealthCheckServiceRequest              = "request"
	MethodIExplicitHealthCheckServiceCancel               = "cancel"
	MethodIExplicitHealthCheckServiceGetSupportedPackages = "getSupportedPackages"
	MethodIExplicitHealthCheckServiceGetRequestedPackages = "getRequestedPackages"
)
View Source
const DescriptorIExplicitHealthCheckService = "android.service.watchdog.IExplicitHealthCheckService"

Variables

This section is empty.

Functions

This section is empty.

Types

type ExplicitHealthCheckServiceProxy

type ExplicitHealthCheckServiceProxy struct {
	Remote binder.IBinder
}

func NewExplicitHealthCheckServiceProxy

func NewExplicitHealthCheckServiceProxy(
	remote binder.IBinder,
) *ExplicitHealthCheckServiceProxy

func (*ExplicitHealthCheckServiceProxy) AsBinder

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

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL