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

Commit f69e449c authored by Diya Bera's avatar Diya Bera
Browse files

[3/N] Identity Check Promo/Notification

Add settings.secure to track if Identity Check notification button has
been clicked

Bug: 419075086
Flag: android.hardware.biometrics.identity_check_all_surfaces
Test: N/A
Change-Id: Ie2849aff05d52f143766826e6d001fa9ddbdee02
parent c7c833f1
Loading
Loading
Loading
Loading
+9 −1
Original line number Diff line number Diff line
@@ -13772,12 +13772,20 @@ public final class Settings {
        /**
         * Tracks if the user has seen the promo card for Identity Check.
         * The promo card should only appear once per device via Safety Center.
         * The promo card should only appear once per user via Safety Center.
         *
         * @hide
         */
        public static final String IDENTITY_CHECK_PROMO_CARD_SHOWN =
                "identity_check_promo_card_shown";
        /**
         * Tracks if the user has interacted with the Identity Check promo notification.
         * The notification should only appear once per user via Safety Center.
         * @hide
         */
        public static final String IDENTITY_CHECK_NOTIFICATION_VIEW_DETAILS_CLICKED =
                "identity_check_notification_view_details_clicked";
    }
    /**
+1 −0
Original line number Diff line number Diff line
@@ -323,5 +323,6 @@ public class SecureSettings {
        Settings.Secure.HDR_BRIGHTNESS_BOOST_LEVEL,
        Settings.Secure.IDENTITY_CHECK_ENABLED_V1,
        Settings.Secure.IDENTITY_CHECK_PROMO_CARD_SHOWN,
        Settings.Secure.IDENTITY_CHECK_NOTIFICATION_VIEW_DETAILS_CLICKED,
    };
}
+2 −0
Original line number Diff line number Diff line
@@ -519,5 +519,7 @@ public class SecureSettingsValidators {
        VALIDATORS.put(Secure.IDENTITY_CHECK_ENABLED_V1, new InclusiveIntegerRangeValidator(0, 1));
        VALIDATORS.put(Secure.IDENTITY_CHECK_PROMO_CARD_SHOWN,
                new InclusiveIntegerRangeValidator(0, 1));
        VALIDATORS.put(Secure.IDENTITY_CHECK_NOTIFICATION_VIEW_DETAILS_CLICKED,
                new InclusiveIntegerRangeValidator(0, 1));
    }
}