Add ActiveUnlock Settings

Test: manual
Bug: 230512326
Change-Id: Idbf2662a822f66947d0fc39a174b72987c100079
This commit is contained in:
Beverly
2022-04-28 14:26:36 +00:00
parent a3193ed1db
commit 1dbc30a437
3 changed files with 26 additions and 0 deletions

View File

@@ -9695,6 +9695,26 @@ public final class Settings {
@Readable
public static final String BIOMETRIC_APP_ENABLED = "biometric_app_enabled";
/**
* Whether or not active unlock triggers on wake.
* @hide
*/
public static final String ACTIVE_UNLOCK_ON_WAKE = "active_unlock_on_wake";
/**
* Whether or not active unlock triggers on unlock intent.
* @hide
*/
public static final String ACTIVE_UNLOCK_ON_UNLOCK_INTENT =
"active_unlock_on_unlock_intent";
/**
* Whether or not active unlock triggers on biometric failure.
* @hide
*/
public static final String ACTIVE_UNLOCK_ON_BIOMETRIC_FAIL =
"active_unlock_on_biometric_fail";
/**
* Whether the assist gesture should be enabled.
*

View File

@@ -117,6 +117,9 @@ public class SecureSettings {
Settings.Secure.FACE_UNLOCK_DISMISSES_KEYGUARD,
Settings.Secure.FACE_UNLOCK_APP_ENABLED,
Settings.Secure.FACE_UNLOCK_ALWAYS_REQUIRE_CONFIRMATION,
Settings.Secure.ACTIVE_UNLOCK_ON_WAKE,
Settings.Secure.ACTIVE_UNLOCK_ON_UNLOCK_INTENT,
Settings.Secure.ACTIVE_UNLOCK_ON_BIOMETRIC_FAIL,
Settings.Secure.VR_DISPLAY_MODE,
Settings.Secure.NOTIFICATION_BADGING,
Settings.Secure.NOTIFICATION_DISMISS_RTL,

View File

@@ -173,6 +173,9 @@ public class SecureSettingsValidators {
VALIDATORS.put(Secure.SHOW_MEDIA_WHEN_BYPASSING, BOOLEAN_VALIDATOR);
VALIDATORS.put(Secure.FACE_UNLOCK_APP_ENABLED, BOOLEAN_VALIDATOR);
VALIDATORS.put(Secure.FACE_UNLOCK_ALWAYS_REQUIRE_CONFIRMATION, BOOLEAN_VALIDATOR);
VALIDATORS.put(Secure.ACTIVE_UNLOCK_ON_WAKE, BOOLEAN_VALIDATOR);
VALIDATORS.put(Secure.ACTIVE_UNLOCK_ON_UNLOCK_INTENT, BOOLEAN_VALIDATOR);
VALIDATORS.put(Secure.ACTIVE_UNLOCK_ON_BIOMETRIC_FAIL, BOOLEAN_VALIDATOR);
VALIDATORS.put(Secure.ASSIST_GESTURE_ENABLED, BOOLEAN_VALIDATOR);
VALIDATORS.put(Secure.ASSIST_GESTURE_SILENCE_ALERTS_ENABLED, BOOLEAN_VALIDATOR);
VALIDATORS.put(Secure.ASSIST_GESTURE_WAKE_ENABLED, BOOLEAN_VALIDATOR);