/packages/apps/DocumentsUI/src/com/android/documentsui/ |
D | DirectoryLoader.java | 128 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 | ProfileTabs.java | 148 List<UserId> userIds = mUserIdManager.getUserIds(); in updateTabsIfNeeded() local 152 if (!userIds.equals(mUserIds)) { in updateTabsIfNeeded() 153 mUserIds = userIds; in updateTabsIfNeeded()
|
/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/services/Car/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/apps/DocumentsUI/tests/unit/com/android/documentsui/ |
D | ProfileTabsTest.java | 172 mTestUserIdManager.userIds = Collections.singletonList(systemUser); in testUpdateView_getSelectedUser_afterUsersChanged() 226 private void initializeWithUsers(UserId... userIds) { in initializeWithUsers() argument 227 mTestUserIdManager.userIds = Lists.newArrayList(userIds); in initializeWithUsers() 228 for (UserId userId : userIds) { in initializeWithUsers()
|
/packages/services/Car/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/common/com/android/documentsui/ |
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/sidebar/ |
D | RootItemListBuilder.java | 58 RootItemListBuilder(UserId selectedUser, List<UserId> userIds) { in RootItemListBuilder() argument 60 mUserIds = userIds; in RootItemListBuilder()
|
D | RootsFragment.java | 357 List<UserId> userIds, in sortLoadResult() argument 361 final RootItemListBuilder librariesBuilder = new RootItemListBuilder(selectedUser, userIds); in sortLoadResult() 363 userIds); in sortLoadResult() 407 otherProviders, userIds, maybeShowBadge); in sortLoadResult() 443 List<Item> rootListOtherUser, List<RootItem> otherProviders, List<UserId> userIds, in includeHandlerApps() argument 452 for (UserId userId : userIds) { in includeHandlerApps()
|
/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/Settings/src/com/android/settings/fuelgauge/batteryusage/ |
D | DataProcessManager.java | 529 final List<Integer> userIds = new ArrayList<>(); in getCurrentUserIds() local 530 userIds.add(getCurrentUserId()); in getCurrentUserIds() 533 userIds.add(workProfileUserId); in getCurrentUserIds() 535 return userIds; in getCurrentUserIds()
|
D | BatteryUsageContentProvider.java | 336 List<Long> userIds = new ArrayList<>(); in getQueryUserIds() local 338 userIds.add(Long.parseLong(idString.trim())); in getQueryUserIds() 340 return userIds; in getQueryUserIds()
|
D | DatabaseUtils.java | 178 final List<Integer> userIds, in getAppUsageEventForUsers() argument 187 final String queryUserIdString = userIds.stream() in getAppUsageEventForUsers()
|
/packages/services/Car/car-lib/src/android/car/user/ |
D | UserLifecycleEventFilter.java | 293 int[] userIds = (flg & 0x2) == 0 ? null : in.createIntArray(); in UserLifecycleEventFilter() local 296 this.mUserIds = userIds; in UserLifecycleEventFilter()
|
/packages/apps/Settings/src/com/android/settings/fuelgauge/batteryusage/db/ |
D | AppUsageEventDao.java | 47 Cursor getAllForUsersAfter(List<Long> userIds, long timestamp); in getAllForUsersAfter() argument
|
/packages/services/Car/service/src/com/android/car/watchdog/ |
D | WatchdogPerfHandler.java | 638 int[] userIds = getAliveUserIds(); in setPackageKillableStateForAllUsers() local 640 List<PackageResourceUsage> updatedUsages = new ArrayList<>(userIds.length); in setPackageKillableStateForAllUsers() 642 for (int i = 0; i < userIds.length; i++) { in setPackageKillableStateForAllUsers() 643 int userId = userIds[i]; in setPackageKillableStateForAllUsers() 698 int[] userIds = getAliveUserIds(); in getPackageKillableStatesAsUser() local 699 for (int i = 0; i < userIds.length; ++i) { in getPackageKillableStatesAsUser() 701 getPackageKillableStatesForUserId(userIds[i], pm)); in getPackageKillableStatesAsUser() 1705 int[] userIds = new int[userSize]; in getAliveUserIds() local 1707 userIds[i] = aliveUsers.get(i).getIdentifier(); in getAliveUserIds() 1709 return userIds; in getAliveUserIds() [all …]
|
/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/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/batteryusage/ |
D | BatteryUsageContentProviderTest.java | 542 private Cursor getCursorOfAppUsage(final List<Long> userIds, final long queryTimestamp) { in getCursorOfAppUsage() argument 543 final String queryUserIdString = userIds.stream() in getCursorOfAppUsage()
|
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/user/ |
D | CarUserManagerUnitTest.java | 848 private void setExistingUsers(int... userIds) { in setExistingUsers() argument 851 List<UserHandle> userHandles = Arrays.stream(userIds) in setExistingUsers()
|
D | InitialUserSetterTest.java | 1086 private void mockGetAliveUsers(@UserIdInt int... userIds) { in mockGetAliveUsers() argument 1087 mockUmGetUserHandles(mUm, /* excludeDying= */ false, userIds); in mockGetAliveUsers()
|
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/dirlist/ |
D | AppsRowManagerTest.java | 90 mTestUserIdManager.userIds = in setUp()
|
/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/ |
D | InCallControllerTests.java | 1894 List<Integer> userIds = userIdCaptor.getAllValues(); in testManagedProfileCallQueriesIcsUsingParentUserToo() local 1898 userIds.contains(mChildUserHandle.getIdentifier())); in testManagedProfileCallQueriesIcsUsingParentUserToo() 1901 userIds.contains(mParentUserHandle.getIdentifier())); in testManagedProfileCallQueriesIcsUsingParentUserToo()
|
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/watchdog/ |
D | CarWatchdogServiceUnitTest.java | 4818 private void disableUserPackage(String packageName, int... userIds) throws Exception { in disableUserPackage() argument 4819 for (int i = 0; i < userIds.length; i++) { in disableUserPackage() 4820 int userId = userIds[i]; in disableUserPackage()
|
/packages/providers/MediaProvider/src/com/android/providers/media/ |
D | MediaProvider.java | 1531 final List<String> userIds = mExternalDatabase.runWithTransaction((db) -> { in cleanMediaFilesForRemovedUser() local 1545 userIds.remove(String.valueOf(sUserId)); in cleanMediaFilesForRemovedUser() 1548 userIds.removeAll(mUserManager.getEnabledProfiles().stream() in cleanMediaFilesForRemovedUser() 1554 userIds.stream().forEach(userId ->{ in cleanMediaFilesForRemovedUser()
|