Home
last modified time | relevance | path

Searched refs:getTaskId (Results 1 – 25 of 66) sorted by relevance

123

/cts/tests/framework/base/windowmanager/src/android/server/wm/activity/lifecycle/
DActivityStarterTests.java130 final int taskId = mWmState.getTaskByActivity(STANDARD_ACTIVITY).getTaskId(); in testLaunchStandardActivity()
147 mWmState.getTaskByActivity(SECOND_STANDARD_ACTIVITY).getTaskId()); in testLaunchStandardActivity()
218 final int taskId = mWmState.getTaskByActivity(NO_HISTORY_ACTIVITY).getTaskId(); in testNoHistoryActivityWithDifferentTask()
261 final int taskId = mWmState.getTaskByActivity(NO_HISTORY_ACTIVITY).getTaskId(); in testNoHistoryActivityWithTranslucentActivity()
287 final int taskId = mWmState.getTaskByActivity(STANDARD_ACTIVITY).getTaskId(); in testLaunchSingleTopActivity()
305 mWmState.getTaskByActivity(SINGLE_TOP_ACTIVITY).getTaskId()); in testLaunchSingleTopActivity()
327 .getTaskByActivity(STANDARD_ACTIVITY).getTaskId(); in testLaunchSingleInstanceActivity()
333 .getTaskByActivity(SINGLE_INSTANCE_ACTIVITY).getTaskId(); in testLaunchSingleInstanceActivity()
362 final int taskId = mWmState.getTaskByActivity(STANDARD_ACTIVITY).getTaskId(); in testLaunchSingleTaskActivity()
378 mWmState.getTaskByActivity(SINGLE_TASK_ACTIVITY).getTaskId()); in testLaunchSingleTaskActivity()
[all …]
/cts/tests/framework/base/windowmanager/src/android/server/wm/window/
DMultiWindowTests.java248 int noRelaunchTaskId = mWmState.getTaskByActivity(NO_RELAUNCH_ACTIVITY).getTaskId(); in testNoUserLeaveHintOnMultiWindowModeChanged()
328 final int secondaryTaskId = mWmState.getTaskByActivity(targetActivityName).getTaskId(); in launchTargetToSide()
347 secondaryTaskId2 = task.getTaskId(); in launchTargetToSide()
385 int secondaryTaskId3 = taskFinal.getTaskId(); in launchTargetToSide()
460 runWithShellPermission(() -> mAtm.startSystemLockTaskMode(task.getTaskId())); in testDisallowUpdateWindowingModeWhenInLockedTask()
468 mTaskOrganizer.getTaskInfo(task.getTaskId()).getToken(), in testDisallowUpdateWindowingModeWhenInLockedTask()
495 mAtm.startSystemLockTaskMode(task.getTaskId()); in testDisallowReparentOperationWhenInLockedTask()
506 mTaskOrganizer.getTaskInfo(root.getTaskId()).getToken(); in testDisallowReparentOperationWhenInLockedTask()
508 mTaskOrganizer.getTaskInfo(task.getTaskId()).getToken(); in testDisallowReparentOperationWhenInLockedTask()
519 .getTaskInfo(task.getTaskId()) in testDisallowReparentOperationWhenInLockedTask()
[all …]
DSnapshotTaskTests.java99 Bitmap bitmap = mWindowManager.snapshotTaskForRecents(mActivity.getTaskId()); in testSetDisablePreviewScreenshots()
136 Bitmap bitmap = mWindowManager.snapshotTaskForRecents(mActivity.getTaskId()); in testSetDisablePreviewScreenshots()
/cts/tests/tests/car_builtin/src/android/car/cts/builtin/app/
DTaskInfoHelperTest.java91 int taskId = mTestActivity.getTaskId(); in testDisplayIdAndUserId()
103 int taskId = mTestActivity.getTaskId(); in testTaskVisibility()
112 assertThat(taskId).isNotEqualTo(secondActivity.getTaskId()); in testTaskVisibility()
121 TaskInfo taskInfo = getTaskInfo(mTestActivity.getTaskId()); in testToString()
138 TaskInfo taskInfo = getTaskInfo(mTestActivity.getTaskId()); in testGetBounds()
DActivityManagerHelperTest.java176 .that(task1TopActivity.getTaskId()).isEqualTo(task1BottomActivity.getTaskId()); in testSetFocusedTask()
178 .that(task2TopActivity.getTaskId()).isNotEqualTo(task1TopActivity.getTaskId()); in testSetFocusedTask()
189 ActivityManagerHelper.setFocusedTask(task1BottomActivity.getTaskId()); in testSetFocusedTask()
214 int taskId = testActivity.getTaskId(); in testRemoveTask()
429 msg, index, activityStack[index].getTaskId()); in logActivityStack()
/cts/tests/wallpapereffectsgeneration/src/android/wallpapereffectsgeneration/cts/
DCinematicEffectRequestTest.java49 assertThat(request.getTaskId()).isEqualTo(taskId); in testCreateCinematicEffectRequest()
59 assertThat(copy.getTaskId()).isEqualTo(taskId); in testCreateCinematicEffectRequest()
/cts/tests/framework/base/windowmanager/src/android/server/wm/activity/
DActivityTaskAffinityTests.java76 final int firstAppTaskId = mWmState.getTaskByActivity(activityA).getTaskId(); in testActivitiesShouldBeInTheSameTask()
81 final int secondAppTaskId = mWmState.getTaskByActivity(activityB).getTaskId(); in testActivitiesShouldBeInTheSameTask()
DStartActivityTests.java385 final int taskId = mWmState.getTaskByActivity(baseIntent.getComponent()).getTaskId(); in testStartActivitiesTaskOverlayStayOnTop()
449 final int taskId = mWmState.getTaskByActivity(baseIntent.getComponent()).getTaskId(); in verifyStartActivitiesTaskOverlayWithLaunchFlags()
472 mWmState.getTaskByActivity(intent.getComponent()).getTaskId()); in verifyStartActivitiesTaskOverlayWithLaunchFlags()
492 taskIds[0] = mWmState.getTaskByActivity(TEST_ACTIVITY).getTaskId(); in startActivitiesAndGetTaskIds()
494 taskIds[i + 1] = mWmState.getTaskByActivity(intents[i].getComponent()).getTaskId(); in startActivitiesAndGetTaskIds()
/cts/tests/tests/taskfpscallback/src/android/taskfpscallback/cts/
DTaskFpsCallbackCtsTest.java72 mActivity.getTaskId(), Runnable::run, callback), in testRegister()
89 mActivity.getTaskId(), Runnable::run, callback)); in testRegisterWithoutPermission()
/cts/hostsidetests/securitybulletin/test-apps/CVE-2021-39797/test-app/src/android/security/cts/CVE_2021_39797_test/
DPocActivity.java46 editor.putInt(getString(R.string.taskId), getTaskId()); in onCreate()
49 if ((taskIdSaved - 1) == getTaskId()) { in onCreate()
70 options.putInt(getString(R.string.attrLaunchTaskId), getTaskId() - 1); in onCreate()
/cts/hostsidetests/securitybulletin/test-apps/CVE-2023-21124/target-app/src/android/security/cts/CVE_2023_21124_target/
DTargetActivity.java33 .putExtra(getString(R.string.taskIdOfTargetActivity), getTaskId())); in onResume()
/cts/hostsidetests/securitybulletin/test-apps/CVE-2023-35669/target-app/src/android/security/cts/CVE_2023_35669_target/
DTargetActivity.java30 .putExtra(getString(R.string.taskId), getTaskId())); in onResume()
/cts/hostsidetests/securitybulletin/test-apps/CVE-2023-21131/target-app/src/android/security/cts/CVE_2023_21131_target/
DTargetActivity.java30 .putExtra(getString(R.string.taskId), getTaskId())); in onResume()
/cts/hostsidetests/securitybulletin/test-apps/CVE-2023-20944/target-app/src/android/security/cts/CVE_2023_20944_target/
DTargetActivity.java30 .putExtra(getString(R.string.taskId), getTaskId())); in onResume()
/cts/tests/tests/virtualdevice/applaunch/src/android/virtualdevice/cts/applaunch/
DRecentTasksTest.java61 final int taskId = activity.getTaskId(); in activityLaunchedOnVirtualDeviceWithDefaultRecentPolicy_includedInRecents()
83 final int taskId = activity.getTaskId(); in activityLaunchedOnVirtualDeviceWithCustomRecentPolicy_excludedFromRecents()
/cts/tests/tests/assist/src/android/assist/cts/
DActivityIdTest.java48 assertThat(fromParcel.getTaskId()).isEqualTo(taskId); in testParcel()
/cts/tests/autofillservice/src/android/autofillservice/cts/testcore/
DAugmentedHelper.java112 assertWithMessage("wrong task id on %s", request).that(request.request.getTaskId()) in assertBasicRequestInfo()
113 .isEqualTo(activity.getTaskId()); in assertBasicRequestInfo()
194 .append(", taskId=").append(request.getTaskId()); in toString()
/cts/tests/autofillservice/src/android/autofillservice/cts/
DMultiWindowLoginActivityTest.java136 mTaskOrganizer.putTaskInSplitPrimary(mActivity.getTaskId());
138 mTaskOrganizer.putTaskInSplitSecondary(emptyActivity.getTaskId());
/cts/tests/tests/gameservice/src/android/service/games/
DTestGameSessionService.java56 createGameSessionRequest.getTaskId()); in onNewSession()
106 int getTaskId() { in getTaskId() method in TestGameSessionService.TestGameSession
DTestGameService.java74 createGameSession(gameStartedEvent.getTaskId()); in onGameStarted()
/cts/tests/framework/base/windowmanager/src/android/server/wm/other/
DPinnedStackTests.java642 final TaskInfo info = mTaskOrganizer.getTaskInfo(task.getTaskId()); in testShouldDockBigOverlaysWithExpandedPip()
1154 mWmState.getTaskByActivity(LAUNCH_ENTER_PIP_ACTIVITY).getTaskId(); in testPipFromTaskWithMultipleActivitiesAndRemoveOriginalTask()
1231 mAtm.startSystemLockTaskMode(task.getTaskId()); in testDisallowEnterPipActivityLocked()
1423 .getTaskId(); in testFinishPipActivityWithTaskOverlay()
1444 int taskId = task.getTopTask().getTaskId(); in testNoResumeAfterTaskOverlayFinishes()
1486 mWmState.getTaskByActivity(TEST_ACTIVITY_WITH_SAME_AFFINITY).getTaskId(); in testLaunchTaskByComponentMatchMultipleTasks()
1497 mWmState.getTaskByActivity(TEST_ACTIVITY_WITH_SAME_AFFINITY).getTaskId()); in testLaunchTaskByComponentMatchMultipleTasks()
1518 int rootActivityTaskId = mWmState.getTaskByActivity(TEST_ACTIVITY).getTaskId(); in testLaunchTaskByAffinityMatchMultipleTasks()
1527 assertEquals(rootActivityTaskId, mWmState.getTaskByActivity(TEST_ACTIVITY).getTaskId()); in testLaunchTaskByAffinityMatchMultipleTasks()
1542 int activityTaskId = mWmState.getTaskByActivity(PIP_ACTIVITY).getTaskId(); in testLaunchTaskByAffinityMatchSingleTask()
[all …]
DLockTaskModeTests.java63 runWithShellPermission(() -> mAtm.startSystemLockTaskMode(task.getTaskId())); in startAllowedPackageIntoLockTaskMode_anotherAppPinned_exitsPinningEntersLockTaskMode()
/cts/tests/app/src/android/app/cts/
DTaskDescriptionTest.java127 if (activity.getTaskId() == info.id) { in assertTaskDescription()
159 fail("Did not find activity (id=" + activity.getTaskId() + ") in recent tasks list"); in assertTaskDescription()
/cts/common/device-side/bedstead/eventlib/src/main/java/com/android/eventlib/events/activities/
DActivityRestartedEvent.java103 setTaskId(activity.getTaskId()); in ActivityRestartedEventLogger()
DActivityResumedEvent.java103 setTaskId(activity.getTaskId()); in ActivityResumedEventLogger()

123