From 55d48df150b9ae7b6b450fea794e3668dca46bb1 Mon Sep 17 00:00:00 2001 From: Siarhei Vishniakou Date: Wed, 18 Apr 2018 14:28:58 -0700 Subject: Use persist property for velocitytracker strategy Currently, setting the debug.velocitytracker.strategy property is not convenient because it requires adb shell stop; adb shell start for the changes to be picked up everywhere. It also does not persist across reboots. Putting this property into persist will allow us to fishfood these changes more easily since the config can just be done once. Bug: 35412046 Test: adb shell setprop persist.input.velocitytracker.strategy impulse and observe that the strategy is being changed, after adding logging to each strategy to distinguish them. Change-Id: I9f6eb2113cfdeccfdf784c00d7da3ac3c186e499 --- libs/input/VelocityTracker.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libs/input/VelocityTracker.cpp') diff --git a/libs/input/VelocityTracker.cpp b/libs/input/VelocityTracker.cpp index c07a81245a..496158b9cd 100644 --- a/libs/input/VelocityTracker.cpp +++ b/libs/input/VelocityTracker.cpp @@ -115,7 +115,7 @@ VelocityTracker::VelocityTracker(const char* strategy) : // Allow the default strategy to be overridden using a system property for debugging. if (!strategy) { - int length = property_get("debug.velocitytracker.strategy", value, NULL); + int length = property_get("persist.input.velocitytracker.strategy", value, NULL); if (length > 0) { strategy = value; } else { -- cgit v1.2.3-59-g8ed1b