Home
last modified time | relevance | path

Searched refs:documentId (Results 1 – 25 of 44) sorted by relevance

12

/frameworks/support/documents-archive/src/android/support/provider/
DDocumentArchiveHelper.java113 public Cursor queryChildDocuments(String documentId, @Nullable String[] projection, in queryChildDocuments() argument
118 loader = obtainInstance(documentId); in queryChildDocuments()
119 return loader.get().queryChildDocuments(documentId, projection, sortOrder); in queryChildDocuments()
130 public String getDocumentType(String documentId) throws FileNotFoundException { in getDocumentType() argument
133 loader = obtainInstance(documentId); in getDocumentType()
134 return loader.get().getDocumentType(documentId); in getDocumentType()
146 public boolean isChildDocument(String parentDocumentId, String documentId) { in isChildDocument() argument
149 loader = obtainInstance(documentId); in isChildDocument()
150 return loader.get().isChildDocument(parentDocumentId, documentId); in isChildDocument()
163 public Cursor queryDocument(String documentId, @Nullable String[] projection) in queryDocument() argument
[all …]
DParsedDocumentId.java31 static public ParsedDocumentId fromDocumentId(String documentId, char idDelimiter) { in fromDocumentId() argument
32 final int delimiterPosition = documentId.indexOf(idDelimiter); in fromDocumentId()
34 return new ParsedDocumentId(documentId, null); in fromDocumentId()
36 return new ParsedDocumentId(documentId.substring(0, delimiterPosition), in fromDocumentId()
37 documentId.substring((delimiterPosition + 1))); in fromDocumentId()
41 static public boolean hasPath(String documentId, char idDelimiter) { in hasPath() argument
42 return documentId.indexOf(idDelimiter) != -1; in hasPath()
DDocumentArchive.java93 String documentId, in DocumentArchive() argument
98 mDocumentId = documentId; in DocumentArchive()
176 Context context, File file, String documentId, char idDelimiter, in createForLocalFile() argument
179 return new DocumentArchive(context, file, documentId, idDelimiter, notificationUri); in createForLocalFile()
200 Context context, ParcelFileDescriptor descriptor, String documentId, in createForParcelFileDescriptor() argument
225 return new DocumentArchive(context, snapshotFile, documentId, idDelimiter, in createForParcelFileDescriptor()
244 public Cursor queryChildDocuments(String documentId, @Nullable String[] projection, in queryChildDocuments() argument
247 documentId, mIdDelimiter); in queryChildDocuments()
273 public String getDocumentType(String documentId) throws FileNotFoundException { in getDocumentType() argument
275 documentId, mIdDelimiter); in getDocumentType()
[all …]
/frameworks/base/packages/Shell/src/com/android/shell/
DBugreportStorageProvider.java73 public Cursor queryDocument(String documentId, String[] projection) in queryDocument() argument
75 if (mArchiveHelper.isArchivedDocument(documentId)) { in queryDocument()
76 return mArchiveHelper.queryDocument(documentId, projection); in queryDocument()
80 if (DOC_ID_ROOT.equals(documentId)) { in queryDocument()
82 row.add(Document.COLUMN_DOCUMENT_ID, documentId); in queryDocument()
88 addFileRow(result, getFileForDocId(documentId)); in queryDocument()
117 String documentId, String mode, CancellationSignal signal) in openDocument() argument
119 if (mArchiveHelper.isArchivedDocument(documentId)) { in openDocument()
120 return mArchiveHelper.openDocument(documentId, mode, signal); in openDocument()
124 throw new FileNotFoundException("Failed to open: " + documentId + ", mode = " + mode); in openDocument()
[all …]
/frameworks/base/packages/DocumentsUI/tests/src/com/android/documentsui/
DStubProvider.java134 mStorage.put(rootInfo.document.documentId, rootInfo.document); in clearCacheAndBuildRoots()
158 row.add(Root.COLUMN_DOCUMENT_ID, info.document.documentId); in queryRoots()
165 public Cursor queryDocument(String documentId, String[] projection) in queryDocument() argument
169 final StubDocument file = mStorage.get(documentId); in queryDocument()
191 mStorage.put(document.documentId, document); in createDocument()
192 Log.d(TAG, "Created document " + document.documentId); in createDocument()
195 DocumentsContract.buildDocumentUri(mAuthority, document.documentId), in createDocument()
198 return document.documentId; in createDocument()
202 public void deleteDocument(String documentId) in deleteDocument() argument
204 final StubDocument document = mStorage.get(documentId); in deleteDocument()
[all …]
DDocumentsProviderHelper.java69 public RootInfo getRoot(String documentId) throws RemoteException { in getRoot() argument
75 if (documentId.equals(getCursorString(cursor, Root.COLUMN_ROOT_ID))) { in getRoot()
79 throw new IllegalArgumentException("Can't find matching root for id=" + documentId); in getRoot()
81 throw new RuntimeException("Can't load root for id=" + documentId , e); in getRoot()
106 return createDocument(root.documentId, mimeType, name); in createDocument()
109 public Uri createDocumentWithFlags(String documentId, String mimeType, String name, int flags, in createDocumentWithFlags() argument
114 in.putString(StubProvider.EXTRA_PARENT_ID, documentId); in createDocumentWithFlags()
165 assertChildCount(root.documentId, expected); in assertChildCount()
184 assertHasFile(root.documentId, name); in assertHasFile()
203 assertHasDirectory(root.documentId, name); in assertHasDirectory()
[all …]
/frameworks/support/documents-archive/tests/src/android/support/provider/
DStubProvider.java86 String documentId, String mode, CancellationSignal signal) in openDocument() argument
88 if (archiveHelper.isArchivedDocument(documentId)) { in openDocument()
89 return archiveHelper.openDocument(documentId, mode, signal); in openDocument()
108 public Cursor queryDocument(String documentId, String[] projection) in queryDocument() argument
110 if (archiveHelper.isArchivedDocument(documentId)) { in queryDocument()
111 return archiveHelper.queryDocument(documentId, projection); in queryDocument()
114 if (DOCUMENT_ID.equals(documentId)) { in queryDocument()
143 public String getDocumentType(String documentId) throws FileNotFoundException { in getDocumentType() argument
144 if (archiveHelper.isArchivedDocument(documentId)) { in getDocumentType()
145 return archiveHelper.getDocumentType(documentId); in getDocumentType()
[all …]
/frameworks/base/core/java/android/provider/
DDocumentsProvider.java191 public boolean isChildDocument(String parentDocumentId, String documentId) { in isChildDocument() argument
245 public String renameDocument(String documentId, String displayName) in renameDocument() argument
262 public void deleteDocument(String documentId) throws FileNotFoundException { in deleteDocument() argument
319 public void removeDocument(String documentId, String parentDocumentId) in removeDocument() argument
371 public abstract Cursor queryDocument(String documentId, String[] projection) in queryDocument() argument
467 public String getDocumentType(String documentId) throws FileNotFoundException { in getDocumentType() argument
468 final Cursor cursor = queryDocument(documentId, null); in getDocumentType()
503 String documentId, String mode, CancellationSignal signal) throws FileNotFoundException; in openDocument() argument
524 String documentId, Point sizeHint, CancellationSignal signal) in openDocumentThumbnail() argument
547 String documentId, String mimeTypeFilter, Bundle opts, CancellationSignal signal) in openTypedDocument() argument
[all …]
DDocumentsContract.java715 public static Uri buildTreeDocumentUri(String authority, String documentId) { in buildTreeDocumentUri() argument
717 .appendPath(PATH_TREE).appendPath(documentId).build(); in buildTreeDocumentUri()
728 public static Uri buildDocumentUri(String authority, String documentId) { in buildDocumentUri() argument
730 .authority(authority).appendPath(PATH_DOCUMENT).appendPath(documentId).build(); in buildDocumentUri()
756 public static Uri buildDocumentUriUsingTree(Uri treeUri, String documentId) { in buildDocumentUriUsingTree() argument
760 .appendPath(documentId).build(); in buildDocumentUriUsingTree()
764 public static Uri buildDocumentUriMaybeUsingTree(Uri baseUri, String documentId) { in buildDocumentUriMaybeUsingTree() argument
766 return buildDocumentUriUsingTree(baseUri, documentId); in buildDocumentUriMaybeUsingTree()
768 return buildDocumentUri(baseUri.getAuthority(), documentId); in buildDocumentUriMaybeUsingTree()
/frameworks/base/packages/DocumentsUI/tests/src/com/android/documentsui/services/
DAbstractCopyJobTest.java46 mDocs.assertFileContents(mDestRoot.documentId, "test1.txt", HAM_BYTES); in runCopyFilesTest()
47 mDocs.assertFileContents(mDestRoot.documentId, "test2.txt", FRUITY_BYTES); in runCopyFilesTest()
61 mDocs.assertFileContents(mDestRoot.documentId, "virtual.sth.pdf", FRUITY_BYTES); in runCopyVirtualTypedFileTest()
99 DocumentInfo dir1Copy = mDocs.findDocument(mDestRoot.documentId, "dir1"); in runCopyDirRecursivelyTest()
105 DocumentInfo dir2Copy = mDocs.findDocument(dir1Copy.documentId, "dir2"); in runCopyDirRecursivelyTest()
114 DocumentsContract.buildDocumentUri(AUTHORITY, mSrcRoot.documentId), in runNoCopyDirToSelfTest()
129 DocumentsContract.buildDocumentUri(AUTHORITY, mSrcRoot.documentId), in runNoCopyDirToDescendentTest()
161 Uri srcParent = DocumentsContract.buildDocumentUri(AUTHORITY, mSrcRoot.documentId); in createJob()
162 Uri destination = DocumentsContract.buildDocumentUri(AUTHORITY, mDestRoot.documentId); in createJob()
DDeleteJobTest.java41 DocumentsContract.buildDocumentUri(AUTHORITY, mSrcRoot.documentId)).run(); in testDeleteFiles()
51 Uri stack = DocumentsContract.buildDocumentUri(AUTHORITY, mSrcRoot.documentId); in createJob()
DCopyJobTest.java49 mSrcRoot.documentId, "virtual/mime-type", "tokyo.sth", in testCopy_BackendSideVirtualTypedFile_Fallback()
/frameworks/base/packages/MtpDocumentsProvider/src/com/android/mtp/
DMtpDatabase.java257 String[] getStorageDocumentIds(String documentId) in getStorageDocumentIds() argument
259 Preconditions.checkArgument(createIdentifier(documentId).mDocumentType == in getStorageDocumentIds()
270 documentId, in getStorageDocumentIds() argument
289 Cursor queryDocument(String documentId, String[] projection) { in queryDocument() argument
294 strings(documentId), in queryDocument()
328 Identifier getParentIdentifier(String documentId) throws FileNotFoundException { in getParentIdentifier() argument
333 strings(documentId), in getParentIdentifier()
342 throw new FileNotFoundException("Cannot find a row having ID = " + documentId); in getParentIdentifier()
399 void deleteDocument(String documentId) { in deleteDocument() argument
400 deleteDocumentsAndRootsRecursively(SELECTION_DOCUMENT_ID, strings(documentId)); in deleteDocument()
[all …]
DMtpDocumentsProvider.java188 public Cursor queryDocument(String documentId, String[] projection) in queryDocument() argument
193 return mDatabase.queryDocument(documentId, projection); in queryDocument()
236 String documentId, String mode, CancellationSignal signal) in openDocument() argument
239 Log.d(TAG, "openDocument: " + documentId); in openDocument()
241 final Identifier identifier = mDatabase.createIdentifier(documentId); in openDocument()
251 fileSize = getFileSize(documentId); in openDocument()
257 return mAppFuse.openFile(Integer.parseInt(documentId), modeFlag); in openDocument()
267 return mAppFuse.openFile(Integer.parseInt(documentId), modeFlag); in openDocument()
287 String documentId, in openDocumentThumbnail() argument
290 final Identifier identifier = mDatabase.createIdentifier(documentId); in openDocumentThumbnail()
[all …]
DRootScanner.java157 final String documentId = mDatabase.getDocumentIdForDevice(device.deviceId); in run() local
158 if (documentId == null) { in run()
162 mDatabase.getMapper().startAddingDocuments(documentId); in run()
164 documentId, device.eventsSupported, device.roots)) { in run()
167 if (mDatabase.getMapper().stopAddingDocuments(documentId)) { in run()
DIdentifier.java32 Identifier(int deviceId, int storageId, int objectHandle, String documentId, in Identifier() argument
37 mDocumentId = documentId; in Identifier()
DMtpFileWriter.java36 MtpFileWriter(Context context, String documentId) throws IOException { in MtpFileWriter() argument
37 mDocumentId = documentId; in MtpFileWriter()
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/model/
DDocumentInfo.java50 public String documentId; field in DocumentInfo
69 documentId = null; in reset()
88 documentId = DurableUtils.readNullableString(in); in read()
107 DurableUtils.writeNullableString(out, documentId); in write()
156 this.documentId = getCursorString(cursor, Document.COLUMN_DOCUMENT_ID); in updateFromCursor()
203 derivedUri = DocumentsContract.buildDocumentUri(authority, documentId); in deriveFields()
209 + "docId=" + documentId in toString()
DRootInfo.java89 public String documentId; field in RootInfo
110 documentId = null; in reset()
130 documentId = DurableUtils.readNullableString(in); in read()
149 DurableUtils.writeNullableString(out, documentId); in write()
186 root.documentId = getCursorString(cursor, Root.COLUMN_DOCUMENT_ID); in fromRootsCursor()
/frameworks/base/packages/ExternalStorageProvider/src/com/android/externalstorage/
DExternalStorageProvider.java531 public Cursor queryDocument(String documentId, String[] projection) in queryDocument() argument
533 if (mArchiveHelper.isArchivedDocument(documentId)) { in queryDocument()
534 return mArchiveHelper.queryDocument(documentId, projection); in queryDocument()
538 includeFile(result, documentId, null); in queryDocument()
587 public String getDocumentType(String documentId) throws FileNotFoundException { in getDocumentType() argument
588 if (mArchiveHelper.isArchivedDocument(documentId)) { in getDocumentType()
589 return mArchiveHelper.getDocumentType(documentId); in getDocumentType()
592 final File file = getFileForDocId(documentId); in getDocumentType()
598 String documentId, String mode, CancellationSignal signal) in openDocument() argument
600 if (mArchiveHelper.isArchivedDocument(documentId)) { in openDocument()
[all …]
/frameworks/base/packages/DocumentsUI/perf-tests/src/com/android/documentsui/
DStressProvider.java141 public Cursor queryDocument(String documentId, String[] projection) in queryDocument() argument
144 final StubDocument document = mDocuments.get(documentId); in queryDocument()
183 row.add(Root.COLUMN_DOCUMENT_ID, root.documentId); in includeRoot()
258 final String documentId; field in StressProvider.StubRoot
260 public StubRoot(String id, String documentId) { in StubRoot() argument
262 this.documentId = documentId; in StubRoot()
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/
DRecentsProvider.java108 public static Uri buildState(String authority, String rootId, String documentId) { in buildState() argument
110 .appendPath("state").appendPath(authority).appendPath(rootId).appendPath(documentId) in buildState()
188 final String documentId = uri.getPathSegments().get(3); in query() local
191 new String[] { authority, rootId, documentId }, null, null, sortOrder); in query()
220 final String documentId = uri.getPathSegments().get(3); in insert() local
224 key.put(StateColumns.DOCUMENT_ID, documentId); in insert()
230 new String[] { authority, rootId, documentId }); in insert()
DQuickViewIntentBuilder.java74 if (DEBUG) Log.d(TAG, "Preparing intent for doc:" + mDocument.documentId); in build()
155 if (id.equals(mDocument.documentId)) { in collectViewableUris()
/frameworks/support/v4/api21/android/support/v4/provider/
DDocumentsContractApi21.java57 final String documentId = c.getString(0); in listFiles() local
59 documentId); in listFiles()
/frameworks/base/packages/DocumentsUI/tests/src/com/android/documentsui/model/
DDocumentInfoTest.java57 doc.documentId = docId; in createDocInfo()

12