/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/model/ |
D | RootInfo.java | 48 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 …]
|
D | DocumentStack.java | 83 builder.append(root.rootId).append('#'); in buildKey()
|
/frameworks/base/packages/ExternalStorageProvider/src/com/android/externalstorage/ |
D | ExternalStorageProvider.java | 72 public String rootId; field in ExternalStorageProvider.RootInfo 124 final String rootId; in updateVolumesLocked() local 126 rootId = ROOT_ID_PRIMARY_EMULATED; in updateVolumesLocked() 128 rootId = volume.getUuid(); in updateVolumesLocked() 134 if (mIdToPath.containsKey(rootId)) { in updateVolumesLocked() 135 Log.w(TAG, "Duplicate UUID " + rootId + "; skipping"); in updateVolumesLocked() 141 mIdToPath.put(rootId, path); in updateVolumesLocked() 144 root.rootId = rootId; in updateVolumesLocked() 147 if (ROOT_ID_PRIMARY_EMULATED.equals(rootId)) { in updateVolumesLocked() 154 mIdToRoot.put(rootId, root); in updateVolumesLocked() [all …]
|
D | TestDocumentsProvider.java | 295 public Cursor queryRecentDocuments(String rootId, String[] projection) in queryRecentDocuments() argument
|
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/ |
D | RootsCache.java | 105 mRecentsRoot.rootId = null; in updateAsync() 276 public RootInfo getRootOneshot(String authority, String rootId) { in getRootOneshot() argument 278 RootInfo root = getRootLocked(authority, rootId); in getRootOneshot() 282 root = getRootLocked(authority, rootId); in getRootOneshot() 288 public RootInfo getRootBlocking(String authority, String rootId) { in getRootBlocking() argument 292 return getRootLocked(authority, rootId); in getRootBlocking() 296 private RootInfo getRootLocked(String authority, String rootId) { in getRootLocked() argument 298 if (Objects.equal(root.rootId, rootId)) { in getRootLocked() 311 if (Objects.equal(test.rootId, root.rootId)) { in isIconUniqueBlocking()
|
D | RecentLoader.java | 98 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()
|
D | RecentsProvider.java | 103 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()
|
D | RootCursorWrapper.java | 41 public RootCursorWrapper(String authority, String rootId, Cursor cursor, int maxCount) { in RootCursorWrapper() argument 43 mRootId = rootId; in RootCursorWrapper()
|
D | DirectoryLoader.java | 123 mRoot.authority, mRoot.rootId, mDoc.documentId); in loadInBackground() 168 cursor = new RootCursorWrapper(mUri.getAuthority(), mRoot.rootId, cursor, -1); in loadInBackground()
|
D | DirectoryFragment.java | 176 builder.append(root != null ? root.rootId : "null").append(';'); in buildStateKey() 267 root.authority, root.rootId, query); in onActivityCreated() 358 root.authority, root.rootId, doc.documentId); in onUserModeChanged()
|
D | DocumentsActivity.java | 272 final String rootId = DocumentsContract.getRootId(mRootUri); in doInBackground() local 273 return mRoots.getRootOneshot(mRootUri.getAuthority(), rootId); in doInBackground()
|
/frameworks/base/core/java/android/provider/ |
D | DocumentsContract.java | 517 public static Uri buildRootUri(String authority, String rootId) { in buildRootUri() argument 519 .authority(authority).appendPath(PATH_ROOT).appendPath(rootId).build(); in buildRootUri() 530 public static Uri buildRecentDocumentsUri(String authority, String rootId) { in buildRecentDocumentsUri() argument 532 .authority(authority).appendPath(PATH_ROOT).appendPath(rootId) in buildRecentDocumentsUri() 576 String authority, String rootId, String query) { in buildSearchDocumentsUri() argument 578 .appendPath(PATH_ROOT).appendPath(rootId).appendPath(PATH_SEARCH) in buildSearchDocumentsUri()
|
D | DocumentsProvider.java | 229 public Cursor queryRecentDocuments(String rootId, String[] projection) in queryRecentDocuments() argument 328 public Cursor querySearchDocuments(String rootId, String query, String[] projection) in querySearchDocuments() argument
|