Loading services/core/jni/com_android_server_input_InputManagerService.cpp +4 −1 Original line number Diff line number Diff line Loading @@ -42,6 +42,7 @@ #include <android_view_VerifiedMotionEvent.h> #include <batteryservice/include/batteryservice/BatteryServiceConstants.h> #include <binder/IServiceManager.h> #include <com_android_input_flags.h> #include <input/Input.h> #include <input/PointerController.h> #include <input/SpriteController.h> Loading Loading @@ -81,6 +82,8 @@ static constexpr std::chrono::duration MAX_VIBRATE_PATTERN_DELAY = 100s; static constexpr std::chrono::milliseconds MAX_VIBRATE_PATTERN_DELAY_MILLIS = std::chrono::duration_cast<std::chrono::milliseconds>(MAX_VIBRATE_PATTERN_DELAY); namespace input_flags = com::android::input::flags; namespace android { // The exponent used to calculate the pointer speed scaling factor. Loading Loading @@ -733,7 +736,7 @@ std::shared_ptr<PointerControllerInterface> NativeInputManager::obtainPointerCon ensureSpriteControllerLocked(); static const bool ENABLE_POINTER_CHOREOGRAPHER = sysprop::InputProperties::enable_pointer_choreographer().value_or(false); input_flags::enable_pointer_choreographer(); // Disable the functionality of the legacy PointerController if PointerChoreographer is // enabled. Loading Loading
services/core/jni/com_android_server_input_InputManagerService.cpp +4 −1 Original line number Diff line number Diff line Loading @@ -42,6 +42,7 @@ #include <android_view_VerifiedMotionEvent.h> #include <batteryservice/include/batteryservice/BatteryServiceConstants.h> #include <binder/IServiceManager.h> #include <com_android_input_flags.h> #include <input/Input.h> #include <input/PointerController.h> #include <input/SpriteController.h> Loading Loading @@ -81,6 +82,8 @@ static constexpr std::chrono::duration MAX_VIBRATE_PATTERN_DELAY = 100s; static constexpr std::chrono::milliseconds MAX_VIBRATE_PATTERN_DELAY_MILLIS = std::chrono::duration_cast<std::chrono::milliseconds>(MAX_VIBRATE_PATTERN_DELAY); namespace input_flags = com::android::input::flags; namespace android { // The exponent used to calculate the pointer speed scaling factor. Loading Loading @@ -733,7 +736,7 @@ std::shared_ptr<PointerControllerInterface> NativeInputManager::obtainPointerCon ensureSpriteControllerLocked(); static const bool ENABLE_POINTER_CHOREOGRAPHER = sysprop::InputProperties::enable_pointer_choreographer().value_or(false); input_flags::enable_pointer_choreographer(); // Disable the functionality of the legacy PointerController if PointerChoreographer is // enabled. Loading