Home
last modified time | relevance | path

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

123

/cts/tests/framework/base/windowmanager/util/src/android/server/wm/
DTestTaskOrganizer.java130 Log.e(TAG, "createRootTasksIfNeeded primary=" + mRootPrimary.taskId in createRootTasksIfNeeded()
131 + " secondary=" + mRootSecondary.taskId); in createRootTasksIfNeeded()
200 public void putTaskInSplitPrimary(int taskId) { in putTaskInSplitPrimary() argument
204 ActivityManager.RunningTaskInfo taskInfo = getTaskInfo(taskId); in putTaskInSplitPrimary()
215 o -> mPrimaryChildrenTaskIds.contains(taskId), in putTaskInSplitPrimary()
216 "Can't put putTaskInSplitPrimary taskId=" + taskId); in putTaskInSplitPrimary()
218 Log.e(TAG, "putTaskInSplitPrimary taskId=" + taskId); in putTaskInSplitPrimary()
223 public void putTaskInSplitSecondary(int taskId) { in putTaskInSplitSecondary() argument
227 ActivityManager.RunningTaskInfo taskInfo = getTaskInfo(taskId); in putTaskInSplitSecondary()
238 o -> mSecondaryChildrenTaskIds.contains(taskId), in putTaskInSplitSecondary()
[all …]
DWindowManagerTestBase.java72 Class<T> cls, int displayId, boolean hasFocus, int windowingMode, int taskId) { in startActivity() argument
75 && taskId == INVALID_STACK_ID) { in startActivity()
81 if (taskId != INVALID_STACK_ID) ap.setLaunchTaskId(taskId); in startActivity()
/cts/tests/tests/virtualdevice/applaunch/src/android/virtualdevice/cts/applaunch/
DRecentTasksTest.java61 final int taskId = activity.getTaskId(); in activityLaunchedOnVirtualDeviceWithDefaultRecentPolicy_includedInRecents() local
62 assertThat(isTaskIncludedInRecents(taskId)).isTrue(); in activityLaunchedOnVirtualDeviceWithDefaultRecentPolicy_includedInRecents()
66 assertThat(isTaskIncludedInRecents(taskId)).isFalse(); in activityLaunchedOnVirtualDeviceWithDefaultRecentPolicy_includedInRecents()
68 assertThat(isTaskIncludedInRecents(taskId)).isTrue(); in activityLaunchedOnVirtualDeviceWithDefaultRecentPolicy_includedInRecents()
74 assertThat(isTaskIncludedInRecents(taskId)).isTrue(); in activityLaunchedOnVirtualDeviceWithDefaultRecentPolicy_includedInRecents()
83 final int taskId = activity.getTaskId(); in activityLaunchedOnVirtualDeviceWithCustomRecentPolicy_excludedFromRecents() local
84 assertThat(isTaskIncludedInRecents(taskId)).isFalse(); in activityLaunchedOnVirtualDeviceWithCustomRecentPolicy_excludedFromRecents()
88 assertThat(isTaskIncludedInRecents(taskId)).isTrue(); in activityLaunchedOnVirtualDeviceWithCustomRecentPolicy_excludedFromRecents()
90 assertThat(isTaskIncludedInRecents(taskId)).isFalse(); in activityLaunchedOnVirtualDeviceWithCustomRecentPolicy_excludedFromRecents()
96 assertThat(isTaskIncludedInRecents(taskId)).isFalse(); in activityLaunchedOnVirtualDeviceWithCustomRecentPolicy_excludedFromRecents()
[all …]
/cts/tests/framework/base/windowmanager/src/android/server/wm/activity/lifecycle/
DActivityStarterTests.java130 final int taskId = mWmState.getTaskByActivity(STANDARD_ACTIVITY).getTaskId(); in testLaunchStandardActivity() local
131 final int instances = mWmState.getActivityCountInTask(taskId, null); in testLaunchStandardActivity()
138 mWmState.getActivityCountInTask(taskId, null)); in testLaunchStandardActivity()
146 assertEquals("Activity must be in same task.", taskId, in testLaunchStandardActivity()
218 final int taskId = mWmState.getTaskByActivity(NO_HISTORY_ACTIVITY).getTaskId(); in testNoHistoryActivityWithDifferentTask() local
232 amState -> 0 == amState.getActivityCountInTask(taskId, NO_HISTORY_ACTIVITY), in testNoHistoryActivityWithDifferentTask()
261 final int taskId = mWmState.getTaskByActivity(NO_HISTORY_ACTIVITY).getTaskId(); in testNoHistoryActivityWithTranslucentActivity() local
267 amState -> 1 == amState.getActivityCountInTask(taskId, NO_HISTORY_ACTIVITY), in testNoHistoryActivityWithTranslucentActivity()
287 final int taskId = mWmState.getTaskByActivity(STANDARD_ACTIVITY).getTaskId(); in testLaunchSingleTopActivity() local
292 final int instances = mWmState.getActivityCountInTask(taskId, null); in testLaunchSingleTopActivity()
[all …]
/cts/tests/tests/car_builtin/src/android/car/cts/builtin/app/
DTaskInfoHelperTest.java91 int taskId = mTestActivity.getTaskId(); in testDisplayIdAndUserId() local
92 TaskInfo taskInfo = getTaskInfo(taskId); in testDisplayIdAndUserId()
103 int taskId = mTestActivity.getTaskId(); in testTaskVisibility() local
104 TaskInfo taskInfo = getTaskInfo(taskId); in testTaskVisibility()
112 assertThat(taskId).isNotEqualTo(secondActivity.getTaskId()); in testTaskVisibility()
113 taskInfo = getTaskInfo(taskId); in testTaskVisibility()
148 private TaskInfo getTaskInfo(int taskId) { in getTaskInfo() argument
152 if (taskInfo.taskId == taskId) { in getTaskInfo()
/cts/tests/wallpapereffectsgeneration/src/android/wallpapereffectsgeneration/cts/
DCinematicEffectRequestTest.java44 final String taskId = UUID.randomUUID().toString(); in testCreateCinematicEffectRequest() local
46 CinematicEffectRequest request = new CinematicEffectRequest(taskId, bmp); in testCreateCinematicEffectRequest()
49 assertThat(request.getTaskId()).isEqualTo(taskId); in testCreateCinematicEffectRequest()
59 assertThat(copy.getTaskId()).isEqualTo(taskId); in testCreateCinematicEffectRequest()
DWallpaperEffectsGenerationManagerTest.java203 private CinematicEffectRequest createCinematicEffectRequest(String taskId) { in createCinematicEffectRequest() argument
205 return new CinematicEffectRequest(taskId, bmp); in createCinematicEffectRequest()
240 private CinematicEffectRequest createSimpleCinematicEffectRequest(String taskId) { in createSimpleCinematicEffectRequest() argument
241 return new CinematicEffectRequest(taskId, in createSimpleCinematicEffectRequest()
DCinematicEffectResponseTest.java50 final String taskId = UUID.randomUUID().toString(); in testCreateCinematicEffectResponse() local
105 new CinematicEffectResponse.Builder(statusCode, taskId) in testCreateCinematicEffectResponse()
114 assertThat(response.getTaskId()).isEqualTo(taskId); in testCreateCinematicEffectResponse()
157 assertThat(copy.getTaskId()).isEqualTo(taskId); in testCreateCinematicEffectResponse()
/cts/tests/tests/gameservice/src/android/service/games/testing/
DGameSessionEventInfo.java65 int taskId, in create() argument
67 return new GameSessionEventInfo(gamePackageName, taskId, event); in create()
70 private GameSessionEventInfo(String gamePackageName, int taskId, @GameSessionEvent int event) { in GameSessionEventInfo() argument
72 mTaskId = taskId; in GameSessionEventInfo()
/cts/tests/tests/assist/src/android/assist/cts/
DActivityIdTest.java43 int taskId = 6; in testParcel() local
45 ActivityId original = new ActivityId(taskId, activityId); in testParcel()
48 assertThat(fromParcel.getTaskId()).isEqualTo(taskId); in testParcel()
/cts/tests/tests/car_permission_tests/src/android/car/cts/permissiontest/am/
DCarActivityManagerPermissionTest.java98 int taskId = 9999; in testCreateTaskMirroringToken_requiresPermission() local
100 () -> mCarActivityManager.createTaskMirroringToken(taskId)); in testCreateTaskMirroringToken_requiresPermission()
107 int taskId = 9999; in testCreateDisplayMirroringToken_requiresPermission() local
109 () -> mCarActivityManager.createDisplayMirroringToken(taskId)); in testCreateDisplayMirroringToken_requiresPermission()
125 int taskId = 9999; in testMoveRootTaskToDisplay_requiresPermission() local
128 () -> mCarActivityManager.moveRootTaskToDisplay(taskId, displayId)); in testMoveRootTaskToDisplay_requiresPermission()
/cts/common/device-side/bedstead/eventlib/src/main/java/com/android/eventlib/events/activities/
DActivityRestartedEvent.java115 public ActivityRestartedEventLogger setTaskId(int taskId) { in setTaskId() argument
116 mEvent.mTaskId = taskId; in setTaskId()
130 public int taskId() { in taskId() method in ActivityRestartedEvent
DActivityResumedEvent.java115 public ActivityResumedEventLogger setTaskId(int taskId) { in setTaskId() argument
116 mEvent.mTaskId = taskId; in setTaskId()
130 public int taskId() { in taskId() method in ActivityResumedEvent
DActivityPausedEvent.java115 public ActivityPausedEventLogger setTaskId(int taskId) { in setTaskId() argument
116 mEvent.mTaskId = taskId; in setTaskId()
130 public int taskId() { in taskId() method in ActivityPausedEvent
DActivityStoppedEvent.java113 public ActivityStoppedEventLogger setTaskId(int taskId) { in setTaskId() argument
114 mEvent.mTaskId = taskId; in setTaskId()
128 public int taskId() { in taskId() method in ActivityStoppedEvent
DActivityStartedEvent.java114 public ActivityStartedEventLogger setTaskId(int taskId) { in setTaskId() argument
115 mEvent.mTaskId = taskId; in setTaskId()
129 public int taskId() { in taskId() method in ActivityStartedEvent
DActivityDestroyedEvent.java115 public ActivityDestroyedEventLogger setTaskId(int taskId) { in setTaskId() argument
116 mEvent.mTaskId = taskId; in setTaskId()
130 public int taskId() { in taskId() method in ActivityDestroyedEvent
DActivityCreatedEvent.java165 public ActivityCreatedEventLogger setTaskId(int taskId) { in setTaskId() argument
166 mEvent.mTaskId = taskId; in setTaskId()
205 public int taskId() { in taskId() method in ActivityCreatedEvent
/cts/tests/contentsuggestions/src/android/contentsuggestions/cts/
DContentSuggestionsManagerTest.java120 int taskId = 1; in managerForwards_provideContextImage() local
122 mManager.provideContextImage(taskId, new Bundle()); in managerForwards_provideContextImage()
123 verifyService().onProcessContextImage(eq(taskId), any(), any()); in managerForwards_provideContextImage()
128 int taskId = -1; // Explicit bitmap is provided; so task id is absent. in managerForwards_provideContextBitmap() local
134 verifyService().onProcessContextImage(eq(taskId), bitmapArg.capture(), in managerForwards_provideContextBitmap()
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()
/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/common/device-side/bedstead/eventlib/src/test/java/com/android/eventlib/events/activities/
DActivityPausedEventTest.java91 assertThat(eventLogs.poll().taskId()).isEqualTo(TASK_ID); in whereTaskId_works()
109 assertThat(eventLogs.poll().taskId()).isEqualTo(TASK_ID); in whereTaskId_skipsNonMatching()
DActivityStartedEventTest.java91 assertThat(eventLogs.poll().taskId()).isEqualTo(TASK_ID); in whereTaskId_works()
109 assertThat(eventLogs.poll().taskId()).isEqualTo(TASK_ID); in whereTaskId_skipsNonMatching()

123