OSDN Git Service

HIC: Improve AccelerationClassifier
authorAdrian Roos <roosa@google.com>
Wed, 17 Aug 2016 20:26:33 +0000 (13:26 -0700)
committerAdrian Roos <roosa@google.com>
Fri, 19 Aug 2016 20:38:02 +0000 (13:38 -0700)
commit6b312a09fcea77651680f63a876ccd4ea378393f
treeccf87e01610ff42e993b51870ea5c850a6125313
parenta0a718f5db03447dd5e7e660ee57506b907e880d
HIC: Improve AccelerationClassifier

Apply a bunch of improvements to the acceleration classifier:

- When dragging from the edges, we get some delay without
  movement between the DOWN and MOVE, which confounds the
  classifier. Now discounts data segments where the delay
  does not match the expected 16ms.
- The distance ratio did not compensate for differences
  in sampling. If it does it's equivalent to the speed
  ratio however. The distance ratio was removed and the
  impact of the speed ratio score doubled.
- If we cannot calculate the ratio, no longer penalize
  the traces for this.

Bug: 27405075
Change-Id: I067eb4d478593afbb20354e5c85a05353e2b4184
packages/SystemUI/src/com/android/systemui/classifier/AccelerationClassifier.java
packages/SystemUI/src/com/android/systemui/classifier/DistanceRatioEvaluator.java [deleted file]
packages/SystemUI/src/com/android/systemui/classifier/SpeedRatioEvaluator.java