Lines Matching refs:docId

81     protected abstract File getFileForDocId(String docId, boolean visible)
86 protected abstract Uri buildNotificationUri(String docId);
92 protected void onDocIdChanged(String docId) {
109 public boolean isChildDocument(String parentDocId, String docId) {
112 final File doc = getFileForDocId(docId).getCanonicalFile();
116 "Failed to determine if " + docId + " is child of " + parentDocId + ": " + e);
180 public String createDocument(String docId, String mimeType, String displayName)
184 final File parent = getFileForDocId(docId);
233 public String renameDocument(String docId, String displayName) throws FileNotFoundException {
235 // docId, we're okay with letting the MIME type change.
238 final File before = getFileForDocId(docId);
245 onDocIdChanged(docId);
248 final File beforeVisibleFile = getFileForDocId(docId, true);
252 if (!TextUtils.equals(docId, afterDocId)) {
275 final String docId = getDocIdForFile(after);
277 onDocIdChanged(docId);
278 moveInMediaStore(visibleFileBefore, getFileForDocId(docId, true));
280 return docId;
315 public void deleteDocument(String docId) throws FileNotFoundException {
316 final File file = getFileForDocId(docId);
317 final File visibleFile = getFileForDocId(docId, true);
327 onDocIdChanged(docId);
462 protected RowBuilder includeFile(MatrixCursor result, String docId, File file)
464 if (docId == null) {
465 docId = getDocIdForFile(file);
467 file = getFileForDocId(docId);
497 row.add(Document.COLUMN_DOCUMENT_ID, docId);
538 protected final File getFileForDocId(String docId) throws FileNotFoundException {
539 return getFileForDocId(docId, false);
610 public DirectoryCursor(String[] columnNames, String docId, File file) {
613 final Uri notifyUri = buildNotificationUri(docId);