Loading services/core/java/com/android/server/wm/DragState.java +12 −6 Original line number Diff line number Diff line Loading @@ -16,8 +16,6 @@ package com.android.server.wm; import static android.Manifest.permission.MANAGE_ACTIVITY_STACKS; import static android.content.pm.PackageManager.PERMISSION_GRANTED; import static android.os.IInputConstants.DEFAULT_DISPATCHING_TIMEOUT_MILLIS; import static android.view.WindowManager.LayoutParams.PRIVATE_FLAG_INTERCEPT_GLOBAL_DRAG_AND_DROP; Loading Loading @@ -118,6 +116,10 @@ class DragState { * without having a WM lock. */ volatile boolean mAnimationCompleted = false; /** * The display on which the drag is happening. If it goes into a different display this will * be updated. */ DisplayContent mDisplayContent; @Nullable private ValueAnimator mAnimator; Loading Loading @@ -308,7 +310,9 @@ class DragState { // Pause rotations before a drag. ProtoLog.d(WM_DEBUG_ORIENTATION, "Pausing rotation during drag"); mDisplayContent.getDisplayRotation().pause(); mService.mRoot.forAllDisplays(dc -> { dc.getDisplayRotation().pause(); }); } void tearDown() { Loading @@ -323,7 +327,9 @@ class DragState { // Resume rotations after a drag. ProtoLog.d(WM_DEBUG_ORIENTATION, "Resuming rotation after drag"); mDisplayContent.getDisplayRotation().resume(); mService.mRoot.forAllDisplays(dc -> { dc.getDisplayRotation().resume(); }); } } Loading Loading @@ -371,7 +377,7 @@ class DragState { Slog.d(TAG_WM, "broadcasting DRAG_STARTED at (" + touchX + ", " + touchY + ")"); } mDisplayContent.forAllWindows(w -> { mService.mRoot.forAllWindows(w -> { sendDragStartedLocked(w, touchX, touchY, mDataDescription, mData); }, false /* traverseTopToBottom */); } Loading Loading
services/core/java/com/android/server/wm/DragState.java +12 −6 Original line number Diff line number Diff line Loading @@ -16,8 +16,6 @@ package com.android.server.wm; import static android.Manifest.permission.MANAGE_ACTIVITY_STACKS; import static android.content.pm.PackageManager.PERMISSION_GRANTED; import static android.os.IInputConstants.DEFAULT_DISPATCHING_TIMEOUT_MILLIS; import static android.view.WindowManager.LayoutParams.PRIVATE_FLAG_INTERCEPT_GLOBAL_DRAG_AND_DROP; Loading Loading @@ -118,6 +116,10 @@ class DragState { * without having a WM lock. */ volatile boolean mAnimationCompleted = false; /** * The display on which the drag is happening. If it goes into a different display this will * be updated. */ DisplayContent mDisplayContent; @Nullable private ValueAnimator mAnimator; Loading Loading @@ -308,7 +310,9 @@ class DragState { // Pause rotations before a drag. ProtoLog.d(WM_DEBUG_ORIENTATION, "Pausing rotation during drag"); mDisplayContent.getDisplayRotation().pause(); mService.mRoot.forAllDisplays(dc -> { dc.getDisplayRotation().pause(); }); } void tearDown() { Loading @@ -323,7 +327,9 @@ class DragState { // Resume rotations after a drag. ProtoLog.d(WM_DEBUG_ORIENTATION, "Resuming rotation after drag"); mDisplayContent.getDisplayRotation().resume(); mService.mRoot.forAllDisplays(dc -> { dc.getDisplayRotation().resume(); }); } } Loading Loading @@ -371,7 +377,7 @@ class DragState { Slog.d(TAG_WM, "broadcasting DRAG_STARTED at (" + touchX + ", " + touchY + ")"); } mDisplayContent.forAllWindows(w -> { mService.mRoot.forAllWindows(w -> { sendDragStartedLocked(w, touchX, touchY, mDataDescription, mData); }, false /* traverseTopToBottom */); } Loading