Home
last modified time | relevance | path

Searched refs:taskInfo (Results 1 – 5 of 5) sorted by relevance

/cts/tests/framework/base/windowmanager/util/src/android/server/wm/
DTestTaskOrganizer.java204 ActivityManager.RunningTaskInfo taskInfo = getTaskInfo(taskId); in putTaskInSplitPrimary() local
207 .setBounds(taskInfo.getToken(), null) in putTaskInSplitPrimary()
208 .setWindowingMode(taskInfo.getToken(), WINDOWING_MODE_UNDEFINED) in putTaskInSplitPrimary()
209 .reparent(taskInfo.getToken(), mRootPrimary.getToken(), true /* onTop */) in putTaskInSplitPrimary()
212 mPrePrimarySplitTaskInfo = taskInfo; in putTaskInSplitPrimary()
227 ActivityManager.RunningTaskInfo taskInfo = getTaskInfo(taskId); in putTaskInSplitSecondary() local
230 .setBounds(taskInfo.getToken(), null) in putTaskInSplitSecondary()
231 .setWindowingMode(taskInfo.getToken(), WINDOWING_MODE_UNDEFINED) in putTaskInSplitSecondary()
232 .reparent(taskInfo.getToken(), mRootSecondary.getToken(), true /* onTop */) in putTaskInSplitSecondary()
235 mPreSecondarySplitTaskInfo = taskInfo; in putTaskInSplitSecondary()
[all …]
/cts/tests/tests/car_builtin/src/android/car/cts/builtin/app/
DTaskInfoHelperTest.java92 TaskInfo taskInfo = getTaskInfo(taskId); in testDisplayIdAndUserId() local
95 assertThat(taskInfo).isNotNull(); in testDisplayIdAndUserId()
96 assertThat(TaskInfoHelper.getDisplayId(taskInfo)).isEqualTo(mTestActivity.getDisplayId()); in testDisplayIdAndUserId()
97 assertThat(TaskInfoHelper.getUserId(taskInfo)).isEqualTo(mTestActivity.getUserId()); in testDisplayIdAndUserId()
104 TaskInfo taskInfo = getTaskInfo(taskId); in testTaskVisibility() local
107 assertThat(TaskInfoHelper.isVisible(taskInfo)).isEqualTo(mTestActivity.isVisible()); in testTaskVisibility()
113 taskInfo = getTaskInfo(taskId); in testTaskVisibility()
114 assertThat(TaskInfoHelper.isVisible(taskInfo)).isFalse(); in testTaskVisibility()
121 TaskInfo taskInfo = getTaskInfo(mTestActivity.getTaskId()); in testToString() local
122 String taskInfoString = taskInfo.toString(); in testToString()
[all …]
DActivityManagerHelperTest.java401 for (ActivityManager.RunningTaskInfo taskInfo : runningTasks) { in isAppRunning()
402 if (pkgName.equals(taskInfo.baseActivity.getPackageName())) { in isAppRunning()
441 for (TaskInfo taskInfo : taskList) { in doesTaskExist()
442 if (taskInfo.taskId == taskId) { in doesTaskExist()
/cts/tests/app/src/android/app/cts/
DAppTaskTests.java183 final ActivityManager.RecentTaskInfo taskInfo = task.getTaskInfo(); in testStartActivityInTask_NoNewTask() local
184 assertTrue(taskInfo.numActivities == 2); in testStartActivityInTask_NoNewTask()
185 assertTrue(taskInfo.baseActivity.equals(a1.getComponentName())); in testStartActivityInTask_NoNewTask()
186 assertTrue(taskInfo.topActivity.equals(intent.getComponent())); in testStartActivityInTask_NoNewTask()
202 final ActivityManager.RecentTaskInfo taskInfo = task.getTaskInfo(); in testStartActivityInTask_NewTask() local
203 assertTrue(taskInfo.numActivities == 1); in testStartActivityInTask_NewTask()
204 assertTrue(taskInfo.baseActivity.equals(a1.getComponentName())); in testStartActivityInTask_NewTask()
/cts/tests/tests/car/src/android/car/app/cts/
DCarTaskViewControllerTest.java547 public void onTaskAppeared(@NonNull ActivityManager.RunningTaskInfo taskInfo) { in onTaskAppeared() argument
548 mCurrentTask = taskInfo; in onTaskAppeared()
552 public void onTaskInfoChanged(@NonNull ActivityManager.RunningTaskInfo taskInfo) { in onTaskInfoChanged() argument
557 mCurrentTask = taskInfo; in onTaskInfoChanged()
561 public void onTaskVanished(@NonNull ActivityManager.RunningTaskInfo taskInfo) { in onTaskVanished() argument