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

dumpstate

package
v0.0.8 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	TransactionIDumpstateDeviceDumpstateBoard           = binder.FirstCallTransaction + 0
	TransactionIDumpstateDeviceGetVerboseLoggingEnabled = binder.FirstCallTransaction + 1
	TransactionIDumpstateDeviceSetVerboseLoggingEnabled = binder.FirstCallTransaction + 2
)
View Source
const (
	MethodIDumpstateDeviceDumpstateBoard           = "dumpstateBoard"
	MethodIDumpstateDeviceGetVerboseLoggingEnabled = "getVerboseLoggingEnabled"
	MethodIDumpstateDeviceSetVerboseLoggingEnabled = "setVerboseLoggingEnabled"
)
View Source
const (
	IDumpstateDeviceErrorUnsupportedMode         int32 = 1
	IDumpstateDeviceErrorDeviceLoggingNotEnabled int32 = 2
)
View Source
const DescriptorIDumpstateDevice = "android.hardware.dumpstate.IDumpstateDevice"

Variables

This section is empty.

Functions

This section is empty.

Types

type DumpstateDeviceProxy

type DumpstateDeviceProxy struct {
	Remote binder.IBinder
}

func NewDumpstateDeviceProxy

func NewDumpstateDeviceProxy(
	remote binder.IBinder,
) *DumpstateDeviceProxy

func (*DumpstateDeviceProxy) AsBinder

func (p *DumpstateDeviceProxy) AsBinder() binder.IBinder

func (*DumpstateDeviceProxy) DumpstateBoard

func (p *DumpstateDeviceProxy) DumpstateBoard(
	ctx context.Context,
	fd []int32,
	mode IDumpstateDeviceDumpstateMode,
	timeoutMillis int64,
) error

func (*DumpstateDeviceProxy) GetVerboseLoggingEnabled

func (p *DumpstateDeviceProxy) GetVerboseLoggingEnabled(
	ctx context.Context,
) (bool, error)

func (*DumpstateDeviceProxy) SetVerboseLoggingEnabled

func (p *DumpstateDeviceProxy) SetVerboseLoggingEnabled(
	ctx context.Context,
	enable bool,
) error

type DumpstateDeviceStub

type DumpstateDeviceStub struct {
	Impl      IDumpstateDevice
	Transport binder.VersionAwareTransport
}

DumpstateDeviceStub dispatches incoming binder transactions to a typed IDumpstateDevice implementation.

func (*DumpstateDeviceStub) Descriptor

func (s *DumpstateDeviceStub) Descriptor() string

func (*DumpstateDeviceStub) OnTransaction

func (s *DumpstateDeviceStub) OnTransaction(
	ctx context.Context,
	code binder.TransactionCode,
	_data *parcel.Parcel,
) (*parcel.Parcel, error)

type IDumpstateDevice

type IDumpstateDevice interface {
	AsBinder() binder.IBinder
	DumpstateBoard(ctx context.Context, fd []int32, mode IDumpstateDeviceDumpstateMode, timeoutMillis int64) error
	GetVerboseLoggingEnabled(ctx context.Context) (bool, error)
	SetVerboseLoggingEnabled(ctx context.Context, enable bool) error
}

func NewDumpstateDeviceStub

func NewDumpstateDeviceStub(
	impl IDumpstateDeviceServer,
) IDumpstateDevice

NewDumpstateDeviceStub creates a server-side IDumpstateDevice wrapping the given server implementation. The returned value satisfies IDumpstateDevice 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 IDumpstateDeviceDumpstateMode

type IDumpstateDeviceDumpstateMode int32
const (
	IDumpstateDeviceDumpstateModeFULL         IDumpstateDeviceDumpstateMode = 0
	IDumpstateDeviceDumpstateModeINTERACTIVE  IDumpstateDeviceDumpstateMode = 1
	IDumpstateDeviceDumpstateModeREMOTE       IDumpstateDeviceDumpstateMode = 2
	IDumpstateDeviceDumpstateModeWEAR         IDumpstateDeviceDumpstateMode = 3
	IDumpstateDeviceDumpstateModeCONNECTIVITY IDumpstateDeviceDumpstateMode = 4
	IDumpstateDeviceDumpstateModeWIFI         IDumpstateDeviceDumpstateMode = 5
	IDumpstateDeviceDumpstateModeDEFAULT      IDumpstateDeviceDumpstateMode = 6
	IDumpstateDeviceDumpstateModePROTO        IDumpstateDeviceDumpstateMode = 7
)

type IDumpstateDeviceServer

type IDumpstateDeviceServer interface {
	DumpstateBoard(ctx context.Context, fd []int32, mode IDumpstateDeviceDumpstateMode, timeoutMillis int64) error
	GetVerboseLoggingEnabled(ctx context.Context) (bool, error)
	SetVerboseLoggingEnabled(ctx context.Context, enable bool) error
}

IDumpstateDeviceServer is the server-side interface that user implementations provide to NewDumpstateDeviceStub. It contains only the business methods, without AsBinder (which is provided by the stub itself).

Jump to

Keyboard shortcuts

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