Searched refs:rootList (Results 1 – 4 of 4) sorted by relevance
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/sidebar/ |
D | RootsFragmentTest.java | 79 final List<Item> rootList = new ArrayList<>(); in testItemComparator_WithCorrectOrder() local 80 rootList.add(new RootItem(TestProvidersAccess.HAMMY, null /* actionHandler */, in testItemComparator_WithCorrectOrder() 82 rootList.add(new RootItem(TestProvidersAccess.INSPECTOR, null /* actionHandler */, in testItemComparator_WithCorrectOrder() 84 rootList.add(new RootItem(TestProvidersAccess.PICKLES, null /* actionHandler */, in testItemComparator_WithCorrectOrder() 86 Collections.sort(rootList, comp); in testItemComparator_WithCorrectOrder() 88 assertEquals(rootList.get(0).title, TestProvidersAccess.PICKLES.title); in testItemComparator_WithCorrectOrder() 89 assertEquals(rootList.get(1).title, TestProvidersAccess.HAMMY.title); in testItemComparator_WithCorrectOrder() 90 assertEquals(rootList.get(2).title, TestProvidersAccess.INSPECTOR.title); in testItemComparator_WithCorrectOrder() 97 final List<Item> rootList = new ArrayList<>(); in testItemComparator_differentItemTypes_WithCorrectOrder() local 98 rootList.add(new RootItem(TestProvidersAccess.HAMMY, null /* actionHandler */, in testItemComparator_differentItemTypes_WithCorrectOrder() [all …]
|
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/dirlist/ |
D | AppsRowManagerTest.java | 82 final List<Item> rootList = new ArrayList<>(); in testUpdateList_byRootItem() local 83 rootList.add(new RootItem(TestProvidersAccess.INSPECTOR, mActionHandler)); in testUpdateList_byRootItem() 84 rootList.add(new RootItem(TestProvidersAccess.PICKLES, mActionHandler)); in testUpdateList_byRootItem() 86 final List<AppsRowItemData> chipDataList = mAppsRowManager.updateList(rootList); in testUpdateList_byRootItem() 88 assertEquals(chipDataList.size(), rootList.size()); in testUpdateList_byRootItem() 120 final List<Item> rootList = new ArrayList<>(); in testUpdateView_matchedState_showRow() local 121 rootList.add(new RootItem(TestProvidersAccess.INSPECTOR, mActionHandler)); in testUpdateView_matchedState_showRow() 122 mAppsRowManager.updateList(rootList); in testUpdateView_matchedState_showRow() 133 final List<Item> rootList = new ArrayList<>(); in testUpdateView_notInRecent_hideRow() local 134 rootList.add(new RootItem(TestProvidersAccess.INSPECTOR, mActionHandler)); in testUpdateView_notInRecent_hideRow() [all …]
|
/packages/apps/DocumentsUI/src/com/android/documentsui/sidebar/ |
D | RootsFragment.java | 351 final List<Item> rootList = new ArrayList<>(); in includeHandlerApps() local 390 rootList.add(item); in includeHandlerApps() 393 rootList.addAll(appItems.values()); in includeHandlerApps() 395 if (!result.isEmpty() && !rootList.isEmpty()) { in includeHandlerApps() 403 Collections.sort(rootList, comp); in includeHandlerApps() 404 result.addAll(rootList); in includeHandlerApps() 406 mApplicationItemList = rootList; in includeHandlerApps()
|
/packages/apps/DocumentsUI/tests/functional/com/android/documentsui/ |
D | FileCopyUiTest.java | 324 List<RootInfo> rootList = mStorageDocsHelper.getRootList(); in initStorageRootInfo() local 325 for (RootInfo info : rootList) { in initStorageRootInfo()
|