Home
last modified time | relevance | path

Searched refs:rootList (Results 1 – 6 of 6) sorted by relevance

/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/dirlist/
DAppsRowManagerTest.java139 final List<Item> rootList = new ArrayList<>(); in testUpdateList_byRootItem() local
140 rootList.add(new RootItem(TestProvidersAccess.INSPECTOR, mActionHandler, mMaybeShowBadge)); in testUpdateList_byRootItem()
141 rootList.add(new RootItem(TestProvidersAccess.PICKLES, mActionHandler, mMaybeShowBadge)); in testUpdateList_byRootItem()
142 rootList.add(new RootItem(TestProvidersAccess.PICKLES, mActionHandler, "packageName", in testUpdateList_byRootItem()
144 rootList.add(new RootItem(TestProvidersAccess.PICKLES, mActionHandler, "packageName", in testUpdateList_byRootItem()
147 final List<AppsRowItemData> chipDataList = mAppsRowManager.updateList(rootList); in testUpdateList_byRootItem()
149 assertEquals(chipDataList.size(), rootList.size()); in testUpdateList_byRootItem()
186 final List<Item> rootList = new ArrayList<>(); in testUpdateView_matchedState_showRow() local
187 rootList.add(new RootItem(TestProvidersAccess.INSPECTOR, mActionHandler, mMaybeShowBadge)); in testUpdateView_matchedState_showRow()
188 mAppsRowManager.updateList(rootList); in testUpdateView_matchedState_showRow()
[all …]
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/sidebar/
DRootsFragmentTest.java135 final List<Item> rootList = new ArrayList<>(); in testItemComparator_WithCorrectOrder() local
136 rootList.add(new RootItem(TestProvidersAccess.HAMMY, null /* actionHandler */, in testItemComparator_WithCorrectOrder()
138 rootList.add(new RootItem(TestProvidersAccess.INSPECTOR, null /* actionHandler */, in testItemComparator_WithCorrectOrder()
140 rootList.add(new RootItem(TestProvidersAccess.PICKLES, null /* actionHandler */, in testItemComparator_WithCorrectOrder()
142 Collections.sort(rootList, comp); in testItemComparator_WithCorrectOrder()
144 assertEquals(rootList.get(0).title, TestProvidersAccess.PICKLES.title); in testItemComparator_WithCorrectOrder()
145 assertEquals(rootList.get(1).title, TestProvidersAccess.HAMMY.title); in testItemComparator_WithCorrectOrder()
146 assertEquals(rootList.get(2).title, TestProvidersAccess.INSPECTOR.title); in testItemComparator_WithCorrectOrder()
153 final List<Item> rootList = new ArrayList<>(); in testItemComparator_differentItemTypes_WithCorrectOrder() local
154 rootList.add(new RootItem(TestProvidersAccess.HAMMY, null /* actionHandler */, in testItemComparator_differentItemTypes_WithCorrectOrder()
[all …]
/packages/apps/DocumentsUI/src/com/android/documentsui/sidebar/
DRootsFragment.java444 final List<Item> rootList = new ArrayList<>(); in sortLoadResult() local
453 includeHandlerApps(state, handlerAppIntent, excludePackage, rootList, rootListOtherUser, in sortLoadResult()
462 createRootListsPrivateSpaceDisabled(item, rootList, rootListOtherUser); in sortLoadResult()
472 getPresentableListPrivateSpaceDisabled(context, state, rootList, in sortLoadResult()
489 List<Item> rootList, List<Item> rootListOtherUser) { in getPresentableListPrivateSpaceDisabled() argument
492 .setRootListForCurrentUser(rootList) in getPresentableListPrivateSpaceDisabled()
497 private void addListToResult(List<Item> result, List<Item> rootList) { in addListToResult() argument
498 if (!result.isEmpty() && !rootList.isEmpty()) { in addListToResult()
501 result.addAll(rootList); in addListToResult()
509 Intent handlerAppIntent, @Nullable String excludePackage, List<Item> rootList, in includeHandlerApps() argument
[all …]
DUserItemsCombiner.java68 UserItemsCombiner setRootListForCurrentUser(List<Item> rootList) { in setRootListForCurrentUser() argument
69 mRootList = checkNotNull(rootList); in setRootListForCurrentUser()
73 UserItemsCombiner setRootListForOtherUser(List<Item> rootList) { in setRootListForOtherUser() argument
74 mRootListOtherUser = checkNotNull(rootList); in setRootListForOtherUser()
/packages/modules/Bluetooth/android/pandora/server/src/
DMediaPlayerBrowserService.kt280 var rootList = mediaIdToChildren[ROOT] ?: mutableListOf() in initBrowseFolderList() variable
308 rootList += emptyFolderMediaItem in initBrowseFolderList()
309 rootList += playlistsMediaItem in initBrowseFolderList()
310 mediaIdToChildren[ROOT] = rootList in initBrowseFolderList()
/packages/apps/DocumentsUI/tests/functional/com/android/documentsui/
DFileCopyUiTest.java201 List<RootInfo> rootList = mStorageDocsHelper.getRootList(); in tearDown() local
203 for (RootInfo info : rootList) { in tearDown()
376 List<RootInfo> rootList = mStorageDocsHelper.getRootList(); in initStorageRootInfo() local
377 for (RootInfo info : rootList) { in initStorageRootInfo()