/cts/tests/framework/base/windowmanager/src/android/server/wm/ |
D | HideOverlayWindowsTest.java | 78 String windowName = "SYSTEM_ALERT_WINDOW"; in testApplicationOverlayHiddenWhenRequested() local 84 CliIntentExtra.extraString(WINDOW_NAME_EXTRA, windowName)); in testApplicationOverlayHiddenWhenRequested() 85 mWmState.waitAndAssertWindowSurfaceShown(windowName, true); in testApplicationOverlayHiddenWhenRequested() 89 mWmState.waitAndAssertWindowSurfaceShown(windowName, true); in testApplicationOverlayHiddenWhenRequested() 92 mWmState.waitAndAssertWindowSurfaceShown(windowName, false); in testApplicationOverlayHiddenWhenRequested() 95 mWmState.waitAndAssertWindowSurfaceShown(windowName, true); in testApplicationOverlayHiddenWhenRequested() 100 String windowName = "SYSTEM_ALERT_WINDOW"; in testSystemApplicationOverlayFlagNoEffectWithoutPermission() local 106 CliIntentExtra.extraString(WINDOW_NAME_EXTRA, windowName), in testSystemApplicationOverlayFlagNoEffectWithoutPermission() 108 mWmState.waitAndAssertWindowSurfaceShown(windowName, true); in testSystemApplicationOverlayFlagNoEffectWithoutPermission() 112 mWmState.waitAndAssertWindowSurfaceShown(windowName, true); in testSystemApplicationOverlayFlagNoEffectWithoutPermission() [all …]
|
D | ReplaceWindowTests.java | 64 final String windowName = getWindowName(activityName); in testReplaceWindow_Dock() local 78 final String oldToken = getWindowToken(windowName, activityName); in testReplaceWindow_Dock() 87 final String newToken = getWindowToken(windowName, activityName); in testReplaceWindow_Dock() 93 private String getWindowToken(String windowName, ComponentName activityName) throws Exception { in getWindowToken() argument 99 mWmState.getMatchingWindowTokens(windowName); in getWindowToken()
|
D | WindowInputTests.java | 278 final String windowName = "Test Overlay"; in testFilterTouchesWhenObscuredByWindowFromDifferentUid() local 303 WindowManager.LayoutParams params = getObscuringViewLayoutParams(windowName); in testFilterTouchesWhenObscuredByWindowFromDifferentUid() 315 waitForWindow(windowName); in testFilterTouchesWhenObscuredByWindowFromDifferentUid() 332 final String windowName = "Test Overlay"; in testFlagTouchesWhenObscuredByWindowFromDifferentUid() local 358 WindowManager.LayoutParams params = getObscuringViewLayoutParams(windowName); in testFlagTouchesWhenObscuredByWindowFromDifferentUid() 369 waitForWindow(windowName); in testFlagTouchesWhenObscuredByWindowFromDifferentUid() 388 final String windowName = "Test Overlay"; in testDoNotFlagTouchesWhenObscuredByZeroOpacityWindow() local 411 WindowManager.LayoutParams params = getObscuringViewLayoutParams(windowName); in testDoNotFlagTouchesWhenObscuredByZeroOpacityWindow() 418 waitForWindow(windowName); in testDoNotFlagTouchesWhenObscuredByZeroOpacityWindow() 436 final String windowName = "Test Overlay"; in testFlagTouchesWhenObscuredByMinPositiveOpacityWindow() local [all …]
|
D | ManifestLayoutTests.java | 183 final String windowName = getWindowName(activityName); in getDisplayAndWindowState() local 188 mWmState.assertFocusedWindow("Test window must be the front window.", windowName); in getDisplayAndWindowState() 194 mWmState.getMatchingVisibleWindowState(windowName); in getDisplayAndWindowState()
|
D | DialogFrameTests.java | 84 private WindowState getSingleWindow(final String windowName) { in getSingleWindow() argument 86 mWmState.getMatchingVisibleWindowState(windowName); in getSingleWindow()
|
D | BlurTests.java | 347 String windowName = getWindowName(activityName); in getWindowFrame() local 349 return mWmState.getMatchingVisibleWindowState(windowName).get(0).getFrame(); in getWindowFrame()
|
D | PinnedStackTests.java | 1987 final String windowName = getWindowName(topActivityName); in pinnedStackTester() local 1999 "Pinned window must be focused window.", windowName); in pinnedStackTester() 2010 "Pinned window can't be focused window.", windowName); in pinnedStackTester()
|
/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() 127 private Builder setWindowName(String windowName) { in setWindowName() argument 128 mWindowName = windowName; in setWindowName()
|
D | WindowManagerStateHelper.java | 326 void waitForWindowSurfaceDisappeared(String windowName) { in waitForWindowSurfaceDisappeared() argument 328 return !state.isWindowSurfaceShown(windowName); in waitForWindowSurfaceDisappeared() 329 }, windowName + "'s surface is disappeared"); in waitForWindowSurfaceDisappeared() 332 public void waitAndAssertWindowSurfaceShown(String windowName, boolean shown) { in waitAndAssertWindowSurfaceShown() argument 334 waitForWithAmState(state -> state.isWindowSurfaceShown(windowName) == shown, in waitAndAssertWindowSurfaceShown() 335 windowName + "'s isWindowSurfaceShown to return " + shown)); in waitAndAssertWindowSurfaceShown() 439 final String windowName = state.windowName; 445 getMatchingVisibleWindowState(windowName); 448 logAlways("Activity window not visible: " + windowName); 635 public void assertFocusedWindow(String msg, String windowName) { [all …]
|
D | WindowManagerState.java | 523 DisplayArea getDisplayArea(String windowName) { in getDisplayArea() argument 526 final DisplayArea da = display.getDisplayArea(windowName); in getDisplayArea() 957 public List<WindowState> getMatchingVisibleWindowState(final String windowName) { in getMatchingVisibleWindowState() argument 958 return getMatchingWindows(ws -> ws.isSurfaceShown() && windowName.equals(ws.getName())) in getMatchingVisibleWindowState() 1001 List<String> getMatchingWindowTokens(final String windowName) { in getMatchingWindowTokens() argument 1002 return getMatchingWindows(ws -> windowName.equals(ws.getName())) in getMatchingWindowTokens() 1040 public boolean containsWindow(String windowName) { in containsWindow() argument 1042 if (window.getName().equals(windowName)) { in containsWindow() 1050 public boolean isWindowSurfaceShown(String windowName) { in isWindowSurfaceShown() argument 1052 if (window.getName().equals(windowName)) { in isWindowSurfaceShown() [all …]
|
/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/shared/src/android/server/wm/shared/ |
D | IUntrustedTouchTestService.aidl | 23 void showSystemAlertWindow(String windowName, float opacity, int viewX, int viewY); in showSystemAlertWindow() argument 24 void showActivityChildWindow(String windowName, in IBinder token); in showActivityChildWindow() argument
|
/cts/tests/app/app/src/android/app/stubs/ |
D | LocalAlertService.java | 59 private View showAlertWindow(String windowName) { in showAlertWindow() argument 70 params.setTitle(windowName); in showAlertWindow() 73 view.setText(windowName); in showAlertWindow()
|
/cts/tests/tests/systemui/common/src/android/systemui/tv/cts/ |
D | TestEntities.kt | 29 fun ComponentName.windowName(): String = flattenToString() in activityName() method
|
/cts/tests/tests/systemui/src/android/systemui/cts/tv/ |
D | BasicPipTests.kt | 32 import android.systemui.tv.cts.Components.windowName in <lambda>() 121 PIP_ACTIVITY.windowName()) in <lambda>()
|
/cts/tests/framework/base/windowmanager/overlayappbase/src/android/server/wm/overlay/ |
D | UntrustedTouchTestService.java | 144 private static LayoutParams newOverlayLayoutParams(String windowName, int type) { in newOverlayLayoutParams() argument 151 params.setTitle(windowName); in newOverlayLayoutParams()
|