Searched refs:activity0 (Results 1 – 8 of 8) sorted by relevance
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/ |
D | TaskFragmentTest.java | 395 final ActivityRecord activity0 = taskFragment0.getTopMostActivity(); in testEmbeddedTaskFragmentEnterPip_multiActivities_notifyOrganizer() local 397 activity0.setVisibility(true); in testEmbeddedTaskFragmentEnterPip_multiActivities_notifyOrganizer() 402 mRootWindowContainer.moveActivityToPinnedRootTask(activity0, in testEmbeddedTaskFragmentEnterPip_multiActivities_notifyOrganizer() 418 assertEquals(mIOrganizer, activity0.mLastTaskFragmentOrganizerBeforePip); in testEmbeddedTaskFragmentEnterPip_multiActivities_notifyOrganizer() 500 final ActivityRecord activity0 = organizedTf.getBottomMostActivity(); in testActivityHasOverlayOverUntrustedModeEmbedded() local 504 activity0.info.applicationInfo.uid = DEFAULT_TASK_FRAGMENT_ORGANIZER_UID + 1; in testActivityHasOverlayOverUntrustedModeEmbedded() 506 doReturn(true).when(organizedTf).isAllowedToEmbedActivityInUntrustedMode(activity0); in testActivityHasOverlayOverUntrustedModeEmbedded() 508 assertTrue(activity0.hasOverlayOverUntrustedModeEmbedded()); in testActivityHasOverlayOverUntrustedModeEmbedded() 513 activity0.info.applicationInfo.uid = DEFAULT_TASK_FRAGMENT_ORGANIZER_UID; in testActivityHasOverlayOverUntrustedModeEmbedded() 515 assertFalse(activity0.hasOverlayOverUntrustedModeEmbedded()); in testActivityHasOverlayOverUntrustedModeEmbedded() [all …]
|
D | TaskTests.java | 1054 final ActivityRecord activity0 = task.getBottomMostActivity(); in testFindRootIndex_finishing() local 1055 activity0.finishing = true; in testFindRootIndex_finishing() 1086 final ActivityRecord activity0 = new ActivityBuilder(mAtm).setCreateTask(true).build(); in testFindRootIndex_effectiveRoot_finishingAndRelinquishing() local 1087 final Task task = activity0.getTask(); in testFindRootIndex_effectiveRoot_finishingAndRelinquishing() 1090 activity0.info.flags |= FLAG_RELINQUISH_TASK_IDENTITY; in testFindRootIndex_effectiveRoot_finishingAndRelinquishing() 1121 final ActivityRecord activity0 = new ActivityBuilder(mAtm).setCreateTask(true).build(); in testFindRootIndex_effectiveRoot_relinquishingMultipleActivities() local 1122 final Task task = activity0.getTask(); in testFindRootIndex_effectiveRoot_relinquishingMultipleActivities() 1124 activity0.info.flags |= FLAG_RELINQUISH_TASK_IDENTITY; in testFindRootIndex_effectiveRoot_relinquishingMultipleActivities() 1166 final ActivityRecord activity0 = task.getBottomMostActivity(); in testGetRootActivity_relinquishTaskIdentity() local 1167 activity0.info.flags |= FLAG_RELINQUISH_TASK_IDENTITY; in testGetRootActivity_relinquishTaskIdentity() [all …]
|
D | WindowContainerTests.java | 1429 final ActivityRecord activity0 = createActivityRecord(mDisplayContent, in testAddLocalInsetsFrameProvider() local 1434 activity0.addWindow(createWindowState(attrs, activity0)); in testAddLocalInsetsFrameProvider() 1474 activity0.forAllWindows(window -> { in testAddLocalInsetsFrameProvider() 1503 final ActivityRecord activity0 = createActivityRecord(mDisplayContent, in testAddLocalInsetsFrameProvider_sameType_replacesInsets() local 1508 activity0.addWindow(createWindowState(attrs, activity0)); in testAddLocalInsetsFrameProvider_sameType_replacesInsets() 1523 activity0.forAllWindows(window -> { in testAddLocalInsetsFrameProvider_sameType_replacesInsets() 1530 activity0.forAllWindows(window -> { in testAddLocalInsetsFrameProvider_sameType_replacesInsets() 1547 final ActivityRecord activity0 = createActivityRecord(mDisplayContent, in testRemoveLocalInsetsFrameProvider() local 1552 activity0.addWindow(createWindowState(attrs, activity0)); in testRemoveLocalInsetsFrameProvider() 1589 activity0.forAllWindows(window -> { in testRemoveLocalInsetsFrameProvider()
|
D | AppTransitionControllerTest.java | 1074 final ActivityRecord activity0 = taskFragment.getChildAt(0).asActivityRecord(); in testOverrideTaskFragmentAdapter_inputProtectedForUntrustedAnimation() local 1079 prepareActivityForAppTransition(activity0); in testOverrideTaskFragmentAdapter_inputProtectedForUntrustedAnimation() 1082 doReturn(false).when(taskFragment).isAllowedToEmbedActivityInTrustedMode(activity0); in testOverrideTaskFragmentAdapter_inputProtectedForUntrustedAnimation() 1093 verify(activity0).setDropInputForAnimation(true); in testOverrideTaskFragmentAdapter_inputProtectedForUntrustedAnimation() 1096 verify(activity0).setDropInputMode(DropInputMode.ALL); in testOverrideTaskFragmentAdapter_inputProtectedForUntrustedAnimation() 1101 clearInvocations(activity0); in testOverrideTaskFragmentAdapter_inputProtectedForUntrustedAnimation() 1106 verify(activity0).setDropInputForAnimation(false); in testOverrideTaskFragmentAdapter_inputProtectedForUntrustedAnimation() 1109 verify(activity0).setDropInputMode(DropInputMode.OBSCURED); in testOverrideTaskFragmentAdapter_inputProtectedForUntrustedAnimation()
|
D | TaskFragmentOrganizerControllerTest.java | 1134 final ActivityRecord activity0 = tf0.getTopMostActivity(); in testApplyTransaction_requestFocusOnTaskFragment() local 1146 activity0.setState(ActivityRecord.State.PAUSED, "test"); in testApplyTransaction_requestFocusOnTaskFragment() 1155 activity0.setState(ActivityRecord.State.RESUMED, "test"); in testApplyTransaction_requestFocusOnTaskFragment() 1159 assertEquals(activity0, mDisplayContent.mFocusedApp); in testApplyTransaction_requestFocusOnTaskFragment()
|
D | TransitionTests.java | 1709 final ActivityRecord activity0 = createActivityRecord(task); in testIsBehindStartingWindowChange() local 1718 changes.put(activity0, in testIsBehindStartingWindowChange() 1719 new Transition.ChangeInfo(activity0, true /* vis */, false /* exChg */)); in testIsBehindStartingWindowChange() 1723 activity0.setVisibleRequested(false); in testIsBehindStartingWindowChange() 1726 participants.add(activity0); in testIsBehindStartingWindowChange()
|
/frameworks/base/libs/WindowManager/Jetpack/tests/unittest/src/androidx/window/extensions/embedding/ |
D | TaskContainerTest.java | 173 final Activity activity0 = mock(Activity.class); in testGetTopNonFinishingActivity() local 174 doReturn(activity0).when(tf0).getTopNonFinishingActivity(); in testGetTopNonFinishingActivity() 175 assertEquals(activity0, taskContainer.getTopNonFinishingActivity( in testGetTopNonFinishingActivity() 180 assertEquals(activity0, taskContainer.getTopNonFinishingActivity( in testGetTopNonFinishingActivity()
|
D | TaskFragmentContainerTest.java | 310 final Activity activity0 = createMockActivity(); in testCollectNonFinishingActivities() local 312 final List<IBinder> runningActivities = Lists.newArrayList(activity0.getActivityToken(), in testCollectNonFinishingActivities() 319 assertEquals(activity0, activities.get(0)); in testCollectNonFinishingActivities()
|