Versions in this module Expand all Collapse all v0 v0.0.6 Mar 22, 2026 v0.0.5 Mar 22, 2026 Changes in this version + const DescriptorITrustAgentService + const DescriptorITrustAgentServiceCallback + const MethodITrustAgentServiceCallbackAddEscrowToken + const MethodITrustAgentServiceCallbackGrantTrust + const MethodITrustAgentServiceCallbackIsEscrowTokenActive + const MethodITrustAgentServiceCallbackLockUser + const MethodITrustAgentServiceCallbackOnConfigureCompleted + const MethodITrustAgentServiceCallbackRemoveEscrowToken + const MethodITrustAgentServiceCallbackRevokeTrust + const MethodITrustAgentServiceCallbackSetManagingTrust + const MethodITrustAgentServiceCallbackShowKeyguardErrorMessage + const MethodITrustAgentServiceCallbackUnlockUserWithToken + const MethodITrustAgentServiceOnConfigure + const MethodITrustAgentServiceOnDeviceLocked + const MethodITrustAgentServiceOnDeviceUnlocked + const MethodITrustAgentServiceOnEscrowTokenAdded + const MethodITrustAgentServiceOnEscrowTokenRemoved + const MethodITrustAgentServiceOnTokenStateReceived + const MethodITrustAgentServiceOnTrustTimeout + const MethodITrustAgentServiceOnUnlockAttempt + const MethodITrustAgentServiceOnUnlockLockout + const MethodITrustAgentServiceOnUserMayRequestUnlock + const MethodITrustAgentServiceOnUserRequestedUnlock + const MethodITrustAgentServiceSetCallback + const TransactionITrustAgentServiceCallbackAddEscrowToken + const TransactionITrustAgentServiceCallbackGrantTrust + const TransactionITrustAgentServiceCallbackIsEscrowTokenActive + const TransactionITrustAgentServiceCallbackLockUser + const TransactionITrustAgentServiceCallbackOnConfigureCompleted + const TransactionITrustAgentServiceCallbackRemoveEscrowToken + const TransactionITrustAgentServiceCallbackRevokeTrust + const TransactionITrustAgentServiceCallbackSetManagingTrust + const TransactionITrustAgentServiceCallbackShowKeyguardErrorMessage + const TransactionITrustAgentServiceCallbackUnlockUserWithToken + const TransactionITrustAgentServiceOnConfigure + const TransactionITrustAgentServiceOnDeviceLocked + const TransactionITrustAgentServiceOnDeviceUnlocked + const TransactionITrustAgentServiceOnEscrowTokenAdded + const TransactionITrustAgentServiceOnEscrowTokenRemoved + const TransactionITrustAgentServiceOnTokenStateReceived + const TransactionITrustAgentServiceOnTrustTimeout + const TransactionITrustAgentServiceOnUnlockAttempt + const TransactionITrustAgentServiceOnUnlockLockout + const TransactionITrustAgentServiceOnUserMayRequestUnlock + const TransactionITrustAgentServiceOnUserRequestedUnlock + const TransactionITrustAgentServiceSetCallback + type GrantTrustResult struct + Status int32 + func (s *GrantTrustResult) MarshalParcel(p *parcel.Parcel) error + func (s *GrantTrustResult) UnmarshalParcel(p *parcel.Parcel) error + type ITrustAgentService interface + AsBinder func() binder.IBinder + OnConfigure func(ctx context.Context, options []os.PersistableBundle, token binder.IBinder) error + OnDeviceLocked func(ctx context.Context) error + OnDeviceUnlocked func(ctx context.Context) error + OnEscrowTokenAdded func(ctx context.Context, token []byte, handle int64, user os.UserHandle) error + OnEscrowTokenRemoved func(ctx context.Context, handle int64, successful bool) error + OnTokenStateReceived func(ctx context.Context, handle int64, tokenState int32) error + OnTrustTimeout func(ctx context.Context) error + OnUnlockAttempt func(ctx context.Context, successful bool) error + OnUnlockLockout func(ctx context.Context, timeoutMs int32) error + OnUserMayRequestUnlock func(ctx context.Context) error + OnUserRequestedUnlock func(ctx context.Context, dismissKeyguard bool) error + SetCallback func(ctx context.Context, callback ITrustAgentServiceCallback) error + func NewTrustAgentServiceStub(impl ITrustAgentServiceServer) ITrustAgentService + type ITrustAgentServiceCallback interface + AddEscrowToken func(ctx context.Context, token []byte) error + AsBinder func() binder.IBinder + GrantTrust func(ctx context.Context, message string, durationMs int64, flags int32, ...) error + IsEscrowTokenActive func(ctx context.Context, handle int64) error + LockUser func(ctx context.Context) error + OnConfigureCompleted func(ctx context.Context, result bool, token binder.IBinder) error + RemoveEscrowToken func(ctx context.Context, handle int64) error + RevokeTrust func(ctx context.Context) error + SetManagingTrust func(ctx context.Context, managingTrust bool) error + ShowKeyguardErrorMessage func(ctx context.Context, message string) error + UnlockUserWithToken func(ctx context.Context, handle int64, token []byte) error + func NewTrustAgentServiceCallbackStub(impl ITrustAgentServiceCallbackServer) ITrustAgentServiceCallback + type ITrustAgentServiceCallbackServer interface + AddEscrowToken func(ctx context.Context, token []byte) error + GrantTrust func(ctx context.Context, message string, durationMs int64, flags int32, ...) error + IsEscrowTokenActive func(ctx context.Context, handle int64) error + LockUser func(ctx context.Context) error + OnConfigureCompleted func(ctx context.Context, result bool, token binder.IBinder) error + RemoveEscrowToken func(ctx context.Context, handle int64) error + RevokeTrust func(ctx context.Context) error + SetManagingTrust func(ctx context.Context, managingTrust bool) error + ShowKeyguardErrorMessage func(ctx context.Context, message string) error + UnlockUserWithToken func(ctx context.Context, handle int64, token []byte) error + type ITrustAgentServiceServer interface + OnConfigure func(ctx context.Context, options []os.PersistableBundle, token binder.IBinder) error + OnDeviceLocked func(ctx context.Context) error + OnDeviceUnlocked func(ctx context.Context) error + OnEscrowTokenAdded func(ctx context.Context, token []byte, handle int64, user os.UserHandle) error + OnEscrowTokenRemoved func(ctx context.Context, handle int64, successful bool) error + OnTokenStateReceived func(ctx context.Context, handle int64, tokenState int32) error + OnTrustTimeout func(ctx context.Context) error + OnUnlockAttempt func(ctx context.Context, successful bool) error + OnUnlockLockout func(ctx context.Context, timeoutMs int32) error + OnUserMayRequestUnlock func(ctx context.Context) error + OnUserRequestedUnlock func(ctx context.Context, dismissKeyguard bool) error + SetCallback func(ctx context.Context, callback ITrustAgentServiceCallback) error + type TrustAgentServiceCallbackProxy struct + Remote binder.IBinder + func NewTrustAgentServiceCallbackProxy(remote binder.IBinder) *TrustAgentServiceCallbackProxy + func (p *TrustAgentServiceCallbackProxy) AddEscrowToken(ctx context.Context, token []byte) error + func (p *TrustAgentServiceCallbackProxy) AsBinder() binder.IBinder + func (p *TrustAgentServiceCallbackProxy) GrantTrust(ctx context.Context, message string, durationMs int64, flags int32, ...) error + func (p *TrustAgentServiceCallbackProxy) IsEscrowTokenActive(ctx context.Context, handle int64) error + func (p *TrustAgentServiceCallbackProxy) LockUser(ctx context.Context) error + func (p *TrustAgentServiceCallbackProxy) OnConfigureCompleted(ctx context.Context, result bool, token binder.IBinder) error + func (p *TrustAgentServiceCallbackProxy) RemoveEscrowToken(ctx context.Context, handle int64) error + func (p *TrustAgentServiceCallbackProxy) RevokeTrust(ctx context.Context) error + func (p *TrustAgentServiceCallbackProxy) SetManagingTrust(ctx context.Context, managingTrust bool) error + func (p *TrustAgentServiceCallbackProxy) ShowKeyguardErrorMessage(ctx context.Context, message string) error + func (p *TrustAgentServiceCallbackProxy) UnlockUserWithToken(ctx context.Context, handle int64, token []byte) error + type TrustAgentServiceCallbackStub struct + Impl ITrustAgentServiceCallback + Transport binder.VersionAwareTransport + func (s *TrustAgentServiceCallbackStub) Descriptor() string + func (s *TrustAgentServiceCallbackStub) OnTransaction(ctx context.Context, code binder.TransactionCode, _data *parcel.Parcel) (*parcel.Parcel, error) + type TrustAgentServiceProxy struct + Remote binder.IBinder + func NewTrustAgentServiceProxy(remote binder.IBinder) *TrustAgentServiceProxy + func (p *TrustAgentServiceProxy) AsBinder() binder.IBinder + func (p *TrustAgentServiceProxy) OnConfigure(ctx context.Context, options []os.PersistableBundle, token binder.IBinder) error + func (p *TrustAgentServiceProxy) OnDeviceLocked(ctx context.Context) error + func (p *TrustAgentServiceProxy) OnDeviceUnlocked(ctx context.Context) error + func (p *TrustAgentServiceProxy) OnEscrowTokenAdded(ctx context.Context, token []byte, handle int64, user os.UserHandle) error + func (p *TrustAgentServiceProxy) OnEscrowTokenRemoved(ctx context.Context, handle int64, successful bool) error + func (p *TrustAgentServiceProxy) OnTokenStateReceived(ctx context.Context, handle int64, tokenState int32) error + func (p *TrustAgentServiceProxy) OnTrustTimeout(ctx context.Context) error + func (p *TrustAgentServiceProxy) OnUnlockAttempt(ctx context.Context, successful bool) error + func (p *TrustAgentServiceProxy) OnUnlockLockout(ctx context.Context, timeoutMs int32) error + func (p *TrustAgentServiceProxy) OnUserMayRequestUnlock(ctx context.Context) error + func (p *TrustAgentServiceProxy) OnUserRequestedUnlock(ctx context.Context, dismissKeyguard bool) error + func (p *TrustAgentServiceProxy) SetCallback(ctx context.Context, callback ITrustAgentServiceCallback) error + type TrustAgentServiceStub struct + Impl ITrustAgentService + Transport binder.VersionAwareTransport + func (s *TrustAgentServiceStub) Descriptor() string + func (s *TrustAgentServiceStub) OnTransaction(ctx context.Context, code binder.TransactionCode, _data *parcel.Parcel) (*parcel.Parcel, error)