Lines Matching refs:roots

17 package com.android.documentsui.roots;
68 * Cache of known storage backends and their roots.
77 // MTP provider commonly returns no roots (if no devices are attached).
79 // ArchivesProvider doesn't support any roots.
130 if (DEBUG) Log.i(TAG, "Updating roots due to change at " + uri);
190 * @return {@code true} if cached roots is ready to roll, otherwise
206 * Load roots from authorities that are in stopped state. Normal
220 * Load roots from a stopped authority. Normal {@link UpdateTask} passes
236 * Bring up requested provider and query for all active roots. Will consult cached
237 * roots if not forceRefresh. Will query when cached roots is empty (which should never happen).
241 if (VERBOSE) Log.v(TAG, "Loading roots for " + authority);
262 // Look for roots data that we might have cached for ourselves in the
277 final ArrayList<RootInfo> roots = new ArrayList<>();
285 roots.add(root);
288 Log.w(TAG, "Failed to load some roots from " + authority, e);
292 return roots;
298 // Cache these freshly parsed roots over in the long-lived system
302 if (roots.isEmpty() && !PERMIT_EMPTY_CACHE.contains(authority)) {
303 Log.i(TAG, "Provider returned no roots. Possibly naughty: " + authority);
305 systemCache.putParcelableArrayList(TAG, roots);
309 return roots;
378 final Collection<RootInfo> roots = mRoots.get(authority);
379 return roots != null ? roots : Collections.<RootInfo>emptyList();
397 List<String> roots = new ArrayList<>();
403 roots.add(root.toDebugString());
408 output.append(authority).append("=").append(roots);
422 * Create task to update roots cache.
451 "Update found " + mTaskRoots.size() + " roots in " + delta + "ms");