Documentation
¶
Index ¶
- Constants
- type IPip
- type IPipAnimationListener
- type IPipAnimationListenerServer
- type IPipServer
- type PipAnimationListenerProxy
- func (p *PipAnimationListenerProxy) AsBinder() binder.IBinder
- func (p *PipAnimationListenerProxy) OnExpandPip(ctx context.Context) error
- func (p *PipAnimationListenerProxy) OnPipAnimationStarted(ctx context.Context) error
- func (p *PipAnimationListenerProxy) OnPipResourceDimensionsChanged(ctx context.Context, cornerRadius int32, shadowRadius int32) error
- type PipAnimationListenerStub
- type PipProxy
- func (p *PipProxy) AbortSwipePipToHome(ctx context.Context, taskId int32, componentName content.ComponentName) error
- func (p *PipProxy) AsBinder() binder.IBinder
- func (p *PipProxy) SetLauncherAppIconSize(ctx context.Context, iconSizePx int32) error
- func (p *PipProxy) SetLauncherKeepClearAreaHeight(ctx context.Context, visible bool, height int32) error
- func (p *PipProxy) SetPipAnimationListener(ctx context.Context, listener IPipAnimationListener) error
- func (p *PipProxy) SetPipAnimationTypeToAlpha(ctx context.Context) error
- func (p *PipProxy) SetShelfHeight(ctx context.Context, visible bool, shelfHeight int32) error
- func (p *PipProxy) StartSwipePipToHome(ctx context.Context, componentName content.ComponentName, ...) (graphics.Rect, error)
- func (p *PipProxy) StopSwipePipToHome(ctx context.Context, taskId int32, componentName content.ComponentName, ...) error
- type PipStub
Constants ¶
const ( TransactionIPipStartSwipePipToHome = binder.FirstCallTransaction + 0 TransactionIPipStopSwipePipToHome = binder.FirstCallTransaction + 1 TransactionIPipAbortSwipePipToHome = binder.FirstCallTransaction + 2 TransactionIPipSetPipAnimationListener = binder.FirstCallTransaction + 3 TransactionIPipSetShelfHeight = binder.FirstCallTransaction + 4 TransactionIPipSetPipAnimationTypeToAlpha = binder.FirstCallTransaction + 5 TransactionIPipSetLauncherKeepClearAreaHeight = binder.FirstCallTransaction + 6 TransactionIPipSetLauncherAppIconSize = binder.FirstCallTransaction + 7 )
const ( MethodIPipStartSwipePipToHome = "startSwipePipToHome" MethodIPipStopSwipePipToHome = "stopSwipePipToHome" MethodIPipAbortSwipePipToHome = "abortSwipePipToHome" MethodIPipSetPipAnimationListener = "setPipAnimationListener" MethodIPipSetShelfHeight = "setShelfHeight" MethodIPipSetPipAnimationTypeToAlpha = "setPipAnimationTypeToAlpha" MethodIPipSetLauncherKeepClearAreaHeight = "setLauncherKeepClearAreaHeight" MethodIPipSetLauncherAppIconSize = "setLauncherAppIconSize" )
const ( TransactionIPipAnimationListenerOnPipAnimationStarted = binder.FirstCallTransaction + 0 TransactionIPipAnimationListenerOnPipResourceDimensionsChanged = binder.FirstCallTransaction + 1 TransactionIPipAnimationListenerOnExpandPip = binder.FirstCallTransaction + 2 )
const ( MethodIPipAnimationListenerOnPipAnimationStarted = "onPipAnimationStarted" MethodIPipAnimationListenerOnPipResourceDimensionsChanged = "onPipResourceDimensionsChanged" MethodIPipAnimationListenerOnExpandPip = "onExpandPip" )
const DescriptorIPip = "com.android.wm.shell.common.pip.IPip"
const DescriptorIPipAnimationListener = "com.android.wm.shell.common.pip.IPipAnimationListener"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IPip ¶
type IPip interface {
AsBinder() binder.IBinder
StartSwipePipToHome(ctx context.Context, componentName content.ComponentName, activityInfo pm.ActivityInfo, pictureInPictureParams app.PictureInPictureParams, launcherRotation int32, hotseatKeepClearArea graphics.Rect) (graphics.Rect, error)
StopSwipePipToHome(ctx context.Context, taskId int32, componentName content.ComponentName, destinationBounds graphics.Rect, overlay view.SurfaceControl, appBounds graphics.Rect, sourceRectHint graphics.Rect) error
AbortSwipePipToHome(ctx context.Context, taskId int32, componentName content.ComponentName) error
SetPipAnimationListener(ctx context.Context, listener IPipAnimationListener) error
SetShelfHeight(ctx context.Context, visible bool, shelfHeight int32) error
SetPipAnimationTypeToAlpha(ctx context.Context) error
SetLauncherKeepClearAreaHeight(ctx context.Context, visible bool, height int32) error
SetLauncherAppIconSize(ctx context.Context, iconSizePx int32) error
}
func NewPipStub ¶
func NewPipStub( impl IPipServer, ) IPip
NewPipStub creates a server-side IPip wrapping the given server implementation. The returned value satisfies IPip 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 IPipAnimationListener ¶
type IPipAnimationListener interface {
AsBinder() binder.IBinder
OnPipAnimationStarted(ctx context.Context) error
OnPipResourceDimensionsChanged(ctx context.Context, cornerRadius int32, shadowRadius int32) error
OnExpandPip(ctx context.Context) error
}
func NewPipAnimationListenerStub ¶
func NewPipAnimationListenerStub( impl IPipAnimationListenerServer, ) IPipAnimationListener
NewPipAnimationListenerStub creates a server-side IPipAnimationListener wrapping the given server implementation. The returned value satisfies IPipAnimationListener 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 IPipAnimationListenerServer ¶
type IPipAnimationListenerServer interface {
OnPipAnimationStarted(ctx context.Context) error
OnPipResourceDimensionsChanged(ctx context.Context, cornerRadius int32, shadowRadius int32) error
OnExpandPip(ctx context.Context) error
}
IPipAnimationListenerServer is the server-side interface that user implementations provide to NewPipAnimationListenerStub. It contains only the business methods, without AsBinder (which is provided by the stub itself).
type IPipServer ¶
type IPipServer interface {
StartSwipePipToHome(ctx context.Context, componentName content.ComponentName, activityInfo pm.ActivityInfo, pictureInPictureParams app.PictureInPictureParams, launcherRotation int32, hotseatKeepClearArea graphics.Rect) (graphics.Rect, error)
StopSwipePipToHome(ctx context.Context, taskId int32, componentName content.ComponentName, destinationBounds graphics.Rect, overlay view.SurfaceControl, appBounds graphics.Rect, sourceRectHint graphics.Rect) error
AbortSwipePipToHome(ctx context.Context, taskId int32, componentName content.ComponentName) error
SetPipAnimationListener(ctx context.Context, listener IPipAnimationListener) error
SetShelfHeight(ctx context.Context, visible bool, shelfHeight int32) error
SetPipAnimationTypeToAlpha(ctx context.Context) error
SetLauncherKeepClearAreaHeight(ctx context.Context, visible bool, height int32) error
SetLauncherAppIconSize(ctx context.Context, iconSizePx int32) error
}
IPipServer is the server-side interface that user implementations provide to NewPipStub. It contains only the business methods, without AsBinder (which is provided by the stub itself).
type PipAnimationListenerProxy ¶
func NewPipAnimationListenerProxy ¶
func NewPipAnimationListenerProxy( remote binder.IBinder, ) *PipAnimationListenerProxy
func (*PipAnimationListenerProxy) AsBinder ¶
func (p *PipAnimationListenerProxy) AsBinder() binder.IBinder
func (*PipAnimationListenerProxy) OnExpandPip ¶
func (p *PipAnimationListenerProxy) OnExpandPip( ctx context.Context, ) error
func (*PipAnimationListenerProxy) OnPipAnimationStarted ¶
func (p *PipAnimationListenerProxy) OnPipAnimationStarted( ctx context.Context, ) error
func (*PipAnimationListenerProxy) OnPipResourceDimensionsChanged ¶
type PipAnimationListenerStub ¶
type PipAnimationListenerStub struct {
Impl IPipAnimationListener
Transport binder.VersionAwareTransport
}
PipAnimationListenerStub dispatches incoming binder transactions to a typed IPipAnimationListener implementation.
func (*PipAnimationListenerStub) Descriptor ¶
func (s *PipAnimationListenerStub) Descriptor() string
func (*PipAnimationListenerStub) OnTransaction ¶
func (s *PipAnimationListenerStub) OnTransaction( ctx context.Context, code binder.TransactionCode, _data *parcel.Parcel, ) (*parcel.Parcel, error)
type PipProxy ¶
func NewPipProxy ¶
func (*PipProxy) AbortSwipePipToHome ¶
func (*PipProxy) SetLauncherAppIconSize ¶
func (*PipProxy) SetLauncherKeepClearAreaHeight ¶
func (*PipProxy) SetPipAnimationListener ¶
func (p *PipProxy) SetPipAnimationListener( ctx context.Context, listener IPipAnimationListener, ) error
func (*PipProxy) SetPipAnimationTypeToAlpha ¶
func (*PipProxy) SetShelfHeight ¶
func (*PipProxy) StartSwipePipToHome ¶
func (p *PipProxy) StartSwipePipToHome( ctx context.Context, componentName content.ComponentName, activityInfo pm.ActivityInfo, pictureInPictureParams app.PictureInPictureParams, launcherRotation int32, hotseatKeepClearArea graphics.Rect, ) (graphics.Rect, error)
type PipStub ¶
type PipStub struct {
Impl IPip
Transport binder.VersionAwareTransport
}
PipStub dispatches incoming binder transactions to a typed IPip implementation.