/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/ |
D | ShadowUserManager.java | 111 public long addUserProfile(UserHandle userHandle) { in addUserProfile() argument 113 userProfiles.put(userHandle, serialNumber); in addUserProfile() 128 protected List<UserInfo> getProfiles(int userHandle) { in getProfiles() argument 129 if (profiles.containsKey(userHandle)) { in getProfiles() 130 return ImmutableList.copyOf(profiles.get(userHandle)); in getProfiles() 133 if (profileToParent.containsKey(userHandle) in getProfiles() 134 && profiles.containsKey(profileToParent.get(userHandle))) { in getProfiles() 135 return ImmutableList.copyOf(profiles.get(profileToParent.get(userHandle))); in getProfiles() 139 … realObject, UserManager.class, "getProfiles", ClassParameter.from(int.class, userHandle)); in getProfiles() 144 int userHandle, int profileUserHandle, String profileName, int profileFlags) { in addProfile() argument [all …]
|
D | ShadowCrossProfileApps.java | 109 protected Drawable getProfileSwitchingIconDrawable(UserHandle userHandle) { in getProfileSwitchingIconDrawable() argument 110 verifyCanAccessUser(userHandle); in getProfileSwitchingIconDrawable() 111 return new ColorDrawable(userHandle.getIdentifier()); in getProfileSwitchingIconDrawable() 119 protected CharSequence getProfileSwitchingLabel(UserHandle userHandle) { in getProfileSwitchingLabel() argument 120 verifyCanAccessUser(userHandle); in getProfileSwitchingLabel() 121 return "Switch to " + userHandle; in getProfileSwitchingLabel() 157 public void addTargetUserProfile(UserHandle userHandle) { in addTargetUserProfile() argument 158 if (userHandle.equals(Process.myUserHandle())) { in addTargetUserProfile() 161 targetUserProfiles.add(userHandle); in addTargetUserProfile() 165 public void removeTargetUserProfile(UserHandle userHandle) { in removeTargetUserProfile() argument [all …]
|
D | ShadowSettings.java | 47 int userHandle) { in putStringForUser() argument 52 protected static String getStringForUser(ContentResolver cr, String name, int userHandle) { in getStringForUser() argument 88 int userHandle) { in putStringForUser() argument 93 protected static String getStringForUser(ContentResolver cr, String name, int userHandle) { in getStringForUser() argument 223 int userHandle) { in putStringForUser() argument 228 protected static String getStringForUser(ContentResolver cr, String name, int userHandle) { in getStringForUser() argument
|
D | ShadowContextImpl.java | 187 UserHandle userHandle, in sendOrderedBroadcastAsUser() argument 209 UserHandle userHandle, in sendOrderedBroadcastAsUser() argument 294 Intent intent, final ServiceConnection serviceConnection, int i, UserHandle userHandle) { in bindServiceAsUser() 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 | ShadowContentResolver.java | 784 Uri uri, boolean notifyForDescendents, ContentObserver observer, int userHandle) {
|
D | ShadowPackageManager.java | 643 Intent intent, int flags, UserHandle userHandle) { in queryBroadcastReceiversAsUser() argument
|
D | ShadowApplicationPackageManager.java | 1028 protected Drawable getUserBadgeForDensity(UserHandle userHandle, int i) { in getUserBadgeForDensity() argument
|
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/ |
D | ShadowUserManagerTest.java | 90 UserHandle userHandle = Process.myUserHandle(); in hasUserRestriction() local 91 shadowOf(userManager).setUserRestriction(userHandle, UserManager.ENSURE_VERIFY_APPS, true); in hasUserRestriction() 101 UserHandle userHandle = Process.myUserHandle(); in getUserRestrictions() local 102 shadowOf(userManager).setUserRestriction(userHandle, UserManager.ENSURE_VERIFY_APPS, true); in getUserRestrictions() 175 UserHandle userHandle = newUserHandle(10); in shouldGetSerialNumberForUser() local 176 assertThat(userManager.getSerialNumberForUser(userHandle)).isEqualTo(serialNumberInvalid); in shouldGetSerialNumberForUser() 178 shadowOf(userManager).addUserProfile(userHandle); in shouldGetSerialNumberForUser() 180 assertThat(userManager.getSerialNumberForUser(userHandle)).isNotEqualTo(serialNumberInvalid); in shouldGetSerialNumberForUser() 247 UserHandle userHandle = newUserHandle(0); in isUserRunning() local 249 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/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
|