/cts/hostsidetests/services/activityandwindowmanager/windowmanager/src/android/server/cts/ |
DialogFrameTests.java | 26 import android.server.cts.WindowManagerState.WindowState; 29 private List<WindowState> mWindowList = new ArrayList(); 41 WindowState getSingleWindow(String windowName) { 56 WindowState dialog = getSingleWindow("TestDialog"); 57 WindowState parent = getSingleWindow("DialogTestActivity"); 66 (WindowState parent, WindowState dialog) -> { 76 (WindowState parent, WindowState dialog) -> { 86 (WindowState parent, WindowState dialog) -> [all...] |
ChildMovementTests.java | 33 import android.server.cts.WindowManagerState.WindowState; 36 private List<WindowState> mWindowList = new ArrayList(); 48 WindowState getSingleWindow(String fullWindowName) { 58 WindowState getSingleWindowByPrefix(String prefix) { 74 WindowState popup = getSingleWindowByPrefix(popupName); 75 WindowState parent = getSingleWindow(getBaseWindowName() + activityName()); 139 (WindowState parent, WindowState popup) -> {
|
AlertWindowsTests.java | 113 final ArrayList<WindowManagerState.WindowState> alertWindows = new ArrayList(); 123 for (WindowManagerState.WindowState win : alertWindows) { 129 final WindowManagerState.WindowState mainAppWindow = 135 final WindowManagerState.WindowState lowestAlertWindow = alertWindows.get(0); 136 final WindowManagerState.WindowState highestAlertWindow = 144 final WindowManagerState.WindowState appOverlayWindow = 153 final ArrayList<WindowManagerState.WindowState> systemWindows = new ArrayList(); 157 final WindowManagerState.WindowState lowestSystemWindow = alertWindows.get(0);
|
ParentChildTestBase.java | 23 import android.server.cts.WindowManagerState.WindowState; 30 void doTest(WindowState parent, WindowState child);
|
/frameworks/base/services/core/java/com/android/server/wm/ |
WindowHashMap.java | 27 class WindowHashMap extends HashMap<IBinder, WindowState> {
|
WindowToken.java | 42 class WindowToken extends WindowContainer<WindowState> { 88 private final Comparator<WindowState> mWindowComparator = 89 (WindowState newWindow, WindowState existingWindow) -> { 116 final WindowState win = mChildren.get(i); 136 final WindowState win = mChildren.get(i); 159 protected boolean isFirstChildWindowGreaterThanSecond(WindowState newWindow, 160 WindowState existingWindow) { 165 void addWindow(final WindowState win) { 191 WindowState getReplacingWindow() [all...] |
WindowLayersController.java | 61 private ArrayDeque<WindowState> mPinnedWindows = new ArrayDeque<>(); 62 private ArrayDeque<WindowState> mDockedWindows = new ArrayDeque<>(); 63 private ArrayDeque<WindowState> mAssistantWindows = new ArrayDeque<>(); 64 private ArrayDeque<WindowState> mInputMethodWindows = new ArrayDeque<>(); 65 private WindowState mDockDivider = null; 66 private ArrayDeque<WindowState> mReplacingWindows = new ArrayDeque<>(); 73 private WindowState mImeTarget; 75 private ArrayDeque<WindowState> mAboveImeTargetAppWindows = new ArrayDeque(); 77 private final Consumer<WindowState> mAssignWindowLayersConsumer = w -> { 164 private void collectSpecialWindows(WindowState w) [all...] |
AppWindowToken.java | 154 WindowState startingWindow; 162 private final WindowState.UpdateReportedVisibilityResults mReportedVisibilityResults = 163 new WindowState.UpdateReportedVisibilityResults(); 256 void onFirstWindowDrawn(WindowState win, WindowStateAnimator winAnimator) { 287 final WindowState win = mChildren.get(i); 375 final WindowState window = findMainWindow(); 386 final WindowState win = mChildren.get(i); 476 WindowState getTopFullscreenWindow() { 478 final WindowState win = mChildren.get(i); 486 WindowState findMainWindow() [all...] |
WallpaperController.java | 62 private WindowState mWallpaperTarget = null; 65 private WindowState mPrevWallpaperTarget = null; 78 private WindowState mWaitingOnWallpaper; 91 WindowState mDeferredHideWallpaper = null; 102 private final ToBooleanFunction<WindowState> mFindWallpaperTargetFunction = w -> { 178 WindowState getWallpaperTarget() { 182 boolean isWallpaperTarget(WindowState win) { 186 boolean isBelowWallpaperTarget(WindowState win) { 204 private boolean isWallpaperVisible(WindowState wallpaperTarget) { 237 void hideWallpapers(final WindowState winGoingAway) [all...] |
WallpaperWindowToken.java | 56 final WindowState wallpaper = mChildren.get(j); 65 final WindowState wallpaper = mChildren.get(wallpaperNdx); 78 final WindowState wallpaper = mChildren.get(wallpaperNdx); 103 final WindowState wallpaper = mChildren.get(wallpaperNdx); 117 final WindowState windowState = mChildren.get(ndx); 118 windowState.mWinAnimator.setAnimation(anim); 137 final WindowState wallpaper = mChildren.get(wallpaperNdx); 153 final WindowState wallpaper = mChildren.get(j);
|
DragState.java | 99 WindowState mTargetWindow; 100 ArrayList<WindowState> mNotifiedWindows; 116 mNotifiedWindows = new ArrayList<WindowState>(); 288 private void sendDragStartedLw(WindowState newWin, float touchX, float touchY, 308 private boolean isValidDropTarget(WindowState targetWin) { 326 private boolean targetWindowSupportsGlobalDrag(WindowState targetWin) { 337 void sendDragStartedIfNeededLw(WindowState newWin) { 350 private boolean isWindowNotified(WindowState newWin) { 351 for (WindowState ws : mNotifiedWindows) { 365 for (WindowState ws : mNotifiedWindows) [all...] |
InputMonitor.java | 63 private WindowState mInputFocus; 205 WindowState windowState = (WindowState) inputWindowHandle.windowState; 206 if (windowState != null) { 207 Slog.i(TAG_WM, "WINDOW DIED " + windowState); 208 windowState.removeIfPossible(); 222 WindowState windowState = null [all...] |
/frameworks/base/services/tests/servicestests/src/com/android/server/wm/ |
WindowStateTests.java | 46 * Tests for the {@link WindowState} class. 58 final WindowState parentWindow = createWindow(null, TYPE_APPLICATION, "parentWindow"); 59 final WindowState child1 = createWindow(parentWindow, FIRST_SUB_WINDOW, "child1"); 60 final WindowState child2 = createWindow(parentWindow, FIRST_SUB_WINDOW, "child2"); 75 final WindowState parentWindow = createWindow(null, TYPE_APPLICATION, "parentWindow"); 76 final WindowState child1 = createWindow(parentWindow, FIRST_SUB_WINDOW, "child1"); 77 final WindowState child2 = createWindow(parentWindow, FIRST_SUB_WINDOW, "child2"); 78 final WindowState randomWindow = createWindow(null, TYPE_APPLICATION, "randomWindow"); 88 final WindowState win1 = createWindow(null, TYPE_APPLICATION, "win1"); 89 final WindowState win11 = createWindow(win1, FIRST_SUB_WINDOW, "win11") [all...] |
WindowTestsBase.java | 76 WindowState mWallpaperWindow; 77 WindowState mImeWindow; 78 WindowState mImeDialogWindow; 79 WindowState mStatusBarWindow; 80 WindowState mDockedDividerWindow; 81 WindowState mNavBarWindow; 82 WindowState mAppWindow; 83 WindowState mChildAppWindowAbove; 84 WindowState mChildAppWindowBelow; 85 HashSet<WindowState> mCommonWindows [all...] |
WindowLayersControllerTests.java | 65 final WindowState imeAppTarget = 85 final WindowState imeAppTarget = 87 final WindowState imeAppTargetChildAboveWindow = createWindow(imeAppTarget, 90 final WindowState imeAppTargetChildBelowWindow = createWindow(imeAppTarget, 114 final WindowState appBelowImeTarget = 116 final WindowState imeAppTarget = 118 final WindowState appAboveImeTarget = 141 final WindowState imeSystemOverlayTarget = createWindow(null, TYPE_SYSTEM_OVERLAY, 163 WindowState pinnedStackWindow = createWindowOnStack(null, PINNED_STACK_ID, 165 WindowState dockedStackWindow = createWindowOnStack(null, DOCKED_STACK_ID [all...] |
WindowTokenTests.java | 54 final WindowState window1 = createWindow(null, TYPE_APPLICATION, token, "window1"); 55 final WindowState window11 = createWindow(window1, FIRST_SUB_WINDOW, token, "window11"); 56 final WindowState window12 = createWindow(window1, FIRST_SUB_WINDOW, token, "window12"); 57 final WindowState window2 = createWindow(null, TYPE_APPLICATION, token, "window2"); 58 final WindowState window3 = createWindow(null, TYPE_APPLICATION, token, "window3"); 84 final WindowState window1 = createWindow(null, TYPE_APPLICATION, token, "window1"); 85 final WindowState window2 = createWindow(null, TYPE_APPLICATION, token, "window2"); 101 final WindowState window1 = createWindow(null, TYPE_APPLICATION, token, "window1"); 102 final WindowState window11 = createWindow(window1, FIRST_SUB_WINDOW, token, "window11"); 103 final WindowState window12 = createWindow(window1, FIRST_SUB_WINDOW, token, "window12") [all...] |
TaskSnapshotControllerTest.java | 47 final WindowState closingWindow = createWindow(null, FIRST_APPLICATION_WINDOW, 61 final WindowState closingWindow = createWindow(null, FIRST_APPLICATION_WINDOW, 63 final WindowState openingWindow = createAppWindow(closingWindow.getTask(), 78 final WindowState disabledWindow = createWindow(null, 84 final WindowState normalWindow = createWindow(null, 89 final WindowState secureWindow = createWindow(null,
|
TaskSnapshotCacheTest.java | 51 final WindowState window = createWindow(null, FIRST_APPLICATION_WINDOW, "window"); 62 final WindowState window = createWindow(null, FIRST_APPLICATION_WINDOW, "window"); 73 final WindowState window = createWindow(null, FIRST_APPLICATION_WINDOW, "window"); 84 final WindowState window = createWindow(null, FIRST_APPLICATION_WINDOW, "window"); 101 final WindowState window = createWindow(null, FIRST_APPLICATION_WINDOW, "window");
|
TestWindowManagerPolicy.java | 195 public boolean canBeHiddenByKeyguardLw(WindowState win) { 211 final com.android.server.wm.WindowState window; 232 public int prepareAddWindowLw(WindowState win, 238 public void removeWindowLw(WindowState win) { 243 public int selectAnimationLw(WindowState win, int transit) { 280 public long interceptKeyBeforeDispatching(WindowState win, KeyEvent event, 286 public KeyEvent dispatchUnhandledKey(WindowState win, KeyEvent event, 308 public void layoutWindowLw(WindowState win, 309 WindowState attached) { 331 public void applyPostLayoutPolicyLw(WindowState win [all...] |
DisplayContentTests.java | 65 final WindowState exitingAppWindow = createWindow(null, TYPE_BASE_APPLICATION, 86 final WindowState imeAppTarget = 140 final WindowState voiceInteractionWindow = createWindow(null, TYPE_VOICE_INTERACTION, 159 final WindowState appWin = createWindow(null, TYPE_APPLICATION, mDisplayContent, "appWin"); 162 WindowState imeTarget = mDisplayContent.computeImeTarget(false /* updateImeTarget */); 166 final WindowState childWin = createWindow(appWin, 299 final WindowState window1 = 308 final WindowState window2 = createWindow(null, TYPE_BASE_APPLICATION, dc, "window2"); 376 final WindowState window = createWindow(null /* parent */, TYPE_BASE_APPLICATION, dc, "w"); 393 final WindowState window = createWindow(null /* parent */, TYPE_BASE_APPLICATION, dc, "w") [all...] |
AppWindowTokenTests.java | 60 final WindowState win1 = createWindow(null, TYPE_APPLICATION, token, "win1"); 61 final WindowState startingWin = createWindow(null, TYPE_APPLICATION_STARTING, token, 63 final WindowState baseWin = createWindow(null, TYPE_BASE_APPLICATION, token, "baseWin"); 64 final WindowState win4 = createWindow(null, TYPE_APPLICATION, token, "win4"); 88 final WindowState window1 = createWindow(null, TYPE_BASE_APPLICATION, token, "window1"); 89 final WindowState window11 = createWindow(window1, FIRST_SUB_WINDOW, token, "window11"); 90 final WindowState window12 = createWindow(window1, FIRST_SUB_WINDOW, token, "window12"); 94 final WindowState window2 = createWindow(null, TYPE_APPLICATION_STARTING, token, "window2"); 106 final WindowState window1 = createWindow(null, TYPE_BASE_APPLICATION, token, "window1"); 107 final WindowState window11 = createWindow(null, TYPE_APPLICATION, token, "window11") [all...] |
WindowTestUtils.java | 118 boolean hasWindow(WindowState w) { 122 WindowState getFirstChild() { 126 WindowState getLastChild() { 161 boolean hasWindow(WindowState w) { 297 public static class TestWindowState extends WindowState {
|
/frameworks/base/services/tests/servicestests/src/com/android/server/accessibility/ |
KeyboardInterceptorTest.java | 49 import android.view.WindowManagerPolicy.WindowState; 85 when(mMockPolicy.interceptKeyBeforeDispatching((WindowState) argThat(nullValue()), 94 when(mMockPolicy.interceptKeyBeforeDispatching((WindowState) argThat(nullValue()), 104 when(mMockPolicy.interceptKeyBeforeDispatching((WindowState) argThat(nullValue()), 111 when(mMockPolicy.interceptKeyBeforeDispatching((WindowState) argThat(nullValue()), 121 when(mMockPolicy.interceptKeyBeforeDispatching((WindowState) argThat(nullValue()), 128 when(mMockPolicy.interceptKeyBeforeDispatching((WindowState) argThat(nullValue()), 143 when(mMockPolicy.interceptKeyBeforeDispatching((WindowState) argThat(nullValue()), 145 when(mMockPolicy.interceptKeyBeforeDispatching((WindowState) argThat(nullValue()), 152 when(mMockPolicy.interceptKeyBeforeDispatching((WindowState) argThat(nullValue()) [all...] |
/frameworks/base/core/java/android/view/ |
WindowManagerPolicy.java | 204 public interface WindowState { 345 public boolean getNeedsMenuLw(WindowState bottom); 606 WindowState getInputMethodWindowLw(); 758 default int getWindowLayerLw(WindowState win) { [all...] |
/cts/hostsidetests/services/activityandwindowmanager/util/src/android/server/cts/ |
WindowManagerState.java | 117 private List<WindowState> mWindowStates = new ArrayList(); 210 final WindowState ws = WindowState.create(mSysDump, sExtractStackExitPatterns); 363 for (WindowState ws : mWindowStates) { 370 void getMatchingVisibleWindowState(final String windowName, List<WindowState> windowList) { 372 for (WindowState ws : mWindowStates) { 379 void getPrefixMatchingVisibleWindowState(final String windowName, List<WindowState> windowList) { 381 for (WindowState ws : mWindowStates) { 388 WindowState getWindowByPackageName(String packageName, int windowType) { 389 for (WindowState ws : mWindowStates) [all...] |