Home
last modified time | relevance | path

Searched refs:profileIds (Results 1 – 9 of 9) sorted by relevance

/packages/apps/Settings/tests/robotests/src/com/android/settings/location/
DRecentLocationRequestPreferenceControllerTest.java89 final Set<Integer> profileIds = new HashSet<>(); in updateState_workProfile_shouldShowOnlyWorkProfileApps() local
90 profileIds.add(4); in updateState_workProfile_shouldShowOnlyWorkProfileApps()
91 profileIds.add(5); in updateState_workProfile_shouldShowOnlyWorkProfileApps()
92 mUserManager.setManagedProfiles(profileIds); in updateState_workProfile_shouldShowOnlyWorkProfileApps()
105 final Set<Integer> profileIds = new HashSet<>(); in updateState_Personal_shouldShowOnlyPersonalApps() local
107 profileIds.add(i); in updateState_Personal_shouldShowOnlyPersonalApps()
109 mUserManager.setManagedProfiles(profileIds); in updateState_Personal_shouldShowOnlyPersonalApps()
/packages/apps/Settings/tests/robotests/src/com/android/settings/dashboard/profileselector/
DProfileSelectFragmentTest.java97 final Set<Integer> profileIds = new HashSet<>(); in getTabId_setWorkId_getCorrectTab() local
98 profileIds.add(10); in getTabId_setWorkId_getCorrectTab()
99 mUserManager.setManagedProfiles(profileIds); in getTabId_setWorkId_getCorrectTab()
114 final Set<Integer> profileIds = new HashSet<>(); in getTabId_setPersonalIdByIntent_getCorrectTab() local
115 profileIds.add(10); in getTabId_setPersonalIdByIntent_getCorrectTab()
116 mUserManager.setManagedProfiles(profileIds); in getTabId_setPersonalIdByIntent_getCorrectTab()
/packages/apps/Settings/tests/robotests/src/com/android/settings/testutils/shadow/
DShadowUserManager.java142 public void setProfileIdsWithDisabled(int[] profileIds) { in setProfileIdsWithDisabled() argument
143 profileIdsForUser = profileIds; in setProfileIdsWithDisabled()
156 public void setManagedProfiles(Set<Integer> profileIds) { in setManagedProfiles() argument
158 mManagedProfiles.addAll(profileIds); in setManagedProfiles()
/packages/apps/Launcher3/src/com/android/launcher3/provider/
DRestoreDbTask.java159 String[] profileIds = new String[numProfiles]; in sanitizeDB() local
160 profileIds[0] = Long.toString(oldProfileId); in sanitizeDB()
162 profileIds[i] = Long.toString(profileMapping.keyAt(i)); in sanitizeDB()
164 final String[] args = new String[profileIds.length]; in sanitizeDB()
167 int itemsDeleted = db.delete(Favorites.TABLE_NAME, where, profileIds); in sanitizeDB()
/packages/apps/Settings/src/com/android/settings/vpn2/
DVpnSettings.java516 final Set<Integer> profileIds; in getVpnApps() local
518 profileIds = new ArraySet<>(); in getVpnApps()
520 profileIds.add(profile.getIdentifier()); in getVpnApps()
523 profileIds = Collections.singleton(UserHandle.myUserId()); in getVpnApps()
533 if (!profileIds.contains(userId)) { in getVpnApps()
/packages/apps/Settings/src/com/android/settings/notification/
DRedactNotificationPreferenceController.java76 final int[] profileIds = mUm.getProfileIdsWithDisabled(UserHandle.myUserId()); in RedactNotificationPreferenceController() local
78 for (int profileId : profileIds) { in RedactNotificationPreferenceController()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/connectivity/
DWifiConfigHelper.java304 final int[] profileIds = um.getProfileIdsWithDisabled(parentUserId); in getManagedProfileId() local
305 for (int profileId : profileIds) { in getManagedProfileId()
/packages/services/Car/service/src/com/android/car/am/
DFixedActivityService.java589 int[] profileIds = mUm.getEnabledProfileIds(currentUser); in isUserAllowedToLaunchActivity() local
592 if (profileIds == null) { in isUserAllowedToLaunchActivity()
595 for (int id : profileIds) { in isUserAllowedToLaunchActivity()
/packages/apps/Settings/src/com/android/settings/
DUtils.java462 final int[] profileIds = um.getProfileIdsWithDisabled(parentUserId); in getManagedProfileId() local
463 for (int profileId : profileIds) { in getManagedProfileId()
719 final int[] profileIds = um.getProfileIdsWithDisabled(UserHandle.myUserId()); in enforceSameOwner() local
720 if (ArrayUtils.contains(profileIds, userId)) { in enforceSameOwner()