Loading libs/WindowManager/Shell/src/com/android/wm/shell/windowdecor/DragResizeInputListener.java +4 −11 Original line number Diff line number Diff line Loading @@ -90,7 +90,6 @@ class DragResizeInputListener implements AutoCloseable { final IBinder mClientToken; private final SurfaceControl mDecorationSurface; private InputChannel mInputChannel; private TaskResizeInputEventReceiver mInputEventReceiver; private final Context mContext; Loading Loading @@ -170,13 +169,12 @@ class DragResizeInputListener implements AutoCloseable { return; } mInputSinkSurface = result.mInputSinkSurface; mInputChannel = result.mInputChannel; mSinkInputChannel = result.mSinkInputChannel; Trace.beginSection("DragResizeInputListener#ctor-initReceiver"); mInputEventReceiver = mEventReceiverFactory.create( mContext, mTaskInfo, mInputChannel, result.mInputChannel, mDragPositioningCallback, mHandler, mChoreographer, Loading Loading @@ -341,7 +339,7 @@ class DragResizeInputListener implements AutoCloseable { try { mWindowSession.updateInputChannel( mInputChannel.getToken(), mInputEventReceiver.getToken(), null /* hostInputToken */, mDisplayId, mDecorationSurface, Loading Loading @@ -413,9 +411,6 @@ class DragResizeInputListener implements AutoCloseable { if (mInputEventReceiver != null) { mInputEventReceiver.dispose(); } if (mInputChannel != null) { mInputChannel.dispose(); } if (mSinkInputChannel != null) { mSinkInputChannel.dispose(); } Loading Loading @@ -501,7 +496,6 @@ class DragResizeInputListener implements AutoCloseable { @NonNull private final Context mContext; @NonNull private final RunningTaskInfo mTaskInfo; private final InputManager mInputManager; @NonNull private final InputChannel mInputChannel; @NonNull private final DragPositioningCallback mCallback; @NonNull private final Choreographer mChoreographer; @NonNull private final Runnable mConsumeBatchEventRunnable; Loading Loading @@ -539,7 +533,6 @@ class DragResizeInputListener implements AutoCloseable { mContext = context; mTaskInfo = taskInfo; mInputManager = context.getSystemService(InputManager.class); mInputChannel = inputChannel; mCallback = callback; mChoreographer = choreographer; Loading Loading @@ -677,7 +670,7 @@ class DragResizeInputListener implements AutoCloseable { if (!mShouldHandleEvents) { break; } mInputManager.pilferPointers(mInputChannel.getToken()); mInputManager.pilferPointers(getToken()); final int dragPointerIndex = e.findPointerIndex(mDragPointerId); if (dragPointerIndex < 0) { ProtoLog.d(WM_SHELL_DESKTOP_MODE, Loading Loading @@ -791,7 +784,7 @@ class DragResizeInputListener implements AutoCloseable { ProtoLog.d(WM_SHELL_DESKTOP_MODE, "%s: update pointer icon from %d to %d", TAG, mLastCursorType, cursorType); mInputManager.setPointerIcon(PointerIcon.getSystemIcon(mContext, cursorType), displayId, deviceId, pointerId, mInputChannel.getToken()); displayId, deviceId, pointerId, getToken()); mLastCursorType = cursorType; } } Loading Loading
libs/WindowManager/Shell/src/com/android/wm/shell/windowdecor/DragResizeInputListener.java +4 −11 Original line number Diff line number Diff line Loading @@ -90,7 +90,6 @@ class DragResizeInputListener implements AutoCloseable { final IBinder mClientToken; private final SurfaceControl mDecorationSurface; private InputChannel mInputChannel; private TaskResizeInputEventReceiver mInputEventReceiver; private final Context mContext; Loading Loading @@ -170,13 +169,12 @@ class DragResizeInputListener implements AutoCloseable { return; } mInputSinkSurface = result.mInputSinkSurface; mInputChannel = result.mInputChannel; mSinkInputChannel = result.mSinkInputChannel; Trace.beginSection("DragResizeInputListener#ctor-initReceiver"); mInputEventReceiver = mEventReceiverFactory.create( mContext, mTaskInfo, mInputChannel, result.mInputChannel, mDragPositioningCallback, mHandler, mChoreographer, Loading Loading @@ -341,7 +339,7 @@ class DragResizeInputListener implements AutoCloseable { try { mWindowSession.updateInputChannel( mInputChannel.getToken(), mInputEventReceiver.getToken(), null /* hostInputToken */, mDisplayId, mDecorationSurface, Loading Loading @@ -413,9 +411,6 @@ class DragResizeInputListener implements AutoCloseable { if (mInputEventReceiver != null) { mInputEventReceiver.dispose(); } if (mInputChannel != null) { mInputChannel.dispose(); } if (mSinkInputChannel != null) { mSinkInputChannel.dispose(); } Loading Loading @@ -501,7 +496,6 @@ class DragResizeInputListener implements AutoCloseable { @NonNull private final Context mContext; @NonNull private final RunningTaskInfo mTaskInfo; private final InputManager mInputManager; @NonNull private final InputChannel mInputChannel; @NonNull private final DragPositioningCallback mCallback; @NonNull private final Choreographer mChoreographer; @NonNull private final Runnable mConsumeBatchEventRunnable; Loading Loading @@ -539,7 +533,6 @@ class DragResizeInputListener implements AutoCloseable { mContext = context; mTaskInfo = taskInfo; mInputManager = context.getSystemService(InputManager.class); mInputChannel = inputChannel; mCallback = callback; mChoreographer = choreographer; Loading Loading @@ -677,7 +670,7 @@ class DragResizeInputListener implements AutoCloseable { if (!mShouldHandleEvents) { break; } mInputManager.pilferPointers(mInputChannel.getToken()); mInputManager.pilferPointers(getToken()); final int dragPointerIndex = e.findPointerIndex(mDragPointerId); if (dragPointerIndex < 0) { ProtoLog.d(WM_SHELL_DESKTOP_MODE, Loading Loading @@ -791,7 +784,7 @@ class DragResizeInputListener implements AutoCloseable { ProtoLog.d(WM_SHELL_DESKTOP_MODE, "%s: update pointer icon from %d to %d", TAG, mLastCursorType, cursorType); mInputManager.setPointerIcon(PointerIcon.getSystemIcon(mContext, cursorType), displayId, deviceId, pointerId, mInputChannel.getToken()); displayId, deviceId, pointerId, getToken()); mLastCursorType = cursorType; } } Loading