Documentation
¶
Index ¶
- Constants
- type DisplayHashParams
- type DisplayHashingServiceProxy
- func (p *DisplayHashingServiceProxy) AsBinder() binder.IBinder
- func (p *DisplayHashingServiceProxy) GenerateDisplayHash(ctx context.Context, salt []byte, buffer common.HardwareBuffer, ...) error
- func (p *DisplayHashingServiceProxy) GetDisplayHashAlgorithms(ctx context.Context, callback os.RemoteCallback) error
- func (p *DisplayHashingServiceProxy) GetIntervalBetweenRequestsMillis(ctx context.Context, callback os.RemoteCallback) error
- func (p *DisplayHashingServiceProxy) VerifyDisplayHash(ctx context.Context, salt []byte, displayHash viewDisplayhash.DisplayHash, ...) error
- type DisplayHashingServiceStub
- type IDisplayHashingService
- type IDisplayHashingServiceServer
Constants ¶
View Source
const ( TransactionIDisplayHashingServiceGenerateDisplayHash = binder.FirstCallTransaction + 0 TransactionIDisplayHashingServiceVerifyDisplayHash = binder.FirstCallTransaction + 1 TransactionIDisplayHashingServiceGetDisplayHashAlgorithms = binder.FirstCallTransaction + 2 TransactionIDisplayHashingServiceGetIntervalBetweenRequestsMillis = binder.FirstCallTransaction + 3 )
View Source
const ( MethodIDisplayHashingServiceGenerateDisplayHash = "generateDisplayHash" MethodIDisplayHashingServiceVerifyDisplayHash = "verifyDisplayHash" MethodIDisplayHashingServiceGetDisplayHashAlgorithms = "getDisplayHashAlgorithms" MethodIDisplayHashingServiceGetIntervalBetweenRequestsMillis = "getIntervalBetweenRequestsMillis" )
View Source
const DescriptorIDisplayHashingService = "android.service.displayhash.IDisplayHashingService"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DisplayHashParams ¶
type DisplayHashParams struct {
Flg int32
}
func (*DisplayHashParams) MarshalParcel ¶
func (s *DisplayHashParams) MarshalParcel( p *parcel.Parcel, ) error
func (*DisplayHashParams) UnmarshalParcel ¶
func (s *DisplayHashParams) UnmarshalParcel( p *parcel.Parcel, ) error
type DisplayHashingServiceProxy ¶
func NewDisplayHashingServiceProxy ¶
func NewDisplayHashingServiceProxy( remote binder.IBinder, ) *DisplayHashingServiceProxy
func (*DisplayHashingServiceProxy) AsBinder ¶
func (p *DisplayHashingServiceProxy) AsBinder() binder.IBinder
func (*DisplayHashingServiceProxy) GenerateDisplayHash ¶
func (p *DisplayHashingServiceProxy) GenerateDisplayHash( ctx context.Context, salt []byte, buffer common.HardwareBuffer, bounds graphics.Rect, hashAlgorithm string, callback os.RemoteCallback, ) error
func (*DisplayHashingServiceProxy) GetDisplayHashAlgorithms ¶
func (p *DisplayHashingServiceProxy) GetDisplayHashAlgorithms( ctx context.Context, callback os.RemoteCallback, ) error
func (*DisplayHashingServiceProxy) GetIntervalBetweenRequestsMillis ¶
func (p *DisplayHashingServiceProxy) GetIntervalBetweenRequestsMillis( ctx context.Context, callback os.RemoteCallback, ) error
func (*DisplayHashingServiceProxy) VerifyDisplayHash ¶
func (p *DisplayHashingServiceProxy) VerifyDisplayHash( ctx context.Context, salt []byte, displayHash viewDisplayhash.DisplayHash, callback os.RemoteCallback, ) error
type DisplayHashingServiceStub ¶
type DisplayHashingServiceStub struct {
Impl IDisplayHashingService
Transport binder.VersionAwareTransport
}
DisplayHashingServiceStub dispatches incoming binder transactions to a typed IDisplayHashingService implementation.
func (*DisplayHashingServiceStub) Descriptor ¶
func (s *DisplayHashingServiceStub) Descriptor() string
func (*DisplayHashingServiceStub) OnTransaction ¶
func (s *DisplayHashingServiceStub) OnTransaction( ctx context.Context, code binder.TransactionCode, _data *parcel.Parcel, ) (*parcel.Parcel, error)
type IDisplayHashingService ¶
type IDisplayHashingService interface {
AsBinder() binder.IBinder
GenerateDisplayHash(ctx context.Context, salt []byte, buffer common.HardwareBuffer, bounds graphics.Rect, hashAlgorithm string, callback os.RemoteCallback) error
VerifyDisplayHash(ctx context.Context, salt []byte, displayHash viewDisplayhash.DisplayHash, callback os.RemoteCallback) error
GetDisplayHashAlgorithms(ctx context.Context, callback os.RemoteCallback) error
GetIntervalBetweenRequestsMillis(ctx context.Context, callback os.RemoteCallback) error
}
func NewDisplayHashingServiceStub ¶
func NewDisplayHashingServiceStub( impl IDisplayHashingServiceServer, ) IDisplayHashingService
NewDisplayHashingServiceStub creates a server-side IDisplayHashingService wrapping the given server implementation. The returned value satisfies IDisplayHashingService 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 IDisplayHashingServiceServer ¶
type IDisplayHashingServiceServer interface {
GenerateDisplayHash(ctx context.Context, salt []byte, buffer common.HardwareBuffer, bounds graphics.Rect, hashAlgorithm string, callback os.RemoteCallback) error
VerifyDisplayHash(ctx context.Context, salt []byte, displayHash viewDisplayhash.DisplayHash, callback os.RemoteCallback) error
GetDisplayHashAlgorithms(ctx context.Context, callback os.RemoteCallback) error
GetIntervalBetweenRequestsMillis(ctx context.Context, callback os.RemoteCallback) error
}
IDisplayHashingServiceServer is the server-side interface that user implementations provide to NewDisplayHashingServiceStub. It contains only the business methods, without AsBinder (which is provided by the stub itself).
Click to show internal directories.
Click to hide internal directories.