Loading services/core/java/com/android/server/wm/TaskFragment.java +0 −42 Original line number Diff line number Diff line Loading @@ -391,41 +391,6 @@ class TaskFragment extends WindowContainer<WindowContainer> { private final EnsureActivitiesVisibleHelper mEnsureActivitiesVisibleHelper = new EnsureActivitiesVisibleHelper(this); private final EnsureVisibleActivitiesConfigHelper mEnsureVisibleActivitiesConfigHelper = new EnsureVisibleActivitiesConfigHelper(); private class EnsureVisibleActivitiesConfigHelper implements Predicate<ActivityRecord> { private boolean mUpdateConfig; private boolean mPreserveWindow; private boolean mBehindFullscreen; void reset(boolean preserveWindow) { mPreserveWindow = preserveWindow; mUpdateConfig = false; mBehindFullscreen = false; } void process(ActivityRecord start, boolean preserveWindow) { if (start == null || !start.isVisibleRequested()) { return; } reset(preserveWindow); forAllActivities(this, start, true /* includeBoundary */, true /* traverseTopToBottom */); if (mUpdateConfig) { // Ensure the resumed state of the focus activity if we updated the configuration of // any activity. mRootWindowContainer.resumeFocusedTasksTopActivities(); } } @Override public boolean test(ActivityRecord r) { mUpdateConfig |= r.ensureActivityConfiguration(0 /*globalChanges*/, mPreserveWindow); mBehindFullscreen |= r.occludesParent(); return mBehindFullscreen; } } /** Creates an embedded task fragment. */ TaskFragment(ActivityTaskManagerService atmService, IBinder fragmentToken, Loading Loading @@ -2163,13 +2128,6 @@ class TaskFragment extends WindowContainer<WindowContainer> { return getTask() != null ? getTask().mTaskId : INVALID_TASK_ID; } /** * Ensures all visible activities at or below the input activity have the right configuration. */ void ensureVisibleActivitiesConfiguration(ActivityRecord start, boolean preserveWindow) { mEnsureVisibleActivitiesConfigHelper.process(start, preserveWindow); } void computeConfigResourceOverrides(@NonNull Configuration inOutConfig, @NonNull Configuration parentConfig) { computeConfigResourceOverrides(inOutConfig, parentConfig, null /* overrideDisplayInfo */, Loading Loading
services/core/java/com/android/server/wm/TaskFragment.java +0 −42 Original line number Diff line number Diff line Loading @@ -391,41 +391,6 @@ class TaskFragment extends WindowContainer<WindowContainer> { private final EnsureActivitiesVisibleHelper mEnsureActivitiesVisibleHelper = new EnsureActivitiesVisibleHelper(this); private final EnsureVisibleActivitiesConfigHelper mEnsureVisibleActivitiesConfigHelper = new EnsureVisibleActivitiesConfigHelper(); private class EnsureVisibleActivitiesConfigHelper implements Predicate<ActivityRecord> { private boolean mUpdateConfig; private boolean mPreserveWindow; private boolean mBehindFullscreen; void reset(boolean preserveWindow) { mPreserveWindow = preserveWindow; mUpdateConfig = false; mBehindFullscreen = false; } void process(ActivityRecord start, boolean preserveWindow) { if (start == null || !start.isVisibleRequested()) { return; } reset(preserveWindow); forAllActivities(this, start, true /* includeBoundary */, true /* traverseTopToBottom */); if (mUpdateConfig) { // Ensure the resumed state of the focus activity if we updated the configuration of // any activity. mRootWindowContainer.resumeFocusedTasksTopActivities(); } } @Override public boolean test(ActivityRecord r) { mUpdateConfig |= r.ensureActivityConfiguration(0 /*globalChanges*/, mPreserveWindow); mBehindFullscreen |= r.occludesParent(); return mBehindFullscreen; } } /** Creates an embedded task fragment. */ TaskFragment(ActivityTaskManagerService atmService, IBinder fragmentToken, Loading Loading @@ -2163,13 +2128,6 @@ class TaskFragment extends WindowContainer<WindowContainer> { return getTask() != null ? getTask().mTaskId : INVALID_TASK_ID; } /** * Ensures all visible activities at or below the input activity have the right configuration. */ void ensureVisibleActivitiesConfiguration(ActivityRecord start, boolean preserveWindow) { mEnsureVisibleActivitiesConfigHelper.process(start, preserveWindow); } void computeConfigResourceOverrides(@NonNull Configuration inOutConfig, @NonNull Configuration parentConfig) { computeConfigResourceOverrides(inOutConfig, parentConfig, null /* overrideDisplayInfo */, Loading