Documentation
¶
Index ¶
- Constants
- type ILauncherUnlockAnimationController
- type ILauncherUnlockAnimationControllerServer
- type ISysuiUnlockAnimationController
- type ISysuiUnlockAnimationControllerServer
- type LauncherUnlockAnimationControllerProxy
- func (p *LauncherUnlockAnimationControllerProxy) AsBinder() binder.IBinder
- func (p *LauncherUnlockAnimationControllerProxy) DispatchSmartspaceStateToSysui(ctx context.Context) error
- func (p *LauncherUnlockAnimationControllerProxy) PlayUnlockAnimation(ctx context.Context, unlocked bool, duration int64, startDelay int64) error
- func (p *LauncherUnlockAnimationControllerProxy) PrepareForUnlock(ctx context.Context, animateSmartspace bool, ...) error
- func (p *LauncherUnlockAnimationControllerProxy) SetSmartspaceSelectedPage(ctx context.Context, selectedPage int32) error
- func (p *LauncherUnlockAnimationControllerProxy) SetSmartspaceVisibility(ctx context.Context, visibility int32) error
- func (p *LauncherUnlockAnimationControllerProxy) SetUnlockAmount(ctx context.Context, amount float32, forceIfAnimating bool) error
- type LauncherUnlockAnimationControllerStub
- type SmartspaceState
- type SysuiUnlockAnimationControllerProxy
- func (p *SysuiUnlockAnimationControllerProxy) AsBinder() binder.IBinder
- func (p *SysuiUnlockAnimationControllerProxy) OnLauncherSmartspaceStateUpdated(ctx context.Context, state SmartspaceState) error
- func (p *SysuiUnlockAnimationControllerProxy) SetLauncherUnlockController(ctx context.Context, activityClass string, ...) error
- type SysuiUnlockAnimationControllerStub
Constants ¶
const ( TransactionILauncherUnlockAnimationControllerPrepareForUnlock = binder.FirstCallTransaction + 0 TransactionILauncherUnlockAnimationControllerSetUnlockAmount = binder.FirstCallTransaction + 1 TransactionILauncherUnlockAnimationControllerPlayUnlockAnimation = binder.FirstCallTransaction + 2 TransactionILauncherUnlockAnimationControllerSetSmartspaceSelectedPage = binder.FirstCallTransaction + 3 TransactionILauncherUnlockAnimationControllerSetSmartspaceVisibility = binder.FirstCallTransaction + 4 TransactionILauncherUnlockAnimationControllerDispatchSmartspaceStateToSysui = binder.FirstCallTransaction + 5 )
const ( MethodILauncherUnlockAnimationControllerPrepareForUnlock = "prepareForUnlock" MethodILauncherUnlockAnimationControllerSetUnlockAmount = "setUnlockAmount" MethodILauncherUnlockAnimationControllerPlayUnlockAnimation = "playUnlockAnimation" MethodILauncherUnlockAnimationControllerSetSmartspaceSelectedPage = "setSmartspaceSelectedPage" MethodILauncherUnlockAnimationControllerSetSmartspaceVisibility = "setSmartspaceVisibility" MethodILauncherUnlockAnimationControllerDispatchSmartspaceStateToSysui = "dispatchSmartspaceStateToSysui" )
const ( TransactionISysuiUnlockAnimationControllerSetLauncherUnlockController = binder.FirstCallTransaction + 0 TransactionISysuiUnlockAnimationControllerOnLauncherSmartspaceStateUpdated = binder.FirstCallTransaction + 1 )
const ( MethodISysuiUnlockAnimationControllerSetLauncherUnlockController = "setLauncherUnlockController" MethodISysuiUnlockAnimationControllerOnLauncherSmartspaceStateUpdated = "onLauncherSmartspaceStateUpdated" )
const DescriptorILauncherUnlockAnimationController = "com.android.systemui.shared.system.smartspace.ILauncherUnlockAnimationController"
const DescriptorISysuiUnlockAnimationController = "com.android.systemui.shared.system.smartspace.ISysuiUnlockAnimationController"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ILauncherUnlockAnimationController ¶
type ILauncherUnlockAnimationController interface {
AsBinder() binder.IBinder
PrepareForUnlock(ctx context.Context, animateSmartspace bool, lockscreenSmartspaceBounds graphics.Rect, selectedPage int32) error
SetUnlockAmount(ctx context.Context, amount float32, forceIfAnimating bool) error
PlayUnlockAnimation(ctx context.Context, unlocked bool, duration int64, startDelay int64) error
SetSmartspaceSelectedPage(ctx context.Context, selectedPage int32) error
SetSmartspaceVisibility(ctx context.Context, visibility int32) error
DispatchSmartspaceStateToSysui(ctx context.Context) error
}
func NewLauncherUnlockAnimationControllerStub ¶
func NewLauncherUnlockAnimationControllerStub( impl ILauncherUnlockAnimationControllerServer, ) ILauncherUnlockAnimationController
NewLauncherUnlockAnimationControllerStub creates a server-side ILauncherUnlockAnimationController wrapping the given server implementation. The returned value satisfies ILauncherUnlockAnimationController 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 ILauncherUnlockAnimationControllerServer ¶
type ILauncherUnlockAnimationControllerServer interface {
PrepareForUnlock(ctx context.Context, animateSmartspace bool, lockscreenSmartspaceBounds graphics.Rect, selectedPage int32) error
SetUnlockAmount(ctx context.Context, amount float32, forceIfAnimating bool) error
PlayUnlockAnimation(ctx context.Context, unlocked bool, duration int64, startDelay int64) error
SetSmartspaceSelectedPage(ctx context.Context, selectedPage int32) error
SetSmartspaceVisibility(ctx context.Context, visibility int32) error
DispatchSmartspaceStateToSysui(ctx context.Context) error
}
ILauncherUnlockAnimationControllerServer is the server-side interface that user implementations provide to NewLauncherUnlockAnimationControllerStub. It contains only the business methods, without AsBinder (which is provided by the stub itself).
type ISysuiUnlockAnimationController ¶
type ISysuiUnlockAnimationController interface {
AsBinder() binder.IBinder
SetLauncherUnlockController(ctx context.Context, activityClass string, callback ILauncherUnlockAnimationController) error
OnLauncherSmartspaceStateUpdated(ctx context.Context, state SmartspaceState) error
}
func NewSysuiUnlockAnimationControllerStub ¶
func NewSysuiUnlockAnimationControllerStub( impl ISysuiUnlockAnimationControllerServer, ) ISysuiUnlockAnimationController
NewSysuiUnlockAnimationControllerStub creates a server-side ISysuiUnlockAnimationController wrapping the given server implementation. The returned value satisfies ISysuiUnlockAnimationController 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 ISysuiUnlockAnimationControllerServer ¶
type ISysuiUnlockAnimationControllerServer interface {
SetLauncherUnlockController(ctx context.Context, activityClass string, callback ILauncherUnlockAnimationController) error
OnLauncherSmartspaceStateUpdated(ctx context.Context, state SmartspaceState) error
}
ISysuiUnlockAnimationControllerServer is the server-side interface that user implementations provide to NewSysuiUnlockAnimationControllerStub. It contains only the business methods, without AsBinder (which is provided by the stub itself).
type LauncherUnlockAnimationControllerProxy ¶
func NewLauncherUnlockAnimationControllerProxy ¶
func NewLauncherUnlockAnimationControllerProxy( remote binder.IBinder, ) *LauncherUnlockAnimationControllerProxy
func (*LauncherUnlockAnimationControllerProxy) AsBinder ¶
func (p *LauncherUnlockAnimationControllerProxy) AsBinder() binder.IBinder
func (*LauncherUnlockAnimationControllerProxy) DispatchSmartspaceStateToSysui ¶
func (p *LauncherUnlockAnimationControllerProxy) DispatchSmartspaceStateToSysui( ctx context.Context, ) error
func (*LauncherUnlockAnimationControllerProxy) PlayUnlockAnimation ¶
func (*LauncherUnlockAnimationControllerProxy) PrepareForUnlock ¶
func (*LauncherUnlockAnimationControllerProxy) SetSmartspaceSelectedPage ¶
func (p *LauncherUnlockAnimationControllerProxy) SetSmartspaceSelectedPage( ctx context.Context, selectedPage int32, ) error
func (*LauncherUnlockAnimationControllerProxy) SetSmartspaceVisibility ¶
func (p *LauncherUnlockAnimationControllerProxy) SetSmartspaceVisibility( ctx context.Context, visibility int32, ) error
func (*LauncherUnlockAnimationControllerProxy) SetUnlockAmount ¶
type LauncherUnlockAnimationControllerStub ¶
type LauncherUnlockAnimationControllerStub struct {
Impl ILauncherUnlockAnimationController
Transport binder.VersionAwareTransport
}
LauncherUnlockAnimationControllerStub dispatches incoming binder transactions to a typed ILauncherUnlockAnimationController implementation.
func (*LauncherUnlockAnimationControllerStub) Descriptor ¶
func (s *LauncherUnlockAnimationControllerStub) Descriptor() string
func (*LauncherUnlockAnimationControllerStub) OnTransaction ¶
func (s *LauncherUnlockAnimationControllerStub) OnTransaction( ctx context.Context, code binder.TransactionCode, _data *parcel.Parcel, ) (*parcel.Parcel, error)
type SmartspaceState ¶
type SmartspaceState struct {
}
func (*SmartspaceState) MarshalParcel ¶
func (s *SmartspaceState) MarshalParcel( p *parcel.Parcel, ) error
func (*SmartspaceState) UnmarshalParcel ¶
func (s *SmartspaceState) UnmarshalParcel( p *parcel.Parcel, ) error
type SysuiUnlockAnimationControllerProxy ¶
func NewSysuiUnlockAnimationControllerProxy ¶
func NewSysuiUnlockAnimationControllerProxy( remote binder.IBinder, ) *SysuiUnlockAnimationControllerProxy
func (*SysuiUnlockAnimationControllerProxy) AsBinder ¶
func (p *SysuiUnlockAnimationControllerProxy) AsBinder() binder.IBinder
func (*SysuiUnlockAnimationControllerProxy) OnLauncherSmartspaceStateUpdated ¶
func (p *SysuiUnlockAnimationControllerProxy) OnLauncherSmartspaceStateUpdated( ctx context.Context, state SmartspaceState, ) error
func (*SysuiUnlockAnimationControllerProxy) SetLauncherUnlockController ¶
func (p *SysuiUnlockAnimationControllerProxy) SetLauncherUnlockController( ctx context.Context, activityClass string, callback ILauncherUnlockAnimationController, ) error
type SysuiUnlockAnimationControllerStub ¶
type SysuiUnlockAnimationControllerStub struct {
Impl ISysuiUnlockAnimationController
Transport binder.VersionAwareTransport
}
SysuiUnlockAnimationControllerStub dispatches incoming binder transactions to a typed ISysuiUnlockAnimationController implementation.
func (*SysuiUnlockAnimationControllerStub) Descriptor ¶
func (s *SysuiUnlockAnimationControllerStub) Descriptor() string
func (*SysuiUnlockAnimationControllerStub) OnTransaction ¶
func (s *SysuiUnlockAnimationControllerStub) OnTransaction( ctx context.Context, code binder.TransactionCode, _data *parcel.Parcel, ) (*parcel.Parcel, error)