Documentation
¶
Index ¶
- Constants
- type CarPowerPolicySystemNotificationProxy
- func (p *CarPowerPolicySystemNotificationProxy) AsBinder() binder.IBinder
- func (p *CarPowerPolicySystemNotificationProxy) NotifyCarServiceReady(ctx context.Context) (PolicyState, error)
- func (p *CarPowerPolicySystemNotificationProxy) NotifyPowerPolicyChange(ctx context.Context, policyId string, force bool) error
- func (p *CarPowerPolicySystemNotificationProxy) NotifyPowerPolicyDefinition(ctx context.Context, policyId string, enabledComponents []string, ...) error
- type CarPowerPolicySystemNotificationStub
- type ICarPowerPolicySystemNotification
- type ICarPowerPolicySystemNotificationServer
- type PolicyState
Constants ¶
const ( TransactionICarPowerPolicySystemNotificationNotifyCarServiceReady = binder.FirstCallTransaction + 0 TransactionICarPowerPolicySystemNotificationNotifyPowerPolicyChange = binder.FirstCallTransaction + 1 TransactionICarPowerPolicySystemNotificationNotifyPowerPolicyDefinition = binder.FirstCallTransaction + 2 )
const ( MethodICarPowerPolicySystemNotificationNotifyCarServiceReady = "notifyCarServiceReady" MethodICarPowerPolicySystemNotificationNotifyPowerPolicyChange = "notifyPowerPolicyChange" MethodICarPowerPolicySystemNotificationNotifyPowerPolicyDefinition = "notifyPowerPolicyDefinition" )
const DescriptorICarPowerPolicySystemNotification = "android.frameworks.automotive.powerpolicy.internal.ICarPowerPolicySystemNotification"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CarPowerPolicySystemNotificationProxy ¶
func NewCarPowerPolicySystemNotificationProxy ¶
func NewCarPowerPolicySystemNotificationProxy( remote binder.IBinder, ) *CarPowerPolicySystemNotificationProxy
func (*CarPowerPolicySystemNotificationProxy) AsBinder ¶
func (p *CarPowerPolicySystemNotificationProxy) AsBinder() binder.IBinder
func (*CarPowerPolicySystemNotificationProxy) NotifyCarServiceReady ¶
func (p *CarPowerPolicySystemNotificationProxy) NotifyCarServiceReady( ctx context.Context, ) (PolicyState, error)
func (*CarPowerPolicySystemNotificationProxy) NotifyPowerPolicyChange ¶
func (*CarPowerPolicySystemNotificationProxy) NotifyPowerPolicyDefinition ¶
type CarPowerPolicySystemNotificationStub ¶
type CarPowerPolicySystemNotificationStub struct {
Impl ICarPowerPolicySystemNotification
Transport binder.VersionAwareTransport
}
CarPowerPolicySystemNotificationStub dispatches incoming binder transactions to a typed ICarPowerPolicySystemNotification implementation.
func (*CarPowerPolicySystemNotificationStub) Descriptor ¶
func (s *CarPowerPolicySystemNotificationStub) Descriptor() string
func (*CarPowerPolicySystemNotificationStub) OnTransaction ¶
func (s *CarPowerPolicySystemNotificationStub) OnTransaction( ctx context.Context, code binder.TransactionCode, _data *parcel.Parcel, ) (*parcel.Parcel, error)
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 ¶
func (*PolicyState) MarshalParcel ¶
func (s *PolicyState) MarshalParcel( p *parcel.Parcel, ) error
func (*PolicyState) UnmarshalParcel ¶
func (s *PolicyState) UnmarshalParcel( p *parcel.Parcel, ) error