Home
last modified time | relevance | path

Searched refs:windowName (Results 1 – 13 of 13) sorted by relevance

/cts/tests/framework/base/windowmanager/util/src/android/server/wm/
DWaitForValidActivityState.java41 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()
DActivityAndWindowManagersState.java442 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 …]
DWindowManagerState.java335 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/
DWaitForValidActivityState.java41 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()
DActivityAndWindowManagersState.java237 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()
DWindowManagerState.java190 … 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()
DActivityManagerTestBase.java187 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/
DAlertWindowTestBaseActivity.java34 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/
DReplaceWindowTests.java65 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()
DManifestLayoutTests.java164 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()
DDialogFrameTests.java81 private WindowState getSingleWindow(final String windowName) { in getSingleWindow() argument
83 mAmWmState.getWmState().getMatchingVisibleWindowState(windowName); in getSingleWindow()
DAppConfigurationTests.java838 final String windowName = getWindowName(activityName);
841 mAmWmState.assertFocusedWindow("Test window must be the front window.", windowName);
844 mAmWmState.getWmState().getMatchingVisibleWindowState(windowName);
DPinnedStackTests.java1438 String windowName = getWindowName(activityName); in getWindowState() local
1441 mAmWmState.getWmState().getMatchingVisibleWindowState(windowName); in getWindowState()
1546 final String windowName = getWindowName(topActivityName); in pinnedStackTester() local
1558 "Pinned window must be focused window.", windowName); in pinnedStackTester()
1569 "Pinned window can't be focused window.", windowName); in pinnedStackTester()