internal

package
v0.0.5 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	TransactionICarPowerPolicySystemNotificationNotifyCarServiceReady       = binder.FirstCallTransaction + 0
	TransactionICarPowerPolicySystemNotificationNotifyPowerPolicyChange     = binder.FirstCallTransaction + 1
	TransactionICarPowerPolicySystemNotificationNotifyPowerPolicyDefinition = binder.FirstCallTransaction + 2
)
View Source
const (
	MethodICarPowerPolicySystemNotificationNotifyCarServiceReady       = "notifyCarServiceReady"
	MethodICarPowerPolicySystemNotificationNotifyPowerPolicyChange     = "notifyPowerPolicyChange"
	MethodICarPowerPolicySystemNotificationNotifyPowerPolicyDefinition = "notifyPowerPolicyDefinition"
)
View Source
const DescriptorICarPowerPolicySystemNotification = "android.frameworks.automotive.powerpolicy.internal.ICarPowerPolicySystemNotification"

Variables

This section is empty.

Functions

This section is empty.

Types

type CarPowerPolicySystemNotificationProxy

type CarPowerPolicySystemNotificationProxy struct {
	Remote binder.IBinder
}

func NewCarPowerPolicySystemNotificationProxy

func NewCarPowerPolicySystemNotificationProxy(
	remote binder.IBinder,
) *CarPowerPolicySystemNotificationProxy

func (*CarPowerPolicySystemNotificationProxy) AsBinder

func (*CarPowerPolicySystemNotificationProxy) NotifyCarServiceReady

func (p *CarPowerPolicySystemNotificationProxy) NotifyCarServiceReady(
	ctx context.Context,
) (PolicyState, error)

func (*CarPowerPolicySystemNotificationProxy) NotifyPowerPolicyChange

func (p *CarPowerPolicySystemNotificationProxy) NotifyPowerPolicyChange(
	ctx context.Context,
	policyId string,
	force bool,
) error

func (*CarPowerPolicySystemNotificationProxy) NotifyPowerPolicyDefinition

func (p *CarPowerPolicySystemNotificationProxy) NotifyPowerPolicyDefinition(
	ctx context.Context,
	policyId string,
	enabledComponents []string,
	disabledComponents []string,
) error

type CarPowerPolicySystemNotificationStub

type CarPowerPolicySystemNotificationStub struct {
	Impl      ICarPowerPolicySystemNotification
	Transport binder.VersionAwareTransport
}

CarPowerPolicySystemNotificationStub dispatches incoming binder transactions to a typed ICarPowerPolicySystemNotification implementation.

func (*CarPowerPolicySystemNotificationStub) Descriptor

func (*CarPowerPolicySystemNotificationStub) OnTransaction

type ICarPowerPolicySystemNotification

type ICarPowerPolicySystemNotification interface {
	AsBinder() binder.IBinder
	NotifyCarServiceReady(ctx context.Context) (PolicyState, error)
	NotifyPowerPolicyChange(ctx context.Context, policyId string, force bool) error
	NotifyPowerPolicyDefinition(ctx context.Context, policyId string, enabledComponents []string, disabledComponents []string) error
}

func NewCarPowerPolicySystemNotificationStub

func NewCarPowerPolicySystemNotificationStub(
	impl ICarPowerPolicySystemNotificationServer,
) ICarPowerPolicySystemNotification

NewCarPowerPolicySystemNotificationStub creates a server-side ICarPowerPolicySystemNotification wrapping the given server implementation. The returned value satisfies ICarPowerPolicySystemNotification 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 ICarPowerPolicySystemNotificationServer

type ICarPowerPolicySystemNotificationServer interface {
	NotifyCarServiceReady(ctx context.Context) (PolicyState, error)
	NotifyPowerPolicyChange(ctx context.Context, policyId string, force bool) error
	NotifyPowerPolicyDefinition(ctx context.Context, policyId string, enabledComponents []string, disabledComponents []string) error
}

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

type PolicyState

type PolicyState struct {
	PolicyId      string
	PolicyGroupId string
}

func (*PolicyState) MarshalParcel

func (s *PolicyState) MarshalParcel(
	p *parcel.Parcel,
) error

func (*PolicyState) UnmarshalParcel

func (s *PolicyState) UnmarshalParcel(
	p *parcel.Parcel,
) error

Jump to

Keyboard shortcuts

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