/frameworks/base/services/tests/wmtests/src/com/android/server/wm/ |
D | AppTransitionControllerTest.java | 293 final ActivityRecord activity1 = createActivityRecord(mDisplayContent); in testGetAnimationTargets_visibilityAlreadyUpdated() local 300 opening.add(activity1); in testGetAnimationTargets_visibilityAlreadyUpdated() 320 final ActivityRecord activity1 = createActivityRecord(mDisplayContent); in testGetAnimationTargets_visibilityAlreadyUpdated_butForcedTransitionRequested() local 321 activity1.setVisible(true); in testGetAnimationTargets_visibilityAlreadyUpdated_butForcedTransitionRequested() 322 activity1.setVisibleRequested(true); in testGetAnimationTargets_visibilityAlreadyUpdated_butForcedTransitionRequested() 323 activity1.mRequestForceTransition = true; in testGetAnimationTargets_visibilityAlreadyUpdated_butForcedTransitionRequested() 331 opening.add(activity1); in testGetAnimationTargets_visibilityAlreadyUpdated_butForcedTransitionRequested() 338 new ArraySet<>(new WindowContainer[]{activity1.getRootTask()}), in testGetAnimationTargets_visibilityAlreadyUpdated_butForcedTransitionRequested() 385 final ActivityRecord activity1 = createActivityRecord(mDisplayContent); in testGetAnimationTargets_openingClosingInDifferentTask() local 386 activity1.setVisible(false); in testGetAnimationTargets_openingClosingInDifferentTask() [all …]
|
D | AnimatingActivityRegistryTest.java | 65 final ActivityRecord activity1 = createActivityRecord(mDisplayContent); in testDeferring() local 66 … final ActivityRecord activity2 = createAppWindow(activity1.getTask(), ACTIVITY_TYPE_STANDARD, in testDeferring() 69 activity1.getRootTask().getAnimatingActivityRegistry(); in testDeferring() 71 activity1.startAnimation(activity1.getPendingTransaction(), mAdapter, false /* hidden */, in testDeferring() 73 activity2.startAnimation(activity1.getPendingTransaction(), mAdapter, false /* hidden */, in testDeferring() 75 assertTrue(activity1.isAnimating(TRANSITION)); in testDeferring() 80 assertTrue(registry.notifyAboutToFinish(activity1, mMockEndDeferFinishCallback1)); in testDeferring()
|
D | ActivityTaskSupervisorTests.java | 207 final ActivityRecord activity1 = new ActivityBuilder(mAtm).setCreateTask(true).build(); in testRemoveTask() local 208 activity1.setVisible(false); in testRemoveTask() 209 activity1.finishing = true; in testRemoveTask() 210 activity1.setState(ActivityRecord.State.STOPPING, "test"); in testRemoveTask() 211 activity1.addToStopping(false /* scheduleIdle */, false /* idleDelayed */, "test"); in testRemoveTask() 216 mSupervisor.removeTask(activity1.getTask(), true /* killProcess */, in testRemoveTask() 222 assertEquals(ActivityRecord.State.STOPPING, activity1.getState()); in testRemoveTask() 223 assertTrue(mSupervisor.mStoppingActivities.contains(activity1)); in testRemoveTask() 228 assertEquals(ActivityRecord.State.DESTROYING, activity1.getState()); in testRemoveTask() 325 final ActivityRecord activity1 = new ActivityBuilder(mAtm) in testUpdatePendingTopForTopResumed() local [all …]
|
D | AppTransitionTests.java | 286 final ActivityRecord activity1 = createActivityRecord(dc1); in testAppTransitionStateForMultiDisplay() local 289 activity1.allDrawn = true; in testAppTransitionStateForMultiDisplay() 290 activity1.startingMoved = true; in testAppTransitionStateForMultiDisplay() 298 activity1.setVisibility(true); in testAppTransitionStateForMultiDisplay() 316 final ActivityRecord activity1 = createNonAttachedActivityRecord(dc1); in testCleanAppTransitionWhenRootTaskReparent() local 317 task1.addChild(activity1, 0); in testCleanAppTransitionWhenRootTaskReparent() 320 dc1.mClosingApps.add(activity1); in testCleanAppTransitionWhenRootTaskReparent() 327 dc1.mOpeningApps.add(activity1); in testCleanAppTransitionWhenRootTaskReparent() 334 assertFalse(dc1.mOpeningApps.contains(activity1)); in testCleanAppTransitionWhenRootTaskReparent() 335 assertFalse(dc1.mOpeningApps.contains(activity1)); in testCleanAppTransitionWhenRootTaskReparent() [all …]
|
D | UnknownAppVisibilityControllerTest.java | 72 final ActivityRecord activity1 = createNonAttachedActivityRecord(mDisplayContent); in testMultiple() local 74 mDisplayContent.mUnknownAppVisibilityController.notifyLaunched(activity1); in testMultiple() 75 mDisplayContent.mUnknownAppVisibilityController.notifyAppResumedFinished(activity1); in testMultiple() 77 mDisplayContent.mUnknownAppVisibilityController.notifyRelayouted(activity1); in testMultiple()
|
D | TaskFragmentTest.java | 396 final ActivityRecord activity1 = taskFragment1.getTopMostActivity(); in testEmbeddedTaskFragmentEnterPip_multiActivities_notifyOrganizer() local 398 activity1.setVisibility(true); in testEmbeddedTaskFragmentEnterPip_multiActivities_notifyOrganizer() 501 final ActivityRecord activity1 = organizedTf.getTopMostActivity(); in testActivityHasOverlayOverUntrustedModeEmbedded() local 505 activity1.info.applicationInfo.uid = DEFAULT_TASK_FRAGMENT_ORGANIZER_UID; in testActivityHasOverlayOverUntrustedModeEmbedded() 509 assertFalse(activity1.hasOverlayOverUntrustedModeEmbedded()); in testActivityHasOverlayOverUntrustedModeEmbedded() 516 assertFalse(activity1.hasOverlayOverUntrustedModeEmbedded()); in testActivityHasOverlayOverUntrustedModeEmbedded() 520 activity1.info.applicationInfo.uid = DEFAULT_TASK_FRAGMENT_ORGANIZER_UID + 1; in testActivityHasOverlayOverUntrustedModeEmbedded() 523 assertFalse(activity1.hasOverlayOverUntrustedModeEmbedded()); in testActivityHasOverlayOverUntrustedModeEmbedded() 536 assertFalse(activity1.hasOverlayOverUntrustedModeEmbedded()); in testActivityHasOverlayOverUntrustedModeEmbedded() 546 final ActivityRecord activity1 = taskFragment.getTopMostActivity(); in testIsAllowedToBeEmbeddedInTrustedMode() local [all …]
|
D | TaskTests.java | 160 final ActivityRecord activity1 = createActivityRecord(task1); in testRemoveContainer_multipleNestedTasks() local 162 activity1.setVisible(false); in testRemoveContainer_multipleNestedTasks() 166 assertTrue(activity1.finishing); in testRemoveContainer_multipleNestedTasks() 170 activity1.removeImmediately(); in testRemoveContainer_multipleNestedTasks() 282 final ActivityRecord activity1 = createActivityRecord(mDisplayContent, task1); in testIsInTask() local 284 assertEquals(activity1, task1.isInTask(activity1)); in testIsInTask() 291 final ActivityRecord activity1 = new ActivityBuilder(mAtm).setTask(task).build(); in testPerformClearTop() local 294 activity1.detachFromProcess(); in testPerformClearTop() 297 assertTrue(task.performClearTop(activity1, 0 /* launchFlags */, finishCount).finishing); in testPerformClearTop() 321 final ActivityRecord activity1 = createActivityRecord(mDisplayContent, task); in testRemoveChildForOverlayTask() local [all …]
|
D | ActivityLeakTests.java | 94 final DetectLeakActivity activity1 = (DetectLeakActivity) startActivity( in testActivityLeakForTwoInstances() local 96 mStartedActivityList.add(activity1); in testActivityLeakForTwoInstances() 106 activity1.finish(); in testActivityLeakForTwoInstances() 107 assertFalse("Leak found on activity 1", activity1.isLeakedAfterDestroy()); in testActivityLeakForTwoInstances()
|
D | DisplayWindowPolicyControllerTests.java | 75 final ActivityRecord activity1 = launchActivityOnDisplay(mSecondaryDisplay, TEST_USER_0_ID); in testOnRunningActivityChanged() local 76 verifyTopActivityAndRunningUid(activity1, in testOnRunningActivityChanged() 90 verifyTopActivityAndRunningUid(activity1, in testOnRunningActivityChanged() 93 activity1.finishing = true; in testOnRunningActivityChanged()
|
D | TransitionTests.java | 1383 final ActivityRecord activity1 = createActivityRecord(task1); in testIntermediateVisibility() local 1384 activity1.setVisibleRequested(false); in testIntermediateVisibility() 1385 activity1.setVisible(false); in testIntermediateVisibility() 1393 openTransition.collectExistenceChange(activity1); in testIntermediateVisibility() 1397 activity1.setVisibleRequested(true); in testIntermediateVisibility() 1398 activity1.setVisible(true); in testIntermediateVisibility() 1411 closeTransition.collectExistenceChange(activity1); in testIntermediateVisibility() 1415 activity1.setVisibleRequested(false); in testIntermediateVisibility() 1423 assertTrue(activity1.isVisible()); in testIntermediateVisibility() 1433 assertFalse(activity1.isVisible()); in testIntermediateVisibility() [all …]
|
D | ActivityRecordTests.java | 2398 final ActivityRecord activity1 = createActivityWithTask(); in testTransferLaunchCookieWhenFinishing() local 2400 activity1.mLaunchCookie = launchCookie; in testTransferLaunchCookieWhenFinishing() 2401 final ActivityRecord activity2 = createActivityRecord(activity1.getTask()); in testTransferLaunchCookieWhenFinishing() 2402 activity1.setState(PAUSED, "test"); in testTransferLaunchCookieWhenFinishing() 2403 activity1.makeFinishingLocked(); in testTransferLaunchCookieWhenFinishing() 2406 assertNull(activity1.mLaunchCookie); in testTransferLaunchCookieWhenFinishing() 2408 assertTrue(activity1.getTask().getTaskInfo().launchCookies.contains(launchCookie)); in testTransferLaunchCookieWhenFinishing() 2786 final ActivityRecord activity1 = new ActivityBuilder(mAtm).setCreateTask(true) in testTransferStartingWindow() local 2790 activity1.addStartingWindow(mPackageName, android.R.style.Theme, null, true, true, false, in testTransferStartingWindow() 2793 activity2.addStartingWindow(mPackageName, android.R.style.Theme, activity1, true, true, in testTransferStartingWindow() [all …]
|
D | RootTaskTests.java | 135 final ActivityRecord activity1 = createActivityRecord(mDisplayContent); in testClosingAppDifferentTaskOrientation() local 136 activity1.setOrientation(SCREEN_ORIENTATION_LANDSCAPE); in testClosingAppDifferentTaskOrientation() 141 final WindowContainer parent = activity1.getTask().getParent(); in testClosingAppDifferentTaskOrientation() 149 final ActivityRecord activity1 = createActivityRecord(mDisplayContent); in testMoveTaskToBackDifferentTaskOrientation() local 150 activity1.setOrientation(SCREEN_ORIENTATION_LANDSCAPE); in testMoveTaskToBackDifferentTaskOrientation() 155 final WindowContainer parent = activity1.getTask().getParent(); in testMoveTaskToBackDifferentTaskOrientation() 232 ActivityRecord activity1 = createNonAttachedActivityRecord(mDisplayContent); in testActivityAndTaskGetsProperType() local 235 task1.addChild(activity1, 0); in testActivityAndTaskGetsProperType() 236 assertEquals(WindowConfiguration.ACTIVITY_TYPE_STANDARD, activity1.getActivityType()); in testActivityAndTaskGetsProperType() 1218 final ActivityRecord activity1 = finishTopActivity(homeRootTask); in testWontFinishHomeRootTaskImmediately() local [all …]
|
D | WindowContainerTests.java | 1064 final ActivityRecord activity1 = createActivityRecord(mDisplayContent, task); in testTaskCanApplyAnimation() local 1065 verifyWindowContainerApplyAnimation(task, activity1, activity2); in testTaskCanApplyAnimation() 1073 final ActivityRecord activity1 = createActivityRecord(mDisplayContent, in testRootTaskCanApplyAnimation() local 1075 verifyWindowContainerApplyAnimation(rootTask, activity1, activity2); in testRootTaskCanApplyAnimation() 1437 final ActivityRecord activity1 = createActivityRecord(mDisplayContent, in testAddLocalInsetsFrameProvider() local 1442 activity1.addWindow(createWindowState(attrs1, activity1)); in testAddLocalInsetsFrameProvider() 1480 activity1.forAllWindows(window -> { in testAddLocalInsetsFrameProvider() 1555 final ActivityRecord activity1 = createActivityRecord(mDisplayContent, in testRemoveLocalInsetsFrameProvider() local 1560 activity1.addWindow(createWindowState(attrs1, activity1)); in testRemoveLocalInsetsFrameProvider() 1595 activity1.forAllWindows(window -> { in testRemoveLocalInsetsFrameProvider()
|
D | RootWindowContainerTests.java | 210 final ActivityRecord activity1 = new ActivityBuilder(mAtm).setTask(task1).build(); in testTaskLayerRank() local 211 activity1.setVisibleRequested(true); in testTaskLayerRank() 237 activity1.setVisibleRequested(false); in testTaskLayerRank() 378 final ActivityRecord activity1 = new ActivityBuilder(mAtm).setCreateTask(true).build(); in testMultipleActivitiesTaskEnterPip() local 380 .setTask(activity1.getTask()).build(); in testMultipleActivitiesTaskEnterPip() 393 assertNotEquals(newPipTask, activity1.getTask()); in testMultipleActivitiesTaskEnterPip() 396 assertThat(activity1.getTask().autoRemoveRecents).isFalse(); in testMultipleActivitiesTaskEnterPip()
|
D | RecentsAnimationControllerTest.java | 172 final ActivityRecord activity1 = createActivityRecord(task); in testLaunchAndStartRecents_expectTargetAndVisible() local 173 activity1.setVisible(true); in testLaunchAndStartRecents_expectTargetAndVisible() 174 activity1.setVisibleRequested(false); in testLaunchAndStartRecents_expectTargetAndVisible() 175 activity1.addWindow(createWindowState(new LayoutParams(TYPE_BASE_APPLICATION), activity1)); in testLaunchAndStartRecents_expectTargetAndVisible()
|
D | TaskFragmentOrganizerControllerTest.java | 1135 final ActivityRecord activity1 = tf1.getTopMostActivity(); in testApplyTransaction_requestFocusOnTaskFragment() local 1147 activity1.setState(ActivityRecord.State.RESUMED, "test"); in testApplyTransaction_requestFocusOnTaskFragment() 1148 mDisplayContent.setFocusedApp(activity1); in testApplyTransaction_requestFocusOnTaskFragment() 1151 assertEquals(activity1, mDisplayContent.mFocusedApp); in testApplyTransaction_requestFocusOnTaskFragment() 1156 mDisplayContent.setFocusedApp(activity1); in testApplyTransaction_requestFocusOnTaskFragment()
|
D | DisplayContentTests.java | 1005 final ActivityRecord activity1 = rootTask1.topRunningActivity(); in testInputMethodTargetUpdateWhenSwitchingOnDisplays() local 1006 doReturn(true).when(activity1).shouldBeVisibleUnchecked(); in testInputMethodTargetUpdateWhenSwitchingOnDisplays() 2076 final ActivityRecord activity1 = new ActivityBuilder(mAtm).setCreateTask(true).build(); in testShellTransitRotation() local 2078 doReturn(true).when(activity1).isSyncFinished(any()); in testShellTransitRotation() 2109 verify(activity1).ensureActivityConfiguration(anyBoolean()); in testShellTransitRotation()
|
/frameworks/base/core/tests/coretests/src/android/content/res/ |
D | ResourcesManagerTest.java | 219 Binder activity1 = new Binder(); in testTwoActivitiesWithIdenticalParametersShareImpl() local 221 activity1, APP_ONE_RES_DIR, null, null, null, null, null, null, in testTwoActivitiesWithIdenticalParametersShareImpl() 241 Binder activity1 = new Binder(); in testThemesGetUpdatedWithNewImpl() local 243 activity1, APP_ONE_RES_DIR, null, null, null, null, Display.DEFAULT_DISPLAY, null, in testThemesGetUpdatedWithNewImpl() 258 mResourcesManager.updateResourcesForActivity(activity1, overrideConfig, in testThemesGetUpdatedWithNewImpl() 271 Binder activity1 = new Binder(); in testMultipleResourcesForOneActivityGetUpdatedWhenActivityBaseUpdates() local 277 activity1, APP_ONE_RES_DIR, null, null, null, null, Display.DEFAULT_DISPLAY, in testMultipleResourcesForOneActivityGetUpdatedWhenActivityBaseUpdates() 285 activity1, APP_ONE_RES_DIR, null, null, null, null, null, config2, in testMultipleResourcesForOneActivityGetUpdatedWhenActivityBaseUpdates() 309 mResourcesManager.updateResourcesForActivity(activity1, config1, Display.DEFAULT_DISPLAY); in testMultipleResourcesForOneActivityGetUpdatedWhenActivityBaseUpdates()
|
/frameworks/base/libs/WindowManager/Jetpack/tests/unittest/src/androidx/window/extensions/embedding/ |
D | TaskContainerTest.java | 183 final Activity activity1 = mock(Activity.class); in testGetTopNonFinishingActivity() local 184 doReturn(activity1).when(tf1).getTopNonFinishingActivity(); in testGetTopNonFinishingActivity() 185 assertEquals(activity1, taskContainer.getTopNonFinishingActivity( in testGetTopNonFinishingActivity()
|
D | TaskFragmentContainerTest.java | 311 final Activity activity1 = createMockActivity(); in testCollectNonFinishingActivities() local 313 activity1.getActivityToken()); in testCollectNonFinishingActivities() 320 assertEquals(activity1, activities.get(1)); in testCollectNonFinishingActivities()
|
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/statusbar/pipeline/wifi/domain/interactor/ |
D | WifiInteractorImplTest.kt | 260 val activity1 = DataActivityModel(hasActivityIn = true, hasActivityOut = true) in activity_matchesRepoWifiActivity() constant 261 wifiRepository.setWifiActivity(activity1) in activity_matchesRepoWifiActivity() 263 assertThat(latest).isEqualTo(activity1) in activity_matchesRepoWifiActivity()
|
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/pm/ |
D | PackageArchiverTest.java | 590 LauncherActivityInfo activity1 = mock(LauncherActivityInfo.class); in createLauncherActivities() local 591 when(activity1.getLabel()).thenReturn("activity1"); in createLauncherActivities() 592 when(activity1.getComponentName()).thenReturn(new ComponentName("pkg1", "class1")); in createLauncherActivities() 593 when(activity1.getActivityInfo()).thenReturn(activityInfo); in createLauncherActivities() 598 return List.of(activity1, activity2); in createLauncherActivities()
|