Home
last modified time | relevance | path

Searched refs:rootId (Results 1 – 25 of 33) sorted by relevance

12

/packages/apps/DocumentsUI/tests/common/com/android/documentsui/testing/
DTestProvidersAccess.java53 DOWNLOADS.rootId = Providers.ROOT_ID_DOWNLOADS;
63 HOME.rootId = Providers.ROOT_ID_HOME;
73 HAMMY.rootId = "hamsandwich";
80 PICKLES.rootId = "pickles";
93 INSPECTOR.rootId = InspectorProvider.ROOT_ID;
100 IMAGE.rootId = Providers.ROOT_ID_IMAGES;
106 AUDIO.rootId = Providers.ROOT_ID_AUDIO;
112 VIDEO.rootId = Providers.ROOT_ID_VIDEOS;
118 EXTERNALSTORAGE.rootId = Providers.ROOT_ID_DEVICE;
148 public RootInfo getRootOneshot(String authority, String rootId) { in getRootOneshot() argument
[all …]
DTestDocumentsProvider.java89 public Cursor queryRecentDocuments(String rootId, String[] projection) { in queryRecentDocuments() argument
94 public Cursor querySearchDocuments(String rootId, String query, String[] projection) { in querySearchDocuments() argument
DRoots.java27 root.rootId = id; in create()
/packages/apps/DocumentsUI/tests/common/com/android/documentsui/
DStubProvider.java125 for (String rootId : rootIds) { in clearCacheAndBuildRoots()
127 final File file = new File(getContext().getCacheDir(), rootId); in clearCacheAndBuildRoots()
131 final RootInfo rootInfo = new RootInfo(file, getSize(rootId)); in clearCacheAndBuildRoots()
133 if(rootId.equals(ROOT_1_ID)) { in clearCacheAndBuildRoots()
138 mRoots.put(rootId, rootInfo); in clearCacheAndBuildRoots()
147 private long getSize(String rootId) { in getSize() argument
148 final String key = STORAGE_SIZE_KEY + "." + rootId; in getSize()
268 public Cursor queryRecentDocuments(String rootId, String[] projection) in queryRecentDocuments() argument
276 public Cursor querySearchDocuments(String rootId, String query, String[] projection) in querySearchDocuments() argument
279 StubDocument parentDocument = mRoots.get(rootId).document; in querySearchDocuments()
[all …]
DTestRootProvider.java59 public TestRootProvider(String rootName, String rootId, int flags, String rootDocId) { in TestRootProvider() argument
61 mRootId = rootId; in TestRootProvider()
/packages/apps/DocumentsUI/src/com/android/documentsui/base/
DRootInfo.java89 public String rootId; field in RootInfo
114 rootId = null; in reset()
138 rootId = DurableUtils.readNullableString(in); in read()
158 DurableUtils.writeNullableString(out, rootId); in write()
195 root.rootId = getCursorString(cursor, Root.COLUMN_ROOT_ID); in fromRootsCursor()
248 return DocumentsContract.buildRootUri(authority, rootId); in getUri()
252 return authority == null && rootId == null; in isRecents()
262 return isExternalStorage() && "home".equals(rootId); in isExternalStorageHome()
275 && Providers.ROOT_ID_IMAGES.equals(rootId); in isImages()
280 && Providers.ROOT_ID_VIDEOS.equals(rootId); in isVideos()
[all …]
/packages/apps/DocumentsUI/src/com/android/documentsui/roots/
DProvidersCache.java159 assert(mRecentsRoot.rootId == null); in updateAsync()
340 public RootInfo getRootOneshot(String authority, String rootId) { in getRootOneshot() argument
341 return getRootOneshot(authority, rootId, false); in getRootOneshot()
344 public RootInfo getRootOneshot(String authority, String rootId, boolean forceRefresh) { in getRootOneshot() argument
346 RootInfo root = forceRefresh ? null : getRootLocked(authority, rootId); in getRootOneshot()
350 root = getRootLocked(authority, rootId); in getRootOneshot()
356 public RootInfo getRootBlocking(String authority, String rootId) { in getRootBlocking() argument
360 return getRootLocked(authority, rootId); in getRootBlocking()
364 private RootInfo getRootLocked(String authority, String rootId) { in getRootLocked() argument
366 if (Objects.equals(root.rootId, rootId)) { in getRootLocked()
DLoadFirstRootTask.java38 String rootId = null; in getRootId() local
42 rootId = roots.iterator().next().rootId; in getRootId()
45 return rootId; in getRootId()
DRootCursorWrapper.java45 public RootCursorWrapper(String authority, String rootId, Cursor cursor, int maxCount) { in RootCursorWrapper() argument
47 mRootId = rootId; in RootCursorWrapper()
DProvidersAccess.java45 RootInfo getRootOneshot(String authority, String rootId); in getRootOneshot() argument
/packages/apps/Bluetooth/src/com/android/bluetooth/avrcp/
DAvrcpNativeInterface.java138 void setBrowsedPlayerResponse(int playerId, boolean success, String rootId, int numItems) { in setBrowsedPlayerResponse() argument
141 + " rootId=" + rootId in setBrowsedPlayerResponse()
143 setBrowsedPlayerResponseNative(playerId, success, rootId, numItems); in setBrowsedPlayerResponse()
243 int playerId, boolean success, String rootId, int numItems); in setBrowsedPlayerResponseNative() argument
/packages/apps/DocumentsUI/src/com/android/documentsui/
DMetrics.java367 String rootId = getRootIdSafely(uri); in sanitizeRoot() local
368 if (rootId == null) { in sanitizeRoot()
371 switch (rootId) { in sanitizeRoot()
382 rootId = getRootIdSafely(uri); in sanitizeRoot()
383 if (rootId == null) { in sanitizeRoot()
386 if (Providers.ROOT_ID_HOME.equals(rootId)) { in sanitizeRoot()
DGlobalSearchLoader.java103 rootInfo.rootId, "" /* query */); in getQueryUri()
108 return new RootCursorWrapper(authority, rootInfo.rootId, oriCursor, -1 /* maxCount */); in generateResultCursor()
DRecentsLoader.java80 return DocumentsContract.buildRecentDocumentsUri(authority, rootInfo.rootId); in getQueryUri()
85 return new RootCursorWrapper(authority, rootInfo.rootId, oriCursor, MAX_DOCS_FROM_ROOT); in generateResultCursor()
DLoadDocStackTask.java95 final String rootId = path.getRootId(); in buildStack() local
96 if (rootId == null) { in buildStack()
DAbstractActionHandler.java154 root.rootId, in ejectRoot()
605 mState.stack.getRoot().rootId, in onCreateLoader()
DDirectoryLoader.java149 cursor = new RootCursorWrapper(mUri.getAuthority(), mRoot.rootId, cursor, -1); in loadInBackground()
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/
DAbstractActionHandlerTest.java124 TestProvidersAccess.HOME.rootId, in testOpensContainerDocuments_OpenFolderInSearch_JumpsToNewLocation()
168 TestProvidersAccess.HOME.rootId, in testOpensContainerDocuments_ClickArchiveInSearch_opensArchiveInArchiveProvider()
203 TestProvidersAccess.HOME.rootId, in testLaunchToDocuments()
229 TestProvidersAccess.HOME.rootId, in testLaunchToDocuments_convertsTreeUriToDocumentUri()
/packages/apps/DocumentsUI/src/com/android/documentsui/sidebar/
DEjectRootTask.java48 String rootId, in EjectRootTask() argument
52 mRootId = rootId; in EjectRootTask()
DRootItem.java67 return String.format(STRING_ID_FORMAT, authority, root.rootId); in getStringId()
/packages/providers/MediaProvider/src/com/android/providers/media/
DMediaDocumentsProvider.java738 String rootId, String[] projection, @Nullable Bundle queryArgs, in queryRecentDocuments() argument
764 if (TYPE_IMAGES_ROOT.equals(rootId)) { in queryRecentDocuments()
772 } else if (TYPE_VIDEOS_ROOT.equals(rootId)) { in queryRecentDocuments()
781 throw new UnsupportedOperationException("Unsupported root " + rootId); in queryRecentDocuments()
791 public Cursor querySearchDocuments(String rootId, String[] projection, Bundle queryArgs) in querySearchDocuments() argument
809 if (TYPE_IMAGES_ROOT.equals(rootId)) { in querySearchDocuments()
832 } else if (TYPE_VIDEOS_ROOT.equals(rootId)) { in querySearchDocuments()
851 } else if (TYPE_AUDIO_ROOT.equals(rootId)) { in querySearchDocuments()
872 throw new UnsupportedOperationException("Unsupported root " + rootId); in querySearchDocuments()
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/base/
DDocumentStackTest.java51 ROOT_1.rootId = "home";
53 ROOT_2.rootId = "downloads";
/packages/providers/DownloadProvider/src/com/android/providers/downloads/
DDownloadStorageProvider.java182 final String rootId = (parentDocId == null) ? DOC_ID_ROOT : null; in findDocumentPath() local
192 return new Path(rootId, findDocumentPath(parent, doc)); in findDocumentPath()
367 public Cursor queryRecentDocuments(String rootId, String[] projection, in queryRecentDocuments() argument
436 public Cursor querySearchDocuments(String rootId, String[] projection, Bundle queryArgs) in querySearchDocuments() argument
/packages/apps/DocumentsUI/src/com/android/documentsui/prefs/
DLocalPreferences.java53 return ROOT_VIEW_MODE_PREFIX + root.authority + root.rootId; in createKey()
/packages/apps/DocumentsUI/src/com/android/documentsui/dirlist/
DDirectoryState.java79 builder.append(mRoot != null ? mRoot.rootId : "null").append(';'); in getConfigKey()

12