Lines Matching defs:root
142 * Represents files in the root of your app's external storage area. The path
144 * <code>files/</code> subdirectory of this this root.
152 * Represents files in the cache subdirectory of your app's internal storage area. The root path
309 private static final String TAG_ROOT_PATH = "root-path";
639 * Add a mapping from a name to a filesystem root. The provider only offers
642 public void addRoot(String name, File root) {
649 root = root.getCanonicalFile();
652 "Failed to resolve canonical path for " + root, e);
655 mRoots.put(name, root);
667 // Find the most-specific root path
669 for (Map.Entry<String, File> root : mRoots.entrySet()) {
670 final String rootPath = root.getValue().getPath();
673 mostSpecific = root;
679 "Failed to find configured root that contains " + path);
682 // Start at first char of path under root
704 final File root = mRoots.get(tag);
705 if (root == null) {
706 throw new IllegalArgumentException("Unable to find configured root for " + uri);
709 File file = new File(root, path);
716 if (!file.getPath().startsWith(root.getPath())) {
717 throw new SecurityException("Resolved path jumped beyond configured root");