Searched refs:rootId (Results 1 - 16 of 16) sorted by relevance

/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/model/
H A DRootInfo.java48 public String rootId; field in class:RootInfo
68 rootId = null;
87 rootId = DurableUtils.readNullableString(in);
106 DurableUtils.writeNullableString(out, rootId);
143 root.rootId = getCursorString(cursor, Root.COLUMN_ROOT_ID);
173 return authority == null && rootId == null;
186 && "images_root".equals(rootId);
191 && "videos_root".equals(rootId);
196 && "audio_root".equals(rootId);
201 return "Root{authority=" + authority + ", rootId
[all...]
H A DDocumentStack.java85 builder.append(root.rootId).append('#');
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/
H A DRecentLoader.java100 public final String rootId; field in class:RecentLoader.RecentTask
104 public RecentTask(String authority, String rootId) { argument
106 this.rootId = rootId;
132 final Uri uri = DocumentsContract.buildRecentDocumentsUri(authority, rootId);
135 mWithRoot = new RootCursorWrapper(authority, rootId, cursor, MAX_DOCS_FROM_ROOT);
138 Log.w(TAG, "Failed to load " + authority + ", " + rootId, e);
185 final RecentTask task = new RecentTask(root.authority, root.rootId);
H A DRootsCache.java105 mRecentsRoot.rootId = null;
280 public RootInfo getRootOneshot(String authority, String rootId) { argument
282 RootInfo root = getRootLocked(authority, rootId);
286 root = getRootLocked(authority, rootId);
292 public RootInfo getRootBlocking(String authority, String rootId) { argument
296 return getRootLocked(authority, rootId);
300 private RootInfo getRootLocked(String authority, String rootId) { argument
302 if (Objects.equals(root.rootId, rootId)) {
315 if (Objects.equals(test.rootId, roo
[all...]
H A DRootCursorWrapper.java39 public static final String COLUMN_ROOT_ID = "android:rootId";
41 public RootCursorWrapper(String authority, String rootId, Cursor cursor, int maxCount) { argument
43 mRootId = rootId;
H A DRecentsProvider.java67 // state/authority/rootId/docId
103 public static Uri buildState(String authority, String rootId, String documentId) { argument
105 .appendPath("state").appendPath(authority).appendPath(rootId).appendPath(documentId)
182 final String rootId = uri.getPathSegments().get(2);
186 new String[] { authority, rootId, documentId }, null, null, sortOrder);
214 final String rootId = uri.getPathSegments().get(2);
218 key.put(StateColumns.ROOT_ID, rootId);
225 new String[] { authority, rootId, documentId });
H A DDirectoryLoader.java126 mRoot.authority, mRoot.rootId, mDoc.documentId);
175 cursor = new RootCursorWrapper(mUri.getAuthority(), mRoot.rootId, cursor, -1);
H A DBaseActivity.java108 if (mRoots.getRootBlocking(root.authority, root.rootId) == null) {
229 intent.setDataAndType(DocumentsContract.buildRootUri(root.authority, root.rootId),
H A DDocumentsActivity.java277 final String rootId = DocumentsContract.getRootId(mRootUri);
278 return mRoots.getRootOneshot(mRootUri.getAuthority(), rootId);
H A DDirectoryFragment.java189 builder.append(root != null ? root.rootId : "null").append(';');
291 root.authority, root.rootId, query);
419 root.authority, root.rootId, doc.documentId);
/frameworks/base/packages/DocumentsUI/tests/src/com/android/documentsui/
H A DStubProvider.java105 for (String rootId : rootIds) {
106 final RootInfo rootInfo = new RootInfo(rootId, getSize(rootId));
107 mRoots.put(rootId, rootInfo);
114 private long getSize(String rootId) { argument
115 final String key = STORAGE_SIZE_KEY + "." + rootId;
225 public Cursor queryRecentDocuments(String rootId, String[] projection) argument
388 public void setSize(String rootId, long rootSize) { argument
389 RootInfo root = mRoots.get(rootId);
391 final String key = STORAGE_SIZE_KEY + "." + rootId;
409 createFile(String rootId, String path, String mimeType, byte[] content) argument
440 getFile(String rootId, String path) argument
[all...]
/frameworks/base/packages/ExternalStorageProvider/src/com/android/externalstorage/
H A DExternalStorageProvider.java82 public String rootId; field in class:ExternalStorageProvider.RootInfo
126 final String rootId;
131 rootId = ROOT_ID_PRIMARY_EMULATED;
139 rootId = volume.getFsUuid();
146 if (TextUtils.isEmpty(rootId)) {
150 if (mRoots.containsKey(rootId)) {
151 Log.w(TAG, "Duplicate UUID " + rootId + " for " + volume.getId() + "; skipping");
157 mRoots.put(rootId, root);
159 root.rootId = rootId;
433 querySearchDocuments(String rootId, String query, String[] projection) argument
[all...]
H A DTestDocumentsProvider.java295 public Cursor queryRecentDocuments(String rootId, String[] projection) argument
/frameworks/base/core/java/android/provider/
H A DDocumentsContract.java575 public static Uri buildRootUri(String authority, String rootId) { argument
577 .authority(authority).appendPath(PATH_ROOT).appendPath(rootId).build();
588 public static Uri buildRecentDocumentsUri(String authority, String rootId) { argument
590 .authority(authority).appendPath(PATH_ROOT).appendPath(rootId)
715 String authority, String rootId, String query) {
717 .appendPath(PATH_ROOT).appendPath(rootId).appendPath(PATH_SEARCH)
714 buildSearchDocumentsUri( String authority, String rootId, String query) argument
H A DDocumentsProvider.java294 public Cursor queryRecentDocuments(String rootId, String[] projection) argument
383 * @param rootId the root to search under.
393 public Cursor querySearchDocuments(String rootId, String query, String[] projection) argument
/frameworks/base/media/java/android/service/media/
H A DMediaBrowserService.java532 * @param rootId The root id for browsing.
535 public BrowserRoot(@NonNull String rootId, @Nullable Bundle extras) { argument
536 if (rootId == null) {
540 mRootId = rootId;

Completed in 545 milliseconds