Home
last modified time | relevance | path

Searched refs:activityType (Results 1 – 10 of 10) sorted by relevance

/cts/tests/framework/base/windowmanager/util/src/android/server/wm/
DWaitForValidActivityState.java44 public final int activityType; field in WaitForValidActivityState
55 this.activityType = ACTIVITY_TYPE_UNDEFINED; in WaitForValidActivityState()
63 this.activityType = builder.mActivityType; in WaitForValidActivityState()
72 if (activityType != ACTIVITY_TYPE_UNDEFINED) { in toString()
73 sb.append(" type=").append(activityTypeName(activityType)); in toString()
99 private static String activityTypeName(int activityType) { in activityTypeName() argument
100 switch (activityType) { in activityTypeName()
107 throw new IllegalArgumentException("Unknown ACTIVITY_TYPE_: " + activityType); in activityTypeName()
142 public Builder setActivityType(int activityType) { in setActivityType() argument
143 mActivityType = activityType; in setActivityType()
DWindowManagerStateHelper.java300 public void waitForFocusedStack(int windowingMode, int activityType) { in waitForFocusedStack() argument
302 (activityType == ACTIVITY_TYPE_UNDEFINED in waitForFocusedStack()
303 || state.getFocusedRootTaskActivityType() == activityType) in waitForFocusedStack()
498 final int activityType = state.activityType;
520 if (activityType != ACTIVITY_TYPE_UNDEFINED
521 && ws.getActivityType() != activityType) {
612 public void assertContainsStack(String msg, int windowingMode, int activityType) {
613 assertTrue(msg, containsRootTasks(windowingMode, activityType));
616 public void assertDoesNotContainStack(String msg, int windowingMode, int activityType) {
617 assertFalse(msg, containsRootTasks(windowingMode, activityType));
[all …]
DActivityLauncher.java232 final int activityType = extras.getInt(KEY_ACTIVITY_TYPE, -1); in launchActivityFromExtras() local
233 if (activityType != -1) { in launchActivityFromExtras()
237 options.setLaunchActivityType(activityType); in launchActivityFromExtras()
DProtoExtractors.java59 config.setActivityType(proto.activityType); in extract()
DWindowManagerState.java638 public boolean containsRootTasks(int windowingMode, int activityType) { in containsRootTasks() argument
639 return countRootTasks(windowingMode, activityType) > 0; in containsRootTasks()
642 public int countRootTasks(int windowingMode, int activityType) { in countRootTasks() argument
645 if (activityType != ACTIVITY_TYPE_UNDEFINED in countRootTasks()
646 && activityType != rootTask.getActivityType()) { in countRootTasks()
667 public Task getRootTaskByActivityType(int activityType) { in getRootTaskByActivityType() argument
669 if (activityType == rootTask.getActivityType()) { in getRootTaskByActivityType()
700 int getRootTaskIndexByActivityType(int activityType) { in getRootTaskIndexByActivityType() argument
703 if (activityType == display.mRootTasks.get(i).getActivityType()) { in getRootTaskIndexByActivityType()
967 public int getRootTaskCountWithActivityType(int activityType) { in getRootTaskCountWithActivityType() argument
[all …]
/cts/tests/tests/car_builtin/src/android/car/cts/builtin/app/
DActivityManagerHelperTest.java525 for (ActivityType activityType : ActivityType.values()) { in checkSimpleActivityExistence()
526 if (findSimpleActivityInType(activityType, wmState)) { in checkSimpleActivityExistence()
536 private static boolean findSimpleActivityInType(ActivityType activityType, in findSimpleActivityInType() argument
542 wmState.getRootTaskByActivityType(activityType.ordinal()); in findSimpleActivityInType()
552 Log.d(TAG, activityType.name() + ": activity name -- " + act.getName()); in findSimpleActivityInType()
556 Log.d(TAG, activityType.name() + " has simple activity root task:" + foundRootTask); in findSimpleActivityInType()
557 Log.d(TAG, activityType.name() + " has simple activity: " + foundSimpleActivity); in findSimpleActivityInType()
/cts/hostsidetests/jdwptunnel/src/android/jdwptunnel/cts/
DJdwpTunnelTest.java206 ReferenceType activityType = null; in testAttachDebugger() local
207 while (activityType == null) { in testAttachDebugger()
211 activityType = vm.eventQueue() in testAttachDebugger()
222 activityType.methodsByName("onCreate").get(0).allLineLocations().get(0)); in testAttachDebugger()
/cts/tests/framework/base/windowmanager/src/android/server/wm/activity/
DAssistantStackTests.java419 private void waitForValidStateWithActivityType(ComponentName activityName, int activityType) in waitForValidStateWithActivityType() argument
422 .setActivityType(activityType) in waitForValidStateWithActivityType()
427 int activityType, int windowingMode) throws Exception { in waitForValidStateWithActivityTypeAndWindowingMode() argument
429 .setActivityType(activityType) in waitForValidStateWithActivityTypeAndWindowingMode()
/cts/tests/framework/base/windowmanager/src/android/server/wm/multidisplay/
DMultiDisplayActivityLaunchTests.java130 private void validateActivityLaunchOnNewDisplay(int activityType) { in validateActivityLaunchOnNewDisplay() argument
139 .setMultipleTask(true).setActivityType(activityType) in validateActivityLaunchOnNewDisplay()
149 assertEquals("Top activity must have correct activity type", activityType, in validateActivityLaunchOnNewDisplay()
/cts/tests/framework/base/windowmanager/src/android/server/wm/other/
DPinnedStackTests.java1859 int windowingMode, int activityType, int previousWindowingMode) { in assertPinnedStackStateOnMoveToBackStack() argument
1860 mWmState.waitForFocusedStack(windowingMode, activityType); in assertPinnedStackStateOnMoveToBackStack()
1861 mWmState.assertFocusedRootTask("Wrong focused stack", windowingMode, activityType); in assertPinnedStackStateOnMoveToBackStack()