Documentation
¶
Index ¶
- Constants
- type IRotationResolverCallback
- type IRotationResolverCallbackServer
- type IRotationResolverService
- type IRotationResolverServiceServer
- type RotationResolutionRequest
- type RotationResolverCallbackProxy
- func (p *RotationResolverCallbackProxy) AsBinder() binder.IBinder
- func (p *RotationResolverCallbackProxy) OnCancellable(ctx context.Context, cancellation os.ICancellationSignal) error
- func (p *RotationResolverCallbackProxy) OnFailure(ctx context.Context, error_ int32) error
- func (p *RotationResolverCallbackProxy) OnSuccess(ctx context.Context, recommendedRotation int32) error
- type RotationResolverCallbackStub
- type RotationResolverServiceProxy
- type RotationResolverServiceStub
Constants ¶
const ( TransactionIRotationResolverCallbackOnCancellable = binder.FirstCallTransaction + 0 TransactionIRotationResolverCallbackOnSuccess = binder.FirstCallTransaction + 1 TransactionIRotationResolverCallbackOnFailure = binder.FirstCallTransaction + 2 )
const ( MethodIRotationResolverCallbackOnCancellable = "onCancellable" MethodIRotationResolverCallbackOnSuccess = "onSuccess" MethodIRotationResolverCallbackOnFailure = "onFailure" )
const DescriptorIRotationResolverCallback = "android.service.rotationresolver.IRotationResolverCallback"
const DescriptorIRotationResolverService = "android.service.rotationresolver.IRotationResolverService"
const (
MethodIRotationResolverServiceResolveRotation = "resolveRotation"
)
const (
TransactionIRotationResolverServiceResolveRotation = binder.FirstCallTransaction + 0
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IRotationResolverCallback ¶
type IRotationResolverCallback interface {
AsBinder() binder.IBinder
OnCancellable(ctx context.Context, cancellation os.ICancellationSignal) error
OnSuccess(ctx context.Context, recommendedRotation int32) error
OnFailure(ctx context.Context, error_ int32) error
}
func NewRotationResolverCallbackStub ¶
func NewRotationResolverCallbackStub( impl IRotationResolverCallbackServer, ) IRotationResolverCallback
NewRotationResolverCallbackStub creates a server-side IRotationResolverCallback wrapping the given server implementation. The returned value satisfies IRotationResolverCallback 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 IRotationResolverCallbackServer ¶
type IRotationResolverCallbackServer interface {
OnCancellable(ctx context.Context, cancellation os.ICancellationSignal) error
OnSuccess(ctx context.Context, recommendedRotation int32) error
OnFailure(ctx context.Context, error_ int32) error
}
IRotationResolverCallbackServer is the server-side interface that user implementations provide to NewRotationResolverCallbackStub. It contains only the business methods, without AsBinder (which is provided by the stub itself).
type IRotationResolverService ¶
type IRotationResolverService interface {
AsBinder() binder.IBinder
ResolveRotation(ctx context.Context, callback IRotationResolverCallback, request RotationResolutionRequest) error
}
func NewRotationResolverServiceStub ¶
func NewRotationResolverServiceStub( impl IRotationResolverServiceServer, ) IRotationResolverService
NewRotationResolverServiceStub creates a server-side IRotationResolverService wrapping the given server implementation. The returned value satisfies IRotationResolverService 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 IRotationResolverServiceServer ¶
type IRotationResolverServiceServer interface {
ResolveRotation(ctx context.Context, callback IRotationResolverCallback, request RotationResolutionRequest) error
}
IRotationResolverServiceServer is the server-side interface that user implementations provide to NewRotationResolverServiceStub. It contains only the business methods, without AsBinder (which is provided by the stub itself).
type RotationResolutionRequest ¶
type RotationResolutionRequest struct {
Flg int32
ForegroundPackageName string
CurrentRotation int32
ProposedRotation int32
TimeoutMillis int64
}
func (*RotationResolutionRequest) MarshalParcel ¶
func (s *RotationResolutionRequest) MarshalParcel( p *parcel.Parcel, ) error
func (*RotationResolutionRequest) UnmarshalParcel ¶
func (s *RotationResolutionRequest) UnmarshalParcel( p *parcel.Parcel, ) error
type RotationResolverCallbackProxy ¶
func NewRotationResolverCallbackProxy ¶
func NewRotationResolverCallbackProxy( remote binder.IBinder, ) *RotationResolverCallbackProxy
func (*RotationResolverCallbackProxy) AsBinder ¶
func (p *RotationResolverCallbackProxy) AsBinder() binder.IBinder
func (*RotationResolverCallbackProxy) OnCancellable ¶
func (p *RotationResolverCallbackProxy) OnCancellable( ctx context.Context, cancellation os.ICancellationSignal, ) error
type RotationResolverCallbackStub ¶
type RotationResolverCallbackStub struct {
Impl IRotationResolverCallback
Transport binder.VersionAwareTransport
}
RotationResolverCallbackStub dispatches incoming binder transactions to a typed IRotationResolverCallback implementation.
func (*RotationResolverCallbackStub) Descriptor ¶
func (s *RotationResolverCallbackStub) Descriptor() string
func (*RotationResolverCallbackStub) OnTransaction ¶
func (s *RotationResolverCallbackStub) OnTransaction( ctx context.Context, code binder.TransactionCode, _data *parcel.Parcel, ) (*parcel.Parcel, error)
type RotationResolverServiceProxy ¶
func NewRotationResolverServiceProxy ¶
func NewRotationResolverServiceProxy( remote binder.IBinder, ) *RotationResolverServiceProxy
func (*RotationResolverServiceProxy) AsBinder ¶
func (p *RotationResolverServiceProxy) AsBinder() binder.IBinder
func (*RotationResolverServiceProxy) ResolveRotation ¶
func (p *RotationResolverServiceProxy) ResolveRotation( ctx context.Context, callback IRotationResolverCallback, request RotationResolutionRequest, ) error
type RotationResolverServiceStub ¶
type RotationResolverServiceStub struct {
Impl IRotationResolverService
Transport binder.VersionAwareTransport
}
RotationResolverServiceStub dispatches incoming binder transactions to a typed IRotationResolverService implementation.
func (*RotationResolverServiceStub) Descriptor ¶
func (s *RotationResolverServiceStub) Descriptor() string
func (*RotationResolverServiceStub) OnTransaction ¶
func (s *RotationResolverServiceStub) OnTransaction( ctx context.Context, code binder.TransactionCode, _data *parcel.Parcel, ) (*parcel.Parcel, error)