Loading core/java/android/hardware/input/InputManager.java +0 −2 Original line number Diff line number Diff line Loading @@ -35,7 +35,6 @@ import android.annotation.SystemService; import android.annotation.TestApi; import android.annotation.UserHandleAware; import android.annotation.UserIdInt; import android.app.ActivityThread; import android.compat.annotation.ChangeId; import android.compat.annotation.UnsupportedAppUsage; import android.content.Context; Loading Loading @@ -67,7 +66,6 @@ import java.lang.annotation.RetentionPolicy; import java.util.ArrayList; import java.util.List; import java.util.Map; import java.util.Objects; import java.util.concurrent.Executor; /** Loading core/java/android/hardware/input/InputManagerGlobal.java +1 −1 Original line number Diff line number Diff line Loading @@ -1728,7 +1728,7 @@ public final class InputManagerGlobal { } /** * @see InputManager#requestPointerCapture(IBinder, boolean) * @see android.view.View#requestPointerCapture() */ public void requestPointerCapture(IBinder windowToken, boolean enable) { try { Loading core/java/android/view/ViewRootImpl.java +7 −3 Original line number Diff line number Diff line Loading @@ -190,6 +190,7 @@ import android.graphics.drawable.GradientDrawable; import android.hardware.SyncFence; import android.hardware.display.DisplayManager.DisplayListener; import android.hardware.display.DisplayManagerGlobal; import android.hardware.input.InputManager; import android.hardware.input.InputManagerGlobal; import android.hardware.input.InputSettings; import android.media.AudioManager; Loading Loading @@ -6431,9 +6432,12 @@ public final class ViewRootImpl implements ViewParent, Log.e(mTag, "No input channel to request Pointer Capture."); return; } InputManagerGlobal .getInstance() .requestPointerCapture(inputToken, enabled); final InputManager inputManager = mContext.getSystemService(InputManager.class); if (inputManager == null) { Log.e(mTag, "Missing InputManager; cannot request pointer capture."); return; } inputManager.requestPointerCapture(inputToken, enabled); } private void handlePointerCaptureChanged(boolean hasCapture) { Loading Loading
core/java/android/hardware/input/InputManager.java +0 −2 Original line number Diff line number Diff line Loading @@ -35,7 +35,6 @@ import android.annotation.SystemService; import android.annotation.TestApi; import android.annotation.UserHandleAware; import android.annotation.UserIdInt; import android.app.ActivityThread; import android.compat.annotation.ChangeId; import android.compat.annotation.UnsupportedAppUsage; import android.content.Context; Loading Loading @@ -67,7 +66,6 @@ import java.lang.annotation.RetentionPolicy; import java.util.ArrayList; import java.util.List; import java.util.Map; import java.util.Objects; import java.util.concurrent.Executor; /** Loading
core/java/android/hardware/input/InputManagerGlobal.java +1 −1 Original line number Diff line number Diff line Loading @@ -1728,7 +1728,7 @@ public final class InputManagerGlobal { } /** * @see InputManager#requestPointerCapture(IBinder, boolean) * @see android.view.View#requestPointerCapture() */ public void requestPointerCapture(IBinder windowToken, boolean enable) { try { Loading
core/java/android/view/ViewRootImpl.java +7 −3 Original line number Diff line number Diff line Loading @@ -190,6 +190,7 @@ import android.graphics.drawable.GradientDrawable; import android.hardware.SyncFence; import android.hardware.display.DisplayManager.DisplayListener; import android.hardware.display.DisplayManagerGlobal; import android.hardware.input.InputManager; import android.hardware.input.InputManagerGlobal; import android.hardware.input.InputSettings; import android.media.AudioManager; Loading Loading @@ -6431,9 +6432,12 @@ public final class ViewRootImpl implements ViewParent, Log.e(mTag, "No input channel to request Pointer Capture."); return; } InputManagerGlobal .getInstance() .requestPointerCapture(inputToken, enabled); final InputManager inputManager = mContext.getSystemService(InputManager.class); if (inputManager == null) { Log.e(mTag, "Missing InputManager; cannot request pointer capture."); return; } inputManager.requestPointerCapture(inputToken, enabled); } private void handlePointerCaptureChanged(boolean hasCapture) { Loading