/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/ |
D | ShadowUserManagerTest.java | 85 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 …]
|
D | ShadowStorageManagerTest.java | 72 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/ |
D | ShadowUserManager.java | 98 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 …]
|
D | ShadowSettings.java | 41 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
|
D | ShadowLocationManager.java | 234 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()
|
D | ShadowContextImpl.java | 247 Intent intent, final ServiceConnection serviceConnection, int i, UserHandle userHandle) { in bindServiceAsUser() argument
|
D | ShadowContentResolver.java | 784 Uri uri, boolean notifyForDescendents, ContentObserver observer, int userHandle) {
|
D | ShadowPackageManager.java | 635 Intent intent, int flags, UserHandle userHandle) { in queryBroadcastReceiversAsUser() argument
|
D | ShadowApplicationPackageManager.java | 1007 protected Drawable getUserBadgeForDensity(UserHandle userHandle, int i) { in getUserBadgeForDensity() argument
|
/external/python/cpython2/Mac/Modules/list/ |
D | _Listmodule.c | 976 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/ |
D | eap_proxy_qmi_oc.c | 1088 qmi_client_type userHandle, unsigned int msg_id, in handle_qmi_eap_reply() argument
|