/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.onIdRemoved(window.getTask().mTaskId); in testTaskRemoved() 93 assertNull(mCache.getSnapshot(window.getTask().mTaskId, 0 /* userId */, in testTaskRemoved() [all …]
|
D | LockTaskControllerTest.java | 179 Task tr = getTask(LOCK_TASK_AUTH_ALLOWLISTED); in testStartLockTaskMode_once() 196 Task tr1 = getTask(LOCK_TASK_AUTH_ALLOWLISTED); in testStartLockTaskMode_twice() 197 Task tr2 = getTask(LOCK_TASK_AUTH_ALLOWLISTED); in testStartLockTaskMode_twice() 216 Task tr = getTask(LOCK_TASK_AUTH_PINNABLE); in testStartLockTaskMode_pinningRequest() 228 Task tr = getTask(LOCK_TASK_AUTH_PINNABLE); in testStartLockTaskMode_pinnedBySystem() 247 Task tr = getTask(LOCK_TASK_AUTH_ALLOWLISTED); in testLockTaskViolation() 254 assertTrue(mLockTaskController.isLockTaskModeViolation(getTask(LOCK_TASK_AUTH_PINNABLE))); in testLockTaskViolation() 256 assertTrue(mLockTaskController.isLockTaskModeViolation(getTask(LOCK_TASK_AUTH_DONT_LOCK))); in testLockTaskViolation() 259 assertFalse(mLockTaskController.isLockTaskModeViolation(getTask( in testLockTaskViolation() 261 assertFalse(mLockTaskController.isLockTaskModeViolation(getTask( in testLockTaskViolation() [all …]
|
D | TaskSnapshotControllerTest.java | 82 assertEquals(closingWindow.mActivityRecord.getTask(), closingTasks.valueAt(0)); in testGetClosingApps_closing() 89 final WindowState openingWindow = createAppWindow(closingWindow.getTask(), in testGetClosingApps_notClosing() 112 Sets.newArraySet(closingWindow.mActivityRecord.getTask())); in testGetClosingApps_skipClosingAppsSnapshotTasks() 123 final Task task = activity.getTask(); in getClosingTasks() 136 mWm.mTaskSnapshotController.getSnapshotMode(disabledWindow.getTask())); in testGetSnapshotMode() 141 mWm.mTaskSnapshotController.getSnapshotMode(normalWindow.getTask())); in testGetSnapshotMode() 147 mWm.mTaskSnapshotController.getSnapshotMode(secureWindow.getTask())); in testGetSnapshotMode() 152 final int disabledInRecentsTaskId = disabledWindow.getTask().mTaskId; in testGetSnapshotMode() 220 Task task = mAppWindow.mActivityRecord.getTask(); in testCreateTaskSnapshotWithExcludingIme() 229 mWm.mTaskSnapshotController.createSnapshot(mAppWindow.mActivityRecord.getTask(), in testCreateTaskSnapshotWithExcludingIme() [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 | 67 mWindow.getTask().setResizeMode(RESIZE_MODE_RESIZEABLE); in setUp() 116 doReturn(mWindow.getTask()).when(content).findTaskForResizePoint(anyInt(), anyInt()); in testHandleTapOutsideTask() 117 assertNotNull(mWindow.getTask().getTopVisibleAppMainWindow()); in testHandleTapOutsideTask() 140 doReturn(mWindow.getTask()).when(content).findTaskForResizePoint(anyInt(), anyInt()); in testHandleTapOutsideNonResizableTask() 141 assertNotNull(mWindow.getTask().getTopVisibleAppMainWindow()); in testHandleTapOutsideNonResizableTask() 143 mWindow.getTask().setResizeMode(RESIZE_MODE_UNRESIZEABLE); in testHandleTapOutsideNonResizableTask()
|
D | RecentsAnimationControllerTest.java | 114 AnimationAdapter adapter = mController.addAnimation(activity.getTask(), in testRemovedBeforeStarted_expectCanceled() 132 AnimationAdapter adapter = mController.addAnimation(activity.getTask(), in testCancelAfterRemove_expectIgnored() 160 assertTrue(mController.isAnimatingTask(homeActivity.getTask())); in testIncludedApps_expectTargetAndVisible() 161 assertTrue(mController.isAnimatingTask(activity.getTask())); in testIncludedApps_expectTargetAndVisible() 162 assertFalse(mController.isAnimatingTask(hiddenActivity.getTask())); in testIncludedApps_expectTargetAndVisible() 207 assertTrue(mController.isAnimatingTask(activity.getTask())); in testWallpaperIncluded_expectTarget() 230 assertTrue(mController.isAnimatingTask(activity.getTask())); in testWallpaperAnimatorCanceled_expectAnimationKeepsRunning() 254 assertTrue(mController.isAnimatingTask(homeActivity.getTask())); in testFinish_expectTargetAndWallpaperAdaptersRemoved() 255 assertTrue(mController.isAnimatingTask(activity.getTask())); in testFinish_expectTargetAndWallpaperAdaptersRemoved() 272 assertEquals(activity.getTask().getTopVisibleActivity(), activity); in testDeferCancelAnimation() [all …]
|
D | ActivityRecordTests.java | 212 final Task task = activity.getTask(); in testTaskFragmentCleanupOnClearingTask() 221 final Task task = activity.getTask(); in testTaskFragmentCleanupOnActivityRemoval() 230 final Task task = activity.getTask(); in testRootTaskCleanupOnTaskRemoval() 240 final Task task = activity.getTask(); in testRemoveChildWithOverlayActivity() 310 final Task task = activity.getTask(); in testPausingWhenVisibleFromStopped() 350 ActivityRecord activity2 = new ActivityBuilder(mAtm).setTask(activity.getTask()).build(); in testsApplyOptionsLocked() 380 final Task task = activity.getTask(); in testNewParentConfigurationIncrementsSeq() 394 final Task task = activity.getTask(); in testSetsRelaunchReason_NotDragResizing() 418 final Task task = activity.getTask(); in testSetsRelaunchReason_DragResizing() 444 final Task task = activity.getTask(); in testRelaunchClearTopWaitingTranslucent() [all …]
|
D | ActivityTaskSupervisorTests.java | 175 final Task task = unresizableActivity.getTask(); in testHandleNonResizableTaskOnSecondaryDisplay() 216 mSupervisor.removeTask(activity1.getTask(), true /* killProcess */, in testRemoveTask() 218 mSupervisor.removeTask(activity2.getTask(), true /* killProcess */, in testRemoveTask() 257 final Task taskA = fullScreenActivityA.getTask(); in testNotifyTaskFocusChanged() 270 final Task taskB = fullScreenActivityB.getTask(); in testNotifyTaskFocusChanged() 286 final Task task = activity.getTask(); in testUpdateRecentTasksForTopResumed() 332 activity2.getTask().setResumedActivity(activity2, "test"); in testUpdatePendingTopForTopResumed() 352 activity1.getTask().moveToFront("test"); in testUpdateTopResumed_moveToFront()
|
D | ActivityStarterTests.java | 785 if (startedActivity != null && startedActivity.getTask() != null) { in testPinnedSingleInstanceAborted() 788 startedActivity.getTask().removeChild(startedActivity); in testPinnedSingleInstanceAborted() 852 assertEquals(activity.getTask(), mRootWindowContainer.topRunningActivity().getTask()); in testBringTaskToFrontWhenFocusedTaskIsFinishing() 961 Task task = topActivity.getTask(); in testWasVisibleInRestartAttempt() 970 Task task2 = reusableActivity.getTask(); in testWasVisibleInRestartAttempt() 1196 assertThat(controller.isCollecting(top.getTask())).isTrue(); in testTransientLaunchWithKeyguard() 1198 assertThat(transition.isInTransientHide(top.getTask())).isTrue(); in testTransientLaunchWithKeyguard() 1244 sourceRecord.getTask().addChild(taskFragment, POSITION_TOP); in testStartActivityInner_inTaskFragment_failsByDefault() 1260 sourceRecord.getTask().addChild(taskFragment, POSITION_TOP); in testStartActivityInner_inTaskFragment_allowedForSystemUid() 1278 sourceRecord.getTask().addChild(taskFragment, POSITION_TOP); in testStartActivityInner_inTaskFragment_allowedForSameUid() [all …]
|
D | AppTransitionControllerTest.java | 103 final ActivityRecord topOpening = createActivityRecord(behind.getTask()); in testSkipOccludedActivityCloseTransition() 121 final Task task = behind.getTask(); in testClearTaskSkipAppExecuteTransition() 201 mDisplayContent.mChangingContainers.add(translucentOpening.getTask()); in testChangeIsNotOverwritten() 216 final Task task = opening.getTask(); in testTransitWithinTask() 220 closing.getTask().removeChild(closing); in testTransitWithinTask() 389 activity1.getTask()); in testGetAnimationTargets_openingClosingInDifferentTask() 395 activity3.getTask()); in testGetAnimationTargets_openingClosingInDifferentTask() 424 activity1.getTask()); in testGetAnimationTargets_openingClosingInSameTask() 457 activity1.getTask()); in testGetAnimationTargets_animateOnlyTranslucentApp() 462 activity3.getTask()); in testGetAnimationTargets_animateOnlyTranslucentApp() [all …]
|
D | AnimatingActivityRegistryTest.java | 66 … final ActivityRecord activity2 = createAppWindow(activity1.getTask(), ACTIVITY_TYPE_STANDARD, in testDeferring() 89 final ActivityRecord window2 = createAppWindow(window1.getTask(), ACTIVITY_TYPE_STANDARD, in testContainerRemoved()
|
D | TaskFragmentOrganizerControllerTest.java | 209 doReturn(mTask).when(mTaskFragment).getTask(); in testCallTaskFragmentCallbackWithoutRegister_throwsException() 435 final Task task = activity.getTask(); in testOnActivityReparentedToTask_activityInOrganizerProcess_useActivityToken() 571 assertEquals(activity.getTask().mTaskId, change.getTaskId()); in testOnActivityReparentedToTask_untrustedEmbed_reportedWhenAppOptIn() 584 final Task task = activity.getTask(); in testOnActivityReparentedToTask_trimReportedIntent() 699 assertEquals(ownerActivity.getTask(), taskFragment.getTask()); in testApplyTransaction_enforceHierarchyChange_createTaskFragment() 918 activity.getTask().effectiveUid = uid + 1; in testApplyTransaction_createTaskFragment_failForDifferentUid() 925 activity.getTask().effectiveUid = uid; in testApplyTransaction_createTaskFragment_failForDifferentUid() 932 activity.getTask().effectiveUid = uid; in testApplyTransaction_createTaskFragment_failForDifferentUid() 950 activityOnTop.getTask().effectiveUid = uid; in testApplyTransaction_createTaskFragment_withPairedPrimaryFragmentToken() 978 activityAtBottom.getTask().effectiveUid = uid; in testApplyTransaction_createTaskFragment_overrideBounds() [all …]
|
D | RootWindowContainerTests.java | 187 Task task = activity.getTask(); in testAllPausedActivitiesComplete() 352 final Task task = firstActivity.getTask(); in testMovingBottomMostRootTaskActivityToPinnedRootTask() 380 .setTask(activity1.getTask()).build(); in testMultipleActivitiesTaskEnterPip() 385 transientActivity.getTask().moveToFront("test"); in testMultipleActivitiesTaskEnterPip() 389 assertEquals("Created PiP task must not change focus", transientActivity.getTask(), in testMultipleActivitiesTaskEnterPip() 391 final Task newPipTask = activity2.getTask(); in testMultipleActivitiesTaskEnterPip() 393 assertNotEquals(newPipTask, activity1.getTask()); in testMultipleActivitiesTaskEnterPip() 396 assertThat(activity1.getTask().autoRemoveRecents).isFalse(); in testMultipleActivitiesTaskEnterPip() 410 final Task task = activity.getTask(); in testSingleActivityTaskEnterPip() 448 final Task task = activity.getTask(); in testSingleActivityInTaskFragmentEnterPip() [all …]
|
/frameworks/base/services/core/java/com/android/server/wm/ |
D | ImeTargetVisibilityPolicy.java | 120 || (inputTargetRecord.getTask() != layeringTargetRecord.getTask()) in shouldComputeImeParentForEmbeddedActivity()
|
D | BackgroundActivityStartController.java | 1052 Task sourceTask = sourceRecord.getTask(); in checkActivityAllowedToStart() 1109 : (sourceRecord.getTask().equals(targetTask) in logAsmFailureAndCheckFeatureEnabled() 1135 || !targetTask.equals(sourceRecord.getTask()), in logAsmFailureAndCheckFeatureEnabled() 1150 && !targetTask.equals(sourceRecord.getTask()) && targetTask.isVisible(), in logAsmFailureAndCheckFeatureEnabled() 1522 && sourceRecord != null && sourceRecord.getTask() == targetTask; in getDebugInfoForActivitySecurity() 1534 joiner.add(prefix + "Source/Target Task: " + sourceRecord.getTask()); in getDebugInfoForActivitySecurity() 1537 joiner.add(prefix + "Source Task: " + sourceRecord.getTask()); in getDebugInfoForActivitySecurity() 1540 sourceRecord.getTask().forAllActivities((Consumer<ActivityRecord>) in getDebugInfoForActivitySecurity() 1576 Task task = sourceRecord != null ? sourceRecord.getTask() : targetTask; in getDebugInfoForActivitySecurity() 1618 mTaskIdToFinishedActivity.get(sourceRecord.getTask().mTaskId); in allowedByAsmGracePeriod() [all …]
|
D | DisplayRotationImmersiveAppCompatPolicy.java | 115 if (activityRecord.getTask() == null in isRotationLockEnforcedLocked() 116 || activityRecord.getTask().getWindowingMode() != WINDOWING_MODE_FULLSCREEN) { in isRotationLockEnforcedLocked()
|
D | ActivityRecordInputSink.java | 84 final ActivityRecord activityBelowInTask = mActivityRecord.getTask() != null in getInputWindowHandleWrapper() 85 ? mActivityRecord.getTask().getActivityBelow(mActivityRecord) : null; in getInputWindowHandleWrapper()
|
D | TaskFragment.java | 498 final Task task = getTask(); in getOrganizerProcessIfDifferent() 609 getTask().touchActiveTime(); in setResumedActivity() 664 Task getTask() { in getTask() method in TaskFragment 670 return parent != null ? parent.getTask() : null; in getTask() 742 final Task task = getTask(); in smallerThanMinDimension() 968 mTaskSupervisor.mRecentTasks.add(record.getTask()); in onActivityStateChanged() 1369 if (focusedApp == null || focusedApp.getTask() != next.getTask()) { in resumeTopActivity() 1644 next.getTask().mTaskId, next.shortComponentName); in resumeTopActivity() 1790 prev.getTask().touchActiveTime(); in startPausing() 1810 Task.enableEnterPipOnTaskSwitch(prev, resuming.getTask(), in startPausing() [all …]
|
D | TransparentPolicy.java | 98 final ActivityRecord firstOpaqueActivity = mActivityRecord.getTask().getActivity( in start() 200 if (mActivityRecord.getTask() == null || mActivityRecord.fillsParent() in shouldSkipTransparentPolicy() 334 if (!isRunning() || mActivityRecord.getTask() == null) { in findOpaqueNotFinishingActivityBelow()
|
D | SnapshotController.java | 103 if (ar != null && ar.getTask().isVisibleRequested()) { in onTransactionReady() 120 OpenCloseActivities activities = mActivitiesMap.get(ar.getTask()); in put() 123 mActivitiesMap.put(ar.getTask(), activities); in put()
|
D | StartingSurfaceController.java | 84 final Task task = activity.getTask(); in createSplashScreenStartingSurface() 143 final Task task = activity.getTask(); in createTaskSnapshotSurface() 218 if (next.mDeferring.getTask() == null) { in showStartingWindowFromDeferringActivities()
|
D | ActivityClientController.java | 464 final Task tr = r.getTask(); in finishActivity() 557 r.getTask().forAllActivities(activity -> r.finishIfSameAffinity(activity), in finishActivityAffinity() 609 return r != null && r.getTask().getTopNonFinishingActivity() == r; in isTopOfTask() 640 final Task task = r.getTask(); in getTaskForActivity() 660 return ar.getTask().getConfiguration(); in getTaskConfiguration() 675 final ActivityRecord below = ar.getTask().getActivity((r) -> !r.finishing, in getActivityTokenBelow() 895 final ActivityRecord under = r.getTask().getActivityBelow(r); in convertToTranslucent() 1271 final Task requestingTask = r.getTask(); in executeFullscreenRequestTransition() 1318 mService.startLockTaskMode(r.getTask(), false /* isSystemCaller */); in startLockTaskModeByToken() 1395 if (mService.mRunningVoice != null || activity.getTask().voiceSession != null in startLocalVoiceInteraction() [all …]
|
D | ActivityStarter.java | 1066 && sourceRecord.getTask().voiceSession != null) { in executeRequest() 1463 final Task targetTask = r.getTask() != null in postStartActivityProcessing() 1464 ? r.getTask() in postStartActivityProcessing() 1589 if (mStartActivity.getTask() != null) { in handleStartResult() 1683 mTargetTask == null ? started.getTask() : mTargetTask, in handleStartResult() 1794 && targetTask == mSourceRecord.getTask()) { in startActivityInner() 1797 if (activity != null && activity.getTask() != targetTask) { in startActivityInner() 1828 ? mSourceRecord.getTask() : null; in startActivityInner() 1872 final Task startedTask = mStartActivity.getTask(); in startActivityInner() 1932 && sourceRecord != null && sourceRecord.getTask() == mStartActivity.getTask() in startActivityInner() [all …]
|
D | ActivityAssistInfo.java | 38 this.mTaskId = activityRecord.getTask().mTaskId; in ActivityAssistInfo()
|
D | RunningTasks.java | 77 final Task focusedTask = dc.mFocusedApp != null ? dc.mFocusedApp.getTask() : null; in getTasks() 86 ? (dc.mFocusedApp != null ? dc.mFocusedApp.getTask() : null) in getTasks()
|