Home
last modified time | relevance | path

Searched refs:userState (Results 1 – 3 of 3) sorted by relevance

/external/connectedappssdk/testing/sdk/src/main/java/com/google/android/enterprise/connectedapps/testing/
DAbstractFakeUserConnector.java49 private UserState userState = UserState.DOES_NOT_EXIST; field in AbstractFakeUserConnector.SpecificUserConnector
59 if (userState == UserState.DOES_NOT_EXIST) { in createUser()
60 userState = UserState.TURNED_OFF; in createUser()
66 userState = UserState.DOES_NOT_EXIST; in removeUser()
70 if (userState == UserState.TURNED_ON) { in turnOnUser()
74 if (userState == UserState.DOES_NOT_EXIST) { in turnOnUser()
78 userState = UserState.TURNED_ON; in turnOnUser()
83 if (userState == UserState.TURNED_OFF) { in turnOffUser()
87 if (userState == UserState.DOES_NOT_EXIST) { in turnOffUser()
96 userState = UserState.TURNED_OFF; in turnOffUser()
[all …]
/external/robolectric/shadows/framework/src/main/java/org/robolectric/shadows/
DShadowUserManager.java116 private final Map<Integer, UserState> userState = new HashMap<>(); field in ShadowUserManager.UserManagerState
142 userState.put(id, UserState.STATE_SHUTDOWN); in UserManagerState()
356 UserState state = userManagerState.userState.get(handle.getIdentifier()); in isUserUnlocked()
849 UserState state = userManagerState.userState.get(handle.getIdentifier()); in isUserRunning()
864 UserState state = userManagerState.userState.get(handle.getIdentifier()); in isUserRunningOrStopping()
880 UserState state = userManagerState.userState.get(handle.getIdentifier()); in isUserUnlockingOrUnlocked()
909 userManagerState.userState.put(handle.getIdentifier(), state); in setUserState()
944 userManagerState.userState.put(userProfileHandle, UserState.STATE_SHUTDOWN); in requestQuietModeEnabled()
950 userManagerState.userState.put(userProfileHandle, UserState.STATE_RUNNING_UNLOCKED); in requestQuietModeEnabled()
1066 userManagerState.userState.remove(userHandle); in removeUser()
[all …]
/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/
DShadowUserManager.java77 private Map<Integer, UserState> userState = new HashMap<>(); field in ShadowUserManager
511 UserState state = userState.get(handle.getIdentifier()); in isUserRunning()
528 UserState state = userState.get(handle.getIdentifier()); in isUserRunningOrStopping()
564 userState.put(handle.getIdentifier(), state); in setUserState()