diff --git a/packages/SystemUI/src/com/android/keyguard/KeyguardPinBasedInputViewController.java b/packages/SystemUI/src/com/android/keyguard/KeyguardPinBasedInputViewController.java index 8011efdc1ae7a..92e3641105472 100644 --- a/packages/SystemUI/src/com/android/keyguard/KeyguardPinBasedInputViewController.java +++ b/packages/SystemUI/src/com/android/keyguard/KeyguardPinBasedInputViewController.java @@ -131,6 +131,7 @@ public abstract class KeyguardPinBasedInputViewController { if (isFirst.getAndSet(false)) { @@ -3738,7 +3738,7 @@ class UserController implements Handler.Callback { public void onDismissCancelled() throws RemoteException { mHandler.post(runOnce); } - }, reason); + }, /* message= */ null); } boolean isUsersOnSecondaryDisplaysEnabled() { diff --git a/services/tests/servicestests/src/com/android/server/am/UserControllerTest.java b/services/tests/servicestests/src/com/android/server/am/UserControllerTest.java index b146c2750a05c..18d629ff1d7f7 100644 --- a/services/tests/servicestests/src/com/android/server/am/UserControllerTest.java +++ b/services/tests/servicestests/src/com/android/server/am/UserControllerTest.java @@ -412,7 +412,7 @@ public class UserControllerTest { mInjector.mHandler.clearAllRecordedMessages(); // Verify that continueUserSwitch worked as expected continueAndCompleteUserSwitch(userState, oldUserId, newUserId); - verify(mInjector, times(0)).dismissKeyguard(any(), anyString()); + verify(mInjector, times(0)).dismissKeyguard(any()); verify(mInjector.getWindowManager(), times(1)).stopFreezingScreen(); continueUserSwitchAssertions(oldUserId, TEST_USER_ID, false); verifySystemUserVisibilityChangesNeverNotified(); @@ -433,7 +433,7 @@ public class UserControllerTest { mInjector.mHandler.clearAllRecordedMessages(); // Verify that continueUserSwitch worked as expected continueAndCompleteUserSwitch(userState, oldUserId, newUserId); - verify(mInjector, times(1)).dismissKeyguard(any(), anyString()); + verify(mInjector, times(1)).dismissKeyguard(any()); verify(mInjector.getWindowManager(), times(1)).stopFreezingScreen(); continueUserSwitchAssertions(oldUserId, TEST_USER_ID, false); verifySystemUserVisibilityChangesNeverNotified(); @@ -1148,7 +1148,7 @@ public class UserControllerTest { } @Override - protected void dismissKeyguard(Runnable runnable, String reason) { + protected void dismissKeyguard(Runnable runnable) { runnable.run(); }