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

Commit c98f60b1 authored by Wenhui Yang's avatar Wenhui Yang
Browse files

Change FRR thresholds for U-QPR1

Change the FRR threshold, calculation cycle and notification limit per product team's requirement (see b/297127449).

Bug: 297127449
Bug: 258872351
Test: atest AuthenticationStatsCollectorTest
Change-Id: Ib1519076cbe601683350c55f5fe6bf4a5f3f186b
parent 83cfc036
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -5342,7 +5342,7 @@
         fingerprint and face. If a dual-modality device only enrolled a single biometric and
         experiences high FRR (above threshold), system notification will be sent to encourage user
         to enroll the other eligible biometric. -->
    <fraction name="config_biometricNotificationFrrThreshold">30%</fraction>
    <fraction name="config_biometricNotificationFrrThreshold">25%</fraction>

    <!-- The component name for the default profile supervisor, which can be set as a profile owner
    even after user setup is complete. The defined component should be used for supervision purposes
+2 −2
Original line number Diff line number Diff line
@@ -45,12 +45,12 @@ public class AuthenticationStatsCollector {
    private static final String TAG = "AuthenticationStatsCollector";

    // The minimum number of attempts that will calculate the FRR and trigger the notification.
    private static final int MINIMUM_ATTEMPTS = 500;
    private static final int MINIMUM_ATTEMPTS = 150;
    // Upload the data every 50 attempts (average number of daily authentications).
    private static final int AUTHENTICATION_UPLOAD_INTERVAL = 50;
    // The maximum number of eligible biometric enrollment notification can be sent.
    @VisibleForTesting
    static final int MAXIMUM_ENROLLMENT_NOTIFICATIONS = 2;
    static final int MAXIMUM_ENROLLMENT_NOTIFICATIONS = 1;

    @NonNull private final Context mContext;