Home
last modified time | relevance | path

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

/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/model/
DRootInfo.java48 public String rootId; field in RootInfo
69 rootId = null; in reset()
89 rootId = DurableUtils.readNullableString(in); in read()
108 DurableUtils.writeNullableString(out, rootId); in write()
145 root.rootId = getCursorString(cursor, Root.COLUMN_ROOT_ID); in fromRootsCursor()
175 return authority == null && rootId == null; in isRecents()
188 && "images_root".equals(rootId); in isImages()
193 && "videos_root".equals(rootId); in isVideos()
198 && "audio_root".equals(rootId); in isAudio()
203 return "Root{authority=" + authority + ", rootId=" + rootId + ", title=" + title + "}"; in toString()
[all …]
DDocumentStack.java83 builder.append(root.rootId).append('#'); in buildKey()
/frameworks/base/packages/ExternalStorageProvider/src/com/android/externalstorage/
DExternalStorageProvider.java77 public String rootId; field in ExternalStorageProvider.RootInfo
131 final String rootId; in updateVolumesLocked() local
133 rootId = ROOT_ID_PRIMARY_EMULATED; in updateVolumesLocked()
135 rootId = volume.getUuid(); in updateVolumesLocked()
141 if (mIdToPath.containsKey(rootId)) { in updateVolumesLocked()
142 Log.w(TAG, "Duplicate UUID " + rootId + "; skipping"); in updateVolumesLocked()
148 mIdToPath.put(rootId, path); in updateVolumesLocked()
151 root.rootId = rootId; in updateVolumesLocked()
154 if (ROOT_ID_PRIMARY_EMULATED.equals(rootId)) { in updateVolumesLocked()
161 mIdToRoot.put(rootId, root); in updateVolumesLocked()
[all …]
DTestDocumentsProvider.java295 public Cursor queryRecentDocuments(String rootId, String[] projection) in queryRecentDocuments() argument
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/
DRootsCache.java105 mRecentsRoot.rootId = null; in updateAsync()
280 public RootInfo getRootOneshot(String authority, String rootId) { in getRootOneshot() argument
282 RootInfo root = getRootLocked(authority, rootId); in getRootOneshot()
286 root = getRootLocked(authority, rootId); in getRootOneshot()
292 public RootInfo getRootBlocking(String authority, String rootId) { in getRootBlocking() argument
296 return getRootLocked(authority, rootId); in getRootBlocking()
300 private RootInfo getRootLocked(String authority, String rootId) { in getRootLocked() argument
302 if (Objects.equals(root.rootId, rootId)) { in getRootLocked()
315 if (Objects.equals(test.rootId, root.rootId)) { in isIconUniqueBlocking()
DRecentLoader.java98 public final String rootId; field in RecentLoader.RecentTask
102 public RecentTask(String authority, String rootId) { in RecentTask() argument
104 this.rootId = rootId; in RecentTask()
130 final Uri uri = DocumentsContract.buildRecentDocumentsUri(authority, rootId); in runInternal()
133 mWithRoot = new RootCursorWrapper(authority, rootId, cursor, MAX_DOCS_FROM_ROOT); in runInternal()
136 Log.w(TAG, "Failed to load " + authority + ", " + rootId, e); in runInternal()
177 final RecentTask task = new RecentTask(root.authority, root.rootId); in loadInBackground()
DRecentsProvider.java103 public static Uri buildState(String authority, String rootId, String documentId) { in buildState() argument
105 .appendPath("state").appendPath(authority).appendPath(rootId).appendPath(documentId) in buildState()
182 final String rootId = uri.getPathSegments().get(2); in query() local
186 new String[] { authority, rootId, documentId }, null, null, sortOrder); in query()
214 final String rootId = uri.getPathSegments().get(2); in insert() local
218 key.put(StateColumns.ROOT_ID, rootId); in insert()
225 new String[] { authority, rootId, documentId }); in insert()
DRootCursorWrapper.java41 public RootCursorWrapper(String authority, String rootId, Cursor cursor, int maxCount) { in RootCursorWrapper() argument
43 mRootId = rootId; in RootCursorWrapper()
DDirectoryLoader.java123 mRoot.authority, mRoot.rootId, mDoc.documentId); in loadInBackground()
168 cursor = new RootCursorWrapper(mUri.getAuthority(), mRoot.rootId, cursor, -1); in loadInBackground()
DDirectoryFragment.java176 builder.append(root != null ? root.rootId : "null").append(';'); in buildStateKey()
278 root.authority, root.rootId, query); in onActivityCreated()
373 root.authority, root.rootId, doc.documentId); in onUserModeChanged()
DDocumentsActivity.java275 final String rootId = DocumentsContract.getRootId(mRootUri); in doInBackground() local
276 return mRoots.getRootOneshot(mRootUri.getAuthority(), rootId); in doInBackground()
/frameworks/base/core/java/android/provider/
DDocumentsContract.java544 public static Uri buildRootUri(String authority, String rootId) { in buildRootUri() argument
546 .authority(authority).appendPath(PATH_ROOT).appendPath(rootId).build(); in buildRootUri()
557 public static Uri buildRecentDocumentsUri(String authority, String rootId) { in buildRecentDocumentsUri() argument
559 .authority(authority).appendPath(PATH_ROOT).appendPath(rootId) in buildRecentDocumentsUri()
684 String authority, String rootId, String query) { in buildSearchDocumentsUri() argument
686 .appendPath(PATH_ROOT).appendPath(rootId).appendPath(PATH_SEARCH) in buildSearchDocumentsUri()
DDocumentsProvider.java293 public Cursor queryRecentDocuments(String rootId, String[] projection) in queryRecentDocuments() argument
392 public Cursor querySearchDocuments(String rootId, String query, String[] projection) in querySearchDocuments() argument
/frameworks/base/media/java/android/service/media/
DMediaBrowserService.java453 public BrowserRoot(@NonNull String rootId, @Nullable Bundle extras) { in BrowserRoot() argument
454 if (rootId == null) { in BrowserRoot()
458 mRootId = rootId; in BrowserRoot()