Home
last modified time | relevance | path

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

/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/
DShadowUserManager.java111 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 …]
DShadowCrossProfileApps.java109 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 …]
DShadowSettings.java47 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
DShadowContextImpl.java187 UserHandle userHandle, in sendOrderedBroadcastAsUser() argument
209 UserHandle userHandle, in sendOrderedBroadcastAsUser() argument
294 Intent intent, final ServiceConnection serviceConnection, int i, UserHandle userHandle) { in bindServiceAsUser() 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()
DShadowContentResolver.java784 Uri uri, boolean notifyForDescendents, ContentObserver observer, int userHandle) {
DShadowPackageManager.java643 Intent intent, int flags, UserHandle userHandle) { in queryBroadcastReceiversAsUser() argument
DShadowApplicationPackageManager.java1028 protected Drawable getUserBadgeForDensity(UserHandle userHandle, int i) { in getUserBadgeForDensity() argument
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/
DShadowUserManagerTest.java90 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 …]
DShadowStorageManagerTest.java72 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.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