Home
last modified time | relevance | path

Searched refs:task (Results 1 – 25 of 229) sorted by relevance

12345678910

/aosp14/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
H A DTaskTests.java216 assertEquals(0, task.getParent().mChildren.indexOf(task)); in testReparent()
235 assertEquals(0, task.getParent().mChildren.indexOf(task)); in testReparent_BetweenDisplays()
463 spyOn(task); in testReturnsToHomeRootTask()
990 task.getChildAt(2), task.getRootActivity( in testFindRootIndex_finishing()
1005 task.getChildAt(0), task.getRootActivity( in testFindRootIndex_effectiveRoot()
1040 task.getChildAt(0), task.getRootActivity( in testFindRootIndex_effectiveRoot_relinquishingAndSingleActivity()
1058 task.getChildAt(task.getChildCount() - 1), task.getRootActivity( in testFindRootIndex_effectiveRoot_relinquishingMultipleActivities()
1070 task.getBottomMostActivity(), task.getRootActivity()); in testGetRootActivity()
1085 task.getChildAt(1), task.getRootActivity()); in testGetRootActivity_finishing()
1101 task.getBottomMostActivity(), task.getRootActivity()); in testGetRootActivity_relinquishTaskIdentity()
[all …]
H A DDesktopModeLaunchParamsModifierTests.java78 final Task task = new TaskBuilder(mSupervisor).build(); in testReturnsSkipIfNotBoundsPhase() local
85 final Task task = new TaskBuilder(mSupervisor).setActivityType( in testReturnsSkipIfTaskNotUsingActivityTypeStandardOrUndefined() local
92 final Task task = new TaskBuilder(mSupervisor).setActivityType( in testReturnsDoneIfTaskUsingActivityTypeStandard() local
99 final Task task = new TaskBuilder(mSupervisor).setActivityType( in testReturnsDoneIfTaskUsingActivityTypeUndefined() local
106 final Task task = new TaskBuilder(mSupervisor).setActivityType( in testReturnsSkipIfCurrentParamsHasBounds() local
114 final Task task = new TaskBuilder(mSupervisor).setActivityType( in testUsesDefaultBounds() local
117 assertEquals(dpiToPx(task, 840), mResult.mBounds.width()); in testUsesDefaultBounds()
118 assertEquals(dpiToPx(task, 630), mResult.mBounds.height()); in testUsesDefaultBounds()
134 private int dpiToPx(Task task, int dpi) { in dpiToPx() argument
147 private CalculateRequestBuilder setTask(Task task) { in setTask() argument
[all …]
H A DRootTaskTests.java168 assertNull(task.getParent()); in testRootTaskRemoveImmediately()
177 assertNotNull(task); in testRemoveContainer()
184 assertNull(task.getParent()); in testRemoveContainer()
201 assertNotNull(task); in testRemoveContainer_deferRemoval()
205 assertNull(task.getParent()); in testRemoveContainer_deferRemoval()
409 result.process(task); in testFindTaskWithOverlay()
426 task.origActivity = alias; in testFindTaskAlias()
427 task.realActivity = target; in testFindTaskAlias()
822 .setTask(task) in testShouldBeVisible_FullscreenBehindTranslucentInHomeRootTask()
1031 final Task task; in createTaskForShouldBeVisibleTest() local
[all …]
H A DTaskFragmentTest.java308 .setParentTask(task) in testEmbeddedTaskFragmentEnterPip_singleActivity_resetOrganizerOverrideConfig()
382 .setParentTask(task) in testEmbeddedActivityExitPip_notifyOrganizer()
388 .setParentTask(task) in testEmbeddedActivityExitPip_notifyOrganizer()
543 .setParentTask(task) in testIgnoreRequestedOrientationForActivityEmbeddingSplit()
549 .setParentTask(task) in testIgnoreRequestedOrientationForActivityEmbeddingSplit()
557 task.setBounds(0, 0, 1200, 1000); in testIgnoreRequestedOrientationForActivityEmbeddingSplit()
576 task.onConfigurationChanged(task.getParent().getConfiguration()); in testIgnoreRequestedOrientationForActivityEmbeddingSplit()
632 .setParentTask(task) in testUpdateImeParentForActivityEmbedding()
638 .setParentTask(task) in testUpdateImeParentForActivityEmbedding()
661 .setParentTask(task) in testIsolatedNavigation()
[all …]
H A DTaskFragmentOrganizerControllerTest.java361 task.effectiveUid = uid; in testOnActivityReparentedToTask_activityInOrganizerProcess_useActivityToken()
378 .setParentTask(task) in testOnActivityReparentedToTask_activityInOrganizerProcess_useActivityToken()
416 task.effectiveUid = uid; in testOnActivityReparentedToTask_activityNotInOrganizerProcess_useTemporaryToken()
469 task.effectiveUid = uid; in testOnActivityReparentedToTask_untrustedEmbed_notReported()
494 task.effectiveUid = uid; in testOnActivityReparentedToTask_trimReportedIntent()
583 .setParentTask(task) in testApplyTransaction_enforceTaskFragmentOrganized_startActivityInTaskFragment()
606 .setParentTask(task) in testApplyTransaction_enforceTaskFragmentOrganized_reparentActivityInTaskFragment()
627 .setParentTask(task) in testApplyTransaction_enforceTaskFragmentOrganized_setAdjacentTaskFragments()
1203 task.lastActiveTime++; in testDeferPendingTaskFragmentEventsOfInvisibleTask()
1341 createActivityRecord(task); in testPendingTaskFragmentInfoChangedEvent_emptyTaskFragment()
[all …]
H A DLaunchParamsControllerTests.java293 final int beforeWindowMode = task.getWindowingMode(); in testLayoutNonRootTaskWindowingModeChange()
298 final int afterWindowMode = task.getWindowingMode(); in testLayoutNonRootTaskWindowingModeChange()
318 assertNotEquals(expected, task.getBounds()); in testLayoutTaskBoundsChangeFreeformWindow()
343 assertNotEquals(expected, task.getBounds()); in testLayoutTaskBoundsChangeMultiWindow()
366 assertNotEquals(expected, task.getBounds()); in testLayoutTaskBoundsChangeFixedWindow()
370 assertNotEquals(expected, task.getBounds()); in testLayoutTaskBoundsChangeFixedWindow()
435 void saveTask(Task task, DisplayContent display) { in saveTask() argument
436 final int userId = task.mUserId; in saveTask()
440 if (task.mLastNonFullscreenBounds != null) { in saveTask()
450 final int userId = task != null ? task.mUserId : activity.mUserId; in getLaunchParams()
[all …]
H A DBackNavigationControllerTests.java104 Task task = createTopTaskWithActivity(); in backNavInfo_HomeWhenBackToLauncher() local
287 Task task = createTopTaskWithActivity(); in backTypeCallback() local
336 Task task = createTopTaskWithActivity(); in testUnregisterCallbacksWithSystemCallback() local
439 Task task = createTopTaskWithActivity(); in testWindowFocusChangeCancelNavigation() local
440 withSystemCallback(task); in testWindowFocusChangeCancelNavigation()
552 task.forAllLeafTasks((t) -> {
559 return task;
609 BackNavigationInfo.TYPE_CROSS_ACTIVITY, mBackAnimationAdapter, task, task,
635 return task;
662 testCase.task = task;
[all …]
H A DWindowContainerTransactionTests.java52 final Task task = createTaskInRootTask(rootTask, 0 /* userId */); in testRemoveTask() local
53 final ActivityRecord activity = createActivityRecord(mDisplayContent, task); in testRemoveTask()
56 WindowContainerToken token = task.getTaskInfo().token; in testRemoveTask()
61 assertNotNull(task.getParent()); in testRemoveTask()
63 assertTrue(task.hasChild()); in testRemoveTask()
68 assertNull(task.getParent()); in testRemoveTask()
69 assertEquals(0, task.getChildCount()); in testRemoveTask()
71 verify(mAtm.getLockTaskController(), atLeast(1)).clearLockedTask(task); in testRemoveTask()
H A DActivityRecordTests.java382 task.onRequestedOverrideConfigurationChanged(task.getConfiguration()); in testSetsRelaunchReason_NotDragResizing()
407 task.onRequestedOverrideConfigurationChanged(task.getConfiguration()); in testSetsRelaunchReason_DragResizing()
434 task.onRequestedOverrideConfigurationChanged(task.getConfiguration()); in testRelaunchClearTopWaitingTranslucent()
455 task.onRequestedOverrideConfigurationChanged(task.getConfiguration()); in testSetsRelaunchReason_NonResizeConfigChanges()
637 task.setBounds(bounds); in ignoreRequestedOrientationInFreeformWindows()
678 task.setBounds(bounds); in ignoreRequestedOrientationForResizableInSplitWindows()
1092 assertEquals(task, task.getTopMostTask()); in testFinishActivityIfPossible_PreferredTopStackChanged()
1828 assertEquals(task.getRootTask(), task); in testRemoveFromHistory() local
2373 .setTask(task) in testCheckEnterPictureInPictureState_displayNotSupportedPip()
2753 reset(task); in testReportOrientationChange()
[all …]
/aosp14/frameworks/base/services/core/java/com/android/server/wm/
H A DRecentTasks.java499 if (task.mUserId == userId && shouldPersistTaskLocked(task)) { in loadUserRecentsLocked()
545 final Task rootTask = task != null ? task.getRootTask() : null; in notifyTaskPersisterLocked()
573 mPersistedTaskIds.get(task.mUserId).put(task.mTaskId, true); in syncPersistentTaskIdsLocked()
982 if (!task.isActivityTypeHome() && task.effectiveUid != callingUid) { in getRecentTasksImpl()
1028 if ((task.isPersistable || task.inRecents) in getPersistableTaskIds()
1082 void add(Task task) { in add() argument
1085 final boolean isAffiliated = task.mAffiliatedTaskId != task.mTaskId in add()
1233 add(task); in addToBottom()
1356 if (task.mAffiliatedTaskId != INVALID_TASK_ID && task.mAffiliatedTaskId != task.mTaskId) { in isActiveRecentTask()
1586 task.affinity != null && task.affinity.equals(t.affinity); in findRemoveIndexForTask()
[all …]
H A DTaskOrganizerController.java147 if (!task.isOrganized()) { in onTaskInfoChanged()
163 task.mTaskId); in onBackPressedOnTaskRoot()
462 this(task, task.mTaskOrganizer, event); in PendingTaskEvent()
466 mTask = task; in PendingTaskEvent()
756 return task.mTaskId; in addWindowlessStartingSurface()
836 if (state != null && state.removeTask(task, task.mRemoveWithTaskOrganizer)) { in onTaskVanished()
902 return task; in createRootTask()
921 task.getDisplayId(), task.getWindowingMode()); in deleteRootTask()
1015 if (task == null) { in getImeTarget()
1042 if (task == null) { in getChildTasks()
[all …]
H A DLockTaskController.java256 if (task.mLockTaskAuth == LOCK_TASK_AUTH_LAUNCHABLE_PRIV || !isRootTask(task)) { in activityBlockedFromFinish()
305 if (isRootTask(task)) { in canMoveTaskToBack()
344 } else if (isLockTaskModeViolationInternal(task, task.mUserId, task.intent, in isLockTaskModeViolation()
508 if (task == null) { in stopLockTaskMode()
520 && (task.mLockTaskUid != 0 || callingUid != task.effectiveUid)) { in stopLockTaskMode()
526 clearLockedTask(task); in stopLockTaskMode()
563 removeLockedTask(task); in clearLockedTask()
706 task.mUserId, in setLockTaskMode()
717 task.mLockTaskUid = task.effectiveUid; in setLockTaskMode()
816 final String pkg = (task == null || task.realActivity == null) ? rootActivity.packageName in getLockTaskAuth()
[all …]
H A DTaskSnapshotController.java122 if (task == null) continue; in handleClosingApps()
141 for (Task task : tasks) { in addSkipClosingAppSnapshotTasks()
154 mPersister.persistSnapshot(task.mTaskId, task.mUserId, snapshot); in recordSnapshot()
155 task.onSnapshotChanged(snapshot); in recordSnapshot()
214 if (task.getSurfaceControl() == null) { in createImeSnapshot()
267 if (isAnimatingByRecents(task)) { in getClosingTasksInner()
272 if (!task.isVisible() && mSkipClosingAppSnapshotTasks.indexOf(task.mTaskId) < 0) { in getClosingTasksInner()
273 outClosingTasks.add(task); in getClosingTasksInner()
324 displayContent.forAllTasks(task -> { in snapshotForSleeping()
328 if (task.isVisible() && !isAnimatingByRecents(task)) { in snapshotForSleeping()
[all …]
H A DRunningTasks.java117 final Task task = mTmpSortedTasks.get(i); in getTasks() local
136 public void accept(Task task) {
137 if (task.getTopNonFinishingActivity() == null) {
141 if (task.effectiveUid != mCallingUid) {
142 if (task.mUserId != mUserId && !mCrossUser && !mProfileIds.contains(task.mUserId)) {
155 && !mRecentTasks.isVisibleRecentTask(task)) {
160 if (task.isVisible()) {
161 mTmpVisibleTasks.add(task);
163 mTmpInvisibleTasks.add(task);
170 task.fillTaskInfo(rti, !mKeepIntentExtra);
[all …]
H A DActivityTaskSupervisor.java423 if (task != null) { in canPlaceEntityOnDisplay()
1493 task.mTransitionController.collect(task); in findTaskToMoveToFront()
1537 task.mTransitionController.requestStartTransition(newTransition, task, in findTaskToMoveToFront()
1643 final Task task = in removeTaskById() local
1645 if (task != null) { in removeTaskById()
1663 task.mTransitionController.requestCloseTransitionIfNeeded(task); in removeTask()
1710 if (callingUid == SYSTEM_UID || !task.isVisible() || task.inMultiWindowMode()) { in checkActivitySecurityForTaskClear()
1907 if (task == null || !task.mKillProcessesOnDestroyed) return; in killTaskProcessesOnDestroyedIfNeeded()
1997 task.touchActiveTime(); in onRecentTaskAdded()
2532 if (!task.canBeLaunchedOnDisplay(task.getDisplayId())) { in handleNonResizableTaskIfNeeded()
[all …]
H A DTaskPersister.java190 void wakeup(Task task, boolean flush) { in wakeup() argument
192 if (task != null) { in wakeup()
196 removeThumbnails(task); in wakeup()
267 if (task.mTaskId == taskId) { in taskIdToTask()
268 return task; in taskIdToTask()
386 task.setPrevAffiliate(taskIdToTask(task.mPrevAffiliateTaskId, tasks)); in restoreTasksForUserLocked()
387 task.setNextAffiliate(taskIdToTask(task.mNextAffiliateTaskId, tasks)); in restoreTasksForUserLocked()
520 mTask = task; in TaskWriteQueueItem()
538 task.saveToXml(xmlSerializer); in saveToXml()
551 Task task = mTask; in process() local
[all …]
/aosp14/frameworks/base/services/robotests/backup/src/com/android/server/backup/keyvalue/
H A DKeyValueBackupTaskTest.java288 runTask(task); in testRunTask_whenQueueEmpty_updatesBookkeeping()
302 runTask(task); in testRunTask_whenQueueEmpty_releasesWakeLock()
313 runTask(task); in testRunTask_whenQueueEmpty_doesNotProduceData()
325 runTask(task); in testRunTask_whenQueueEmpty_doesNotCallTransport()
338 runTask(task); in testRunTask_whenQueueEmpty_notifiesCorrectly()
352 runTask(task); in testRunTask_whenQueueEmpty_doesNotChangeStateFiles()
369 runTask(task); in testRunTask_whenQueueEmptyOnFirstBackup_doesNotUpdateCurrentToken()
380 runTask(task); in testRunTask_whenOnePackageAndTransportUnavailable()
393 runTask(task); in testRunTask_whenOnePackage_logsBackupStartEvent()
404 runTask(task); in testRunTask_whenOnePackage_releasesWakeLock()
[all …]
/aosp14/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/desktopmode/
H A DDesktopTasksControllerTest.kt596 val task = regex
623 val task = regex
677 whenever(shellTaskOrganizer.getRunningTaskInfo(task.taskId)).thenReturn(task)
681 return task
686 whenever(shellTaskOrganizer.getRunningTaskInfo(task.taskId)).thenReturn(task)
688 return task
695 return task
700 task.displayId,
701 task.taskId,
708 task.displayId,
[all …]
/aosp14/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/desktopmode/
H A DDesktopTasksController.kt198 task -> moveToDesktop(decor, task, wct)
213 task.taskId
301 task.taskId
318 task.taskId
340 task.taskId
365 task.taskId
381 shellTaskOrganizer.getRunningTaskInfo(taskId)?.let { task -> moveTaskToFront(task) }
414 if (task == null) {
530 .forEach { task -> wct.reorder(task.token, true /* onTop */) }
536 .firstOrNull { task -> task.activityType == ACTIVITY_TYPE_HOME }
[all …]
/aosp14/frameworks/base/core/java/android/hardware/camera2/utils/
H A DTaskDrainer.java116 public void taskStarted(T task) { in taskStarted() argument
119 Log.v(TAG + "[" + mName + "]", "taskStarted " + task); in taskStarted()
127 if (!mEarlyFinishedTaskSet.remove(task)) { in taskStarted()
129 if (!mTaskSet.add(task)) { in taskStarted()
130 throw new IllegalStateException("Task " + task + " was already started"); in taskStarted()
150 public void taskFinished(T task) { in taskFinished() argument
153 Log.v(TAG + "[" + mName + "]", "taskFinished " + task); in taskFinished()
157 if (!mTaskSet.remove(task)) { in taskFinished()
159 if (!mEarlyFinishedTaskSet.add(task)) { in taskFinished()
160 throw new IllegalStateException("Task " + task + " was already finished"); in taskFinished()
/aosp14/frameworks/base/services/tests/servicestests/src/com/android/server/storage/
H A DDiskStatsLoggingServiceTest.java96 task.setAppCollector(mCollector); in testEmptyLog()
99 task.setSystemSize(0L); in testEmptyLog()
100 task.setContext(mJobService); in testEmptyLog()
101 task.run(); in testEmptyLog()
138 task.setAppCollector(mCollector); in testPopulatedLogTask()
141 task.setSystemSize(10L); in testPopulatedLogTask()
142 task.setContext(mJobService); in testPopulatedLogTask()
143 task.run(); in testPopulatedLogTask()
170 task.setSystemSize(10L); in testDontCrashOnPackageStatsTimeout()
171 task.setContext(mJobService); in testDontCrashOnPackageStatsTimeout()
[all …]
/aosp14/system/core/storaged/
H A Dstoraged_utils.cpp82 const task_info& task = task_it.second; in log_console_running_uids_info() local
85 task.comm.c_str(), in log_console_running_uids_info()
86task.io[0].rchar, task.io[0].wchar, task.io[0].read_bytes, task.io[0].write_bytes, in log_console_running_uids_info()
87task.io[1].rchar, task.io[1].wchar, task.io[1].read_bytes, task.io[1].write_bytes, in log_console_running_uids_info()
88 task.io[0].fsync, task.io[1].fsync); in log_console_running_uids_info()
H A Duid_info.cpp45 task_info task; in readFromParcel() local
46 task.pid = parcel->readInt32(); in readFromParcel()
47 task.comm = parcel->readCString(); in readFromParcel()
48 parcel->read(&task.io, sizeof(task.io)); in readFromParcel()
49 tasks[task.pid] = task; in readFromParcel()
/aosp14/frameworks/base/core/java/com/android/internal/widget/
H A DLockPatternChecker.java68 AsyncTask<Void, Void, VerifyCredentialResponse> task = in verifyCredential() local
86 task.execute(); in verifyCredential()
87 return task; in verifyCredential()
104 AsyncTask<Void, Void, Boolean> task = new AsyncTask<Void, Void, Boolean>() { in checkCredential() local
129 task.execute(); in checkCredential()
130 return task; in checkCredential()
150 AsyncTask<Void, Void, VerifyCredentialResponse> task = in verifyTiedProfileChallenge() local
168 task.execute(); in verifyTiedProfileChallenge()
169 return task; in verifyTiedProfileChallenge()
H A DGapWorker.java227 final Task task; in buildTaskList() local
229 task = new Task(); in buildTaskList()
230 mTasks.add(task); in buildTaskList()
237 task.viewVelocity = viewVelocity; in buildTaskList()
238 task.distanceToItem = distanceToItem; in buildTaskList()
239 task.view = view; in buildTaskList()
326 task.position, taskDeadlineNs); in flushTaskWithDeadline()
334 final Task task = mTasks.get(i); in flushTasksWithDeadline() local
335 if (task.view == null) { in flushTasksWithDeadline()
338 flushTaskWithDeadline(task, deadlineNs); in flushTasksWithDeadline()
[all …]

12345678910