Use isCeStorageUnlocked() in storage wizards
isUserKeyUnlocked() is being renamed to isCeStorageUnlocked() to make it clear what it does (considering that there are many types of user keys). Temporarily, the method exists under both names. Change StorageWizardMigrateConfirm and StorageWizardMoveConfirm to use the new name. No change in behavior. Bug: 306204742 Flag: exempt, mechanical refactoring Test: presubmit Change-Id: I5ffdd8ce048b1bc9e6161bf4fb546796765e5842
This commit is contained in:
@@ -101,7 +101,7 @@ public class StorageWizardMigrateConfirm extends StorageWizardBase {
|
|||||||
final LockPatternUtils lpu = new LockPatternUtils(this);
|
final LockPatternUtils lpu = new LockPatternUtils(this);
|
||||||
if (StorageManager.isFileEncrypted()) {
|
if (StorageManager.isFileEncrypted()) {
|
||||||
for (UserInfo user : getSystemService(UserManager.class).getUsers()) {
|
for (UserInfo user : getSystemService(UserManager.class).getUsers()) {
|
||||||
if (StorageManager.isUserKeyUnlocked(user.id)) {
|
if (StorageManager.isCeStorageUnlocked(user.id)) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
if (!lpu.isSecure(user.id)) {
|
if (!lpu.isSecure(user.id)) {
|
||||||
|
|||||||
@@ -83,7 +83,7 @@ public class StorageWizardMoveConfirm extends StorageWizardBase {
|
|||||||
final LockPatternUtils lpu = new LockPatternUtils(this);
|
final LockPatternUtils lpu = new LockPatternUtils(this);
|
||||||
if (StorageManager.isFileEncrypted()) {
|
if (StorageManager.isFileEncrypted()) {
|
||||||
for (UserInfo user : getSystemService(UserManager.class).getUsers()) {
|
for (UserInfo user : getSystemService(UserManager.class).getUsers()) {
|
||||||
if (StorageManager.isUserKeyUnlocked(user.id)) {
|
if (StorageManager.isCeStorageUnlocked(user.id)) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
if (!lpu.isSecure(user.id)) {
|
if (!lpu.isSecure(user.id)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user