public abstract class WindowManagerInternal extends Object
Modifier and Type | Class and Description |
---|---|
static class |
WindowManagerInternal.AppTransitionListener
Abstract class to be notified about
AppTransition events. |
static interface |
WindowManagerInternal.MagnificationCallbacks
Callbacks for contextual changes that affect the screen magnification
feature.
|
static interface |
WindowManagerInternal.OnHardKeyboardStatusChangeListener
An interface to be notified about hardware keyboard status.
|
static interface |
WindowManagerInternal.WindowsForAccessibilityCallback
Interface to receive a callback when the windows reported for
accessibility changed.
|
Constructor and Description |
---|
WindowManagerInternal() |
Modifier and Type | Method and Description |
---|---|
abstract void |
addWindowToken(IBinder token,
int type)
Adds a window token for a given window type.
|
abstract void |
clearLastInputMethodWindowForTransition()
Clears last input method window for transition.
|
abstract MagnificationSpec |
getCompatibleMagnificationSpecForWindow(IBinder windowToken)
Gets the magnification and translation applied to a window given its token.
|
abstract IBinder |
getFocusedWindowToken()
Gets the token of the window that has input focus.
|
abstract int |
getInputMethodWindowVisibleHeight()
Retrieves a height of input method window.
|
abstract void |
getMagnificationRegion(Region magnificationRegion)
Obtains the magnification regions.
|
abstract void |
getWindowFrame(IBinder token,
Rect outBounds)
Gets the frame of a window given its token.
|
abstract boolean |
isDockedDividerResizing() |
abstract boolean |
isHardKeyboardAvailable()
Returns true when the hardware keyboard is available.
|
abstract boolean |
isKeyguardLocked() |
abstract boolean |
isStackVisible(int stackId)
Returns true if the stack with the input Id is currently visible.
|
abstract void |
registerAppTransitionListener(WindowManagerInternal.AppTransitionListener listener)
Registers a listener to be notified about app transition events.
|
abstract void |
removeWindowToken(IBinder token,
boolean removeWindows)
Removes a window token.
|
abstract void |
requestTraversalFromDisplayManager()
Request that the window manager call
DisplayManagerInternal.performTraversalInTransactionFromWindowManager()
within a surface transaction at a later time. |
abstract void |
saveLastInputMethodWindowForTransition()
Saves last input method window for transition.
|
abstract void |
setInputFilter(IInputFilter filter)
Sets a filter for manipulating the input event stream.
|
abstract void |
setMagnificationCallbacks(WindowManagerInternal.MagnificationCallbacks callbacks)
Set by the accessibility layer to observe changes in the magnified region,
rotation, and other window transformations related to display magnification
as the window manager is responsible for doing the actual magnification
and has access to the raw window data while the accessibility layer serves
as a controller.
|
abstract void |
setMagnificationSpec(MagnificationSpec spec)
Set by the accessibility layer to specify the magnification and panning to
be applied to all windows that should be magnified.
|
abstract void |
setOnHardKeyboardStatusChangeListener(WindowManagerInternal.OnHardKeyboardStatusChangeListener listener)
Sets the callback listener for hardware keyboard status changes.
|
abstract void |
setWindowsForAccessibilityCallback(WindowManagerInternal.WindowsForAccessibilityCallback callback)
Sets a callback for observing which windows are touchable for the purposes
of accessibility.
|
abstract void |
showGlobalActions()
Opens the global actions dialog.
|
abstract void |
waitForAllWindowsDrawn(Runnable callback,
long timeout)
Invalidate all visible windows.
|
public abstract void requestTraversalFromDisplayManager()
DisplayManagerInternal.performTraversalInTransactionFromWindowManager()
within a surface transaction at a later time.public abstract void setMagnificationCallbacks(WindowManagerInternal.MagnificationCallbacks callbacks)
callbacks
- The callbacks to invoke.public abstract void setMagnificationSpec(MagnificationSpec spec)
spec
- The MagnficationSpec to set.setMagnificationCallbacks(MagnificationCallbacks)
public abstract void getMagnificationRegion(Region magnificationRegion)
magnificationRegion
- the current magnification regionpublic abstract MagnificationSpec getCompatibleMagnificationSpecForWindow(IBinder windowToken)
windowToken
- The window's token.setMagnificationCallbacks(MagnificationCallbacks)
public abstract void setWindowsForAccessibilityCallback(WindowManagerInternal.WindowsForAccessibilityCallback callback)
callback
- The callback.public abstract void setInputFilter(IInputFilter filter)
filter
- The filter implementation.public abstract IBinder getFocusedWindowToken()
public abstract boolean isKeyguardLocked()
public abstract void getWindowFrame(IBinder token, Rect outBounds)
token
- The token.outBounds
- The frame to populate.public abstract void showGlobalActions()
public abstract void waitForAllWindowsDrawn(Runnable callback, long timeout)
public abstract void addWindowToken(IBinder token, int type)
token
- The token to add.type
- The window type.public abstract void removeWindowToken(IBinder token, boolean removeWindows)
token
- The toke to remove.removeWindows
- Whether to also remove the windows associated with the token.public abstract void registerAppTransitionListener(WindowManagerInternal.AppTransitionListener listener)
listener
- The listener to register.public abstract int getInputMethodWindowVisibleHeight()
public abstract void saveLastInputMethodWindowForTransition()
public abstract void clearLastInputMethodWindowForTransition()
public abstract boolean isHardKeyboardAvailable()
public abstract void setOnHardKeyboardStatusChangeListener(WindowManagerInternal.OnHardKeyboardStatusChangeListener listener)
listener
- The listener to set.public abstract boolean isStackVisible(int stackId)
public abstract boolean isDockedDividerResizing()