Loading services/core/java/com/android/server/input/InputManagerService.java +4 −3 Original line number Diff line number Diff line Loading @@ -1254,9 +1254,10 @@ public class InputManagerService extends IInputManager.Stub /** * Start drag and drop. * * @param fromChannel The input channel that is currently receiving a touch gesture that should * be turned into the drag pointer. * @param dragAndDropChannel The input channel associated with the system drag window. * @param fromChannelToken The token of the input channel that is currently receiving a touch * gesture that should be turned into the drag pointer. * @param dragAndDropChannelToken The token of the input channel associated with the system drag * window. * @return true if drag and drop was successfully started, false otherwise. */ public boolean startDragAndDrop(@NonNull IBinder fromChannelToken, Loading services/core/java/com/android/server/wm/DragDropController.java +1 −2 Original line number Diff line number Diff line Loading @@ -16,7 +16,6 @@ package com.android.server.wm; import static android.content.ClipDescription.EXTRA_HIDE_DRAG_SOURCE_TASK_ID; import static android.os.Trace.TRACE_TAG_WINDOW_MANAGER; import static android.view.View.DRAG_FLAG_GLOBAL; import static android.view.View.DRAG_FLAG_GLOBAL_SAME_APPLICATION; Loading Loading @@ -228,7 +227,7 @@ class DragDropController { final Display display = displayContent.getDisplay(); touchFocusTransferredFuture = mCallback.get().registerInputChannel( mDragState, display, mService.mInputManager, callingWin.mInputChannel); callingWin.mInputChannelToken); } else { // Skip surface logic for a drag triggered by an AccessibilityAction mDragState.broadcastDragStartedLocked(touchX, touchY); Loading services/core/java/com/android/server/wm/WindowManagerInternal.java +2 −3 Original line number Diff line number Diff line Loading @@ -41,7 +41,6 @@ import android.view.Display; import android.view.IInputFilter; import android.view.IRemoteAnimationFinishedCallback; import android.view.IWindow; import android.view.InputChannel; import android.view.MagnificationSpec; import android.view.RemoteAnimationTarget; import android.view.Surface; Loading Loading @@ -377,10 +376,10 @@ public abstract class WindowManagerInternal { public interface IDragDropCallback { default CompletableFuture<Boolean> registerInputChannel( DragState state, Display display, InputManagerService service, InputChannel source) { IBinder sourceInputChannelToken) { return state.register(display) .thenApply(unused -> service.startDragAndDrop(source.getToken(), state.getInputToken())); service.startDragAndDrop(sourceInputChannelToken, state.getInputToken())); } /** Loading services/core/java/com/android/server/wm/WindowManagerService.java +1 −1 Original line number Diff line number Diff line Loading @@ -9778,7 +9778,7 @@ public class WindowManagerService extends IWindowManager.Stub Slog.e(TAG, "Host window not found"); return; } if (hostWindow.mInputChannel == null) { if (hostWindow.mInputChannelToken == null) { Slog.e(TAG, "Host window does not have an input channel"); return; } Loading services/core/java/com/android/server/wm/WindowState.java +1 −1 Original line number Diff line number Diff line Loading @@ -638,7 +638,7 @@ class WindowState extends WindowContainer<WindowState> implements WindowManagerP /** * Only populated if flag REMOVE_INPUT_CHANNEL_FROM_WINDOWSTATE is disabled. */ InputChannel mInputChannel; private InputChannel mInputChannel; /** * The token will be assigned to {@link InputWindowHandle#token} if this window can receive Loading Loading
services/core/java/com/android/server/input/InputManagerService.java +4 −3 Original line number Diff line number Diff line Loading @@ -1254,9 +1254,10 @@ public class InputManagerService extends IInputManager.Stub /** * Start drag and drop. * * @param fromChannel The input channel that is currently receiving a touch gesture that should * be turned into the drag pointer. * @param dragAndDropChannel The input channel associated with the system drag window. * @param fromChannelToken The token of the input channel that is currently receiving a touch * gesture that should be turned into the drag pointer. * @param dragAndDropChannelToken The token of the input channel associated with the system drag * window. * @return true if drag and drop was successfully started, false otherwise. */ public boolean startDragAndDrop(@NonNull IBinder fromChannelToken, Loading
services/core/java/com/android/server/wm/DragDropController.java +1 −2 Original line number Diff line number Diff line Loading @@ -16,7 +16,6 @@ package com.android.server.wm; import static android.content.ClipDescription.EXTRA_HIDE_DRAG_SOURCE_TASK_ID; import static android.os.Trace.TRACE_TAG_WINDOW_MANAGER; import static android.view.View.DRAG_FLAG_GLOBAL; import static android.view.View.DRAG_FLAG_GLOBAL_SAME_APPLICATION; Loading Loading @@ -228,7 +227,7 @@ class DragDropController { final Display display = displayContent.getDisplay(); touchFocusTransferredFuture = mCallback.get().registerInputChannel( mDragState, display, mService.mInputManager, callingWin.mInputChannel); callingWin.mInputChannelToken); } else { // Skip surface logic for a drag triggered by an AccessibilityAction mDragState.broadcastDragStartedLocked(touchX, touchY); Loading
services/core/java/com/android/server/wm/WindowManagerInternal.java +2 −3 Original line number Diff line number Diff line Loading @@ -41,7 +41,6 @@ import android.view.Display; import android.view.IInputFilter; import android.view.IRemoteAnimationFinishedCallback; import android.view.IWindow; import android.view.InputChannel; import android.view.MagnificationSpec; import android.view.RemoteAnimationTarget; import android.view.Surface; Loading Loading @@ -377,10 +376,10 @@ public abstract class WindowManagerInternal { public interface IDragDropCallback { default CompletableFuture<Boolean> registerInputChannel( DragState state, Display display, InputManagerService service, InputChannel source) { IBinder sourceInputChannelToken) { return state.register(display) .thenApply(unused -> service.startDragAndDrop(source.getToken(), state.getInputToken())); service.startDragAndDrop(sourceInputChannelToken, state.getInputToken())); } /** Loading
services/core/java/com/android/server/wm/WindowManagerService.java +1 −1 Original line number Diff line number Diff line Loading @@ -9778,7 +9778,7 @@ public class WindowManagerService extends IWindowManager.Stub Slog.e(TAG, "Host window not found"); return; } if (hostWindow.mInputChannel == null) { if (hostWindow.mInputChannelToken == null) { Slog.e(TAG, "Host window does not have an input channel"); return; } Loading
services/core/java/com/android/server/wm/WindowState.java +1 −1 Original line number Diff line number Diff line Loading @@ -638,7 +638,7 @@ class WindowState extends WindowContainer<WindowState> implements WindowManagerP /** * Only populated if flag REMOVE_INPUT_CHANNEL_FROM_WINDOWSTATE is disabled. */ InputChannel mInputChannel; private InputChannel mInputChannel; /** * The token will be assigned to {@link InputWindowHandle#token} if this window can receive Loading