Home
last modified time | relevance | path

Searched refs:taskId (Results 1 – 18 of 18) sorted by relevance

/cts/tests/framework/base/windowmanager/src/android/server/wm/lifecycle/
DActivityStarterTests.java106 final int taskId = mAmWmState.getAmState().getTaskByActivity(STANDARD_ACTIVITY).getTaskId(); in testLaunchStandardActivity() local
107 final int instances = mAmWmState.getAmState().getActivityCountInTask(taskId, null); in testLaunchStandardActivity()
114 mAmWmState.getAmState().getActivityCountInTask(taskId, null)); in testLaunchStandardActivity()
122 assertEquals("Activity must be in same task.", taskId, in testLaunchStandardActivity()
138 final int taskId = mAmWmState.getAmState().getTaskByActivity(STANDARD_ACTIVITY).getTaskId(); in testLaunchSingleTopActivity() local
143 final int instances = mAmWmState.getAmState().getActivityCountInTask(taskId, null); in testLaunchSingleTopActivity()
155 assertEquals("Two activities must be in same task.", taskId, in testLaunchSingleTopActivity()
163 mAmWmState.getAmState().getActivityCountInTask(taskId, null)); in testLaunchSingleTopActivity()
213 final int taskId = mAmWmState.getAmState().getTaskByActivity(STANDARD_ACTIVITY).getTaskId(); in testLaunchSingleTaskActivity() local
228 assertEquals("Activity must be in same task.", taskId, in testLaunchSingleTaskActivity()
[all …]
/cts/tests/tests/keystore/src/android/server/am/
DActivityAndWindowManagersState.java431 final int taskId = aTask.mTaskId; in assertValidBounds() local
432 final WindowTask wTask = wStack.getTask(taskId); in assertValidBounds()
434 "taskId=" + taskId + " in AM but not in WM? stackId=" + stackId, wTask); in assertValidBounds()
438 assertEquals("Task fullscreen state in AM and WM must be equal taskId=" + taskId in assertValidBounds()
445 assertNull("Task bounds in AM must be null for fullscreen taskId=" + taskId, in assertValidBounds()
453 assertEquals("Task bounds in AM and WM must match width taskId=" + taskId in assertValidBounds()
456 assertEquals("Task bounds in AM and WM must match height taskId=" + taskId in assertValidBounds()
459 assertEquals("Task bounds must match stack bounds y taskId=" + taskId in assertValidBounds()
462 assertEquals("Task and stack bounds must match width taskId=" + taskId in assertValidBounds()
465 assertEquals("Task and stack bounds must match height taskId=" + taskId in assertValidBounds()
[all …]
DActivityManagerTestBase.java177 final int taskId = getActivityTaskId(activityName); in setActivityTaskWindowingMode() local
178 mAtm.setTaskWindowingMode(taskId, windowingMode, true /* toTop */); in setActivityTaskWindowingMode()
DActivityManagerState.java290 ActivityTask getTask(int taskId) { in getTask() argument
292 if (taskId == task.mTaskId) { in getTask()
DWindowManagerState.java326 WindowTask getTask(int taskId) { in getTask() argument
328 if (taskId == task.mTaskId) { in getTask()
/cts/tests/framework/base/windowmanager/util/src/android/server/wm/
DActivityAndWindowManagersState.java835 final int taskId = aTask.mTaskId; in assertValidBounds() local
836 final WindowTask wTask = wStack.getTask(taskId); in assertValidBounds()
838 "taskId=" + taskId + " in AM but not in WM? stackId=" + stackId, wTask); in assertValidBounds()
842 assertEquals("Task fullscreen state in AM and WM must be equal taskId=" + taskId in assertValidBounds()
849 assertNull("Task bounds in AM must be null for fullscreen taskId=" + taskId, in assertValidBounds()
857 assertEquals("Task bounds in AM and WM must match width taskId=" + taskId in assertValidBounds()
860 assertEquals("Task bounds in AM and WM must match height taskId=" + taskId in assertValidBounds()
863 assertEquals("Task bounds must match stack bounds y taskId=" + taskId in assertValidBounds()
866 assertEquals("Task and stack bounds must match width taskId=" + taskId in assertValidBounds()
869 assertEquals("Task and stack bounds must match height taskId=" + taskId in assertValidBounds()
[all …]
DActivityManagerTestBase.java605 protected ActivityManagerState.ActivityStack getStackForTaskId(int taskId) { in getStackForTaskId() argument
610 if (task.mTaskId == taskId) { in getStackForTaskId()
667 final int taskId = mAmWmState.getAmState().getTaskByActivity(activityName).mTaskId; in launchActivityInSplitScreenWithRecents() local
668 mAtm.setTaskWindowingModeSplitScreenPrimary(taskId, createMode, in launchActivityInSplitScreenWithRecents()
681 public void moveTaskToPrimarySplitScreen(int taskId) { in moveTaskToPrimarySplitScreen() argument
682 moveTaskToPrimarySplitScreen(taskId, false /* showRecents */); in moveTaskToPrimarySplitScreen()
693 public void moveTaskToPrimarySplitScreen(int taskId, boolean showSideActivity) { in moveTaskToPrimarySplitScreen() argument
696 mAtm.setTaskWindowingModeSplitScreenPrimary(taskId, in moveTaskToPrimarySplitScreen()
741 final int taskId = mAmWmState.getAmState().getTaskByActivity( in launchActivitiesInSplitScreen() local
743 moveTaskToPrimarySplitScreen(taskId); in launchActivitiesInSplitScreen()
[all …]
DActivityManagerState.java613 public int getActivityCountInTask(int taskId, @Nullable ComponentName activityName) { in getActivityCountInTask() argument
618 if (task.mTaskId == taskId) { in getActivityCountInTask()
740 ActivityTask getTask(int taskId) { in getTask() argument
742 if (taskId == task.mTaskId) { in getTask()
DWindowManagerState.java623 WindowTask getTask(int taskId) { in getTask() argument
625 if (taskId == task.mTaskId) { in getTask()
/cts/tests/app/src/android/app/cts/
DActivityManagerBaseTaskInfoTest.java31 taskInfo.taskId = Integer.MAX_VALUE; in fillTaskInfo()
44 assertEquals(sourceTaskInfo.taskId, taskInfo.taskId); in verifyTaskInfo()
DAppTaskTests.java226 if (task.getTaskInfo().taskId == activity.getTaskId()) { in getAppTask()
/cts/tests/contentsuggestions/src/android/contentsuggestions/cts/
DCtsContentSuggestionsService.java69 public void onProcessContextImage(int taskId, Bitmap contextImage, Bundle extras) { in onProcessContextImage() argument
72 "onProcessContextImage() called with: taskId = [" + taskId in onProcessContextImage()
76 sWatcher.verifier.onProcessContextImage(taskId, contextImage, extras); in onProcessContextImage()
DContentSuggestionsManagerTest.java116 int taskId = 1; in managerForwards_provideContextImage() local
118 mManager.provideContextImage(taskId, new Bundle()); in managerForwards_provideContextImage()
119 verifyService().onProcessContextImage(eq(taskId), any(), any()); in managerForwards_provideContextImage()
/cts/hostsidetests/devicepolicy/app/ContentSuggestionsApp/src/com/android/cts/devicepolicy/contentsuggestionsapp/
DSimpleContentSuggestionsService.java34 public void onProcessContextImage(int taskId, Bitmap contextImage, Bundle extras) { in onProcessContextImage() argument
/cts/tests/framework/base/windowmanager/src/android/server/wm/
DAssistantStackTests.java320 final int taskId = mAmWmState.getAmState().getTaskByActivity(ASSISTANT_ACTIVITY) in testLaunchIntoSameTask() local
340 assertEquals(taskId, in testLaunchIntoSameTask()
DPinnedStackTests.java998 int taskId = mAmWmState.getAmState().getStandardStackByWindowingMode( in testFinishPipActivityWithTaskOverlay() local
1005 launchPinnedActivityAsTaskOverlay(TRANSLUCENT_TEST_ACTIVITY, taskId); in testFinishPipActivityWithTaskOverlay()
1022 int taskId = stack.getTopTask().mTaskId; in testNoResumeAfterTaskOverlayFinishes() local
1025 launchPinnedActivityAsTaskOverlay(TRANSLUCENT_TEST_ACTIVITY, taskId); in testNoResumeAfterTaskOverlayFinishes()
1515 private void launchPinnedActivityAsTaskOverlay(ComponentName activityName, int taskId) { in launchPinnedActivityAsTaskOverlay() argument
1516 executeShellCommand(getAmStartCmd(activityName) + " --task " + taskId + " --task-overlay"); in launchPinnedActivityAsTaskOverlay()
DSplitScreenTests.java277 final int taskId = mAmWmState.getAmState().getTaskByActivity(LAUNCHING_ACTIVITY).mTaskId; in launchTargetToSide() local
278 moveTaskToPrimarySplitScreen(taskId, true /* showRecents */); in launchTargetToSide()
/cts/tests/tests/voicesettings/service/src/android/voicesettings/service/
DMainInteractionSession.java118 public void onTaskFinished(Intent intent, int taskId) { in onTaskFinished() argument