Loading services/tests/InputMethodSystemServerTests/src/com/android/server/inputmethod/InputMethodManagerServiceWindowGainedFocusTest.java +3 −1 Original line number Diff line number Diff line Loading @@ -198,7 +198,9 @@ public class InputMethodManagerServiceWindowGainedFocusTest @Test public void startInputOrWindowGainedFocus_userNotRunning() throws RemoteException { when(mMockUserManagerInternal.isUserRunning(anyInt())).thenReturn(false); // Run blockingly on ServiceThread to avoid that interfering with our stubbing. mServiceThread.getThreadHandler().runWithScissors( () -> when(mMockUserManagerInternal.isUserRunning(anyInt())).thenReturn(false), 0); assertThat( startInputOrWindowGainedFocus( Loading Loading
services/tests/InputMethodSystemServerTests/src/com/android/server/inputmethod/InputMethodManagerServiceWindowGainedFocusTest.java +3 −1 Original line number Diff line number Diff line Loading @@ -198,7 +198,9 @@ public class InputMethodManagerServiceWindowGainedFocusTest @Test public void startInputOrWindowGainedFocus_userNotRunning() throws RemoteException { when(mMockUserManagerInternal.isUserRunning(anyInt())).thenReturn(false); // Run blockingly on ServiceThread to avoid that interfering with our stubbing. mServiceThread.getThreadHandler().runWithScissors( () -> when(mMockUserManagerInternal.isUserRunning(anyInt())).thenReturn(false), 0); assertThat( startInputOrWindowGainedFocus( Loading