Searched refs:rootList (Results 1 – 5 of 5) sorted by relevance
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/dirlist/ |
D | AppsRowManagerTest.java | 96 final List<Item> rootList = new ArrayList<>(); in testUpdateList_byRootItem() local 97 rootList.add(new RootItem(TestProvidersAccess.INSPECTOR, mActionHandler, mMaybeShowBadge)); in testUpdateList_byRootItem() 98 rootList.add(new RootItem(TestProvidersAccess.PICKLES, mActionHandler, mMaybeShowBadge)); in testUpdateList_byRootItem() 99 rootList.add(new RootItem(TestProvidersAccess.PICKLES, mActionHandler, "packageName", in testUpdateList_byRootItem() 101 rootList.add(new RootItem(TestProvidersAccess.PICKLES, mActionHandler, "packageName", in testUpdateList_byRootItem() 104 final List<AppsRowItemData> chipDataList = mAppsRowManager.updateList(rootList); in testUpdateList_byRootItem() 106 assertEquals(chipDataList.size(), rootList.size()); in testUpdateList_byRootItem() 141 final List<Item> rootList = new ArrayList<>(); in testUpdateView_matchedState_showRow() local 142 rootList.add(new RootItem(TestProvidersAccess.INSPECTOR, mActionHandler, mMaybeShowBadge)); in testUpdateView_matchedState_showRow() 143 mAppsRowManager.updateList(rootList); in testUpdateView_matchedState_showRow() [all …]
|
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/sidebar/ |
D | RootsFragmentTest.java | 89 final List<Item> rootList = new ArrayList<>(); in testItemComparator_WithCorrectOrder() local 90 rootList.add(new RootItem(TestProvidersAccess.HAMMY, null /* actionHandler */, in testItemComparator_WithCorrectOrder() 92 rootList.add(new RootItem(TestProvidersAccess.INSPECTOR, null /* actionHandler */, in testItemComparator_WithCorrectOrder() 94 rootList.add(new RootItem(TestProvidersAccess.PICKLES, null /* actionHandler */, in testItemComparator_WithCorrectOrder() 96 Collections.sort(rootList, comp); in testItemComparator_WithCorrectOrder() 98 assertEquals(rootList.get(0).title, TestProvidersAccess.PICKLES.title); in testItemComparator_WithCorrectOrder() 99 assertEquals(rootList.get(1).title, TestProvidersAccess.HAMMY.title); in testItemComparator_WithCorrectOrder() 100 assertEquals(rootList.get(2).title, TestProvidersAccess.INSPECTOR.title); in testItemComparator_WithCorrectOrder() 107 final List<Item> rootList = new ArrayList<>(); in testItemComparator_differentItemTypes_WithCorrectOrder() local 108 rootList.add(new RootItem(TestProvidersAccess.HAMMY, null /* actionHandler */, in testItemComparator_differentItemTypes_WithCorrectOrder() [all …]
|
/packages/apps/DocumentsUI/src/com/android/documentsui/sidebar/ |
D | RootsFragment.java | 402 final List<Item> rootList = new ArrayList<>(); in sortLoadResult() local 406 includeHandlerApps(state, handlerAppIntent, excludePackage, rootList, rootListOtherUser, in sortLoadResult() 413 rootList.add(item); in sortLoadResult() 422 .setRootListForCurrentUser(rootList) in sortLoadResult() 429 private void addListToResult(List<Item> result, List<Item> rootList) { in addListToResult() argument 430 if (!result.isEmpty() && !rootList.isEmpty()) { in addListToResult() 433 result.addAll(rootList); in addListToResult() 441 Intent handlerAppIntent, @Nullable String excludePackage, List<Item> rootList, in includeHandlerApps() argument 498 rootList.add(item); in includeHandlerApps() 507 rootList.add(item); in includeHandlerApps() [all …]
|
D | UserItemsCombiner.java | 57 UserItemsCombiner setRootListForCurrentUser(List<Item> rootList) { in setRootListForCurrentUser() argument 58 mRootList = checkNotNull(rootList); in setRootListForCurrentUser() 62 UserItemsCombiner setRootListForOtherUser(List<Item> rootList) { in setRootListForOtherUser() argument 63 mRootListOtherUser = checkNotNull(rootList); in setRootListForOtherUser()
|
/packages/apps/DocumentsUI/tests/functional/com/android/documentsui/ |
D | FileCopyUiTest.java | 193 List<RootInfo> rootList = mStorageDocsHelper.getRootList(); in tearDown() local 195 for (RootInfo info : rootList) { in tearDown() 368 List<RootInfo> rootList = mStorageDocsHelper.getRootList(); in initStorageRootInfo() local 369 for (RootInfo info : rootList) { in initStorageRootInfo()
|