/frameworks/base/services/tests/wmtests/src/com/android/server/wm/ |
D | TaskFragmentTest.java | 44 import static com.android.server.wm.TaskFragment.EMBEDDED_DIM_AREA_PARENT_TASK; 45 import static com.android.server.wm.TaskFragment.EMBEDDED_DIM_AREA_TASK_FRAGMENT; 46 import static com.android.server.wm.TaskFragment.EMBEDDING_DISALLOWED_MIN_DIMENSION_VIOLATION; 47 import static com.android.server.wm.TaskFragment.EMBEDDING_DISALLOWED_UNTRUSTED_HOST; 101 private TaskFragment mTaskFragment; 324 final TaskFragment primaryTf = createTaskFragmentWithActivity(topTask); in testMoveTaskToFront_supportsEnterPipOnTaskSwitchForAdjacentTaskFragment() 325 final TaskFragment secondaryTf = createTaskFragmentWithActivity(topTask); in testMoveTaskToFront_supportsEnterPipOnTaskSwitchForAdjacentTaskFragment() 349 final TaskFragment taskFragment0 = createTaskFragmentWithEmbeddedActivity(task, mOrganizer); in testEmbeddedTaskFragmentEnterPip_singleActivity_resetOrganizerOverrideConfig() 350 final TaskFragment taskFragment1 = new TaskFragmentBuilder(mAtm) in testEmbeddedTaskFragmentEnterPip_singleActivity_resetOrganizerOverrideConfig() 393 final TaskFragment taskFragment0 = createTaskFragmentWithEmbeddedActivity(task, mOrganizer); in testEmbeddedTaskFragmentEnterPip_multiActivities_notifyOrganizer() [all …]
|
D | TaskFragmentOrganizerControllerTest.java | 57 import static com.android.server.wm.TaskFragment.EMBEDDING_ALLOWED; 139 private TaskFragment mTaskFragment; 168 new TaskFragment(mAtm, mFragmentToken, true /* createdByOrganizer */); in setup() 454 final TaskFragment taskFragment = new TaskFragmentBuilder(mAtm) in testOnActivityReparentedToTask_activityInOrganizerProcess_useActivityToken() 696 final TaskFragment taskFragment = mWindowOrganizerController.getTaskFragment( in testApplyTransaction_enforceHierarchyChange_createTaskFragment() 756 final TaskFragment taskFragment2 = new TaskFragmentBuilder(mAtm) in testApplyTransaction_enforceTaskFragmentOrganized_setAdjacentTaskFragments() 803 final TaskFragment taskFragment2 = new TaskFragmentBuilder(mAtm) in testApplyTransaction_enforceTaskFragmentOrganized_clearAdjacentTaskFragments() 961 final TaskFragment taskFragment = mWindowOrganizerController.getTaskFragment( in testApplyTransaction_createTaskFragment_withPairedPrimaryFragmentToken() 997 final TaskFragment taskFragment = mWindowOrganizerController.getTaskFragment( in testApplyTransaction_createTaskFragment_overrideBounds() 1027 final TaskFragment taskFragment = mWindowOrganizerController.getTaskFragment( in testApplyTransaction_createTaskFragment_withPairedActivityToken() [all …]
|
D | AppTransitionControllerTest.java | 585 final TaskFragment taskFragment1 = createTaskFragmentWithActivity(parentTask); in testGetAnimationTargets_openingClosingTaskFragment() 590 final TaskFragment taskFragment2 = createTaskFragmentWithActivity(parentTask); in testGetAnimationTargets_openingClosingTaskFragment() 614 final TaskFragment taskFragment1 = createTaskFragmentWithActivity(task1); in testGetAnimationTargets_openingTheOnlyTaskFragmentInTask() 643 final TaskFragment taskFragment1 = createTaskFragmentWithActivity(task1); in testGetAnimationTargets_closingTheOnlyTaskFragmentInTask() 851 final TaskFragment taskFragment = createTaskFragmentWithEmbeddedActivity(task, organizer); in testOverrideTaskFragmentAdapter_overrideWithEmbeddedActivity() 873 final TaskFragment taskFragment = createTaskFragmentWithEmbeddedActivity(task, organizer); in testOverrideTaskFragmentAdapter_noOverrideWithOnlyTaskFragmentFillingTask() 904 final TaskFragment taskFragment = createTaskFragmentWithEmbeddedActivity(task, organizer); in testOverrideTaskFragmentAdapter_overrideWithTaskFragmentNotFillingTask() 941 final TaskFragment taskFragment = createTaskFragmentWithEmbeddedActivity(task, organizer); in testOverrideTaskFragmentAdapter_overrideWithNonEmbeddedActivity() 963 final TaskFragment taskFragment1 = createTaskFragmentWithEmbeddedActivity(task, organizer); in testOverrideTaskFragmentAdapter_overrideEmbeddedActivityWithDiffUid() 968 final TaskFragment taskFragment2 = createTaskFragmentWithEmbeddedActivity(task, organizer); in testOverrideTaskFragmentAdapter_overrideEmbeddedActivityWithDiffUid() [all …]
|
D | TaskTests.java | 47 import static com.android.server.wm.TaskFragment.EMBEDDED_DIM_AREA_PARENT_TASK; 48 import static com.android.server.wm.TaskFragment.TASK_FRAGMENT_VISIBILITY_VISIBLE_BEHIND_TRANSLUCEN… 861 final TaskFragment.ConfigOverrideHint overrideHint = new TaskFragment.ConfigOverrideHint(); in testComputeConfigResourceOverrides() 1601 final TaskFragment tfBehind = createTaskFragmentWithActivity(task); in testResumeTask_doNotResumeTaskFragmentBehindTranslucent() 1602 final TaskFragment tfFront = createTaskFragmentWithActivity(task); in testResumeTask_doNotResumeTaskFragmentBehindTranslucent() 1622 final TaskFragment tf0 = createTaskFragmentWithActivity(parentTask); in testGetTaskFragment() 1623 final TaskFragment tf1 = createTaskFragmentWithActivity(parentTask); in testGetTaskFragment() 1626 parentTask.getTaskFragment(TaskFragment::isOrganizedTaskFragment)); in testGetTaskFragment() 1631 tf0, parentTask.getTaskFragment(TaskFragment::isOrganizedTaskFragment)); in testGetTaskFragment() 1640 final TaskFragment fragment = createTaskFragmentWithEmbeddedActivity(task, organizer); in testReorderActivityToFront() [all …]
|
D | ActivityStarterTests.java | 58 import static com.android.server.wm.TaskFragment.EMBEDDING_ALLOWED; 59 import static com.android.server.wm.TaskFragment.EMBEDDING_DISALLOWED_MIN_DIMENSION_VIOLATION; 60 import static com.android.server.wm.TaskFragment.EMBEDDING_DISALLOWED_NEW_TASK; 61 import static com.android.server.wm.TaskFragment.EMBEDDING_DISALLOWED_UNTRUSTED_HOST; 1242 final TaskFragment taskFragment = new TaskFragment(mAtm, sourceRecord.token, in testStartActivityInner_inTaskFragment_failsByDefault() 1258 final TaskFragment taskFragment = new TaskFragment(mAtm, sourceRecord.token, in testStartActivityInner_inTaskFragment_allowedForSystemUid() 1276 final TaskFragment taskFragment = new TaskFragment(mAtm, sourceRecord.token, in testStartActivityInner_inTaskFragment_allowedForSameUid() 1294 final TaskFragment taskFragment = new TaskFragment(mAtm, sourceRecord.token, in testStartActivityInner_inTaskFragment_allowedTrustedCertUid() 1320 final TaskFragment taskFragment = new TaskFragment(mAtm, sourceRecord.token, in testStartActivityInner_inTaskFragment_allowedForUntrustedEmbedding() 1459 TaskFragment taskFragment = new TaskFragmentBuilder(mAtm).build(); in testCanEmbedActivity() [all …]
|
D | AppTransitionTests.java | 212 final TaskFragment taskFragment = new TaskFragment(mAtm, new Binder(), in testTaskFragmentChange() 267 final TaskFragment bottomTaskFragment = createTaskFragmentWithActivity(parentTask); in createHierarchyForTaskFragmentTest() 272 final TaskFragment verifiedTaskFragment = createTaskFragmentWithActivity(parentTask); in createHierarchyForTaskFragmentTest() 443 final TaskFragment taskFragment = new TaskFragmentBuilder(mAtm) in testActivityRecordReparentedToTaskFragment()
|
D | ActivityStartControllerTests.java | 75 mock(TaskFragment.class), in testStartActivityInTaskFragment_setsActivityStarterRequestResolvedType()
|
D | BackNavigationControllerTests.java | 293 final TaskFragment tf1 = createTaskFragmentWithActivity(task); in backTypeCrossActivityInTaskFragment() 294 final TaskFragment tf2 = createTaskFragmentWithActivity(task); in backTypeCrossActivityInTaskFragment() 359 final TaskFragment tf3 = new TaskFragmentBuilder(mAtm) in backTypeCrossActivityInTaskFragment() 390 final TaskFragment tf4 = createTaskFragmentWithActivity(task); in backTypeCrossActivityInTaskFragment() 676 final TaskFragment primaryTf = createTaskFragmentWithActivity(task); in testAdjacentFocusInActivityEmbedding() 677 final TaskFragment secondaryTf = createTaskFragmentWithActivity(task); in testAdjacentFocusInActivityEmbedding()
|
D | ActivityRecordTests.java | 98 import static com.android.server.wm.TaskFragment.TASK_FRAGMENT_VISIBILITY_INVISIBLE; 99 import static com.android.server.wm.TaskFragment.TASK_FRAGMENT_VISIBILITY_VISIBLE; 100 import static com.android.server.wm.TaskFragment.TASK_FRAGMENT_VISIBILITY_VISIBLE_BEHIND_TRANSLUCEN… 213 final TaskFragment taskFragment = activity.getTaskFragment(); in testTaskFragmentCleanupOnClearingTask() 222 final TaskFragment taskFragment = activity.getTaskFragment(); in testTaskFragmentCleanupOnActivityRemoval() 1296 final TaskFragment taskFragment1 = createTaskFragmentWithActivity(task); in testFinishActivityIfPossible_sendResultImmediatelyIfResumed() 1297 final TaskFragment taskFragment2 = createTaskFragmentWithActivity(task); in testFinishActivityIfPossible_sendResultImmediatelyIfResumed() 2964 final BiConsumer<TaskFragment, Rect> fragmentSetup = (fragment, bounds) -> { in testStartingWindowInTaskFragment() 2971 final TaskFragment taskFragment1 = new TaskFragment( in testStartingWindowInTaskFragment() 2978 final TaskFragment taskFragment2 = new TaskFragment( in testStartingWindowInTaskFragment() [all …]
|
D | TransitionTests.java | 890 final TaskFragment closingTaskFragment = createTaskFragmentWithActivity(task); in testOpenOpaqueTaskFragment() 891 final TaskFragment openingTaskFragment = createTaskFragmentWithActivity(task); in testOpenOpaqueTaskFragment() 932 final TaskFragment closingTaskFragment = createTaskFragmentWithActivity(task); in testOpenTranslucentTaskFragment() 933 final TaskFragment openingTaskFragment = createTaskFragmentWithActivity(task); in testOpenTranslucentTaskFragment() 974 final TaskFragment openingTaskFragment = createTaskFragmentWithActivity(task); in testCloseOpaqueTaskFragment_withFinishingActivity() 975 final TaskFragment closingTaskFragment = createTaskFragmentWithActivity(task); in testCloseOpaqueTaskFragment_withFinishingActivity() 1017 final TaskFragment openingTaskFragment = createTaskFragmentWithActivity(task); in testCloseTranslucentTaskFragment_withFinishingActivity() 1018 final TaskFragment closingTaskFragment = createTaskFragmentWithActivity(task); in testCloseTranslucentTaskFragment_withFinishingActivity() 1753 final TaskFragment embeddedTf = new TaskFragmentBuilder(mAtm) in testFlagInTaskWithEmbeddedActivity() 1803 final TaskFragment embeddedTf = new TaskFragmentBuilder(mAtm) in testFlagFillsTask_embeddingNotFillingTask() [all …]
|
D | WindowTestsBase.java | 884 static TaskFragment createTaskFragmentWithActivity(@NonNull Task parentTask) { in createTaskFragmentWithActivity() 900 static TaskFragment createTaskFragmentWithEmbeddedActivity(@NonNull Task parentTask, in createTaskFragmentWithEmbeddedActivity() 903 final TaskFragment taskFragment = new TaskFragmentBuilder(parentTask.mAtmService) in createTaskFragmentWithEmbeddedActivity() 1566 TaskFragment build() { in build() 1569 final TaskFragment taskFragment = new TaskFragment(mAtm, mFragmentToken, in build()
|
/frameworks/base/services/core/java/com/android/server/wm/ |
D | TaskFragmentOrganizerController.java | 30 import static com.android.server.wm.TaskFragment.EMBEDDING_ALLOWED; 109 private final ArrayList<TaskFragment> mOrganizedTaskFragments = new ArrayList<>(); 119 private final Map<TaskFragment, TaskFragmentInfo> mLastSentTaskFragmentInfos = 126 private final Map<TaskFragment, Integer> mTaskFragmentTaskIds = new WeakHashMap<>(); 200 boolean addTaskFragment(TaskFragment taskFragment) { in addTaskFragment() 211 void removeTaskFragment(TaskFragment taskFragment) { in removeTaskFragment() 218 final TaskFragment taskFragment = mOrganizedTaskFragments.get(i); in dispose() 245 final TaskFragment taskFragment = mOrganizedTaskFragments.remove(0); in dispose() 264 TaskFragmentTransaction.Change prepareTaskFragmentAppeared(@NonNull TaskFragment tf) { in prepareTaskFragmentAppeared() 283 TaskFragmentTransaction.Change prepareTaskFragmentVanished(@NonNull TaskFragment tf) { in prepareTaskFragmentVanished() [all …]
|
D | EnsureActivitiesVisibleHelper.java | 30 private final TaskFragment mTaskFragment; 38 EnsureActivitiesVisibleHelper(TaskFragment container) { in EnsureActivitiesVisibleHelper() 91 ArrayList<TaskFragment> adjacentTaskFragments = null; in process() 94 final TaskFragment childTaskFragment = child.asTaskFragment(); in process() 122 final TaskFragment adjacentTaskFrag = childTaskFragment.getAdjacentTaskFragment(); in process()
|
D | TaskFragment.java | 127 class TaskFragment extends WindowContainer<WindowContainer> { class 245 private TaskFragment mAdjacentTaskFragment; 253 private TaskFragment mCompanionTaskFragment; 418 TaskFragment(ActivityTaskManagerService atmService, IBinder fragmentToken, in TaskFragment() method in TaskFragment 423 TaskFragment(ActivityTaskManagerService atmService, IBinder fragmentToken, in TaskFragment() method in TaskFragment 440 static TaskFragment fromTaskFragmentToken(@Nullable IBinder token, in fromTaskFragmentToken() 446 void setAdjacentTaskFragment(@Nullable TaskFragment taskFragment) { in setAdjacentTaskFragment() 457 void setCompanionTaskFragment(@Nullable TaskFragment companionTaskFragment) { in setCompanionTaskFragment() 461 TaskFragment getCompanionTaskFragment() { in getCompanionTaskFragment() 566 TaskFragment getAdjacentTaskFragment() { in getAdjacentTaskFragment() [all …]
|
D | WindowOrganizerController.java | 77 import static com.android.server.wm.TaskFragment.EMBEDDED_DIM_AREA_PARENT_TASK; 78 import static com.android.server.wm.TaskFragment.EMBEDDED_DIM_AREA_TASK_FRAGMENT; 79 import static com.android.server.wm.TaskFragment.EMBEDDING_ALLOWED; 80 import static com.android.server.wm.TaskFragment.FLAG_FORCE_HIDDEN_FOR_TASK_FRAGMENT_ORG; 182 final ArrayMap<IBinder, TaskFragment> mLaunchTaskFragments = new ArrayMap<>(); 409 final TaskFragment taskFragment = getTaskFragment(tfToken); in isCreatedTaskFragmentReady() 942 private int applyTaskFragmentChanges(@NonNull TaskFragment taskFragment, in applyTaskFragmentChanges() 998 @NonNull TaskFragment taskFragment, @NonNull Rect inOutRelativeBounds, in adjustTaskFragmentRelativeBoundsForMinDimensionsIfNeeded() 1365 final TaskFragment taskFragment = mLaunchTaskFragments.get(fragmentToken); in applyTaskFragmentOperation() 1463 final TaskFragment secondaryTaskFragment = in applyTaskFragmentOperation() [all …]
|
D | ActivityStartInterceptor.java | 112 TaskFragment mInTaskFragment; 153 final TaskFragment taskFragment = getLaunchTaskFragment(); in createIntentSenderForOriginalIntent() 174 private TaskFragment getLaunchTaskFragment() { in getLaunchTaskFragment() 185 return TaskFragment.fromTaskFragmentToken(taskFragToken, mService); in getLaunchTaskFragment() 195 Task inTask, TaskFragment inTaskFragment, int callingPid, int callingUid, in intercept() 393 final TaskFragment taskFragment = getLaunchTaskFragment(); in interceptLockedProfileIfNeeded()
|
D | BackNavigationController.java | 416 final TaskFragment currTF = currentActivity.getTaskFragment(); in getAnimatablePrevActivities() 425 final TaskFragment nextTF = findNextTaskFragment(currentTask, currTF); in getAnimatablePrevActivities() 447 final TaskFragment adjacentTF = currTF.getAdjacentTaskFragment(); in getAnimatablePrevActivities() 452 final TaskFragment lowerTF = commonParent.mChildren.indexOf(currTF) in getAnimatablePrevActivities() 479 private static TaskFragment findNextTaskFragment(@NonNull Task currentTask, in findNextTaskFragment() 480 @NonNull TaskFragment topTF) { in findNextTaskFragment() 493 private static boolean isSecondCompanionToFirst(TaskFragment first, TaskFragment second) { in isSecondCompanionToFirst() 499 final TaskFragment prevTF = prevActivity.getTaskFragment(); in addPreviousAdjacentActivityIfExist() 504 final TaskFragment prevTFAdjacent = prevTF.getAdjacentTaskFragment(); in addPreviousAdjacentActivityIfExist() 517 final TaskFragment mainTF = mainActivity.getTaskFragment(); in findAdjacentActivityIfExist() [all …]
|
D | ActivityStarter.java | 82 import static com.android.server.wm.TaskFragment.EMBEDDING_ALLOWED; 83 import static com.android.server.wm.TaskFragment.EMBEDDING_DISALLOWED_MIN_DIMENSION_VIOLATION; 84 import static com.android.server.wm.TaskFragment.EMBEDDING_DISALLOWED_NEW_TASK; 85 import static com.android.server.wm.TaskFragment.EMBEDDING_DISALLOWED_UNTRUSTED_HOST; 141 import com.android.server.wm.TaskFragment.EmbeddingCheckResult; 220 private TaskFragment mInTaskFragment; 221 private TaskFragment mAddingToTaskFragment; 409 TaskFragment inTaskFragment; 961 TaskFragment inTaskFragment = request.inTaskFragment; in executeRequest() 1513 TaskFragment inTaskFragment, in startActivityUnchecked() [all …]
|
D | EventLogTags.logtags | 62 # Embedded TaskFragment created 64 # Embedded TaskFragment removed
|
D | ActivitySnapshotController.java | 417 final TaskFragment tf = next.asTaskFragment(); in handleTransitionFinish() 497 final TaskFragment currTF = currentActivity.getTaskFragment(); in getActivityBelow() 498 final TaskFragment prevTF = initPrev.getTaskFragment(); in getActivityBelow() 499 final TaskFragment prevAdjacentTF = prevTF != null in getActivityBelow()
|
D | ActivityRecord.java | 252 import static com.android.server.wm.TaskFragment.TASK_FRAGMENT_VISIBILITY_VISIBLE; 665 final TaskFragment.ConfigOverrideHint mResolveConfigHint; 1595 TaskFragment getTaskFragment() { in getTaskFragment() 1602 @Nullable TaskFragment newParent, @Nullable TaskFragment oldParent) { in shouldStartChangeTransition() 1627 final TaskFragment oldParent = (TaskFragment) rawOldParent; in onParentChanged() 1628 final TaskFragment newParent = (TaskFragment) rawNewParent; in onParentChanged() 1773 final TaskFragment organizedTaskFragment = getOrganizedTaskFragment(); in isEmbeddedInUntrustedMode() 1819 final TaskFragment organizedTf = launchIntoPipHostActivity == null in setLastParentBeforePip() 2148 mResolveConfigHint = new TaskFragment.ConfigOverrideHint(); in ActivityRecord() 2438 final TaskFragment tf = getTaskFragment(); in setProcess() [all …]
|
D | Task.java | 218 class Task extends TaskFragment { 1422 final TaskFragment taskFragment = newTop.getTaskFragment(); in moveActivityToFront() 1460 final TaskFragment childTaskFrag = child.asTaskFragment(); in addChild() 1595 private boolean shouldAutoRemoveFromRecents(TaskFragment oldParentFragment) { in shouldAutoRemoveFromRecents() 1735 List<TaskFragment> taskFragmentsToMove = null; in moveTaskFragmentsToBottomIfNeeded() 1739 final TaskFragment taskFragment = mChildren.get(i).asTaskFragment(); in moveTaskFragmentsToBottomIfNeeded() 1754 final TaskFragment taskFragment = taskFragmentsToMove.get(i); in moveTaskFragmentsToBottomIfNeeded() 2461 final TaskFragment adjacentTaskFragment = getAdjacentTaskFragment(); in getAdjacentTask() 2979 TaskFragment parent = r.getTaskFragment(); in getOccludingActivityAbove() 2990 TaskFragment grandParent = parent.getParent().asTaskFragment(); in getOccludingActivityAbove() [all …]
|
D | SnapshotController.java | 100 final TaskFragment tf = info.mContainer.asTaskFragment(); in onTransactionReady()
|
D | WindowContainer.java | 2087 boolean forAllLeafTaskFragments(Predicate<TaskFragment> callback) { in forAllLeafTaskFragments() 2156 void forAllTaskFragments(Consumer<TaskFragment> callback) { in forAllTaskFragments() 2160 void forAllTaskFragments(Consumer<TaskFragment> callback, boolean traverseTopToBottom) { in forAllTaskFragments() 2186 void forAllLeafTaskFragments(Consumer<TaskFragment> callback, boolean traverseTopToBottom) { in forAllLeafTaskFragments() 2359 TaskFragment getTaskFragment(Predicate<TaskFragment> callback) { in getTaskFragment() 2361 final TaskFragment tf = mChildren.get(i).getTaskFragment(callback); in getTaskFragment() 3282 final TaskFragment taskFragment = asTaskFragment(); in applyAnimationUnchecked() 3295 final TaskFragment organizedTf = activityRecord != null in applyAnimationUnchecked() 3786 TaskFragment asTaskFragment() { in asTaskFragment()
|
/frameworks/base/core/java/android/window/flags/ |
D | windowing_sdk.aconfig | 26 description: "Whether the TaskFragment system organizer feature is enabled"
|