FileDocCategorySizeDatePackage
WindowManagerInternal.javaAPI DocAndroid 5.1 API6179Thu Mar 12 22:22:10 GMT 2015android.view

WindowManagerInternal

public abstract class WindowManagerInternal extends Object
Window manager local system service interface.
hide
Only for use within the system server.

Fields Summary
Constructors Summary
Methods Summary
public abstract voidaddWindowToken(android.os.IBinder token, int type)
Adds a window token for a given window type.

param
token The token to add.
param
type The window type.

public abstract MagnificationSpecgetCompatibleMagnificationSpecForWindow(android.os.IBinder windowToken)
Gets the magnification and translation applied to a window given its token. Not all windows are magnified and the window manager policy determines which windows are magnified. The returned result also takes into account the compat scale if necessary.

param
windowToken The window's token.
return
The magnification spec for the window.
see
#setMagnificationCallbacks(MagnificationCallbacks)

public abstract android.os.IBindergetFocusedWindowToken()
Gets the token of the window that has input focus.

return
The token.

public abstract voidgetWindowFrame(android.os.IBinder token, android.graphics.Rect outBounds)
Gets the frame of a window given its token.

param
token The token.
param
outBounds The frame to populate.

public abstract booleanisKeyguardLocked()

return
Whether the keyguard is engaged.

public abstract voidremoveWindowToken(android.os.IBinder token, boolean removeWindows)
Removes a window token.

param
token The toke to remove.
param
removeWindows Whether to also remove the windows associated with the token.

public abstract voidrequestTraversalFromDisplayManager()
Request that the window manager call {@link DisplayManagerInternal#performTraversalInTransactionFromWindowManager} within a surface transaction at a later time.

public abstract voidsetInputFilter(IInputFilter filter)
Sets a filter for manipulating the input event stream.

param
filter The filter implementation.

public abstract voidsetMagnificationCallbacks(android.view.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.

param
callbacks The callbacks to invoke.

public abstract voidsetMagnificationSpec(MagnificationSpec spec)
Set by the accessibility layer to specify the magnification and panning to be applied to all windows that should be magnified.

param
spec The MagnficationSpec to set.
see
#setMagnificationCallbacks(MagnificationCallbacks)

public abstract voidsetWindowsForAccessibilityCallback(android.view.WindowManagerInternal$WindowsForAccessibilityCallback callback)
Sets a callback for observing which windows are touchable for the purposes of accessibility.

param
callback The callback.

public abstract voidshowGlobalActions()
Opens the global actions dialog.

public abstract voidwaitForAllWindowsDrawn(java.lang.Runnable callback, long timeout)
Invalidate all visible windows. Then report back on the callback once all windows have redrawn.