/frameworks/base/services/tests/wmtests/src/com/android/server/wm/ |
D | TaskSnapshotCacheTest.java | 67 mCache.putSnapshot(window.getTask(), createSnapshot()); in testAppRemoved() 68 assertNotNull(mCache.getSnapshot(window.getTask().mTaskId, 0 /* userId */, in testAppRemoved() 71 assertNull(mCache.getSnapshot(window.getTask().mTaskId, 0 /* userId */, in testAppRemoved() 78 mCache.putSnapshot(window.getTask(), createSnapshot()); in testAppDied() 79 assertNotNull(mCache.getSnapshot(window.getTask().mTaskId, 0 /* userId */, in testAppDied() 82 assertNull(mCache.getSnapshot(window.getTask().mTaskId, 0 /* userId */, in testAppDied() 89 mCache.putSnapshot(window.getTask(), createSnapshot()); in testTaskRemoved() 90 assertNotNull(mCache.getSnapshot(window.getTask().mTaskId, 0 /* userId */, in testTaskRemoved() 92 mCache.onTaskRemoved(window.getTask().mTaskId); in testTaskRemoved() 93 assertNull(mCache.getSnapshot(window.getTask().mTaskId, 0 /* userId */, in testTaskRemoved() [all …]
|
D | LockTaskControllerTest.java | 172 Task tr = getTask(Task.LOCK_TASK_AUTH_WHITELISTED); in testStartLockTaskMode_once() 189 Task tr1 = getTask(Task.LOCK_TASK_AUTH_WHITELISTED); in testStartLockTaskMode_twice() 190 Task tr2 = getTask(Task.LOCK_TASK_AUTH_WHITELISTED); in testStartLockTaskMode_twice() 209 Task tr = getTask(Task.LOCK_TASK_AUTH_PINNABLE); in testStartLockTaskMode_pinningRequest() 221 Task tr = getTask(Task.LOCK_TASK_AUTH_PINNABLE); in testStartLockTaskMode_pinnedBySystem() 240 Task tr = getTask(Task.LOCK_TASK_AUTH_WHITELISTED); in testLockTaskViolation() 247 assertTrue(mLockTaskController.isLockTaskModeViolation(getTask( in testLockTaskViolation() 250 assertTrue(mLockTaskController.isLockTaskModeViolation(getTask( in testLockTaskViolation() 254 assertFalse(mLockTaskController.isLockTaskModeViolation(getTask( in testLockTaskViolation() 256 assertFalse(mLockTaskController.isLockTaskModeViolation(getTask( in testLockTaskViolation() [all …]
|
D | RecentsAnimationControllerTest.java | 114 AnimationAdapter adapter = mController.addAnimation(activity.getTask(), in testRemovedBeforeStarted_expectCanceled() 134 AnimationAdapter adapter = mController.addAnimation(activity.getTask(), in testCancelAfterRemove_expectIgnored() 164 assertTrue(mController.isAnimatingTask(homeActivity.getTask())); in testIncludedApps_expectTargetAndVisible() 165 assertTrue(mController.isAnimatingTask(activity.getTask())); in testIncludedApps_expectTargetAndVisible() 166 assertFalse(mController.isAnimatingTask(hiddenActivity.getTask())); in testIncludedApps_expectTargetAndVisible() 188 assertTrue(mController.isAnimatingTask(activity.getTask())); in testWallpaperIncluded_expectTarget() 212 assertTrue(mController.isAnimatingTask(activity.getTask())); in testWallpaperAnimatorCanceled_expectAnimationKeepsRunning() 236 assertTrue(mController.isAnimatingTask(homeActivity.getTask())); in testFinish_expectTargetAndWallpaperAdaptersRemoved() 237 assertTrue(mController.isAnimatingTask(activity.getTask())); in testFinish_expectTargetAndWallpaperAdaptersRemoved() 255 assertEquals(activity.getTask().getTopVisibleActivity(), activity); in testDeferCancelAnimation() [all …]
|
D | TaskSnapshotLowResDisabledTest.java | 130 mPersister.persistSnapshot(window.getTask().mTaskId, mWm.mCurrentUserId, createSnapshot()); in testReduced_notCached() 132 assertNull(mCache.getSnapshot(window.getTask().mTaskId, mWm.mCurrentUserId, in testReduced_notCached() 136 assertNull(mCache.getSnapshot(window.getTask().mTaskId, mWm.mCurrentUserId, in testReduced_notCached() 140 assertNotNull(mCache.getSnapshot(window.getTask().mTaskId, mWm.mCurrentUserId, in testReduced_notCached() 144 assertNull(mCache.getSnapshot(window.getTask().mTaskId, mWm.mCurrentUserId, in testReduced_notCached() 148 assertNull(mCache.getSnapshot(window.getTask().mTaskId, mWm.mCurrentUserId, in testReduced_notCached()
|
D | TaskPositioningControllerTests.java | 69 mWindow.getTask().setResizeMode(RESIZE_MODE_RESIZEABLE); in setUp() 117 doReturn(mWindow.getTask()).when(content).findTaskForResizePoint(anyInt(), anyInt()); in testHandleTapOutsideTask() 118 assertNotNull(mWindow.getTask().getTopVisibleAppMainWindow()); in testHandleTapOutsideTask() 141 doReturn(mWindow.getTask()).when(content).findTaskForResizePoint(anyInt(), anyInt()); in testHandleTapOutsideNonResizableTask() 142 assertNotNull(mWindow.getTask().getTopVisibleAppMainWindow()); in testHandleTapOutsideNonResizableTask() 144 mWindow.getTask().setResizeMode(RESIZE_MODE_UNRESIZEABLE); in testHandleTapOutsideNonResizableTask()
|
D | TaskSnapshotControllerTest.java | 76 assertEquals(closingWindow.mActivityRecord.getTask(), closingTasks.valueAt(0)); in testGetClosingApps_closing() 83 final WindowState openingWindow = createAppWindow(closingWindow.getTask(), in testGetClosingApps_notClosing() 106 Sets.newArraySet(closingWindow.mActivityRecord.getTask())); in testGetClosingApps_skipClosingAppsSnapshotTasks() 117 mWm.mTaskSnapshotController.getSnapshotMode(disabledWindow.getTask())); in testGetSnapshotMode() 122 mWm.mTaskSnapshotController.getSnapshotMode(normalWindow.getTask())); in testGetSnapshotMode() 128 mWm.mTaskSnapshotController.getSnapshotMode(secureWindow.getTask())); in testGetSnapshotMode() 196 mAppWindow.mActivityRecord.getTask(), PixelFormat.UNKNOWN, builder); in testPrepareTaskSnapshot() 205 mAppWindow.mActivityRecord.getTask(), PixelFormat.UNKNOWN, builder); in testPrepareTaskSnapshot()
|
D | ActivityStackSupervisorTests.java | 119 final Task task = unresizableActivity.getTask(); in testHandleNonResizableTaskOnSecondaryDisplay() 155 final Task taskA = fullScreenActivityA.getTask(); in testNotifyTaskFocusChanged() 168 final Task taskB = fullScreenActivityB.getTask(); in testNotifyTaskFocusChanged()
|
D | AnimatingActivityRegistryTest.java | 68 … final ActivityRecord activity2 = createAppWindow(activity1.getTask(), ACTIVITY_TYPE_STANDARD, in testDeferring() 92 final ActivityRecord window2 = createAppWindow(window1.getTask(), ACTIVITY_TYPE_STANDARD, in testContainerRemoved()
|
D | LaunchParamsControllerTests.java | 95 mController.calculate(record.getTask(), layout, record, source, options, PHASE_BOUNDS, in testArgumentPropagation() 97 verify(positioner, times(1)).onCalculate(eq(record.getTask()), eq(layout), eq(record), in testArgumentPropagation() 120 mController.calculate(activity.getTask(), null /*layout*/, activity, null /*source*/, in testStoredParamsRecovery() 270 mController.calculate(record.getTask(), layout, record, source, options, PHASE_BOUNDS, in testCalculatePhase() 272 verify(positioner, times(1)).onCalculate(eq(record.getTask()), eq(layout), eq(record), in testCalculatePhase()
|
D | ActivityRecordTests.java | 135 mActivity.onParentChanged(null /*newParent*/, mActivity.getTask()); in testStackCleanupOnClearingTask() 689 mActivity.onParentChanged(null /*newParent*/, mActivity.getTask()); in testFinishActivityIfPossible_cancelled() 784 ActivityStack topRootableTask = (ActivityStack) topActivity.getTask(); in testFinishActivityIfPossible_adjustStackOrderOrganizedRoot() 1270 final Task task = mActivity.getTask(); in testDestroyImmediately_noApp_finishing() 1275 assertNull(mActivity.getTask()); in testDestroyImmediately_noApp_finishing() 1287 final Task task = mActivity.getTask(); in testDestroyImmediately_noApp_notFinishing() 1292 assertEquals(task, mActivity.getTask()); in testDestroyImmediately_noApp_notFinishing() 1323 final Task task = mActivity.getTask(); in testRemoveFromHistory() 1329 assertNull(mActivity.getTask()); in testRemoveFromHistory() 1388 final Task firstTaskRecord = mActivity.getTask(); in testActivityOverridesProcessConfig_TwoActivities() [all …]
|
D | RecentsAnimationTest.java | 234 targetActivity.getTask().getBaseIntent().getComponent(), in testSetLaunchTaskBehindOfTargetActivity() 336 otherUserHomeActivity.getTask().mUserId = TEST_USER_ID; in testMultipleUserHomeActivity_findUserHomeTask() 351 startRecentsActivity(otherUserHomeActivity.getTask().getBaseIntent().getComponent(), in testMultipleUserHomeActivity_findUserHomeTask()
|
D | ActivityMetricsLaunchObserverTests.java | 89 .setTask(mTrampolineActivity.getTask()) in setUpAMLO() 196 .setTask(mTopActivity.getTask()) in testOnActivityLaunchCancelled_finishedBeforeDrawn()
|
D | AppChangeTransitionTests.java | 62 mTask = mActivity.getTask(); in setUpOnDisplay()
|
D | WindowFrameTests.java | 276 final Task task = w.getTask(); in testLayoutNonfullscreenTask() 384 final Task task = w.getTask(); in testLayoutLetterboxedWindow() 446 final Task task = w.getTask(); in testFreeformContentInsets()
|
D | AppTransitionControllerTest.java | 112 final Task task = opening.getTask(); in testTransitWithinTask() 116 closing.getTask().removeChild(closing); in testTransitWithinTask()
|
/frameworks/base/services/core/java/com/android/server/wm/ |
D | ActivityStarter.java | 949 && sourceRecord.getTask().voiceSession != null) { in executeRequest() 1468 final Task targetTask = r.getTask() != null in postStartActivityProcessing() 1469 ? r.getTask() in postStartActivityProcessing() 1650 ? mSourceRecord.getTask() : null; in startActivityInner() 1653 mStartActivity.getTask())) { in startActivityInner() 1690 mStartActivity.getTask().mTaskId); in startActivityInner() 1693 EventLogTags.WM_CREATE_ACTIVITY, mStartActivity.getTask()); in startActivityInner() 1704 mStartActivity.getTask().topRunningActivityLocked(); in startActivityInner() 1738 mSupervisor.mRecentTasks.add(mStartActivity.getTask()); in startActivityInner() 1739 mSupervisor.handleNonResizableTaskIfNeeded(mStartActivity.getTask(), in startActivityInner() [all …]
|
D | ActivityStack.java | 495 System.identityHashCode(r), r.getTask().mTaskId, in processActivity() 1085 prev.getTask().touchActiveTime(); in startPausingLocked() 1763 prev.getTask() == next.getTask() ? TRANSIT_ACTIVITY_CLOSE in resumeTopActivityInnerLocked() 1775 prev.getTask() == next.getTask() ? TRANSIT_ACTIVITY_OPEN in resumeTopActivityInnerLocked() 1902 next.getTask().mTaskId, next.shortComponentName); in resumeTopActivityInnerLocked() 1999 Task rTask = r.getTask(); in startActivityLocked() 2030 final Task activityTask = r.getTask(); in startActivityLocked() 2108 Task prevTask = r.getTask(); in startActivityLocked() 2113 if (prev.getTask() != prevTask) { in startActivityLocked() 2155 return topFocusedActivity != null && r.getTask() != topFocusedActivity.getTask(); in isTaskSwitch() [all …]
|
D | WindowContainer.java | 1618 return getTask( in getTaskAbove() 1623 return getTask((below) -> true, t, false /*includeBoundary*/, true /*traverseTopToBottom*/); in getTaskBelow() 1627 return getTask((t) -> true, false /*traverseTopToBottom*/); in getBottomMostTask() 1631 return getTask((t) -> true, true /*traverseTopToBottom*/); in getTopMostTask() 1634 Task getTask(Predicate<Task> callback) { in getTask() method in WindowContainer 1635 return getTask(callback, true /*traverseTopToBottom*/); in getTask() 1638 Task getTask(Predicate<Task> callback, boolean traverseTopToBottom) { in getTask() method in WindowContainer 1641 final Task t = mChildren.get(i).getTask(callback, traverseTopToBottom); in getTask() 1649 final Task t = mChildren.get(i).getTask(callback, traverseTopToBottom); in getTask() 1669 final Task getTask(Predicate<Task> callback, WindowContainer boundary, boolean includeBoundary, in getTask() method in WindowContainer [all …]
|
D | RecentsAnimation.java | 208 final Task task = targetActivity.getTask(); in startRecentsActivity() 327 targetStack.moveTaskToFront(targetActivity.getTask(), in finishAnimation() 491 final Task task = targetStack.getTask(p); in getTargetActivity()
|
D | InputMonitor.java | 295 if (child.getTask() != null && child.getTask().isOrganized()) { in populateInputWindowHandle() 512 final Task rootTask = w.getTask().getRootTask(); in accept()
|
D | TaskSnapshotController.java | 333 builder.setOrientation(activity.getTask().getConfiguration().orientation); 334 builder.setRotation(activity.getTask().getDisplayContent().getRotation()); 445 final Task task = activity.getTask();
|
D | WindowState.java | 1057 final Task task = getTask(); in computeFrameLw() 1078 ? dc.mInputMethodTarget != null && task == dc.mInputMethodTarget.getTask() in computeFrameLw() 1544 Task getTask() { in getTask() method in WindowState 1545 return mActivityRecord != null ? mActivityRecord.getTask() : null; in getTask() 1549 final Task task = getTask(); in getRootTask() 1588 final Task task = getTask(); in getVisibleBounds() 1837 final Task task = getTask(); in canAffectSystemUiFlags() 2088 Task task = getTask(); in isObscuringDisplay() 2643 final Task task = getTask(); in updateRegionForModalActivityWindow() 2894 if (mActivityRecord == null || mActivityRecord.getTask() == null) { in cantReceiveTouchInput() [all …]
|
D | TaskPositioningController.java | 126 mActivityManager.setFocusedTask(win.getTask().mTaskId); in startMovingTask()
|
D | WallpaperWindowToken.java | 132 && recentsAnimationController.isAnimatingTask(wallpaperTarget.getTask())) { in updateWallpaperWindows()
|
D | RootWindowContainer.java | 386 + "/aff=" + r.getTask().rootAffinity + " to new cls=" in apply() 2156 final Task task = r.getTask(); in moveActivityToPinnedStack() 2689 r.getTask().mLayerRank = ++mTmpTaskLayerRank; in rankTaskLayerForActivity() 2691 r.getTask().mLayerRank = -1; in rankTaskLayerForActivity() 2975 if (candidateTask != null && (r.getTask() == null || r.getTask() == candidateTask)) { in getValidLaunchStackInTaskDisplayArea() 2977 final TaskDisplayArea attachedTaskDisplayArea = r.getTask() != null in getValidLaunchStackInTaskDisplayArea() 2978 ? r.getTask().getDisplayArea() : r.getDisplayArea(); in getValidLaunchStackInTaskDisplayArea() 3191 && (sameComponent || r.getTask() == mLastTask) in processActivity() 3211 mLastTask = r.getTask(); in processActivity() 3440 Task task = getTask(p); in anyTaskForId() [all …]
|