Face and fingerprint unlock strings for private space
Recordings: b/326399895#comment10 Bug: 326399895 Test: Manual Change-Id: I9f4449439639c93a10475333a91059f855bce07b
This commit is contained in:
@@ -50,6 +50,7 @@ public class ShadowUtils {
|
||||
private static ArraySet<String> sResultLinks = new ArraySet<>();
|
||||
private static boolean sIsBatteryPresent;
|
||||
private static boolean sIsMultipleBiometricsSupported;
|
||||
private static boolean sIsPrivateProfile;
|
||||
|
||||
@Implementation
|
||||
protected static int enforceSameOwner(Context context, int userId) {
|
||||
@@ -82,6 +83,7 @@ public class ShadowUtils {
|
||||
sResultLinks = new ArraySet<>();
|
||||
sIsBatteryPresent = true;
|
||||
sIsMultipleBiometricsSupported = false;
|
||||
sIsPrivateProfile = false;
|
||||
}
|
||||
|
||||
public static void setIsDemoUser(boolean isDemoUser) {
|
||||
@@ -188,4 +190,13 @@ public class ShadowUtils {
|
||||
public static void setIsMultipleBiometricsSupported(boolean isMultipleBiometricsSupported) {
|
||||
sIsMultipleBiometricsSupported = isMultipleBiometricsSupported;
|
||||
}
|
||||
|
||||
@Implementation
|
||||
protected static boolean isPrivateProfile(int userId, Context context) {
|
||||
return sIsPrivateProfile;
|
||||
}
|
||||
|
||||
public static void setIsPrivateProfile(boolean isPrivateProfile) {
|
||||
sIsPrivateProfile = isPrivateProfile;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user