Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0a175eb5 authored by Lucas Dupin's avatar Lucas Dupin Committed by android-build-merger
Browse files

Merge "Revert angle classifier relaxation" into pi-dev am: 11196058

am: 221a4541

Change-Id: I91c8ff6aafd2480058dc396c3e626799c742b939
parents b316c6c3 221a4541
Loading
Loading
Loading
Loading
+3 −4
Original line number Diff line number Diff line
@@ -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;
    }
}