Loading services/core/java/com/android/server/wm/ActivityRecord.java +2 −2 Original line number Diff line number Diff line Loading @@ -5985,9 +5985,9 @@ final class ActivityRecord extends WindowToken implements WindowManagerService.A if (mSurfaceControl != null) { if (show && !mLastSurfaceShowing) { getPendingTransaction().show(mSurfaceControl); getSyncTransaction().show(mSurfaceControl); } else if (!show && mLastSurfaceShowing) { getPendingTransaction().hide(mSurfaceControl); getSyncTransaction().hide(mSurfaceControl); } } if (mThumbnail != null) { Loading services/core/java/com/android/server/wm/ActivityStack.java +1 −1 Original line number Diff line number Diff line Loading @@ -3213,7 +3213,7 @@ class ActivityStack extends Task { } private void updateSurfaceBounds() { updateSurfaceSize(getPendingTransaction()); updateSurfaceSize(getSyncTransaction()); updateSurfacePosition(); scheduleAnimation(); } Loading services/core/java/com/android/server/wm/Dimmer.java +1 −1 Original line number Diff line number Diff line Loading @@ -53,7 +53,7 @@ class Dimmer { @Override public SurfaceControl.Transaction getPendingTransaction() { return mHost.getPendingTransaction(); return mHost.getSyncTransaction(); } @Override Loading services/core/java/com/android/server/wm/DisplayArea.java +1 −1 Original line number Diff line number Diff line Loading @@ -290,7 +290,7 @@ public class DisplayArea<T extends WindowContainer> extends WindowContainer<T> { mDimmer.resetDimStates(); } if (mDimmer.updateDims(getPendingTransaction(), mTmpDimBoundsRect)) { if (mDimmer.updateDims(getSyncTransaction(), mTmpDimBoundsRect)) { scheduleAnimation(); } } Loading services/core/java/com/android/server/wm/Task.java +5 −19 Original line number Diff line number Diff line Loading @@ -1923,7 +1923,7 @@ class Task extends WindowContainer<WindowContainer> { super.onConfigurationChanged(newParentConfig); // Only need to update surface size here since the super method will handle updating // surface position. updateSurfaceSize(getPendingTransaction()); updateSurfaceSize(getSyncTransaction()); if (wasInPictureInPicture != inPinnedWindowingMode()) { mStackSupervisor.scheduleUpdatePictureInPictureModeIfNeeded(this, getStack()); Loading Loading @@ -3475,20 +3475,6 @@ class Task extends WindowContainer<WindowContainer> { return mDimmer; } void dim(float alpha) { mDimmer.dimAbove(getPendingTransaction(), alpha); scheduleAnimation(); } void stopDimming() { mDimmer.stopDim(getPendingTransaction()); scheduleAnimation(); } boolean isTaskForUser(int userId) { return mUserId == userId; } @Override void prepareSurfaces() { mDimmer.resetDimStates(); Loading @@ -3504,9 +3490,9 @@ class Task extends WindowContainer<WindowContainer> { mTmpDimBoundsRect.offsetTo(0, 0); } updateShadowsRadius(isFocused(), getPendingTransaction()); updateShadowsRadius(isFocused(), getSyncTransaction()); if (mDimmer.updateDims(getPendingTransaction(), mTmpDimBoundsRect)) { if (mDimmer.updateDims(getSyncTransaction(), mTmpDimBoundsRect)) { scheduleAnimation(); } } Loading Loading @@ -4317,7 +4303,7 @@ class Task extends WindowContainer<WindowContainer> { // skip this for tasks created by the organizer because they can synchronously update // the leash before new children are added to the task. if (!mCreatedByOrganizer && mTaskOrganizer != null && !prevHasBeenVisible) { getPendingTransaction().hide(getSurfaceControl()); getSyncTransaction().hide(getSurfaceControl()); commitPendingTransaction(); } Loading Loading @@ -4500,7 +4486,7 @@ class Task extends WindowContainer<WindowContainer> { * @param hasFocus */ void onWindowFocusChanged(boolean hasFocus) { updateShadowsRadius(hasFocus, getPendingTransaction()); updateShadowsRadius(hasFocus, getSyncTransaction()); } void onPictureInPictureParamsChanged() { Loading Loading
services/core/java/com/android/server/wm/ActivityRecord.java +2 −2 Original line number Diff line number Diff line Loading @@ -5985,9 +5985,9 @@ final class ActivityRecord extends WindowToken implements WindowManagerService.A if (mSurfaceControl != null) { if (show && !mLastSurfaceShowing) { getPendingTransaction().show(mSurfaceControl); getSyncTransaction().show(mSurfaceControl); } else if (!show && mLastSurfaceShowing) { getPendingTransaction().hide(mSurfaceControl); getSyncTransaction().hide(mSurfaceControl); } } if (mThumbnail != null) { Loading
services/core/java/com/android/server/wm/ActivityStack.java +1 −1 Original line number Diff line number Diff line Loading @@ -3213,7 +3213,7 @@ class ActivityStack extends Task { } private void updateSurfaceBounds() { updateSurfaceSize(getPendingTransaction()); updateSurfaceSize(getSyncTransaction()); updateSurfacePosition(); scheduleAnimation(); } Loading
services/core/java/com/android/server/wm/Dimmer.java +1 −1 Original line number Diff line number Diff line Loading @@ -53,7 +53,7 @@ class Dimmer { @Override public SurfaceControl.Transaction getPendingTransaction() { return mHost.getPendingTransaction(); return mHost.getSyncTransaction(); } @Override Loading
services/core/java/com/android/server/wm/DisplayArea.java +1 −1 Original line number Diff line number Diff line Loading @@ -290,7 +290,7 @@ public class DisplayArea<T extends WindowContainer> extends WindowContainer<T> { mDimmer.resetDimStates(); } if (mDimmer.updateDims(getPendingTransaction(), mTmpDimBoundsRect)) { if (mDimmer.updateDims(getSyncTransaction(), mTmpDimBoundsRect)) { scheduleAnimation(); } } Loading
services/core/java/com/android/server/wm/Task.java +5 −19 Original line number Diff line number Diff line Loading @@ -1923,7 +1923,7 @@ class Task extends WindowContainer<WindowContainer> { super.onConfigurationChanged(newParentConfig); // Only need to update surface size here since the super method will handle updating // surface position. updateSurfaceSize(getPendingTransaction()); updateSurfaceSize(getSyncTransaction()); if (wasInPictureInPicture != inPinnedWindowingMode()) { mStackSupervisor.scheduleUpdatePictureInPictureModeIfNeeded(this, getStack()); Loading Loading @@ -3475,20 +3475,6 @@ class Task extends WindowContainer<WindowContainer> { return mDimmer; } void dim(float alpha) { mDimmer.dimAbove(getPendingTransaction(), alpha); scheduleAnimation(); } void stopDimming() { mDimmer.stopDim(getPendingTransaction()); scheduleAnimation(); } boolean isTaskForUser(int userId) { return mUserId == userId; } @Override void prepareSurfaces() { mDimmer.resetDimStates(); Loading @@ -3504,9 +3490,9 @@ class Task extends WindowContainer<WindowContainer> { mTmpDimBoundsRect.offsetTo(0, 0); } updateShadowsRadius(isFocused(), getPendingTransaction()); updateShadowsRadius(isFocused(), getSyncTransaction()); if (mDimmer.updateDims(getPendingTransaction(), mTmpDimBoundsRect)) { if (mDimmer.updateDims(getSyncTransaction(), mTmpDimBoundsRect)) { scheduleAnimation(); } } Loading Loading @@ -4317,7 +4303,7 @@ class Task extends WindowContainer<WindowContainer> { // skip this for tasks created by the organizer because they can synchronously update // the leash before new children are added to the task. if (!mCreatedByOrganizer && mTaskOrganizer != null && !prevHasBeenVisible) { getPendingTransaction().hide(getSurfaceControl()); getSyncTransaction().hide(getSurfaceControl()); commitPendingTransaction(); } Loading Loading @@ -4500,7 +4486,7 @@ class Task extends WindowContainer<WindowContainer> { * @param hasFocus */ void onWindowFocusChanged(boolean hasFocus) { updateShadowsRadius(hasFocus, getPendingTransaction()); updateShadowsRadius(hasFocus, getSyncTransaction()); } void onPictureInPictureParamsChanged() { Loading