Loading services/core/java/com/android/server/locksettings/LockSettingsService.java +6 −6 Original line number Diff line number Diff line Loading @@ -349,17 +349,17 @@ public class LockSettingsService extends ILockSettings.Stub { @Override public void onUserStarting(@NonNull TargetUser user) { mLockSettingsService.onStartUser(user.getUserIdentifier()); mLockSettingsService.onUserStarting(user.getUserIdentifier()); } @Override public void onUserUnlocking(@NonNull TargetUser user) { mLockSettingsService.onUnlockUser(user.getUserIdentifier()); mLockSettingsService.onUserUnlocking(user.getUserIdentifier()); } @Override public void onUserStopped(@NonNull TargetUser user) { mLockSettingsService.onCleanupUser(user.getUserIdentifier()); mLockSettingsService.onUserStopped(user.getUserIdentifier()); } } Loading Loading @@ -784,7 +784,7 @@ public class LockSettingsService extends ILockSettings.Stub { } @VisibleForTesting void onCleanupUser(int userId) { void onUserStopped(int userId) { hideEncryptionNotification(new UserHandle(userId)); // User is stopped with its CE key evicted. Restore strong auth requirement to the default // flags after boot since stopping and restarting a user later is equivalent to rebooting Loading @@ -796,7 +796,7 @@ public class LockSettingsService extends ILockSettings.Stub { } } private void onStartUser(final int userId) { private void onUserStarting(final int userId) { maybeShowEncryptionNotificationForUser(userId, "user started"); } Loading Loading @@ -832,7 +832,7 @@ public class LockSettingsService extends ILockSettings.Stub { } } private void onUnlockUser(final int userId) { private void onUserUnlocking(final int userId) { // Perform tasks which require locks in LSS on a handler, as we are callbacks from // ActivityManager.unlockUser() mHandler.post(new Runnable() { Loading services/tests/servicestests/src/com/android/server/locksettings/SyntheticPasswordTests.java +1 −1 Original line number Diff line number Diff line Loading @@ -781,7 +781,7 @@ public class SyntheticPasswordTests extends BaseLockSettingsServiceTests { password, PRIMARY_USER_ID, 0 /* flags */).getResponseCode()); assertTrue(mLocalService.isEscrowTokenActive(handle, PRIMARY_USER_ID)); mService.onCleanupUser(PRIMARY_USER_ID); mService.onUserStopped(PRIMARY_USER_ID); assertNull(mLocalService.getUserPasswordMetrics(PRIMARY_USER_ID)); assertTrue(mLocalService.unlockUserWithToken(handle, token, PRIMARY_USER_ID)); Loading services/tests/servicestests/src/com/android/server/locksettings/WeakEscrowTokenTests.java +1 −1 Original line number Diff line number Diff line Loading @@ -169,7 +169,7 @@ public class WeakEscrowTokenTests extends BaseLockSettingsServiceTests{ assertTrue(mService.isWeakEscrowTokenActive(handle, PRIMARY_USER_ID)); assertTrue(mService.isWeakEscrowTokenValid(handle, token, PRIMARY_USER_ID)); mService.onCleanupUser(PRIMARY_USER_ID); mService.onUserStopped(PRIMARY_USER_ID); assertNull(mLocalService.getUserPasswordMetrics(PRIMARY_USER_ID)); assertTrue(mLocalService.unlockUserWithToken(handle, token, PRIMARY_USER_ID)); Loading Loading
services/core/java/com/android/server/locksettings/LockSettingsService.java +6 −6 Original line number Diff line number Diff line Loading @@ -349,17 +349,17 @@ public class LockSettingsService extends ILockSettings.Stub { @Override public void onUserStarting(@NonNull TargetUser user) { mLockSettingsService.onStartUser(user.getUserIdentifier()); mLockSettingsService.onUserStarting(user.getUserIdentifier()); } @Override public void onUserUnlocking(@NonNull TargetUser user) { mLockSettingsService.onUnlockUser(user.getUserIdentifier()); mLockSettingsService.onUserUnlocking(user.getUserIdentifier()); } @Override public void onUserStopped(@NonNull TargetUser user) { mLockSettingsService.onCleanupUser(user.getUserIdentifier()); mLockSettingsService.onUserStopped(user.getUserIdentifier()); } } Loading Loading @@ -784,7 +784,7 @@ public class LockSettingsService extends ILockSettings.Stub { } @VisibleForTesting void onCleanupUser(int userId) { void onUserStopped(int userId) { hideEncryptionNotification(new UserHandle(userId)); // User is stopped with its CE key evicted. Restore strong auth requirement to the default // flags after boot since stopping and restarting a user later is equivalent to rebooting Loading @@ -796,7 +796,7 @@ public class LockSettingsService extends ILockSettings.Stub { } } private void onStartUser(final int userId) { private void onUserStarting(final int userId) { maybeShowEncryptionNotificationForUser(userId, "user started"); } Loading Loading @@ -832,7 +832,7 @@ public class LockSettingsService extends ILockSettings.Stub { } } private void onUnlockUser(final int userId) { private void onUserUnlocking(final int userId) { // Perform tasks which require locks in LSS on a handler, as we are callbacks from // ActivityManager.unlockUser() mHandler.post(new Runnable() { Loading
services/tests/servicestests/src/com/android/server/locksettings/SyntheticPasswordTests.java +1 −1 Original line number Diff line number Diff line Loading @@ -781,7 +781,7 @@ public class SyntheticPasswordTests extends BaseLockSettingsServiceTests { password, PRIMARY_USER_ID, 0 /* flags */).getResponseCode()); assertTrue(mLocalService.isEscrowTokenActive(handle, PRIMARY_USER_ID)); mService.onCleanupUser(PRIMARY_USER_ID); mService.onUserStopped(PRIMARY_USER_ID); assertNull(mLocalService.getUserPasswordMetrics(PRIMARY_USER_ID)); assertTrue(mLocalService.unlockUserWithToken(handle, token, PRIMARY_USER_ID)); Loading
services/tests/servicestests/src/com/android/server/locksettings/WeakEscrowTokenTests.java +1 −1 Original line number Diff line number Diff line Loading @@ -169,7 +169,7 @@ public class WeakEscrowTokenTests extends BaseLockSettingsServiceTests{ assertTrue(mService.isWeakEscrowTokenActive(handle, PRIMARY_USER_ID)); assertTrue(mService.isWeakEscrowTokenValid(handle, token, PRIMARY_USER_ID)); mService.onCleanupUser(PRIMARY_USER_ID); mService.onUserStopped(PRIMARY_USER_ID); assertNull(mLocalService.getUserPasswordMetrics(PRIMARY_USER_ID)); assertTrue(mLocalService.unlockUserWithToken(handle, token, PRIMARY_USER_ID)); Loading