public final class WindowManagerGlobal extends Object
WindowManager
instead
since it is bound to a context.WindowManagerImpl
Modifier and Type | Field and Description |
---|---|
static int |
ADD_APP_EXITING |
static int |
ADD_BAD_APP_TOKEN |
static int |
ADD_BAD_SUBWINDOW_TOKEN |
static int |
ADD_DUPLICATE_ADD |
static int |
ADD_FLAG_ALWAYS_CONSUME_NAV_BAR
Like
RELAYOUT_RES_CONSUME_ALWAYS_NAV_BAR , but as a "hint" when adding the window. |
static int |
ADD_FLAG_APP_VISIBLE |
static int |
ADD_FLAG_IN_TOUCH_MODE |
static int |
ADD_INVALID_DISPLAY |
static int |
ADD_INVALID_TYPE |
static int |
ADD_MULTIPLE_SINGLETON |
static int |
ADD_NOT_APP_TOKEN |
static int |
ADD_OKAY |
static int |
ADD_PERMISSION_DENIED |
static int |
ADD_STARTING_NOT_NEEDED |
static int |
RELAYOUT_DEFER_SURFACE_DESTROY
Flag for relayout: the client may be currently using the current surface,
so if it is to be destroyed as a part of the relayout the destroy must
be deferred until later.
|
static int |
RELAYOUT_INSETS_PENDING
Flag for relayout: the client will be later giving
internal insets; as a result, the window will not impact other window
layouts until the insets are given.
|
static int |
RELAYOUT_RES_CONSUME_ALWAYS_NAV_BAR
In multi-window we force show the navigation bar.
|
static int |
RELAYOUT_RES_DRAG_RESIZING_DOCKED
The window is being resized by dragging on the docked divider.
|
static int |
RELAYOUT_RES_DRAG_RESIZING_FREEFORM
The window is being resized by dragging one of the window corners,
in this case the surface would be fullscreen-sized.
|
static int |
RELAYOUT_RES_FIRST_TIME
This is the first time the window is being drawn,
so the client must call drawingFinished() when done
|
static int |
RELAYOUT_RES_IN_TOUCH_MODE
The user is navigating with keys (not the touch screen), so
navigational focus should be shown.
|
static int |
RELAYOUT_RES_SURFACE_CHANGED
The window manager has changed the surface from the last call.
|
static int |
RELAYOUT_RES_SURFACE_RESIZED
The window manager has changed the size of the surface from the last call.
|
Modifier and Type | Method and Description |
---|---|
void |
addView(View view,
ViewGroup.LayoutParams params,
Display display,
Window parentWindow) |
void |
changeCanvasOpacity(IBinder token,
boolean opaque) |
void |
closeAll(IBinder token,
String who,
String what)
Remove all roots with specified token.
|
void |
closeAllExceptView(IBinder token,
View view,
String who,
String what)
Remove all roots with specified token, except maybe one view.
|
void |
dumpGfxInfo(FileDescriptor fd,
String[] args) |
static WindowManagerGlobal |
getInstance() |
View |
getRootView(String name) |
ArrayList<ViewRootImpl> |
getRootViews(IBinder token) |
String[] |
getViewRootNames() |
static IWindowManager |
getWindowManagerService() |
static IWindowSession |
getWindowSession() |
static void |
initialize() |
static IWindowSession |
peekWindowSession() |
void |
removeView(View view,
boolean immediate) |
void |
reportNewConfiguration(Configuration config) |
void |
setStoppedState(IBinder token,
boolean stopped) |
static boolean |
shouldDestroyEglContext(int trimLevel) |
static void |
trimForeground() |
void |
trimMemory(int level) |
void |
updateViewLayout(View view,
ViewGroup.LayoutParams params) |
public static final int RELAYOUT_RES_IN_TOUCH_MODE
public static final int RELAYOUT_RES_FIRST_TIME
public static final int RELAYOUT_RES_SURFACE_CHANGED
public static final int RELAYOUT_RES_DRAG_RESIZING_DOCKED
IWindow#resized
.public static final int RELAYOUT_RES_DRAG_RESIZING_FREEFORM
public static final int RELAYOUT_RES_SURFACE_RESIZED
public static final int RELAYOUT_RES_CONSUME_ALWAYS_NAV_BAR
public static final int RELAYOUT_INSETS_PENDING
public static final int RELAYOUT_DEFER_SURFACE_DESTROY
public static final int ADD_FLAG_APP_VISIBLE
public static final int ADD_FLAG_IN_TOUCH_MODE
public static final int ADD_FLAG_ALWAYS_CONSUME_NAV_BAR
RELAYOUT_RES_CONSUME_ALWAYS_NAV_BAR
, but as a "hint" when adding the window.public static final int ADD_OKAY
public static final int ADD_BAD_APP_TOKEN
public static final int ADD_BAD_SUBWINDOW_TOKEN
public static final int ADD_NOT_APP_TOKEN
public static final int ADD_APP_EXITING
public static final int ADD_DUPLICATE_ADD
public static final int ADD_STARTING_NOT_NEEDED
public static final int ADD_MULTIPLE_SINGLETON
public static final int ADD_PERMISSION_DENIED
public static final int ADD_INVALID_DISPLAY
public static final int ADD_INVALID_TYPE
public static void initialize()
public static WindowManagerGlobal getInstance()
public static IWindowManager getWindowManagerService()
public static IWindowSession getWindowSession()
public static IWindowSession peekWindowSession()
public String[] getViewRootNames()
public ArrayList<ViewRootImpl> getRootViews(IBinder token)
public void addView(View view, ViewGroup.LayoutParams params, Display display, Window parentWindow)
public void updateViewLayout(View view, ViewGroup.LayoutParams params)
public void removeView(View view, boolean immediate)
public void closeAll(IBinder token, String who, String what)
token
- app or window token.who
- name of caller, used in logs.what
- type of caller, used in logs.public void closeAllExceptView(IBinder token, View view, String who, String what)
token
- app or window token.view
- view that should be should be preserved along with it's root.
Pass null if everything should be removed.who
- name of caller, used in logs.what
- type of caller, used in logs.public static boolean shouldDestroyEglContext(int trimLevel)
public void trimMemory(int level)
public static void trimForeground()
public void dumpGfxInfo(FileDescriptor fd, String[] args)
public void setStoppedState(IBinder token, boolean stopped)
public void reportNewConfiguration(Configuration config)
public void changeCanvasOpacity(IBinder token, boolean opaque)