diff options
| author | 2021-02-02 01:02:37 +0000 | |
|---|---|---|
| committer | 2021-02-02 01:02:37 +0000 | |
| commit | 31741788ab904a38408d0512e6dcfe6ad81f7e60 (patch) | |
| tree | 39a0682ae5f0475890e3afe8d53464adc53c8732 | |
| parent | 418598ff856914c0449d6d6b4da4f66869d0af02 (diff) | |
| parent | 4aea1b05f425c8afaa7f43d2191d1e33ea657d2f (diff) | |
Merge "Add SOURCE_SENSOR to InputDevice API." into sc-dev
| -rw-r--r-- | core/api/current.txt | 1 | ||||
| -rw-r--r-- | core/java/android/view/InputDevice.java | 7 |
2 files changed, 8 insertions, 0 deletions
diff --git a/core/api/current.txt b/core/api/current.txt index 6eb3ff88bec8..88c961afb8e0 100644 --- a/core/api/current.txt +++ b/core/api/current.txt @@ -46417,6 +46417,7 @@ package android.view { field public static final int SOURCE_MOUSE = 8194; // 0x2002 field public static final int SOURCE_MOUSE_RELATIVE = 131076; // 0x20004 field public static final int SOURCE_ROTARY_ENCODER = 4194304; // 0x400000 + field public static final int SOURCE_SENSOR = 67108864; // 0x4000000 field public static final int SOURCE_STYLUS = 16386; // 0x4002 field public static final int SOURCE_TOUCHPAD = 1048584; // 0x100008 field public static final int SOURCE_TOUCHSCREEN = 4098; // 0x1002 diff --git a/core/java/android/view/InputDevice.java b/core/java/android/view/InputDevice.java index f4b90e1f7b44..242188991e27 100644 --- a/core/java/android/view/InputDevice.java +++ b/core/java/android/view/InputDevice.java @@ -323,6 +323,13 @@ public final class InputDevice implements Parcelable { public static final int SOURCE_HDMI = 0x02000000 | SOURCE_CLASS_BUTTON; /** + * The input source is a sensor associated with the input device. + * + * @see #SOURCE_CLASS_NONE + */ + public static final int SOURCE_SENSOR = 0x04000000 | SOURCE_CLASS_NONE; + + /** * A special input source constant that is used when filtering input devices * to match devices that provide any type of input source. */ |