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

Commit 221a4541 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

Change-Id: Ifdca897151193c834860d0ff13f5d50b13c7c22c
parents 4e2d883e 11196058
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;
    }
}