summaryrefslogtreecommitdiff
path: root/core/java/android/view/InputEventReceiver.java
diff options
context:
space:
mode:
authorAntonio Kantek <kanant@google.com>2021-11-05 14:07:10 -0700
committerAntonio Kantek <kanant@google.com>2021-11-12 02:25:58 +0000
commitd30cab4e6d4d59e00f91ae4d6ad7b010f65139fc (patch)
tree6cc5c9d8ba6f8acc54fbf3c2bc443df72d35b4fc /core/java/android/view/InputEventReceiver.java
parent2b62a4db6e0254a8c75124131bc3e621059144e3 (diff)
TouchMode (6.1/n) Fully detaching touch mode from focus event
Note: ScreenshotTests properly exercises both IWindow#onFocusEvent and JNI InputEventReceiver. Bug: 193718270 Test: atest FrameworksCoreTests:ViewRootImplTest Test: atest com.android.server.wm.ScreenshotTests Test: atest FrameworksCoreTests Test: atest CtsInputMethodTestCases Test: atest CtsInputTestCases Test: atest CtsSecurityTestCases Test: atest CtsWindowManagerDeviceTestCases Change-Id: I63d973978a048498e59c8df34f624b623e8e9289
Diffstat (limited to 'core/java/android/view/InputEventReceiver.java')
-rw-r--r--core/java/android/view/InputEventReceiver.java6
1 files changed, 2 insertions, 4 deletions
diff --git a/core/java/android/view/InputEventReceiver.java b/core/java/android/view/InputEventReceiver.java
index 2165f55fbd60..c9abec989cd1 100644
--- a/core/java/android/view/InputEventReceiver.java
+++ b/core/java/android/view/InputEventReceiver.java
@@ -139,11 +139,9 @@ public abstract class InputEventReceiver {
* @param hasFocus if true, the window associated with this input channel has just received
* focus
* if false, the window associated with this input channel has just lost focus
- * @param inTouchMode if true, the device is in touch mode
- * if false, the device is not in touch mode
*/
// Called from native code.
- public void onFocusEvent(boolean hasFocus, boolean inTouchMode) {
+ public void onFocusEvent(boolean hasFocus) {
}
/**
@@ -175,7 +173,7 @@ public abstract class InputEventReceiver {
* exited touch mode.
*
* @param inTouchMode {@code true} if the display showing the window associated with the
- * input channel entered touch mode.
+ * input channel entered touch mode or {@code false} if left touch mode
*/
public void onTouchModeChanged(boolean inTouchMode) {
}