Home
last modified time | relevance | path

Searched refs:WindowManagerState (Results 1 – 25 of 73) sorted by relevance

123

/cts/tests/framework/base/windowmanager/src/android/server/wm/
DPresentationTest.java56 WindowManagerState.DisplayContent display = in testPresentationAllowedOnPresentationDisplay()
72 WindowManagerState.DisplayContent display = virtualDisplaySession in testPresentationNotDismissAfterResizeDisplay()
94 WindowManagerState.DisplayContent display = in testPresentationBlockedOnNonPresentationDisplay()
104 private boolean isPresentationOnDisplay(WindowManagerState windowManagerState, int displayId) { in isPresentationOnDisplay()
105 final List<WindowManagerState.WindowState> states = in isPresentationOnDisplay()
107 for (WindowManagerState.WindowState ws : states) { in isPresentationOnDisplay()
114 final List<WindowManagerState.WindowState> presentationWindows = in assertNoPresentationDisplayed()
121 final List<WindowManagerState.WindowState> presentationWindows = in assertPresentationOnDisplayAndMatchesDisplayMetrics()
125 WindowManagerState.WindowState presentationWindowState = presentationWindows.get(0); in assertPresentationOnDisplayAndMatchesDisplayMetrics()
128 WindowManagerState.DisplayContent display = mWmState.getDisplay(displayId); in assertPresentationOnDisplayAndMatchesDisplayMetrics()
DAlertWindowsTests.java134 private boolean allWindowsHidden(List<WindowManagerState.WindowState> windows) { in allWindowsHidden()
135 for (WindowManagerState.WindowState ws : windows) { in allWindowsHidden()
146 final WindowManagerState wmState = mWmState; in assertAlertWindows()
148 final List<WindowManagerState.WindowState> alertWindows = in assertAlertWindows()
170 for (WindowManagerState.WindowState win : alertWindows) { in assertAlertWindows()
176 final WindowManagerState.WindowState mainAppWindow = in assertAlertWindows()
181 final WindowManagerState.WindowState lowestAlertWindow = alertWindows.get(0); in assertAlertWindows()
182 final WindowManagerState.WindowState highestAlertWindow = in assertAlertWindows()
191 final WindowManagerState.WindowState appOverlayWindow = in assertAlertWindows()
200 final List<WindowManagerState.WindowState> systemWindows = in assertAlertWindows()
[all …]
DTransitionSelectionTests.java21 import static android.server.wm.WindowManagerState.TRANSIT_ACTIVITY_CLOSE;
22 import static android.server.wm.WindowManagerState.TRANSIT_ACTIVITY_OPEN;
23 import static android.server.wm.WindowManagerState.TRANSIT_TASK_CLOSE;
24 import static android.server.wm.WindowManagerState.TRANSIT_TASK_OPEN;
25 import static android.server.wm.WindowManagerState.TRANSIT_TRANSLUCENT_ACTIVITY_CLOSE;
26 import static android.server.wm.WindowManagerState.TRANSIT_WALLPAPER_CLOSE;
27 import static android.server.wm.WindowManagerState.TRANSIT_WALLPAPER_INTRA_CLOSE;
28 import static android.server.wm.WindowManagerState.TRANSIT_WALLPAPER_INTRA_OPEN;
29 import static android.server.wm.WindowManagerState.TRANSIT_WALLPAPER_OPEN;
DKeyguardTransitionTests.java19 import static android.server.wm.WindowManagerState.STATE_STOPPED;
20 import static android.server.wm.WindowManagerState.TRANSIT_ACTIVITY_OPEN;
21 import static android.server.wm.WindowManagerState.TRANSIT_KEYGUARD_GOING_AWAY;
22 import static android.server.wm.WindowManagerState.TRANSIT_KEYGUARD_GOING_AWAY_ON_WALLPAPER;
23 import static android.server.wm.WindowManagerState.TRANSIT_KEYGUARD_OCCLUDE;
24 import static android.server.wm.WindowManagerState.TRANSIT_KEYGUARD_UNOCCLUDE;
DTaskFragmentOrganizerTest.java36 import android.server.wm.WindowManagerState.Task;
37 import android.server.wm.WindowManagerState.TaskFragment;
135 mWmState.waitForActivityState(mOwnerActivityName, WindowManagerState.STATE_RESUMED); in testReparentActivity()
168 mWmState.waitForActivityState(mLaunchingActivity, WindowManagerState.STATE_RESUMED); in testStartActivityInTaskFragment_reuseTask()
209 mWmState.waitForActivityState(mLaunchingActivity, WindowManagerState.STATE_RESUMED); in testStartActivityInTaskFragment_createNewTask()
280 waitAndAssertActivityState(mOwnerActivityName, WindowManagerState.STATE_STOPPED, in testActivityVisibilityBehindTaskFragment()
DMultiDisplayLockedKeyguardTests.java19 import static android.server.wm.WindowManagerState.STATE_RESUMED;
20 import static android.server.wm.WindowManagerState.STATE_STOPPED;
30 import android.server.wm.WindowManagerState.DisplayContent;
DWindowContextPolicyTests.java82 final WindowManagerState.DisplayContent display = createManagedVirtualDisplaySession() in testCreateMultipleWindowContextsWithoutView()
91 final WindowManagerState.DisplayContent display = createManagedVirtualDisplaySession() in testWindowContextWithAllPublicTypes()
112 final WindowManagerState.DisplayContent display = createManagedVirtualDisplaySession() in testWindowContextAddMismatchedWindowType()
DWindowMetricsActivityTests.java23 import static android.server.wm.WindowManagerState.STATE_PAUSED;
131 WindowManagerState.Task task = wmState.getTaskByActivity(activityName); in waitForEnterPipAnimationComplete()
135 WindowManagerState.Activity activity = task.getActivity(activityName); in waitForEnterPipAnimationComplete()
147 WindowManagerState.Task task = wmState.getTaskByActivity(activityName); in waitForEnterPip()
312 WindowManagerState.Activity activityContainer = mWmState.getActivity(activityName); in assertMetricsValidityForNonresizableActivity()
344 WindowManagerState.DisplayArea tda = mWmState.getTaskDisplayArea(activityName); in getTaskDisplayAreaBounds()
DDisplayAreaPolicyTests.java25 import android.server.wm.WindowManagerState.DisplayArea;
26 import android.server.wm.WindowManagerState.DisplayContent;
DCompatScaleTests.java85 private WindowManagerState.WindowState mWindowStateNormal;
86 private WindowManagerState.WindowState mWindowStateDownscaled;
234 private WindowManagerState.WindowState getPackageWindowState() { in getPackageWindowState()
DAspectRatioTestsBase.java53 final WindowManagerState.Activity activity = mWmState.getActivity(componentName); in runAspectRatioTest()
54 final WindowManagerState.DisplayContent display = mWmState.getDisplay(displayId); in runAspectRatioTest()
101 final WindowManagerState.DisplayContent display = mWmState.getDisplay(displayId); in getDisplayAspectRatio()
DMultiWindowTests.java24 import static android.server.wm.WindowManagerState.STATE_RESUMED;
25 import static android.server.wm.WindowManagerState.STATE_STOPPED;
346 WindowManagerState.Task task = mWmState.getTaskByActivity(targetActivityName, in launchTargetToSide()
380 WindowManagerState.Task taskFinal = in launchTargetToSide()
449 final WindowManagerState.Task task = in testDisallowUpdateWindowingModeWhenInLockedTask()
485 final WindowManagerState.Task task = mWmState in testDisallowHierarchyOperationWhenInLockedTask()
487 final WindowManagerState.Task root = mWmState in testDisallowHierarchyOperationWhenInLockedTask()
DManifestLayoutTests.java21 import static android.server.wm.WindowManagerState.dpToPx;
38 import android.server.wm.WindowManagerState.WindowState;
68 private WindowManagerState.DisplayContent mDisplay;
DCompatChangeTests.java522 WindowManagerState.Activity activityContainer = mWmState.getActivity(activity); in assertSizeCompatMode()
597 final WindowManagerState.Activity activity = mWmState.getActivity(activityName); in assertSandboxedByBounds()
601 WindowManagerState.DisplayArea tda = mWmState.getTaskDisplayArea(activityName); in assertSandboxedByBounds()
616 final WindowManagerState.Activity activity = mWmState.getActivity(activityName); in assertSandboxedByProvidesMaxBounds()
691 WindowManagerState.Activity activityContainer = mWmState.getActivity(activity); in runMinAspectRatioTest()
750 WindowManagerState.Activity activity = wmState.getActivity(activityName); in waitForActivityBoundsChanged()
DFreeformWindowingModeTests.java21 import static android.server.wm.WindowManagerState.dpToPx;
32 import android.server.wm.WindowManagerState.Task;
DToastWindowTest.java38 import android.server.wm.WindowManagerState.WindowState;
132 WindowManagerState wmState = getWmState(); in testToastWindowIsNotClickable()
DDisplayTests.java33 import android.server.wm.WindowManagerState.DisplayContent;
126 final WindowManagerState.Task frontStack = in testMultiDisplayDisabled()
DWindowContextTests.java72 final WindowManagerState.DisplayContent display = createManagedVirtualDisplaySession() in testWindowContextConfigChanges()
132 final WindowManagerState.DisplayContent display = createManagedVirtualDisplaySession() in testWindowContextRegisterComponentCallbacks()
162 final WindowManagerState.DisplayContent display = createManagedVirtualDisplaySession() in testWindowContextGlobalConfigChanges()
217 final WindowManagerState.DisplayArea da = mWmState.getTaskDisplayArea(activityName); in testWindowProviderServiceLifecycle()
DSplitActivityLifecycleTest.java23 import static android.server.wm.WindowManagerState.STATE_STARTED;
24 import static android.server.wm.WindowManagerState.STATE_STOPPED;
39 import android.server.wm.WindowManagerState.Task;
40 import android.server.wm.WindowManagerState.TaskFragment;
444 waitAndAssertActivityState(mActivityB, WindowManagerState.STATE_STOPPED, in testActivityLaunchAboveEmbeddedTaskInTaskFragment()
/cts/tests/framework/base/windowmanager/util/src/android/server/wm/
DWindowManagerStateHelper.java55 public class WindowManagerStateHelper extends WindowManagerState {
165 return waitForWithAmState(WindowManagerState::isRecentsActivityVisible, in waitForRecentsActivityVisible()
175 public static boolean isKeyguardShowingAndNotOccluded(WindowManagerState state) { in isKeyguardShowingAndNotOccluded()
277 state -> WindowManagerState.APP_STATE_RUNNING.equals( in waitForAppTransitionRunningOnDisplay()
284 state -> WindowManagerState.APP_STATE_IDLE.equals( in waitForAppTransitionIdleOnDisplay()
329 public boolean waitForWithAmState(String message, Predicate<WindowManagerState> waitCondition) { in waitForWithAmState()
333 public boolean waitForWithAmState(Predicate<WindowManagerState> waitCondition, in waitForWithAmState()
353 public boolean waitFor(String message, Predicate<WindowManagerState> waitCondition) { in waitFor()
358 public boolean waitFor(Predicate<WindowManagerState> waitCondition, String message) { in waitFor()
366 public <T> T waitForResult(String message, Function<WindowManagerState, T> function) { in waitForResult() argument
[all …]
DTouchHelper.java52 WindowManagerState.DisplayContent dc = mWmState.getDisplay(displayId); in touchAndCancelOnDisplayCenterSync()
121 public void tapOnTaskCenter(WindowManagerState.Task task) { in tapOnTaskCenter()
167 public void tapOnTaskCenterAsync(WindowManagerState.Task task) { in tapOnTaskCenterAsync()
/cts/tests/tests/systemui/src/android/systemui/cts/tv/
DBasicPipTests.kt26 import android.server.wm.WindowManagerState in <lambda>()
150 wmState.waitForWithAmState("checking task windowing mode") { state: WindowManagerState -> in <lambda>()
157 state: WindowManagerState -> in <lambda>()
160 activity.state == WindowManagerState.STATE_PAUSED in <lambda>()
/cts/tests/framework/base/windowmanager/src/android/server/wm/intent/
DPersistence.java24 import android.server.wm.WindowManagerState;
456 public static StateDump fromTasks(List<WindowManagerState.Task> activityTasks, in fromTasks()
457 List<WindowManagerState.Task> baseStacks) { in fromTasks()
459 for (WindowManagerState.Task task : trimTasks(activityTasks, baseStacks)) { in fromTasks()
494 public static List<WindowManagerState.Task> trimTasks( in trimTasks()
495 List<WindowManagerState.Task> toTrim, in trimTasks()
496 List<WindowManagerState.Task> trimFrom) { in trimTasks()
498 for (WindowManagerState.Task task : trimFrom) { in trimTasks()
550 public TaskState(WindowManagerState.Task state) { in TaskState()
553 for (WindowManagerState.Activity activity : state.getActivities()) { in TaskState()
[all …]
DLaunchRunner.java39 import android.server.wm.WindowManagerState;
78 private List<WindowManagerState.Task> mBaseTasks;
306 List<WindowManagerState.Task> endStateTasks = in waitDumpAndTrim()
329 List<WindowManagerState.Task> endStateTasks = in waitDumpAndTrimForVerification()
339 private List<WindowManagerState.Task> getBaseTasks() { in getBaseTasks()
/cts/tests/framework/base/windowmanager/src/android/server/wm/lifecycle/
DActivityLifecycleFreeformTests.java23 import static android.server.wm.WindowManagerState.STATE_PAUSED;
24 import static android.server.wm.WindowManagerState.STATE_RESUMED;
25 import static android.server.wm.WindowManagerState.STATE_STOPPED;

123