Lines Matching refs:roots

60  * Cache of known storage backends and their roots.
64 "content://com.android.documentsui.roots/");
116 if (DEBUG) Log.d(TAG, "Updating roots due to change at " + uri);
122 * Gather roots from all known storage providers.
146 * Gather roots from storage providers belonging to given package name.
153 * Gather roots from storage providers belonging to given authority.
177 * @return {@code true} if cached roots is ready to roll, otherwise
193 * Load roots from authorities that are in stopped state. Normal
208 * Load roots from a stopped authority. Normal {@link UpdateTask} passes
233 * Create task to update roots cache.
263 Log.d(TAG, "Update found " + mTaskRoots.size() + " roots in " + delta + "ms");
295 * Bring up requested provider and query for all active roots.
299 if (DEBUG) Log.d(TAG, "Loading roots for " + authority);
311 // Look for roots data that we might have cached for ourselves in the
320 final ArrayList<RootInfo> roots = new ArrayList<>();
328 roots.add(root);
331 Log.w(TAG, "Failed to load some roots from " + authority + ": " + e);
337 // Cache these freshly parsed roots over in the long-lived system
341 systemCache.putParcelableArrayList(TAG, roots);
344 return roots;
348 * Return the requested {@link RootInfo}, but only loading the roots for the
350 * waiting for all the other roots to come back.
424 * Returns a list of roots for the specified authority. If not found, then
431 final Collection<RootInfo> roots = mRoots.get(authority);
432 return roots != null ? roots : Collections.<RootInfo>emptyList();
449 static List<RootInfo> getMatchingRoots(Collection<RootInfo> roots, State state) {
451 for (RootInfo root : roots) {