Documentation
¶
Index ¶
Constants ¶
View Source
const DescriptorIAuthSecret = "android.hardware.authsecret.IAuthSecret"
View Source
const (
MethodIAuthSecretSetPrimaryUserCredential = "setPrimaryUserCredential"
)
View Source
const (
TransactionIAuthSecretSetPrimaryUserCredential = binder.FirstCallTransaction + 0
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthSecretProxy ¶
func NewAuthSecretProxy ¶
func NewAuthSecretProxy( remote binder.IBinder, ) *AuthSecretProxy
func (*AuthSecretProxy) AsBinder ¶
func (p *AuthSecretProxy) AsBinder() binder.IBinder
func (*AuthSecretProxy) SetPrimaryUserCredential ¶
func (p *AuthSecretProxy) SetPrimaryUserCredential( ctx context.Context, secret []byte, ) error
type AuthSecretStub ¶
type AuthSecretStub struct {
Impl IAuthSecret
Transport binder.VersionAwareTransport
}
AuthSecretStub dispatches incoming binder transactions to a typed IAuthSecret implementation.
func (*AuthSecretStub) Descriptor ¶
func (s *AuthSecretStub) Descriptor() string
func (*AuthSecretStub) OnTransaction ¶
func (s *AuthSecretStub) OnTransaction( ctx context.Context, code binder.TransactionCode, _data *parcel.Parcel, ) (*parcel.Parcel, error)
type IAuthSecret ¶
type IAuthSecret interface {
AsBinder() binder.IBinder
SetPrimaryUserCredential(ctx context.Context, secret []byte) error
}
func NewAuthSecretStub ¶
func NewAuthSecretStub( impl IAuthSecretServer, ) IAuthSecret
NewAuthSecretStub creates a server-side IAuthSecret wrapping the given server implementation. The returned value satisfies IAuthSecret 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 IAuthSecretServer ¶
type IAuthSecretServer interface {
SetPrimaryUserCredential(ctx context.Context, secret []byte) error
}
IAuthSecretServer is the server-side interface that user implementations provide to NewAuthSecretStub. 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.