/packages/apps/DocumentsUI/src/com/android/documentsui/sidebar/ |
D | UserItemsCombiner.java | 119 public List<Item> createPresentableListForAllUsers(List<UserId> userIds, in createPresentableListForAllUsers() argument 129 for (int i = 0; i < userIds.size(); ++i) { in createPresentableListForAllUsers() 133 if (mState.canInteractWith(userIds.get(i)) in createPresentableListForAllUsers() 136 headerItemList.add(new HeaderItem(userIdToLabelMap.get(userIds.get(i)))); in createPresentableListForAllUsers() 145 for (int i = 0; i < userIds.size(); ++i) { in createPresentableListForAllUsers() 151 for (int i = 0; i < userIds.size(); ++i) { in createPresentableListForAllUsers() 160 result.addAll(mRootListAllUsers.get(userIds.indexOf(mCurrentUser))); in createPresentableListForAllUsers()
|
D | RootsFragment.java | 398 List<UserId> userIds, in sortLoadResult() argument 403 final RootItemListBuilder librariesBuilder = new RootItemListBuilder(selectedUser, userIds); in sortLoadResult() 405 userIds); in sortLoadResult() 447 for (int i = 0; i < userIds.size(); ++i) { in sortLoadResult() 454 rootListAllUsers, otherProviders, userIds, maybeShowBadge); in sortLoadResult() 460 createRootListsPrivateSpaceEnabled(item, userIds, rootListAllUsers); in sortLoadResult() 471 context, state, rootListAllUsers, userIds, userManagerState) : in sortLoadResult() 480 List<List<Item>> rootListAllUsers, List<UserId> userIds, in getPresentableListPrivateSpaceEnabled() argument 485 .createPresentableListForAllUsers(userIds, userManagerState.getUserIdToLabelMap()); in getPresentableListPrivateSpaceEnabled() 511 List<RootItem> otherProviders, List<UserId> userIds, boolean maybeShowBadge) { in includeHandlerApps() argument [all …]
|
D | RootItemListBuilder.java | 58 RootItemListBuilder(UserId selectedUser, List<UserId> userIds) { in RootItemListBuilder() argument 60 mUserIds = userIds; in RootItemListBuilder()
|
/packages/apps/DocumentsUI/tests/common/com/android/documentsui/ |
D | TestUserManagerState.java | 37 public List<UserId> userIds = new ArrayList<>(); field in TestUserManagerState 47 return userIds; in getUserIds() 68 userIds.remove(userId); in onProfileActionStatusChange() 71 if (!userIds.contains(userId)) { in onProfileActionStatusChange() 72 userIds.add(userId); in onProfileActionStatusChange()
|
D | TestUserIdManager.java | 25 public List<UserId> userIds = new ArrayList<>(); field in TestUserIdManager 31 return userIds; in getUserIds()
|
/packages/apps/DocumentsUI/src/com/android/documentsui/ |
D | DirectoryLoader.java | 129 final List<UserId> userIds = new ArrayList<>(); in loadInBackground() local 135 userIds.add(userId); in loadInBackground() 140 if (userIds.isEmpty()) { in loadInBackground() 141 userIds.add(mRoot.userId); in loadInBackground() 144 if (userIds.size() == 1) { in loadInBackground() 173 cursor = queryOnUsers(userIds, authority, queryArgs); in loadInBackground() 220 private Cursor queryOnUsers(List<UserId> userIds, String authority, Bundle queryArgs) in queryOnUsers() argument 222 final List<Cursor> cursors = new ArrayList<>(userIds.size()); in queryOnUsers() 223 for (UserId userId : userIds) { in queryOnUsers()
|
D | UserManagerState.java | 408 List<UserId> userIds = getUserIds(); in getUserIdToLabelMapInternalPostV() local 409 for (UserId userId : userIds) { in getUserIdToLabelMapInternalPostV() 421 List<UserId> userIds = getUserIds(); in getUserIdToLabelMapInternalPreV() local 422 for (UserId userId : userIds) { in getUserIdToLabelMapInternalPreV() 491 List<UserId> userIds = getUserIds(); in getUserIdToBadgeMapInternalPostV() local 492 for (UserId userId : userIds) { in getUserIdToBadgeMapInternalPostV() 505 List<UserId> userIds = getUserIds(); in getUserIdToBadgeMapInternalPreV() local 506 for (UserId userId : userIds) { in getUserIdToBadgeMapInternalPreV() 562 List<UserId> userIds = getUserIds(); in getCanForwardToProfileIdMapInternal() local 563 for (UserId userId : userIds) { in getCanForwardToProfileIdMapInternal() [all …]
|
D | ProfileTabs.java | 174 List<UserId> userIds = getUserIds(); in updateTabsIfNeeded() local 178 if (!userIds.equals(mUserIds)) { in updateTabsIfNeeded() 180 mUserIds.addAll(userIds); in updateTabsIfNeeded()
|
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/ |
D | ProfileTabsTest.java | 218 mTestUserManagerState.userIds = Lists.newArrayList(mSystemUser); in testUpdateView_getSelectedUser_afterUsersChanged() 220 mTestUserIdManager.userIds = Lists.newArrayList(mSystemUser); in testUpdateView_getSelectedUser_afterUsersChanged() 273 mTestUserManagerState.userIds.remove(mPrivateUser); in testUpdateView_afterSelectedUserBecomesUnavailable_shouldSwitchToCurrentUser() 326 private void initializeWithUsers(boolean isPrivateSpaceEnabled, UserId... userIds) { in initializeWithUsers() argument 329 mTestUserManagerState.userIds = Lists.newArrayList(userIds); in initializeWithUsers() 330 for (UserId userId : userIds) { in initializeWithUsers() 343 mTestUserIdManager.userIds = Lists.newArrayList(userIds); in initializeWithUsers() 344 for (UserId userId : userIds) { in initializeWithUsers()
|
/packages/apps/Settings/src/com/android/settings/applications/ |
D | AppStateLocaleBridge.java | 91 List<Integer> userIds = new ArrayList<>(); in collectLocaleBridgeInfo() local 93 userIds.add(mContext.getUserId()); in collectLocaleBridgeInfo() 96 userIds.add(workUserId); in collectLocaleBridgeInfo() 100 for (int userId : userIds) { in collectLocaleBridgeInfo()
|
/packages/modules/Virtualization/java/service/src/com/android/system/virtualmachine/ |
D | SecretkeeperJobService.java | 137 public boolean[] doUsersExist(int[] userIds) { in doUsersExist() argument 140 boolean[] results = new boolean[userIds.length]; in doUsersExist() 141 for (int i = 0; i < userIds.length; i++) { in doUsersExist() 145 if (user == userIds[i]) { in doUsersExist()
|
/packages/services/Car/libs/car-test-lib/src/android/car/test/mocks/ |
D | AndroidMockitoHelper.java | 285 @UserIdInt int... userIds) { in mockUmGetAliveUsers() argument 286 mockUmGetUserHandles(um, true, userIds); in mockUmGetAliveUsers() 287 List<UserInfo> users = UserTestingHelper.newUsers(userIds); in mockUmGetAliveUsers() 314 int... userIds) { in mockUmGetUserHandles() argument 315 mockUmGetUserHandles(um, excludeDying, UserTestingHelper.newUserHandles(userIds)); in mockUmGetUserHandles() 397 public static void mockUmGetVisibleUsers(UserManager um, @UserIdInt int...userIds) { in mockUmGetVisibleUsers() argument 398 Set<UserHandle> users = Arrays.stream(userIds).mapToObj(u -> UserHandle.of(u)) in mockUmGetVisibleUsers() 400 Log.v(TAG, "mockUmGetVisibleUsers(" + Arrays.toString(userIds) + ": returning " in mockUmGetVisibleUsers()
|
/packages/services/Car/libs/car-test-lib/src/android/car/test/util/ |
D | UserTestingHelper.java | 116 public static List<UserInfo> newUsers(@UserIdInt int... userIds) { in newUsers() argument 117 return Arrays.stream(userIds) in newUsers() 126 public static List<UserHandle> newUserHandles(@UserIdInt int... userIds) { in newUserHandles() argument 127 return Arrays.stream(userIds) in newUserHandles()
|
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/dirlist/ |
D | IconHelperTest.java | 74 mTestUserManagerState.userIds = SdkLevel.isAtLeastV() in setUp() 132 mTestUserManagerState.userIds = Lists.newArrayList(mManagedUser); in testShouldShowBadge_returnFalseOnManagedUser_withoutMultipleUsers() 142 mTestUserManagerState.userIds = Lists.newArrayList(mPrivateUser); in testShouldShowBadge_returnFalseOnPrivateUser_withoutMultipleUsers()
|
D | AppsRowManagerTest.java | 123 mTestUserManagerState.userIds = in getAppsRowManager() 130 mTestUserIdManager.userIds = in getAppsRowManager()
|
/packages/apps/Settings/src/com/android/settings/applications/specialaccess/pictureinpicture/ |
D | PictureInPictureSettings.java | 204 final ArrayList<Integer> userIds = new ArrayList<>(); in collectPipApps() local 206 userIds.add(user.id); in collectPipApps() 209 for (int id : userIds) { in collectPipApps()
|
/packages/apps/Nfc/tests/unit/src/com/android/nfc/cardemulation/ |
D | PreferredServicesTest.java | 222 List<Integer> userIds = userIdCaptor.getAllValues(); in testOnWalletRoleHolderChangedWithNullPackageName() local 223 assertThat(userIds.get(0)).isEqualTo(USER_ID); in testOnWalletRoleHolderChangedWithNullPackageName() 224 assertThat(userIds.get(1)).isEqualTo(USER_ID); in testOnWalletRoleHolderChangedWithNullPackageName() 241 List<Integer> userIds = userIdCaptor.getAllValues(); in testOnWalletRoleHolderChangedWithExistingPackageNameAndExistingServiceInfos() local 242 assertThat(userIds.get(0)).isEqualTo(USER_ID); in testOnWalletRoleHolderChangedWithExistingPackageNameAndExistingServiceInfos() 243 assertThat(userIds.get(1)).isEqualTo(USER_ID); in testOnWalletRoleHolderChangedWithExistingPackageNameAndExistingServiceInfos() 624 List<Integer> userIds = userIdCaptor.getAllValues(); in assertWalletRoleHolderUpdated() local 625 assertThat(userIds.get(0)).isEqualTo(USER_ID); in assertWalletRoleHolderUpdated()
|
/packages/apps/DocumentsUI/src/com/android/documentsui/roots/ |
D | ProvidersCache.java | 202 List<UserId> userIds = new ArrayList<>(getUserIds()); 203 for (UserId userId : userIds) { 541 List<UserId> userIds = new ArrayList<>(getUserIds()); 542 for (UserId userId : userIds) { 550 for (UserId userId : userIds) {
|
/packages/modules/Virtualization/virtualizationservice/aidl/android/system/virtualizationmaintenance/ |
D | IVirtualizationReconciliationCallback.aidl | 35 boolean[] doUsersExist(in int[] userIds); in doUsersExist() argument
|
/packages/services/Car/car-lib/src/android/car/user/ |
D | UserLifecycleEventFilter.java | 280 int[] userIds = (flg & 0x2) == 0 ? null : in.createIntArray(); in UserLifecycleEventFilter() local 283 this.mUserIds = userIds; in UserLifecycleEventFilter()
|
/packages/apps/Settings/src/com/android/settings/fuelgauge/batteryusage/ |
D | BatteryUsageContentProvider.java | 349 List<Long> userIds = new ArrayList<>(); in getQueryUserIds() local 351 userIds.add(Long.parseLong(idString.trim())); in getQueryUserIds() 353 return userIds; in getQueryUserIds()
|
/packages/apps/Settings/src/com/android/settings/fuelgauge/batteryusage/db/ |
D | AppUsageEventDao.java | 48 Cursor getAllForUsersAfter(List<Long> userIds, long timestamp); in getAllForUsersAfter() argument
|
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/media/ |
D | MultidisplayMediaFragment.java | 463 ArrayList<Integer> userIds = new ArrayList<>(); in initUserSpinner() local 472 userIds.add(userHandle.getIdentifier()); in initUserSpinner() 476 new ArrayAdapter<>(getContext(), simple_spinner_item, userIds); in initUserSpinner()
|
/packages/services/Car/service/src/com/android/car/watchdog/ |
D | WatchdogPerfHandler.java | 734 int[] userIds = getAliveUserIds(); in setPackageKillableStateForAllUsers() local 736 List<PackageResourceUsage> updatedUsages = new ArrayList<>(userIds.length); in setPackageKillableStateForAllUsers() 738 for (int i = 0; i < userIds.length; i++) { in setPackageKillableStateForAllUsers() 739 int userId = userIds[i]; in setPackageKillableStateForAllUsers() 794 int[] userIds = getAliveUserIds(); in getPackageKillableStatesAsUser() local 795 for (int i = 0; i < userIds.length; ++i) { in getPackageKillableStatesAsUser() 797 getPackageKillableStatesForUserId(userIds[i], pm)); in getPackageKillableStatesAsUser() 1801 int[] userIds = new int[userSize]; in getAliveUserIds() local 1803 userIds[i] = aliveUsers.get(i).getIdentifier(); in getAliveUserIds() 1805 return userIds; in getAliveUserIds() [all …]
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/batteryusage/ |
D | BatteryUsageContentProviderTest.java | 546 private Cursor getCursorOfAppUsage(final List<Long> userIds, final long queryTimestamp) { in getCursorOfAppUsage() argument 548 userIds.stream() in getCursorOfAppUsage()
|