summaryrefslogtreecommitdiff
path: root/services/inputflinger/InputManager.cpp
diff options
context:
space:
mode:
author Prabir Pradhan <prabirmsp@google.com> 2023-09-08 17:18:32 +0000
committer Prabir Pradhan <prabirmsp@google.com> 2023-09-08 17:18:32 +0000
commit678405cd76532fae6078cbb58b730aa38f18f631 (patch)
tree1fa3e3e0e0e01dcda3bd7eac1aed1fa10c4e170b /services/inputflinger/InputManager.cpp
parent32295332529e2d68c895875ba6f0a49fb02e1cd5 (diff)
Migrate pointer choreographer to use a new aconfig flag
Bug: 293587049 Test: Build Change-Id: I8ebd2f84137c66952f4648302972fc1458ce1c96
Diffstat (limited to 'services/inputflinger/InputManager.cpp')
-rw-r--r--services/inputflinger/InputManager.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/services/inputflinger/InputManager.cpp b/services/inputflinger/InputManager.cpp
index 0567a32550..92c65e19b6 100644
--- a/services/inputflinger/InputManager.cpp
+++ b/services/inputflinger/InputManager.cpp
@@ -27,10 +27,13 @@
#include <android/binder_interface_utils.h>
#include <android/sysprop/InputProperties.sysprop.h>
#include <binder/IPCThreadState.h>
+#include <com_android_input_flags.h>
#include <inputflinger_bootstrap.rs.h>
#include <log/log.h>
#include <private/android_filesystem_config.h>
+namespace input_flags = com::android::input::flags;
+
namespace android {
namespace {
@@ -38,8 +41,7 @@ namespace {
const bool ENABLE_INPUT_DEVICE_USAGE_METRICS =
sysprop::InputProperties::enable_input_device_usage_metrics().value_or(true);
-const bool ENABLE_POINTER_CHOREOGRAPHER =
- sysprop::InputProperties::enable_pointer_choreographer().value_or(false);
+const bool ENABLE_POINTER_CHOREOGRAPHER = input_flags::enable_pointer_choreographer();
int32_t exceptionCodeFromStatusT(status_t status) {
switch (status) {