/cts/tests/framework/base/windowmanager/util/src/android/server/wm/ |
D | WaitForValidActivityState.java | 41 public final String windowName; field in WaitForValidActivityState 46 public static WaitForValidActivityState forWindow(final String windowName) { in forWindow() argument 47 return new Builder().setWindowName(windowName).build(); in forWindow() 52 this.windowName = getWindowName(activityName); in WaitForValidActivityState() 60 this.windowName = builder.mWindowName; in WaitForValidActivityState() 75 if (windowName != null) { in toString() 76 sb.append(" window=").append(windowName); in toString() 128 private Builder setWindowName(String windowName) { in setWindowName() argument 129 mWindowName = windowName; in setWindowName()
|
D | ActivityAndWindowManagersState.java | 442 final String windowName = state.windowName; in shouldWaitForActivities() local 448 mWmState.getMatchingVisibleWindowState(windowName); in shouldWaitForActivities() 451 logAlways("Activity window not visible: " + windowName); in shouldWaitForActivities() 648 void assertFocusedWindow(String msg, String windowName) { in assertFocusedWindow() argument 649 assertEquals(msg, windowName, mWmState.getFocusedWindow()); in assertFocusedWindow() 652 void assertNotFocusedWindow(String msg, String windowName) { in assertNotFocusedWindow() argument 653 assertNotEquals(msg, mWmState.getFocusedWindow(), windowName); in assertNotFocusedWindow() 657 final String windowName = getWindowName(activityName); in assertNotExist() local 660 assertFalse("Window=" + windowName + " must NOT exits.", in assertNotExist() 661 mWmState.containsWindow(windowName)); in assertNotExist() [all …]
|
D | WindowManagerState.java | 335 List<String> getMatchingWindowTokens(final String windowName) { in getMatchingWindowTokens() argument 336 return getMatchingWindows(ws -> windowName.equals(ws.getName())) in getMatchingWindowTokens() 363 public List<WindowState> getMatchingVisibleWindowState(final String windowName) { in getMatchingVisibleWindowState() argument 364 return getMatchingWindows(ws -> ws.isShown() && windowName.equals(ws.getName())) in getMatchingVisibleWindowState() 475 public boolean containsWindow(String windowName) { in containsWindow() argument 477 if (window.getName().equals(windowName)) { in containsWindow() 487 boolean isWindowVisible(String windowName) { in isWindowVisible() argument 489 if (window.getName().equals(windowName)) { in isWindowVisible() 498 boolean allWindowsVisible(String windowName) { in allWindowsVisible() argument 501 if (window.getName().equals(windowName)) { in allWindowsVisible() [all …]
|
/cts/tests/tests/keystore/src/android/server/am/ |
D | WaitForValidActivityState.java | 41 public final String windowName; field in WaitForValidActivityState 46 public static WaitForValidActivityState forWindow(final String windowName) { in forWindow() argument 47 return new Builder().setWindowName(windowName).build(); in forWindow() 52 this.windowName = getWindowName(activityName); in WaitForValidActivityState() 60 this.windowName = builder.mWindowName; in WaitForValidActivityState() 75 if (windowName != null) { in toString() 76 sb.append(" window=").append(windowName); in toString() 128 private Builder setWindowName(String windowName) { in setWindowName() argument 129 mWindowName = windowName; in setWindowName()
|
D | ActivityAndWindowManagersState.java | 237 final String windowName = state.windowName; in shouldWaitForActivities() local 242 mWmState.getMatchingVisibleWindowState(windowName, matchingWindowStates); in shouldWaitForActivities() 245 logAlways("Activity window not visible: " + windowName); in shouldWaitForActivities() 340 final String windowName = getWindowName(activityName); in assertVisibility() local 342 final boolean windowVisible = mWmState.isWindowVisible(windowName); in assertVisibility() 346 assertEquals("Window=" + windowName + " must" + (visible ? "" : " NOT") + " be visible.", in assertVisibility()
|
D | WindowManagerState.java | 190 … public void getMatchingVisibleWindowState(final String windowName, List<WindowState> windowList) { in getMatchingVisibleWindowState() argument 193 if (ws.isShown() && windowName.equals(ws.getName())) { in getMatchingVisibleWindowState() 264 boolean isWindowVisible(String windowName) { in isWindowVisible() argument 266 if (window.getName().equals(windowName)) { in isWindowVisible()
|
D | ActivityManagerTestBase.java | 187 final String windowName = getWindowName(activityName); in getActivityTaskId() local 189 final Pattern activityPattern = Pattern.compile("(.*) " + windowName + " (.*)"); in getActivityTaskId()
|
/cts/tests/framework/base/windowmanager/alertwindowappsdk25/src/android/server/wm/alertwindowappsdk25/ |
D | AlertWindowTestBaseActivity.java | 34 protected void createAllAlertWindows(String windowName) { in createAllAlertWindows() argument 38 createAlertWindow(type, windowName); in createAllAlertWindows() 49 protected void createAlertWindow(int type, String windowName) { in createAlertWindow() argument 63 params.setTitle(windowName); in createAlertWindow() 66 view.setText(windowName + " type=" + type); in createAlertWindow()
|
/cts/tests/framework/base/windowmanager/src/android/server/wm/ |
D | ReplaceWindowTests.java | 65 final String windowName = getWindowName(activityName); in testReplaceWindow_Dock() local 79 final String oldToken = getWindowToken(windowName, activityName); in testReplaceWindow_Dock() 88 final String newToken = getWindowToken(windowName, activityName); in testReplaceWindow_Dock() 94 private String getWindowToken(String windowName, ComponentName activityName) throws Exception { in getWindowToken() argument 100 mAmWmState.getWmState().getMatchingWindowTokens(windowName); in getWindowToken()
|
D | ManifestLayoutTests.java | 164 final String windowName = getWindowName(activityName); in getDisplayAndWindowState() local 169 mAmWmState.assertFocusedWindow("Test window must be the front window.", windowName); in getDisplayAndWindowState() 175 mAmWmState.getWmState().getMatchingVisibleWindowState(windowName); in getDisplayAndWindowState()
|
D | DialogFrameTests.java | 81 private WindowState getSingleWindow(final String windowName) { in getSingleWindow() argument 83 mAmWmState.getWmState().getMatchingVisibleWindowState(windowName); in getSingleWindow()
|
D | AppConfigurationTests.java | 844 final String windowName = getWindowName(activityName); 847 mAmWmState.assertFocusedWindow("Test window must be the front window.", windowName); 850 mAmWmState.getWmState().getMatchingVisibleWindowState(windowName);
|
D | PinnedStackTests.java | 1468 String windowName = getWindowName(activityName); in getWindowState() local 1471 mAmWmState.getWmState().getMatchingVisibleWindowState(windowName); in getWindowState() 1576 final String windowName = getWindowName(topActivityName); in pinnedStackTester() local 1588 "Pinned window must be focused window.", windowName); in pinnedStackTester() 1599 "Pinned window can't be focused window.", windowName); in pinnedStackTester()
|