Home
last modified time | relevance | path

Searched refs:userHandle (Results 1 – 11 of 11) sorted by relevance

/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/
DShadowUserManagerTest.java85 UserHandle userHandle = Process.myUserHandle(); in hasUserRestriction() local
86 shadowOf(userManager).setUserRestriction(userHandle, UserManager.ENSURE_VERIFY_APPS, true); in hasUserRestriction()
96 UserHandle userHandle = Process.myUserHandle(); in getUserRestrictions() local
97 shadowOf(userManager).setUserRestriction(userHandle, UserManager.ENSURE_VERIFY_APPS, true); in getUserRestrictions()
158 UserHandle userHandle = newUserHandle(10); in shouldGetSerialNumberForUser() local
159 assertThat(userManager.getSerialNumberForUser(userHandle)).isEqualTo(serialNumberInvalid); in shouldGetSerialNumberForUser()
161 shadowOf(userManager).addUserProfile(userHandle); in shouldGetSerialNumberForUser()
163 assertThat(userManager.getSerialNumberForUser(userHandle)).isNotEqualTo(serialNumberInvalid); in shouldGetSerialNumberForUser()
230 UserHandle userHandle = newUserHandle(0); in isUserRunning() local
232 assertThat(userManager.isUserRunning(userHandle)).isFalse(); in isUserRunning()
[all …]
DShadowStorageManagerTest.java72 UserHandle userHandle = new UserHandle(parcel); in buildAndGetStorageVolume() local
74 new StorageVolumeBuilder("volume", file, description, userHandle, "mounted"); in buildAndGetStorageVolume()
/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/
DShadowUserManager.java98 public long addUserProfile(UserHandle userHandle) { in addUserProfile() argument
100 userProfiles.put(userHandle, serialNumber); in addUserProfile()
152 protected boolean hasUserRestriction(String restrictionKey, UserHandle userHandle) { in hasUserRestriction() argument
153 Bundle bundle = userRestrictions.get(userHandle.getIdentifier()); in hasUserRestriction()
157 public void setUserRestriction(UserHandle userHandle, String restrictionKey, boolean value) { in setUserRestriction() argument
158 Bundle bundle = getUserRestrictionsForUser(userHandle); in setUserRestriction()
165 public void clearUserRestrictions(UserHandle userHandle) { in clearUserRestrictions() argument
166 userRestrictions.remove(userHandle.getIdentifier()); in clearUserRestrictions()
170 protected Bundle getUserRestrictions(UserHandle userHandle) { in getUserRestrictions() argument
171 return new Bundle(getUserRestrictionsForUser(userHandle)); in getUserRestrictions()
[all …]
DShadowSettings.java41 int userHandle) { in putStringForUser() argument
46 protected static String getStringForUser(ContentResolver cr, String name, int userHandle) { in getStringForUser() argument
82 int userHandle) { in putStringForUser() argument
87 protected static String getStringForUser(ContentResolver cr, String name, int userHandle) { in getStringForUser() argument
217 int userHandle) { in putStringForUser() argument
222 protected static String getStringForUser(ContentResolver cr, String name, int userHandle) { in getStringForUser() argument
DShadowLocationManager.java234 protected void setLocationEnabledForUser(boolean enabled, UserHandle userHandle) { in setLocationEnabledForUser() argument
236 locationEnabledForUser.put(userHandle, enabled); in setLocationEnabledForUser()
241 protected boolean isLocationEnabledForUser(UserHandle userHandle) { in isLocationEnabledForUser() argument
242 Boolean result = locationEnabledForUser.get(userHandle); in isLocationEnabledForUser()
DShadowContextImpl.java247 Intent intent, final ServiceConnection serviceConnection, int i, UserHandle userHandle) { in bindServiceAsUser() argument
DShadowContentResolver.java784 Uri uri, boolean notifyForDescendents, ContentObserver observer, int userHandle) {
DShadowPackageManager.java635 Intent intent, int flags, UserHandle userHandle) { in queryBroadcastReceiversAsUser() argument
DShadowApplicationPackageManager.java1007 protected Drawable getUserBadgeForDensity(UserHandle userHandle, int i) { in getUserBadgeForDensity() argument
/external/python/cpython2/Mac/Modules/list/
D_Listmodule.c976 Handle userHandle; in List_SetListUserHandle() local
979 ResObj_Convert, &userHandle)) in List_SetListUserHandle()
982 userHandle); in List_SetListUserHandle()
/external/wpa_supplicant_8/src/eap_peer/
Deap_proxy_qmi_oc.c1088 qmi_client_type userHandle, unsigned int msg_id, in handle_qmi_eap_reply() argument