displayhash

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: 8 Imported by: 0

Documentation

Index

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

type DisplayHashingServiceProxy struct {
	Remote binder.IBinder
}

func NewDisplayHashingServiceProxy

func NewDisplayHashingServiceProxy(
	remote binder.IBinder,
) *DisplayHashingServiceProxy

func (*DisplayHashingServiceProxy) AsBinder

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).

Jump to

Keyboard shortcuts

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