Lines Matching refs:docId

70     // docId format: root:path/to/file
88 public String docId;
220 root.docId = getDocIdForFile(root.path);
251 root.docId = getDocIdForFile(root.path);
337 protected File getFileForDocId(String docId, boolean visible) throws FileNotFoundException {
338 RootInfo root = getRootFromDocId(docId);
339 return buildFile(root, docId, visible);
342 private Pair<RootInfo, File> resolveDocId(String docId, boolean visible)
344 RootInfo root = getRootFromDocId(docId);
345 return Pair.create(root, buildFile(root, docId, visible));
348 private RootInfo getRootFromDocId(String docId) throws FileNotFoundException {
349 final int splitIndex = docId.indexOf(':', 1);
350 final String tag = docId.substring(0, splitIndex);
363 private File buildFile(RootInfo root, String docId, boolean visible)
365 final int splitIndex = docId.indexOf(':', 1);
366 final String path = docId.substring(splitIndex + 1);
377 throw new FileNotFoundException("Missing file for " + docId + " at " + target);
383 protected Uri buildNotificationUri(String docId) {
384 return DocumentsContract.buildChildDocumentsUri(AUTHORITY, docId);
396 row.add(Root.COLUMN_DOCUMENT_ID, root.docId);
436 final String docId = getDocIdForFile(doc);
446 if (isChildDocument(parentDocId, docId)) {
452 if (Objects.equals(docId, candidateDocId)) {
468 return DocumentsContract.buildDocumentUriUsingTree(treeUriPermission.getUri(), docId);
477 return DocumentsContract.buildDocumentUriUsingTree(treeUriPermission.getUri(), docId);
531 pw.printPair("docId", root.docId);
553 final String docId = getDocIdForFileMaybeCreate(new File(arg), true);
555 bundle.putString("DOC_ID", docId);