public static interface WindowManagerPolicy.WindowManagerFuncs
Modifier and Type | Field and Description |
---|---|
static int |
CAMERA_LENS_COVER_ABSENT |
static int |
CAMERA_LENS_COVERED |
static int |
CAMERA_LENS_UNCOVERED |
static int |
LID_ABSENT |
static int |
LID_CLOSED |
static int |
LID_OPEN |
Modifier and Type | Method and Description |
---|---|
WindowManagerPolicy.InputConsumer |
addInputConsumer(Looper looper,
InputEventReceiver.Factory inputEventReceiverFactory)
Add a input consumer which will consume all input events going to any window below it.
|
int |
getCameraLensCoverState()
Returns a code that descripbes whether the camera lens is covered or not.
|
int |
getDockedDividerInsetsLw() |
int |
getLidState()
Returns a code that describes the current state of the lid switch.
|
void |
getStackBounds(int stackId,
Rect outBounds)
Retrieves the from the stack with id .
|
Object |
getWindowManagerLock()
Return the window manager lock needed to correctly call "Lw" methods.
|
void |
lockDeviceNow()
Lock the device now.
|
void |
overridePlayingAppAnimationsLw(Animation a)
Overrides all currently playing app animations with .
|
void |
reboot(boolean confirm) |
void |
rebootSafeMode(boolean confirm) |
void |
reevaluateStatusBarVisibility()
Ask the window manager to re-evaluate the system UI flags.
|
void |
registerPointerEventListener(WindowManagerPolicy.PointerEventListener listener)
Register a system listener for touch events
|
void |
shutdown(boolean confirm) |
void |
switchInputMethod(boolean forwardDirection)
Switch the input method, to be precise, input method subtype.
|
void |
unregisterPointerEventListener(WindowManagerPolicy.PointerEventListener listener)
Unregister a system listener for touch events
|
static final int LID_ABSENT
static final int LID_CLOSED
static final int LID_OPEN
static final int CAMERA_LENS_COVER_ABSENT
static final int CAMERA_LENS_UNCOVERED
static final int CAMERA_LENS_COVERED
void reevaluateStatusBarVisibility()
WindowManagerPolicy.InputConsumer addInputConsumer(Looper looper, InputEventReceiver.Factory inputEventReceiverFactory)
int getLidState()
void lockDeviceNow()
int getCameraLensCoverState()
void switchInputMethod(boolean forwardDirection)
forwardDirection
- true
to rotate in a forward direction.void shutdown(boolean confirm)
void reboot(boolean confirm)
void rebootSafeMode(boolean confirm)
Object getWindowManagerLock()
void registerPointerEventListener(WindowManagerPolicy.PointerEventListener listener)
void unregisterPointerEventListener(WindowManagerPolicy.PointerEventListener listener)
int getDockedDividerInsetsLw()
void getStackBounds(int stackId, Rect outBounds)
void overridePlayingAppAnimationsLw(Animation a)