/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/ |
H A D | RecentLoader.java | 98 public final String rootId; field in class:RecentLoader.RecentTask 102 public RecentTask(String authority, String rootId) { argument 104 this.rootId = rootId; 130 final Uri uri = DocumentsContract.buildRecentDocumentsUri(authority, rootId); 133 mWithRoot = new RootCursorWrapper(authority, rootId, cursor, MAX_DOCS_FROM_ROOT); 136 Log.w(TAG, "Failed to load " + authority + ", " + rootId, e); 177 final RecentTask task = new RecentTask(root.authority, root.rootId);
|
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 | 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 | 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 });
|
/frameworks/base/core/java/android/provider/ |
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
|
H A D | DocumentsContract.java | 572 public static Uri buildRootUri(String authority, String rootId) { argument 574 .authority(authority).appendPath(PATH_ROOT).appendPath(rootId).build(); 585 public static Uri buildRecentDocumentsUri(String authority, String rootId) { argument 587 .authority(authority).appendPath(PATH_ROOT).appendPath(rootId) 712 String authority, String rootId, String query) { 714 .appendPath(PATH_ROOT).appendPath(rootId).appendPath(PATH_SEARCH) 711 buildSearchDocumentsUri( String authority, String rootId, String query) argument
|
/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...] |
/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;
|
/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 | 81 public String rootId; field in class:ExternalStorageProvider.RootInfo 125 final String rootId; 130 rootId = ROOT_ID_PRIMARY_EMULATED; 138 rootId = volume.getFsUuid(); 145 if (TextUtils.isEmpty(rootId)) { 149 if (mRoots.containsKey(rootId)) { 150 Log.w(TAG, "Duplicate UUID " + rootId + " for " + volume.getId() + "; skipping"); 156 mRoots.put(rootId, root); 158 root.rootId = rootId; 413 querySearchDocuments(String rootId, String query, String[] projection) argument [all...] |
H A D | TestDocumentsProvider.java | 295 public Cursor queryRecentDocuments(String rootId, String[] projection) argument
|