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

Commit a003d20d authored by Android Build Merger (Role)'s avatar Android Build Merger (Role) Committed by Android (Google) Code Review
Browse files

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

parents 75139aab 0a175eb5
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;
    }
}