OSDN Git Service

Revert angle classifier relaxation
authorLucas Dupin <dupin@google.com>
Wed, 4 Apr 2018 17:50:41 +0000 (10:50 -0700)
committerLucas Dupin <dupin@google.com>
Wed, 4 Apr 2018 17:57:42 +0000 (10:57 -0700)
Not necessary anymore because we now have a more generic solution

Change-Id: I3f4c509953b79ac6ea4ef67489474c5fb37c7109
Fixes: 77553611
Test: Swipe up and down on keyguard
Test: Swipe up and to the left on keyguard

packages/SystemUI/src/com/android/systemui/classifier/AnglesVarianceEvaluator.java

index 5f6c1b7..9ffe783 100644 (file)
@@ -18,12 +18,11 @@ package com.android.systemui.classifier;
 
 public class AnglesVarianceEvaluator {
     public static float evaluate(float value, int type) {
-        final boolean secureUnlock = type == Classifier.BOUNCER_UNLOCK;
         float evaluation = 0.0f;
         if (value > 0.20) evaluation++;
-        if (value > 0.40 && !secureUnlock) evaluation++;
-        if (value > 0.80 && !secureUnlock) evaluation++;
-        if (value > 1.50 && !secureUnlock) evaluation++;
+        if (value > 0.40) evaluation++;
+        if (value > 0.80) evaluation++;
+        if (value > 1.50) evaluation++;
         return evaluation;
     }
 }