/packages/apps/Settings/src/com/android/settings/language/ |
D | OnDeviceRecognitionPreferenceController.java | 83 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/ |
D | ExperimentalCarUserManagerUnitTest.java | 139 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()
|
D | UserHandleHelperUnitTest.java | 144 private void mockGetUserHandles(boolean excludeDying, List<UserHandle> userHandles) { in mockGetUserHandles() argument 145 doReturn(userHandles).when( in mockGetUserHandles()
|
/packages/apps/Settings/src/com/android/settings/privacy/ |
D | EnableContentCaptureWithServiceSettingsPreferenceController.java | 98 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/ |
D | PaymentBackend.java | 98 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/src/com/android/settings/location/ |
D | LocationInjectedServiceBasePreferenceController.java | 115 ArraySet<UserHandle> userHandles = new ArraySet<>(); in getLocationServices() local 116 userHandles.add(UserHandle.of(UserHandle.myUserId())); in getLocationServices() 123 userHandles.add(UserHandle.of(managedProfileId)); in getLocationServices() 132 userHandles.add(privateProfile); in getLocationServices() 137 userHandles); in getLocationServices()
|
/packages/apps/Settings/tests/legacy_unit/src/com/android/settings/ |
D | UtilsTest.java | 59 UserHandle[] userHandles = new UserHandle[] { in testGetManagedProfile() local 64 .thenReturn(new ArrayList<UserHandle>(Arrays.asList(userHandles))); in testGetManagedProfile() 71 UserHandle[] userHandles = new UserHandle[] { in testGetManagedProfile_notPresent() local 75 .thenReturn(new ArrayList<UserHandle>(Arrays.asList(userHandles))); in testGetManagedProfile_notPresent()
|
/packages/apps/Settings/src/com/android/settings/dashboard/profileselector/ |
D | ProfileSelectDialog.java | 180 final List<UserHandle> userHandles = tile.userHandle; in updateUserHandlesIfNeeded() local 185 for (int i = userHandles.size() - 1; i >= 0; i--) { in updateUserHandlesIfNeeded() 186 UserInfo userInfo = userManager.getUserInfo(userHandles.get(i).getIdentifier()); in updateUserHandlesIfNeeded() 189 || Utils.shouldHideUser(userHandles.get(i), userManager)) { in updateUserHandlesIfNeeded() 191 Log.d(TAG, "Delete the user: " + userHandles.get(i).getIdentifier()); in updateUserHandlesIfNeeded() 193 userHandles.remove(i); in updateUserHandlesIfNeeded()
|
/packages/modules/AppSearch/service/java/com/android/server/appsearch/stats/ |
D | StatsCollector.java | 111 List<UserHandle> userHandles = userInstanceManager.getAllUserHandles(); in pullAppSearchStorageInfo() local 112 for (int i = 0; i < userHandles.size(); i++) { in pullAppSearchStorageInfo() 113 UserHandle userHandle = userHandles.get(i); in pullAppSearchStorageInfo()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/ |
D | RestrictAppPreferenceControllerTest.java | 117 final List<UserHandle> userHandles = new ArrayList<>(); in setUp() local 118 userHandles.add(new UserHandle(0)); in setUp() 119 doReturn(userHandles).when(mUserManager).getUserProfiles(); in setUp()
|
/packages/apps/Settings/src/com/android/settings/fuelgauge/batterytip/ |
D | BatteryTipUtils.java | 53 final List<UserHandle> userHandles = userManager.getUserProfiles(); in getRestrictedAppsList() local 67 && userHandles.contains( in getRestrictedAppsList()
|
/packages/modules/Permission/service/java/com/android/safetycenter/ |
D | UserProfileGroup.java | 94 List<UserHandle> userHandles = UserUtils.getUserHandles(context); in getAllUserProfileGroups() local 95 for (int i = 0; i < userHandles.size(); i++) { in getAllUserProfileGroups() 96 UserHandle userHandle = userHandles.get(i); in getAllUserProfileGroups()
|
/packages/modules/HealthFitness/service/java/com/android/server/healthconnect/permission/ |
D | HealthPermissionIntentAppsTracker.java | 132 List<UserHandle> userHandles = in initPerUserMapping() local 135 for (UserHandle userHandle : userHandles) { in initPerUserMapping()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/dashboard/profileselector/ |
D | UserAdapterTest.java | 176 ArrayList<UserHandle> userHandles = in createUserRecycleViewAdapter_canBindViewHolderCorrectly() local 181 UserAdapter.createUserRecycleViewAdapter(mContext, userHandles, mOnClickListener); in createUserRecycleViewAdapter_canBindViewHolderCorrectly()
|
/packages/apps/Nfc/src/com/android/nfc/ |
D | NfcDispatcher.java | 395 List<UserHandle> userHandles = getCurrentActiveUserHandles(); in tryStartActivity() local 396 userHandles.remove(UserHandle.of(ActivityManager.getCurrentUser())); in tryStartActivity() 397 for (UserHandle uh : userHandles) { in tryStartActivity() 451 List<UserHandle> userHandles = getCurrentActiveUserHandles(); in tryStartActivity() local 452 userHandles.remove(UserHandle.of(ActivityManager.getCurrentUser())); in tryStartActivity() 453 for (UserHandle uh : userHandles) { in tryStartActivity()
|
/packages/apps/Nfc/tests/unit/src/com/android/nfc/cardemulation/ |
D | RegisteredNfcFServicesCacheTest.java | 164 ArrayList<UserHandle> userHandles = new ArrayList<UserHandle>(); in setUp() local 165 userHandles.add(USER_HANDLE); in setUp() 166 userHandles.add(USER_HANDLE_QUIET_MODE); in setUp() 167 when(mUserManager.getEnabledProfiles()).thenReturn(userHandles); in setUp()
|
/packages/apps/Nfc/src/com/android/nfc/cardemulation/ |
D | PreferredServices.java | 207 List<UserHandle> userHandles = um.getEnabledProfiles(); in loadDefaultsFromSettings() local 213 for (UserHandle uh : userHandles) { in loadDefaultsFromSettings()
|
/packages/services/Telecomm/src/com/android/server/telecom/ |
D | CallAudioManager.java | 511 Set<UserHandle> userHandles = new HashSet<>(); in silenceRingers() local 524 userHandles.add(userFromCall); in silenceRingers() 534 return userHandles; in silenceRingers()
|
D | TelecomServiceImpl.java | 1068 Set<UserHandle> userHandles = mCallsManager.getCallAudioManager(). 1071 mCallsManager.getInCallController().silenceRinger(userHandles); 2357 Set<UserHandle> userHandles = new HashSet<>(); 2372 userHandles.add(call.getAssociatedUser()); 2374 for (UserHandle userHandle : userHandles) {
|
D | InCallController.java | 1901 void silenceRinger(Set<UserHandle> userHandles) { in silenceRinger() argument 1904 userHandles.forEach(userHandle -> { in silenceRinger()
|
/packages/modules/IntentResolver/tests/unit/src/com/android/intentresolver/platform/ |
D | FakeUserManagerTest.kt | 126 assertThat(state.userHandles).containsExactly(personal.userHandle, work) in <lambda>()
|
/packages/modules/IntentResolver/tests/shared/src/com/android/intentresolver/platform/ |
D | FakeUserManager.kt | 135 val userHandles: List<UserHandle> in <lambda>() constant in com.android.intentresolver.platform.FakeUserManager.State
|
/packages/services/Car/tests/CarLibUnitTest/src/android/car/user/ |
D | CarUserManagerUnitTest.java | 846 List<UserHandle> userHandles = Arrays.stream(userIds) in setExistingUsers() local 849 when(mUserManager.getUserHandles(/* excludeDying= */ true)).thenReturn(userHandles); in setExistingUsers()
|
/packages/providers/MediaProvider/src/com/android/providers/media/ |
D | MediaProvider.java | 640 List<UserHandle> userHandles = mUserCache.getUsersCached(); 641 for (UserHandle user : userHandles) {
|