Searched refs:rootId (Results 1 - 20 of 20) sorted by relevance

/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/
H A DLoadRootTask.java37 String rootId = DocumentsContract.getRootId(mRootUri);
38 return mOwner.mRoots.getRootOneshot(mRootUri.getAuthority(), rootId);
H A DRecentsLoader.java120 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 DRootsCache.java133 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 DRootCursorWrapper.java39 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 DRecentsProvider.java69 // 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 DLocalPreferences.java73 return ROOT_VIEW_MODE_PREFIX + root.authority + root.rootId;
H A DDirectoryLoader.java131 cursor = new RootCursorWrapper(mUri.getAuthority(), mRoot.rootId, cursor, -1);
H A DFilesActivity.java179 if (mRoots.getRootBlocking(root.authority, root.rootId) == null) {
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/model/
H A DRootInfo.java84 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 DDocumentStack.java85 builder.append(root.rootId).append('#');
/frameworks/base/packages/DocumentsUI/tests/src/com/android/documentsui/
H A DStubProvider.java122 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 DDocumentsProviderHelper.java294 args.putString(StubProvider.EXTRA_ROOT, root.rootId);
/frameworks/base/packages/ExternalStorageProvider/src/com/android/externalstorage/
H A DExternalStorageProvider.java88 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 DTestDocumentsProvider.java295 public Cursor queryRecentDocuments(String rootId, String[] projection) argument
/frameworks/support/media-compat/api21/android/support/v4/media/
H A DMediaBrowserServiceCompatApi21.java100 BrowserRoot(String rootId, Bundle extras) { argument
101 mRootId = rootId;
/frameworks/base/core/java/android/provider/
H A DDocumentsContract.java679 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 DDocumentsProvider.java357 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 DMediaBrowserService.java778 * @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 DMediaBrowserServiceCompat.java1224 * @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 DDirectoryFragment.java1764 builder.append(root != null ? root.rootId : "null").append(';');
1790 mRoot.authority, mRoot.rootId, mQuery)

Completed in 608 milliseconds