Documentation
¶
Index ¶
- Constants
- type IOemLockService
- type IOemLockServiceServer
- type OemLockServiceProxy
- func (p *OemLockServiceProxy) AsBinder() binder.IBinder
- func (p *OemLockServiceProxy) GetLockName(ctx context.Context) (string, error)
- func (p *OemLockServiceProxy) IsDeviceOemUnlocked(ctx context.Context) (bool, error)
- func (p *OemLockServiceProxy) IsOemUnlockAllowed(ctx context.Context) (bool, error)
- func (p *OemLockServiceProxy) IsOemUnlockAllowedByCarrier(ctx context.Context) (bool, error)
- func (p *OemLockServiceProxy) IsOemUnlockAllowedByUser(ctx context.Context) (bool, error)
- func (p *OemLockServiceProxy) SetOemUnlockAllowedByCarrier(ctx context.Context, allowed bool, signature []byte) error
- func (p *OemLockServiceProxy) SetOemUnlockAllowedByUser(ctx context.Context, allowed bool) error
- type OemLockServiceStub
Constants ¶
const ( TransactionIOemLockServiceGetLockName = binder.FirstCallTransaction + 0 TransactionIOemLockServiceSetOemUnlockAllowedByCarrier = binder.FirstCallTransaction + 1 TransactionIOemLockServiceIsOemUnlockAllowedByCarrier = binder.FirstCallTransaction + 2 TransactionIOemLockServiceSetOemUnlockAllowedByUser = binder.FirstCallTransaction + 3 TransactionIOemLockServiceIsOemUnlockAllowedByUser = binder.FirstCallTransaction + 4 TransactionIOemLockServiceIsOemUnlockAllowed = binder.FirstCallTransaction + 5 TransactionIOemLockServiceIsDeviceOemUnlocked = binder.FirstCallTransaction + 6 )
const ( MethodIOemLockServiceGetLockName = "getLockName" MethodIOemLockServiceSetOemUnlockAllowedByCarrier = "setOemUnlockAllowedByCarrier" MethodIOemLockServiceIsOemUnlockAllowedByCarrier = "isOemUnlockAllowedByCarrier" MethodIOemLockServiceSetOemUnlockAllowedByUser = "setOemUnlockAllowedByUser" MethodIOemLockServiceIsOemUnlockAllowedByUser = "isOemUnlockAllowedByUser" MethodIOemLockServiceIsOemUnlockAllowed = "isOemUnlockAllowed" MethodIOemLockServiceIsDeviceOemUnlocked = "isDeviceOemUnlocked" )
const DescriptorIOemLockService = "android.service.oemlock.IOemLockService"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IOemLockService ¶
type IOemLockService interface {
AsBinder() binder.IBinder
GetLockName(ctx context.Context) (string, error)
SetOemUnlockAllowedByCarrier(ctx context.Context, allowed bool, signature []byte) error
IsOemUnlockAllowedByCarrier(ctx context.Context) (bool, error)
SetOemUnlockAllowedByUser(ctx context.Context, allowed bool) error
IsOemUnlockAllowedByUser(ctx context.Context) (bool, error)
IsOemUnlockAllowed(ctx context.Context) (bool, error)
IsDeviceOemUnlocked(ctx context.Context) (bool, error)
}
func NewOemLockServiceStub ¶
func NewOemLockServiceStub( impl IOemLockServiceServer, ) IOemLockService
NewOemLockServiceStub creates a server-side IOemLockService wrapping the given server implementation. The returned value satisfies IOemLockService 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 IOemLockServiceServer ¶
type IOemLockServiceServer interface {
GetLockName(ctx context.Context) (string, error)
SetOemUnlockAllowedByCarrier(ctx context.Context, allowed bool, signature []byte) error
IsOemUnlockAllowedByCarrier(ctx context.Context) (bool, error)
SetOemUnlockAllowedByUser(ctx context.Context, allowed bool) error
IsOemUnlockAllowedByUser(ctx context.Context) (bool, error)
IsOemUnlockAllowed(ctx context.Context) (bool, error)
IsDeviceOemUnlocked(ctx context.Context) (bool, error)
}
IOemLockServiceServer is the server-side interface that user implementations provide to NewOemLockServiceStub. It contains only the business methods, without AsBinder (which is provided by the stub itself).
type OemLockServiceProxy ¶
func GetOemLockService ¶
func GetOemLockService( ctx context.Context, sm *servicemanager.ServiceManager, ) (*OemLockServiceProxy, error)
GetOemLockService retrieves the OemLockService service and returns a typed proxy.
func NewOemLockServiceProxy ¶
func NewOemLockServiceProxy( remote binder.IBinder, ) *OemLockServiceProxy
func (*OemLockServiceProxy) AsBinder ¶
func (p *OemLockServiceProxy) AsBinder() binder.IBinder
func (*OemLockServiceProxy) GetLockName ¶
func (p *OemLockServiceProxy) GetLockName( ctx context.Context, ) (string, error)
func (*OemLockServiceProxy) IsDeviceOemUnlocked ¶
func (p *OemLockServiceProxy) IsDeviceOemUnlocked( ctx context.Context, ) (bool, error)
func (*OemLockServiceProxy) IsOemUnlockAllowed ¶
func (p *OemLockServiceProxy) IsOemUnlockAllowed( ctx context.Context, ) (bool, error)
func (*OemLockServiceProxy) IsOemUnlockAllowedByCarrier ¶
func (p *OemLockServiceProxy) IsOemUnlockAllowedByCarrier( ctx context.Context, ) (bool, error)
func (*OemLockServiceProxy) IsOemUnlockAllowedByUser ¶
func (p *OemLockServiceProxy) IsOemUnlockAllowedByUser( ctx context.Context, ) (bool, error)
func (*OemLockServiceProxy) SetOemUnlockAllowedByCarrier ¶
func (*OemLockServiceProxy) SetOemUnlockAllowedByUser ¶
func (p *OemLockServiceProxy) SetOemUnlockAllowedByUser( ctx context.Context, allowed bool, ) error
type OemLockServiceStub ¶
type OemLockServiceStub struct {
Impl IOemLockService
Transport binder.VersionAwareTransport
}
OemLockServiceStub dispatches incoming binder transactions to a typed IOemLockService implementation.
func (*OemLockServiceStub) Descriptor ¶
func (s *OemLockServiceStub) Descriptor() string
func (*OemLockServiceStub) OnTransaction ¶
func (s *OemLockServiceStub) OnTransaction( ctx context.Context, code binder.TransactionCode, _data *parcel.Parcel, ) (*parcel.Parcel, error)