diff options
author | Siarhei Vishniakou <svv@google.com> | 2021-06-16 04:09:35 +0000 |
---|---|---|
committer | Siarhei Vishniakou <svv@google.com> | 2021-06-16 04:19:32 +0000 |
commit | 509724f0931a84db5ab4f47c40e98e3b36cdba7b (patch) | |
tree | 9942e2a5214f016d0a51a037a3f652822e527e56 /include | |
parent | 9473f5563afd11e0d202b4bff7f4beb53008dd1e (diff) |
Avoid aidl usage on mac builds
We do not have libbinder on mac, so that rules out using aidl files for
mac builds. To unbreak sdk_mac build targets, just use constant values
directly on mac instead of trying to use IInputConstants.
Bug: 152399927
Test: forrest
Change-Id: I21697ec02dbb215edd89d2f6849c9147f490af99
Diffstat (limited to 'include')
-rw-r--r-- | include/input/Input.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/include/input/Input.h b/include/input/Input.h index 7d936baf7a..e8678d27c3 100644 --- a/include/input/Input.h +++ b/include/input/Input.h @@ -24,7 +24,9 @@ */ #include <android/input.h> +#ifdef __linux__ #include <android/os/IInputConstants.h> +#endif #include <math.h> #include <stdint.h> #include <ui/Transform.h> @@ -220,12 +222,16 @@ enum { POLICY_FLAG_GESTURE = 0x00000008, POLICY_FLAG_RAW_MASK = 0x0000ffff, - +#ifdef __linux__ POLICY_FLAG_INPUTFILTER_TRUSTED = android::os::IInputConstants::POLICY_FLAG_INPUTFILTER_TRUSTED, POLICY_FLAG_INJECTED_FROM_ACCESSIBILITY = android::os::IInputConstants::POLICY_FLAG_INJECTED_FROM_ACCESSIBILITY, +#else + POLICY_FLAG_INPUTFILTER_TRUSTED = 0x10000, + POLICY_FLAG_INJECTED_FROM_ACCESSIBILITY = 0x20000, +#endif /* These flags are set by the input dispatcher. */ // Indicates that the input event was injected. |