/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/model/ |
H A D | RootInfo.java | 48 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 D | DocumentStack.java | 85 builder.append(root.rootId).append('#');
|
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/ |
H A D | RecentLoader.java | 100 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 D | RootsCache.java | 105 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 D | RootCursorWrapper.java | 39 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 D | RecentsProvider.java | 67 // 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 D | DirectoryLoader.java | 126 mRoot.authority, mRoot.rootId, mDoc.documentId); 175 cursor = new RootCursorWrapper(mUri.getAuthority(), mRoot.rootId, cursor, -1);
|
H A D | BaseActivity.java | 108 if (mRoots.getRootBlocking(root.authority, root.rootId) == null) { 229 intent.setDataAndType(DocumentsContract.buildRootUri(root.authority, root.rootId),
|
H A D | DocumentsActivity.java | 277 final String rootId = DocumentsContract.getRootId(mRootUri); 278 return mRoots.getRootOneshot(mRootUri.getAuthority(), rootId);
|
H A D | DirectoryFragment.java | 189 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 D | StubProvider.java | 105 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 D | ExternalStorageProvider.java | 82 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 D | TestDocumentsProvider.java | 295 public Cursor queryRecentDocuments(String rootId, String[] projection) argument
|
/frameworks/base/core/java/android/provider/ |
H A D | DocumentsContract.java | 575 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 D | DocumentsProvider.java | 294 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 D | MediaBrowserService.java | 532 * @param rootId The root id for browsing. 535 public BrowserRoot(@NonNull String rootId, @Nullable Bundle extras) { argument 536 if (rootId == null) { 540 mRootId = rootId;
|