Home
last modified time | relevance | path

Searched refs:setUserState (Results 1 – 5 of 5) sorted by relevance

/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/
DShadowUserManagerTest.java264 shadowOf(userManager).setUserState(userHandle, UserState.STATE_RUNNING_UNLOCKED); in isUserRunning()
267 shadowOf(userManager).setUserState(userHandle, UserState.STATE_RUNNING_LOCKED); in isUserRunning()
270 shadowOf(userManager).setUserState(userHandle, UserState.STATE_RUNNING_UNLOCKING); in isUserRunning()
273 shadowOf(userManager).setUserState(userHandle, UserState.STATE_STOPPING); in isUserRunning()
276 shadowOf(userManager).setUserState(userHandle, UserState.STATE_BOOTING); in isUserRunning()
279 shadowOf(userManager).setUserState(userHandle, UserState.STATE_SHUTDOWN); in isUserRunning()
290 shadowOf(userManager).setUserState(userHandle, UserState.STATE_RUNNING_UNLOCKED); in isUserRunningOrStopping()
293 shadowOf(userManager).setUserState(userHandle, UserState.STATE_RUNNING_LOCKED); in isUserRunningOrStopping()
296 shadowOf(userManager).setUserState(userHandle, UserState.STATE_RUNNING_UNLOCKING); in isUserRunningOrStopping()
299 shadowOf(userManager).setUserState(userHandle, UserState.STATE_STOPPING); in isUserRunningOrStopping()
[all …]
/external/robolectric/robolectric/src/test/java/org/robolectric/shadows/
DShadowUserManagerTest.java484 shadowOf(userManager).setUserState(userHandle, UserState.STATE_RUNNING_UNLOCKED); in isUserRunning()
487 shadowOf(userManager).setUserState(userHandle, UserState.STATE_RUNNING_LOCKED); in isUserRunning()
490 shadowOf(userManager).setUserState(userHandle, UserState.STATE_RUNNING_UNLOCKING); in isUserRunning()
493 shadowOf(userManager).setUserState(userHandle, UserState.STATE_STOPPING); in isUserRunning()
496 shadowOf(userManager).setUserState(userHandle, UserState.STATE_BOOTING); in isUserRunning()
499 shadowOf(userManager).setUserState(userHandle, UserState.STATE_SHUTDOWN); in isUserRunning()
510 shadowOf(userManager).setUserState(userHandle, UserState.STATE_RUNNING_UNLOCKED); in isUserRunningOrStopping()
513 shadowOf(userManager).setUserState(userHandle, UserState.STATE_RUNNING_LOCKED); in isUserRunningOrStopping()
516 shadowOf(userManager).setUserState(userHandle, UserState.STATE_RUNNING_UNLOCKING); in isUserRunningOrStopping()
519 shadowOf(userManager).setUserState(userHandle, UserState.STATE_STOPPING); in isUserRunningOrStopping()
[all …]
/external/connectedappssdk/tests/robotests/src/test/java/com/google/android/enterprise/connectedapps/
DRobolectricTestUtilities.java135 shadowOf(userManager).setUserState(personalProfileUserHandle, UserState.STATE_RUNNING_UNLOCKED); in createPersonalUser()
150 shadowOf(userManager).setUserState(handle, UserState.STATE_RUNNING_UNLOCKED); in createCustomUser()
155 shadowOf(userManager).setUserState(workProfileUserHandle, UserState.STATE_RUNNING_LOCKED); in turnOnWorkProfileWithoutUnlocking()
164 shadowOf(userManager).setUserState(workProfileUserHandle, UserState.STATE_RUNNING_UNLOCKED); in turnOnWorkProfile()
176 shadowOf(userManager).setUserState(workProfileUserHandle, UserState.STATE_SHUTDOWN); in turnOffWorkProfile()
253 shadowOf(userManager).setUserState(personalProfileUserHandle, UserState.STATE_RUNNING_UNLOCKED); in setRunningOnWorkProfile()
/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/
DShadowUserManager.java563 public void setUserState(UserHandle handle, UserState state) { in setUserState() method in ShadowUserManager
/external/robolectric/shadows/framework/src/main/java/org/robolectric/shadows/
DShadowUserManager.java908 public void setUserState(UserHandle handle, UserState state) { in setUserState() method in ShadowUserManager