Home
last modified time | relevance | path

Searched refs:userHandles (Results 1 – 20 of 20) sorted by relevance

/packages/apps/Settings/src/com/android/settings/language/
DOnDeviceRecognitionPreferenceController.java83 final List<UserHandle> userHandles = new ArrayList<>(); in show() local
85 userHandles.add(userInfo.getUserHandle()); in show()
89 if (userHandles.size() == 1) { in show()
90 mContext.startActivityAsUser(preference.getIntent(), userHandles.get(0)); in show()
95 createAndShowProfileSelectDialog(preference.getIntent(), userHandles); in show() local
99 Intent intent, List<UserHandle> userHandles) { in createProfileDialogClickCallback() argument
101 mContext.startActivityAsUser(intent, userHandles.get(position)); in createProfileDialogClickCallback()
108 private void createAndShowProfileSelectDialog(Intent intent, List<UserHandle> userHandles) { in createAndShowProfileSelectDialog() argument
110 mContext, userHandles, createProfileDialogClickCallback(intent, userHandles)); in createAndShowProfileSelectDialog()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/user/
DExperimentalCarUserManagerUnitTest.java139 List<UserHandle> userHandles = new ArrayList<UserHandle>(); in testGetAllDrivers() local
140 userHandles.add(UserHandle.of(10)); in testGetAllDrivers()
141 userHandles.add(UserHandle.of(20)); in testGetAllDrivers()
142 userHandles.add(UserHandle.of(30)); in testGetAllDrivers()
143 when(mService.getAllDrivers()).thenReturn(userHandles); in testGetAllDrivers()
150 List<UserHandle> userHandles = new ArrayList<UserHandle>(); in testGetAllPassengers() local
151 userHandles.add(UserHandle.of(100)); in testGetAllPassengers()
152 userHandles.add(UserHandle.of(101)); in testGetAllPassengers()
153 userHandles.add(UserHandle.of(102)); in testGetAllPassengers()
155 when(mService.getPassengers(10)).thenReturn(userHandles); in testGetAllPassengers()
DUserHandleHelperUnitTest.java144 private void mockGetUserHandles(boolean excludeDying, List<UserHandle> userHandles) { in mockGetUserHandles() argument
145 doReturn(userHandles).when( in mockGetUserHandles()
DCarUserManagerUnitTest.java851 List<UserHandle> userHandles = Arrays.stream(userIds) in setExistingUsers() local
854 when(mUserManager.getUserHandles(/* excludeDying= */ true)).thenReturn(userHandles); in setExistingUsers()
/packages/apps/Settings/src/com/android/settings/privacy/
DEnableContentCaptureWithServiceSettingsPreferenceController.java98 final ArrayList<UserHandle> userHandles = new ArrayList<>(userInfos.size()); in show() local
100 userHandles.add(info.getUserHandle()); in show()
103 if (userHandles.size() == 1) { in show()
104 mContext.startActivityAsUser(intent, userHandles.get(0)); in show()
107 ProfileSelectDialog.createDialog(mContext, userHandles, (int position) -> { in show()
109 mContext.startActivityAsUser(intent, userHandles.get(position)); in show()
/packages/apps/Settings/src/com/android/settings/nfc/
DPaymentBackend.java98 List<UserHandle> userHandles = um.getEnabledProfiles(); in refresh() local
102 for (UserHandle uh : userHandles) { in refresh()
184 List<UserHandle> userHandles = um.getEnabledProfiles(); in setForegroundMode() local
185 for (UserHandle uh : userHandles) { in setForegroundMode()
195 List<UserHandle> userHandles = um.getEnabledProfiles(); in getDefaultPaymentApp() local
196 for (UserHandle uh : userHandles) { in getDefaultPaymentApp()
229 List<UserHandle> userHandles = um.getEnabledProfiles(); in setDefaultPaymentApp() local
231 for (UserHandle uh : userHandles) { in setDefaultPaymentApp()
/packages/apps/Settings/tests/legacy_unit/src/com/android/settings/
DUtilsTest.java58 UserHandle[] userHandles = new UserHandle[] { in testGetManagedProfile() local
63 .thenReturn(new ArrayList<UserHandle>(Arrays.asList(userHandles))); in testGetManagedProfile()
70 UserHandle[] userHandles = new UserHandle[] { in testGetManagedProfile_notPresent() local
74 .thenReturn(new ArrayList<UserHandle>(Arrays.asList(userHandles))); in testGetManagedProfile_notPresent()
/packages/apps/Settings/src/com/android/settings/dashboard/profileselector/
DProfileSelectDialog.java179 final List<UserHandle> userHandles = tile.userHandle; in updateUserHandlesIfNeeded() local
184 for (int i = userHandles.size() - 1; i >= 0; i--) { in updateUserHandlesIfNeeded()
185 UserInfo userInfo = userManager.getUserInfo(userHandles.get(i).getIdentifier()); in updateUserHandlesIfNeeded()
188 Log.d(TAG, "Delete the user: " + userHandles.get(i).getIdentifier()); in updateUserHandlesIfNeeded()
190 userHandles.remove(i); in updateUserHandlesIfNeeded()
/packages/modules/AppSearch/service/java/com/android/server/appsearch/stats/
DStatsCollector.java110 List<UserHandle> userHandles = userInstanceManager.getAllUserHandles(); in pullAppSearchStorageInfo() local
111 for (int i = 0; i < userHandles.size(); i++) { in pullAppSearchStorageInfo()
112 UserHandle userHandle = userHandles.get(i); in pullAppSearchStorageInfo()
/packages/modules/Permission/service/java/com/android/safetycenter/
DUserProfileGroup.java69 List<UserHandle> userHandles = UserUtils.getUserHandles(context); in getAllUserProfileGroups() local
70 for (int i = 0; i < userHandles.size(); i++) { in getAllUserProfileGroups()
71 UserHandle userHandle = userHandles.get(i); in getAllUserProfileGroups()
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/
DRestrictAppPreferenceControllerTest.java115 final List<UserHandle> userHandles = new ArrayList<>(); in setUp() local
116 userHandles.add(new UserHandle(0)); in setUp()
117 doReturn(userHandles).when(mUserManager).getUserProfiles(); in setUp()
/packages/apps/Settings/tests/robotests/src/com/android/settings/dashboard/profileselector/
DUserAdapterTest.java107 ArrayList<UserHandle> userHandles = in createUserRecycleViewAdapter_canBindViewHolderCorrectly() local
112 UserAdapter.createUserRecycleViewAdapter(mContext, userHandles, mOnClickListener); in createUserRecycleViewAdapter_canBindViewHolderCorrectly()
/packages/modules/HealthFitness/service/java/com/android/server/healthconnect/permission/
DHealthPermissionIntentAppsTracker.java132 List<UserHandle> userHandles = in initPerUserMapping() local
135 for (UserHandle userHandle : userHandles) { in initPerUserMapping()
/packages/apps/Settings/src/com/android/settings/fuelgauge/batterytip/
DBatteryTipUtils.java57 final List<UserHandle> userHandles = userManager.getUserProfiles(); in getRestrictedAppsList() local
71 && userHandles.contains( in getRestrictedAppsList()
/packages/apps/Nfc/src/com/android/nfc/cardemulation/
DPreferredServices.java150 List<UserHandle> userHandles = um.getEnabledProfiles(); in loadDefaultsFromSettings() local
156 for (UserHandle uh : userHandles) { in loadDefaultsFromSettings()
/packages/services/Telecomm/src/com/android/server/telecom/
DCallAudioManager.java496 Set<UserHandle> userHandles = new HashSet<>(); in silenceRingers() local
509 userHandles.add(userFromCall); in silenceRingers()
519 return userHandles; in silenceRingers()
DTelecomServiceImpl.java966 Set<UserHandle> userHandles = mCallsManager.getCallAudioManager().
969 mCallsManager.getInCallController().silenceRinger(userHandles);
2169 Set<UserHandle> userHandles = new HashSet<>();
2176 userHandles.add(call.getAssociatedUser());
2178 for (UserHandle userHandle : userHandles) {
DInCallController.java1715 void silenceRinger(Set<UserHandle> userHandles) { in silenceRinger() argument
1716 userHandles.forEach(userHandle -> { in silenceRinger()
/packages/apps/Nfc/src/com/android/nfc/
DNfcDispatcher.java354 List<UserHandle> userHandles = getCurrentActiveUserHandles(); in tryStartActivity() local
355 for (UserHandle uh : userHandles) { in tryStartActivity()
406 List<UserHandle> userHandles = getCurrentActiveUserHandles(); in tryStartActivity() local
407 for (UserHandle uh : userHandles) { in tryStartActivity()
/packages/providers/MediaProvider/src/com/android/providers/media/
DMediaProvider.java613 List<UserHandle> userHandles = mUserCache.getUsersCached();
614 for (UserHandle user : userHandles) {