FileDocCategorySizeDatePackage
IWindowManager.javaAPI DocAndroid 5.1 API84881Sat Mar 14 05:48:06 GMT 2015android.view

IWindowManager

public interface IWindowManager implements android.os.IInterface
System private interface to the window manager. {@hide}

Fields Summary
Constructors Summary
Methods Summary
public voidaddAppToken(int addPos, android.view.IApplicationToken token, int groupId, int stackId, int requestedOrientation, boolean fullscreen, boolean showWhenLocked, int userId, int configChanges, boolean voiceInteraction, boolean launchTaskBehind)

public voidaddWindowToken(android.os.IBinder token, int type)

public voidclearForcedDisplayDensity(int displayId)

public voidclearForcedDisplaySize(int displayId)

public booleanclearWindowContentFrameStats(android.os.IBinder token)
Clears the frame statistics for a given window.

param
token The window token.
return
Whether the frame statistics were cleared.

public voidcloseSystemDialogs(java.lang.String reason)

public voiddisableKeyguard(android.os.IBinder token, java.lang.String tag)

public voiddismissKeyguard()

public voidenableScreenIfNeeded()
Enables the screen if all conditions are met.

public voidexecuteAppTransition()

public voidexitKeyguardSecurely(android.view.IOnKeyguardExitResult callback)

public voidfreezeRotation(int rotation)
Lock the device orientation to the specified rotation, or to the current rotation if -1. Sensor input will be ignored until thawRotation() is called.

hide

public floatgetAnimationScale(int which)

public float[]getAnimationScales()

public intgetAppOrientation(android.view.IApplicationToken token)

public intgetBaseDisplayDensity(int displayId)

public voidgetBaseDisplaySize(int displayId, android.graphics.Point size)

public floatgetCurrentAnimatorScale()

public intgetInitialDisplayDensity(int displayId)

public voidgetInitialDisplaySize(int displayId, android.graphics.Point size)

public intgetPendingAppTransition()

public intgetPreferredOptionsPanelGravity()
Determine the preferred edge of the screen to pin the compact options menu against.

return
a Gravity value for the options menu panel
hide

public intgetRotation()
Retrieve the current screen orientation, constants as per {@link android.view.Surface}.

public android.view.WindowContentFrameStatsgetWindowContentFrameStats(android.os.IBinder token)
Gets the content frame statistics for a given window.

param
token The window token.
return
The frame statistics or null if the window does not exist.

public booleanhasNavigationBar()
Device has a software navigation bar (separate from the status bar).

public booleaninKeyguardRestrictedInputMode()

public booleaninputMethodClientHasFocus(com.android.internal.view.IInputMethodClient client)

public booleanisKeyguardLocked()

public booleanisKeyguardSecure()

public booleanisRotationFrozen()
Gets whether the rotation is frozen.

return
Whether the rotation is frozen.

public booleanisSafeModeEnabled()
Device is in safe mode.

public booleanisViewServerRunning()

public voidkeyguardGoingAway(boolean disableWindowAnimations, boolean keyguardGoingToNotificationShade)

public voidlockNow(android.os.Bundle options)
Lock the device immediately with the specified options (can be null).

public android.view.IWindowSessionopenSession(android.view.IWindowSessionCallback callback, com.android.internal.view.IInputMethodClient client, com.android.internal.view.IInputContext inputContext)

public voidoverridePendingAppTransition(java.lang.String packageName, int enterAnim, int exitAnim, android.os.IRemoteCallback startedCallback)

public voidoverridePendingAppTransitionAspectScaledThumb(android.graphics.Bitmap srcThumb, int startX, int startY, int targetWidth, int targetHeight, android.os.IRemoteCallback startedCallback, boolean scaleUp)

public voidoverridePendingAppTransitionInPlace(java.lang.String packageName, int anim)

public voidoverridePendingAppTransitionScaleUp(int startX, int startY, int startWidth, int startHeight)

public voidoverridePendingAppTransitionThumb(android.graphics.Bitmap srcThumb, int startX, int startY, android.os.IRemoteCallback startedCallback, boolean scaleUp)

public voidpauseKeyDispatching(android.os.IBinder token)

public voidprepareAppTransition(int transit, boolean alwaysKeepCurrent)

public voidreenableKeyguard(android.os.IBinder token)

public voidremoveAppToken(android.os.IBinder token)

public voidremoveRotationWatcher(android.view.IRotationWatcher watcher)
Remove a rotation watcher set using watchRotation.

hide

public voidremoveWindowToken(android.os.IBinder token)

public voidresumeKeyDispatching(android.os.IBinder token)

public android.graphics.BitmapscreenshotApplications(android.os.IBinder appToken, int displayId, int maxWidth, int maxHeight, boolean force565)
Create a screenshot of the applications currently displayed.

public voidsetAnimationScale(int which, float scale)

public voidsetAnimationScales(float[] scales)

public voidsetAppGroupId(android.os.IBinder token, int groupId)

public voidsetAppOrientation(android.view.IApplicationToken token, int requestedOrientation)

public voidsetAppStartingWindow(android.os.IBinder token, java.lang.String pkg, int theme, android.content.res.CompatibilityInfo compatInfo, java.lang.CharSequence nonLocalizedLabel, int labelRes, int icon, int logo, int windowFlags, android.os.IBinder transferFrom, boolean createIfNeeded)

public voidsetAppVisibility(android.os.IBinder token, boolean visible)

public voidsetAppWillBeHidden(android.os.IBinder token)

public voidsetEventDispatching(boolean enabled)

public voidsetFocusedApp(android.os.IBinder token, boolean moveFocusNow)

public voidsetForcedDisplayDensity(int displayId, int density)

public voidsetForcedDisplaySize(int displayId, int width, int height)

public voidsetInTouchMode(boolean showFocus)

public voidsetNewConfiguration(android.content.res.Configuration config)

public voidsetOverscan(int displayId, int left, int top, int right, int bottom)

public voidsetScreenCaptureDisabled(int userId, boolean disabled)
Set whether screen capture is disabled for all windows of a specific user

public voidsetStrictModeVisualIndicatorPreference(java.lang.String enabled)

public voidshowStrictModeViolation(boolean on)

public voidstartAppFreezingScreen(android.os.IBinder token, int configChanges)

public voidstartFreezingScreen(int exitAnim, int enterAnim)

public booleanstartViewServer(int port)
===== NOTICE ===== The first three methods must remain the first three methods. Scripts and tools rely on their transaction number to work properly.

public voidstatusBarVisibilityChanged(int visibility)
Called by the status bar to notify Views of changes to System UI visiblity.

public voidstopAppFreezingScreen(android.os.IBinder token, boolean force)

public voidstopFreezingScreen()

public booleanstopViewServer()

public voidthawRotation()
Release the orientation lock imposed by freezeRotation().

hide

public android.content.res.ConfigurationupdateOrientationFromAppTokens(android.content.res.Configuration currentConfig, android.os.IBinder freezeThisOneIfNeeded)

public voidupdateRotation(boolean alwaysSendConfiguration, boolean forceRelayout)
Update the current screen rotation based on the current state of the world.

param
alwaysSendConfiguration Flag to force a new configuration to be evaluated. This can be used when there are other parameters in configuration that are changing.
param
forceRelayout If true, the window manager will always do a relayout of its windows even if the rotation hasn't changed.

public intwatchRotation(android.view.IRotationWatcher watcher)
Watch the rotation of the screen. Returns the current rotation, calls back when it changes.