Methods Summary |
---|
public void | addAppToken(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 void | addWindowToken(android.os.IBinder token, int type)
|
public void | clearForcedDisplayDensity(int displayId)
|
public void | clearForcedDisplaySize(int displayId)
|
public boolean | clearWindowContentFrameStats(android.os.IBinder token)Clears the frame statistics for a given window.
|
public void | closeSystemDialogs(java.lang.String reason)
|
public void | disableKeyguard(android.os.IBinder token, java.lang.String tag)
|
public void | dismissKeyguard()
|
public void | enableScreenIfNeeded()Enables the screen if all conditions are met.
|
public void | executeAppTransition()
|
public void | exitKeyguardSecurely(android.view.IOnKeyguardExitResult callback)
|
public void | freezeRotation(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.
|
public float | getAnimationScale(int which)
|
public float[] | getAnimationScales()
|
public int | getAppOrientation(android.view.IApplicationToken token)
|
public int | getBaseDisplayDensity(int displayId)
|
public void | getBaseDisplaySize(int displayId, android.graphics.Point size)
|
public float | getCurrentAnimatorScale()
|
public int | getInitialDisplayDensity(int displayId)
|
public void | getInitialDisplaySize(int displayId, android.graphics.Point size)
|
public int | getPendingAppTransition()
|
public int | getPreferredOptionsPanelGravity()Determine the preferred edge of the screen to pin the compact options menu against.
|
public int | getRotation()Retrieve the current screen orientation, constants as per
{@link android.view.Surface}.
|
public android.view.WindowContentFrameStats | getWindowContentFrameStats(android.os.IBinder token)Gets the content frame statistics for a given window.
|
public boolean | hasNavigationBar()Device has a software navigation bar (separate from the status bar).
|
public boolean | inKeyguardRestrictedInputMode()
|
public boolean | inputMethodClientHasFocus(com.android.internal.view.IInputMethodClient client)
|
public boolean | isKeyguardLocked()
|
public boolean | isKeyguardSecure()
|
public boolean | isRotationFrozen()Gets whether the rotation is frozen.
|
public boolean | isSafeModeEnabled()Device is in safe mode.
|
public boolean | isViewServerRunning()
|
public void | keyguardGoingAway(boolean disableWindowAnimations, boolean keyguardGoingToNotificationShade)
|
public void | lockNow(android.os.Bundle options)Lock the device immediately with the specified options (can be null).
|
public android.view.IWindowSession | openSession(android.view.IWindowSessionCallback callback, com.android.internal.view.IInputMethodClient client, com.android.internal.view.IInputContext inputContext)
|
public void | overridePendingAppTransition(java.lang.String packageName, int enterAnim, int exitAnim, android.os.IRemoteCallback startedCallback)
|
public void | overridePendingAppTransitionAspectScaledThumb(android.graphics.Bitmap srcThumb, int startX, int startY, int targetWidth, int targetHeight, android.os.IRemoteCallback startedCallback, boolean scaleUp)
|
public void | overridePendingAppTransitionInPlace(java.lang.String packageName, int anim)
|
public void | overridePendingAppTransitionScaleUp(int startX, int startY, int startWidth, int startHeight)
|
public void | overridePendingAppTransitionThumb(android.graphics.Bitmap srcThumb, int startX, int startY, android.os.IRemoteCallback startedCallback, boolean scaleUp)
|
public void | pauseKeyDispatching(android.os.IBinder token)
|
public void | prepareAppTransition(int transit, boolean alwaysKeepCurrent)
|
public void | reenableKeyguard(android.os.IBinder token)
|
public void | removeAppToken(android.os.IBinder token)
|
public void | removeRotationWatcher(android.view.IRotationWatcher watcher)Remove a rotation watcher set using watchRotation.
|
public void | removeWindowToken(android.os.IBinder token)
|
public void | resumeKeyDispatching(android.os.IBinder token)
|
public android.graphics.Bitmap | screenshotApplications(android.os.IBinder appToken, int displayId, int maxWidth, int maxHeight, boolean force565)Create a screenshot of the applications currently displayed.
|
public void | setAnimationScale(int which, float scale)
|
public void | setAnimationScales(float[] scales)
|
public void | setAppGroupId(android.os.IBinder token, int groupId)
|
public void | setAppOrientation(android.view.IApplicationToken token, int requestedOrientation)
|
public void | setAppStartingWindow(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 void | setAppVisibility(android.os.IBinder token, boolean visible)
|
public void | setAppWillBeHidden(android.os.IBinder token)
|
public void | setEventDispatching(boolean enabled)
|
public void | setFocusedApp(android.os.IBinder token, boolean moveFocusNow)
|
public void | setForcedDisplayDensity(int displayId, int density)
|
public void | setForcedDisplaySize(int displayId, int width, int height)
|
public void | setInTouchMode(boolean showFocus)
|
public void | setNewConfiguration(android.content.res.Configuration config)
|
public void | setOverscan(int displayId, int left, int top, int right, int bottom)
|
public void | setScreenCaptureDisabled(int userId, boolean disabled)Set whether screen capture is disabled for all windows of a specific user
|
public void | setStrictModeVisualIndicatorPreference(java.lang.String enabled)
|
public void | showStrictModeViolation(boolean on)
|
public void | startAppFreezingScreen(android.os.IBinder token, int configChanges)
|
public void | startFreezingScreen(int exitAnim, int enterAnim)
|
public boolean | startViewServer(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 void | statusBarVisibilityChanged(int visibility)Called by the status bar to notify Views of changes to System UI visiblity.
|
public void | stopAppFreezingScreen(android.os.IBinder token, boolean force)
|
public void | stopFreezingScreen()
|
public boolean | stopViewServer()
|
public void | thawRotation()Release the orientation lock imposed by freezeRotation().
|
public android.content.res.Configuration | updateOrientationFromAppTokens(android.content.res.Configuration currentConfig, android.os.IBinder freezeThisOneIfNeeded)
|
public void | updateRotation(boolean alwaysSendConfiguration, boolean forceRelayout)Update the current screen rotation based on the current state of
the world.
|
public int | watchRotation(android.view.IRotationWatcher watcher)Watch the rotation of the screen. Returns the current rotation,
calls back when it changes.
|