Home
last modified time | relevance | path

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

/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/model/
DRootInfo.java84 public String rootId; field in RootInfo
105 rootId = null; in reset()
125 rootId = DurableUtils.readNullableString(in); in read()
144 DurableUtils.writeNullableString(out, rootId); in write()
181 root.rootId = getCursorString(cursor, Root.COLUMN_ROOT_ID); in fromRootsCursor()
233 return DocumentsContract.buildRootUri(authority, rootId); in getUri()
237 return authority == null && rootId == null; in isRecents()
244 return isExternalStorage() && "home".equals(rootId); in isHome()
257 && "images_root".equals(rootId); in isImages()
262 && "videos_root".equals(rootId); in isVideos()
[all …]
DDocumentStack.java85 builder.append(root.rootId).append('#'); in buildKey()
/frameworks/base/packages/DocumentsUI/tests/src/com/android/documentsui/
DStubProvider.java122 for (String rootId : rootIds) { in clearCacheAndBuildRoots()
124 final File file = new File(getContext().getCacheDir(), rootId); in clearCacheAndBuildRoots()
128 final RootInfo rootInfo = new RootInfo(file, getSize(rootId)); in clearCacheAndBuildRoots()
130 if(rootId.equals(ROOT_1_ID)) { in clearCacheAndBuildRoots()
135 mRoots.put(rootId, rootInfo); in clearCacheAndBuildRoots()
142 private long getSize(String rootId) { in getSize() argument
143 final String key = STORAGE_SIZE_KEY + "." + rootId; in getSize()
247 public Cursor queryRecentDocuments(String rootId, String[] projection) in queryRecentDocuments() argument
255 public Cursor querySearchDocuments(String rootId, String query, String[] projection) in querySearchDocuments() argument
258 StubDocument parentDocument = mRoots.get(rootId).document; in querySearchDocuments()
[all …]
DDocumentsProviderHelper.java294 args.putString(StubProvider.EXTRA_ROOT, root.rootId); in createVirtualFile()
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/
DRecentsLoader.java120 mTasks.put(root, new RecentsTask(root.authority, root.rootId)); in loadInBackgroundLocked()
257 public final String rootId; field in RecentsLoader.RecentsTask
261 public RecentsTask(String authority, String rootId) { in RecentsTask() argument
263 this.rootId = rootId; in RecentsTask()
289 final Uri uri = DocumentsContract.buildRecentDocumentsUri(authority, rootId); in runInternal()
292 mWithRoot = new RootCursorWrapper(authority, rootId, cursor, MAX_DOCS_FROM_ROOT); in runInternal()
295 Log.w(TAG, "Failed to load " + authority + ", " + rootId, e); in runInternal()
DRootsCache.java133 assert(mRecentsRoot.rootId == null); in updateAsync()
352 public RootInfo getRootOneshot(String authority, String rootId) { in getRootOneshot() argument
354 RootInfo root = getRootLocked(authority, rootId); in getRootOneshot()
358 root = getRootLocked(authority, rootId); in getRootOneshot()
364 public RootInfo getRootBlocking(String authority, String rootId) { in getRootBlocking() argument
368 return getRootLocked(authority, rootId); in getRootBlocking()
372 private RootInfo getRootLocked(String authority, String rootId) { in getRootLocked() argument
374 if (Objects.equals(root.rootId, rootId)) { in getRootLocked()
387 if (Objects.equals(test.rootId, root.rootId)) { in isIconUniqueBlocking()
DRecentsProvider.java108 public static Uri buildState(String authority, String rootId, String documentId) { in buildState() argument
110 .appendPath("state").appendPath(authority).appendPath(rootId).appendPath(documentId) in buildState()
187 final String rootId = uri.getPathSegments().get(2); in query() local
191 new String[] { authority, rootId, documentId }, null, null, sortOrder); in query()
219 final String rootId = uri.getPathSegments().get(2); in insert() local
223 key.put(StateColumns.ROOT_ID, rootId); in insert()
230 new String[] { authority, rootId, documentId }); in insert()
DLoadRootTask.java37 String rootId = DocumentsContract.getRootId(mRootUri); in run() local
38 return mOwner.mRoots.getRootOneshot(mRootUri.getAuthority(), rootId); in run()
DRootCursorWrapper.java41 public RootCursorWrapper(String authority, String rootId, Cursor cursor, int maxCount) { in RootCursorWrapper() argument
43 mRootId = rootId; in RootCursorWrapper()
DLocalPreferences.java72 return ROOT_VIEW_MODE_PREFIX + root.authority + root.rootId; in createKey()
DDirectoryLoader.java131 cursor = new RootCursorWrapper(mUri.getAuthority(), mRoot.rootId, cursor, -1); in loadInBackground()
DFilesActivity.java185 if (mRoots.getRootBlocking(root.authority, root.rootId) == null) { in onResume()
/frameworks/base/packages/ExternalStorageProvider/src/com/android/externalstorage/
DExternalStorageProvider.java88 public String rootId; field in ExternalStorageProvider.RootInfo
137 final String rootId; in updateVolumesLocked() local
143 rootId = ROOT_ID_PRIMARY_EMULATED; in updateVolumesLocked()
165 rootId = volume.getFsUuid(); in updateVolumesLocked()
172 if (TextUtils.isEmpty(rootId)) { in updateVolumesLocked()
176 if (mRoots.containsKey(rootId)) { in updateVolumesLocked()
177 Log.w(TAG, "Duplicate UUID " + rootId + " for " + volume.getId() + "; skipping"); in updateVolumesLocked()
182 mRoots.put(rootId, root); in updateVolumesLocked()
184 root.rootId = rootId; in updateVolumesLocked()
189 if (DEBUG) Log.d(TAG, "Disk for root " + rootId + " is " + disk); in updateVolumesLocked()
[all …]
DTestDocumentsProvider.java295 public Cursor queryRecentDocuments(String rootId, String[] projection) in queryRecentDocuments() argument
/frameworks/support/v4/api21/android/support/v4/media/
DMediaBrowserServiceCompatApi21.java96 BrowserRoot(String rootId, Bundle extras) { in BrowserRoot() argument
97 mRootId = rootId; in BrowserRoot()
/frameworks/base/core/java/android/provider/
DDocumentsContract.java680 public static Uri buildRootUri(String authority, String rootId) { in buildRootUri() argument
682 .authority(authority).appendPath(PATH_ROOT).appendPath(rootId).build(); in buildRootUri()
703 public static Uri buildRecentDocumentsUri(String authority, String rootId) { in buildRecentDocumentsUri() argument
705 .authority(authority).appendPath(PATH_ROOT).appendPath(rootId) in buildRecentDocumentsUri()
830 String authority, String rootId, String query) { in buildSearchDocumentsUri() argument
832 .appendPath(PATH_ROOT).appendPath(rootId).appendPath(PATH_SEARCH) in buildSearchDocumentsUri()
DDocumentsProvider.java357 public Cursor queryRecentDocuments(String rootId, String[] projection) in queryRecentDocuments() argument
456 public Cursor querySearchDocuments(String rootId, String query, String[] projection) in querySearchDocuments() argument
/frameworks/base/media/java/android/service/media/
DMediaBrowserService.java781 public BrowserRoot(@NonNull String rootId, @Nullable Bundle extras) { in BrowserRoot() argument
782 if (rootId == null) { in BrowserRoot()
786 mRootId = rootId; in BrowserRoot()
/frameworks/support/v4/java/android/support/v4/media/
DMediaBrowserServiceCompat.java1167 public BrowserRoot(@NonNull String rootId, @Nullable Bundle extras) { in BrowserRoot() argument
1168 if (rootId == null) { in BrowserRoot()
1172 mRootId = rootId; in BrowserRoot()
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/dirlist/
DDirectoryFragment.java1763 builder.append(root != null ? root.rootId : "null").append(';'); in buildStateKey()
1789 mRoot.authority, mRoot.rootId, mQuery) in onCreateLoader()