/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/ |
H A D | LoadRootTask.java | 37 String rootId = DocumentsContract.getRootId(mRootUri); 38 return mOwner.mRoots.getRootOneshot(mRootUri.getAuthority(), rootId);
|
H A D | RecentsLoader.java | 120 mTasks.put(root, new RecentsTask(root.authority, root.rootId)); 260 public final String rootId; field in class:RecentsLoader.RecentsTask 264 public RecentsTask(String authority, String rootId) { argument 266 this.rootId = rootId; 292 final Uri uri = DocumentsContract.buildRecentDocumentsUri(authority, rootId); 295 mWithRoot = new RootCursorWrapper(authority, rootId, cursor, MAX_DOCS_FROM_ROOT); 298 Log.w(TAG, "Failed to load " + authority + ", " + rootId, e);
|
H A D | RootsCache.java | 133 assert(mRecentsRoot.rootId == null); 352 public RootInfo getRootOneshot(String authority, String rootId) { argument 354 RootInfo root = getRootLocked(authority, rootId); 358 root = getRootLocked(authority, rootId); 364 public RootInfo getRootBlocking(String authority, String rootId) { argument 368 return getRootLocked(authority, rootId); 372 private RootInfo getRootLocked(String authority, String rootId) { argument 374 if (Objects.equals(root.rootId, rootId)) { 387 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 | 69 // state/authority/rootId/docId 108 public static Uri buildState(String authority, String rootId, String documentId) { argument 110 .appendPath("state").appendPath(authority).appendPath(rootId).appendPath(documentId) 187 final String rootId = uri.getPathSegments().get(2); 191 new String[] { authority, rootId, documentId }, null, null, sortOrder); 219 final String rootId = uri.getPathSegments().get(2); 223 key.put(StateColumns.ROOT_ID, rootId); 230 new String[] { authority, rootId, documentId });
|
H A D | LocalPreferences.java | 73 return ROOT_VIEW_MODE_PREFIX + root.authority + root.rootId;
|
H A D | DirectoryLoader.java | 131 cursor = new RootCursorWrapper(mUri.getAuthority(), mRoot.rootId, cursor, -1);
|
H A D | FilesActivity.java | 179 if (mRoots.getRootBlocking(root.authority, root.rootId) == null) {
|
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/model/ |
H A D | RootInfo.java | 84 public String rootId; field in class:RootInfo 105 rootId = null; 125 rootId = DurableUtils.readNullableString(in); 144 DurableUtils.writeNullableString(out, rootId); 181 root.rootId = getCursorString(cursor, Root.COLUMN_ROOT_ID); 233 return DocumentsContract.buildRootUri(authority, rootId); 237 return authority == null && rootId == null; 244 return isExternalStorage() && "home".equals(rootId); 257 && "images_root".equals(rootId); 262 && "videos_root".equals(rootId); [all...] |
H A D | DocumentStack.java | 85 builder.append(root.rootId).append('#');
|
/frameworks/base/packages/DocumentsUI/tests/src/com/android/documentsui/ |
H A D | StubProvider.java | 122 for (String rootId : rootIds) { 124 final File file = new File(getContext().getCacheDir(), rootId); 128 final RootInfo rootInfo = new RootInfo(file, getSize(rootId)); 130 if(rootId.equals(ROOT_1_ID)) { 135 mRoots.put(rootId, rootInfo); 142 private long getSize(String rootId) { argument 143 final String key = STORAGE_SIZE_KEY + "." + rootId; 247 public Cursor queryRecentDocuments(String rootId, String[] projection) argument 255 public Cursor querySearchDocuments(String rootId, String query, String[] projection) argument 258 StubDocument parentDocument = mRoots.get(rootId) 627 setSize(String rootId, long rootSize) argument 648 createRegularFile(String rootId, String path, String mimeType, byte[] content) argument 661 createVirtualFile( String rootId, String path, String mimeType, List<String> streamTypes, byte[] content) argument 677 getFile(String rootId, String path) argument 692 createFile(String rootId, String path, String mimeType, byte[] content) argument [all...] |
H A D | DocumentsProviderHelper.java | 294 args.putString(StubProvider.EXTRA_ROOT, root.rootId);
|
/frameworks/base/packages/ExternalStorageProvider/src/com/android/externalstorage/ |
H A D | ExternalStorageProvider.java | 88 public String rootId; field in class:ExternalStorageProvider.RootInfo 137 final String rootId; 143 rootId = ROOT_ID_PRIMARY_EMULATED; 165 rootId = volume.getFsUuid(); 172 if (TextUtils.isEmpty(rootId)) { 176 if (mRoots.containsKey(rootId)) { 177 Log.w(TAG, "Duplicate UUID " + rootId + " for " + volume.getId() + "; skipping"); 182 mRoots.put(rootId, root); 184 root.rootId = rootId; 562 querySearchDocuments(String rootId, String query, String[] projection) argument [all...] |
H A D | TestDocumentsProvider.java | 295 public Cursor queryRecentDocuments(String rootId, String[] projection) argument
|
/frameworks/support/media-compat/api21/android/support/v4/media/ |
H A D | MediaBrowserServiceCompatApi21.java | 100 BrowserRoot(String rootId, Bundle extras) { argument 101 mRootId = rootId;
|
/frameworks/base/core/java/android/provider/ |
H A D | DocumentsContract.java | 679 public static Uri buildRootUri(String authority, String rootId) { argument 681 .authority(authority).appendPath(PATH_ROOT).appendPath(rootId).build(); 702 public static Uri buildRecentDocumentsUri(String authority, String rootId) { argument 704 .authority(authority).appendPath(PATH_ROOT).appendPath(rootId) 829 String authority, String rootId, String query) { 831 .appendPath(PATH_ROOT).appendPath(rootId).appendPath(PATH_SEARCH) 828 buildSearchDocumentsUri( String authority, String rootId, String query) argument
|
H A D | DocumentsProvider.java | 357 public Cursor queryRecentDocuments(String rootId, String[] projection) argument 446 * @param rootId the root to search under. 456 public Cursor querySearchDocuments(String rootId, String query, String[] projection) argument
|
/frameworks/base/media/java/android/service/media/ |
H A D | MediaBrowserService.java | 778 * @param rootId The root id for browsing. 781 public BrowserRoot(@NonNull String rootId, @Nullable Bundle extras) { argument 782 if (rootId == null) { 786 mRootId = rootId;
|
/frameworks/support/media-compat/java/android/support/v4/media/ |
H A D | MediaBrowserServiceCompat.java | 1224 * @param rootId The root id for browsing. 1227 public BrowserRoot(@NonNull String rootId, @Nullable Bundle extras) { argument 1228 if (rootId == null) { 1232 mRootId = rootId;
|
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/dirlist/ |
H A D | DirectoryFragment.java | 1764 builder.append(root != null ? root.rootId : "null").append(';'); 1790 mRoot.authority, mRoot.rootId, mQuery)
|