Home
last modified time | relevance | path

Searched refs:DocumentsContract (Results 1 – 25 of 36) sorted by relevance

12

/frameworks/base/core/java/android/provider/
DDocumentsProvider.java19 import static android.provider.DocumentsContract.METHOD_COPY_DOCUMENT;
20 import static android.provider.DocumentsContract.METHOD_CREATE_DOCUMENT;
21 import static android.provider.DocumentsContract.METHOD_CREATE_WEB_LINK_INTENT;
22 import static android.provider.DocumentsContract.METHOD_DELETE_DOCUMENT;
23 import static android.provider.DocumentsContract.METHOD_EJECT_ROOT;
24 import static android.provider.DocumentsContract.METHOD_FIND_DOCUMENT_PATH;
25 import static android.provider.DocumentsContract.METHOD_GET_DOCUMENT_METADATA;
26 import static android.provider.DocumentsContract.METHOD_IS_CHILD_DOCUMENT;
27 import static android.provider.DocumentsContract.METHOD_MOVE_DOCUMENT;
28 import static android.provider.DocumentsContract.METHOD_REMOVE_DOCUMENT;
[all …]
DDocumentsContract.java75 public final class DocumentsContract { class
87 private DocumentsContract() { in DocumentsContract() method in DocumentsContract
1322 in.putParcelable(DocumentsContract.EXTRA_URI, parentDocumentUri); in createDocument()
1328 return out.getParcelable(DocumentsContract.EXTRA_URI); in createDocument()
1353 in.putParcelable(DocumentsContract.EXTRA_URI, parentDocumentUri); in isChildDocument()
1354 in.putParcelable(DocumentsContract.EXTRA_TARGET_URI, childDocumentUri); in isChildDocument()
1361 if (!out.containsKey(DocumentsContract.EXTRA_RESULT)) { in isChildDocument()
1364 return out.getBoolean(DocumentsContract.EXTRA_RESULT); in isChildDocument()
1389 in.putParcelable(DocumentsContract.EXTRA_URI, documentUri); in renameDocument()
1394 final Uri outUri = out.getParcelable(DocumentsContract.EXTRA_URI); in renameDocument()
[all …]
DMetadataReader.java235 metadata.putBundle(DocumentsContract.METADATA_EXIF, exifData); in getMetadata()
236 metadataTypes.add(DocumentsContract.METADATA_EXIF); in getMetadata()
239 metadata.putStringArray(DocumentsContract.METADATA_TYPES, in getMetadata()
DMediaStore.java3471 in.putParcelable(DocumentsContract.EXTRA_URI, mediaUri); in getDocumentUri()
3472 in.putParcelableList(DocumentsContract.EXTRA_URI_PERMISSIONS, uriPermissions); in getDocumentUri()
3474 return out.getParcelable(DocumentsContract.EXTRA_URI); in getDocumentUri()
3501 in.putParcelable(DocumentsContract.EXTRA_URI, documentUri); in getMediaUri()
3502 in.putParcelableList(DocumentsContract.EXTRA_URI_PERMISSIONS, uriPermissions); in getMediaUri()
3504 return out.getParcelable(DocumentsContract.EXTRA_URI); in getMediaUri()
/frameworks/base/core/tests/coretests/src/android/provider/
DDocumentsProviderTest.java22 import android.provider.DocumentsContract.Path;
60 DocumentsContract.buildDocumentUri(TestDocumentsProvider.AUTHORITY, DOCUMENT_ID); in testFindDocumentPath_docUri()
63 final Path actual = DocumentsContract.findDocumentPath( in testFindDocumentPath_docUri()
77 final Path actual = DocumentsContract.findDocumentPath(mResolver, docUri); in testFindDocumentPath_treeUri()
89 DocumentsContract.findDocumentPath(mResolver, docUri); in testFindDocumentPath_treeUri_throwsOnNonChildDocument()
101 Path path = DocumentsContract.findDocumentPath(mResolver, docUri); in testFindDocumentPath_treeUri_erasesNonNullRootId()
114 Path path = DocumentsContract.findDocumentPath(mResolver, docUri); in testFindDocumentPath_treeUri_erasesDocsOutsideTree()
119 final Uri treeUri = DocumentsContract.buildTreeDocumentUri(authority, parentDocId); in buildTreeDocumentUri()
120 return DocumentsContract.buildDocumentUriUsingTree(treeUri, docId); in buildTreeDocumentUri()
DTestDocumentsProvider.java29 import android.provider.DocumentsContract.Path;
/frameworks/base/packages/MtpDocumentsProvider/tests/src/com/android/mtp/
DMtpDatabaseTest.java25 import android.provider.DocumentsContract;
26 import android.provider.DocumentsContract.Document;
27 import android.provider.DocumentsContract.Root;
34 import static android.provider.DocumentsContract.Document.*;
42 DocumentsContract.Document.COLUMN_DOCUMENT_ID,
46 DocumentsContract.Document.COLUMN_MIME_TYPE,
47 DocumentsContract.Document.COLUMN_DISPLAY_NAME,
48 DocumentsContract.Document.COLUMN_SUMMARY,
49 DocumentsContract.Document.COLUMN_LAST_MODIFIED,
50 DocumentsContract.Document.COLUMN_ICON,
[all …]
DMtpDocumentsProviderTest.java25 import android.provider.DocumentsContract.Document;
26 import android.provider.DocumentsContract.Path;
27 import android.provider.DocumentsContract.Root;
30 import android.provider.DocumentsContract;
47 DocumentsContract.buildRootsUri(MtpDocumentsProvider.AUTHORITY);
150 DocumentsContract.Root.COLUMN_TITLE, in testOpenDeviceOnDemand()
151 DocumentsContract.Root.COLUMN_DOCUMENT_ID in testOpenDeviceOnDemand()
330 DocumentsContract.Document.FLAG_SUPPORTS_DELETE | in testQueryDocument()
331 DocumentsContract.Document.FLAG_SUPPORTS_WRITE | in testQueryDocument()
332 DocumentsContract.Document.FLAG_SUPPORTS_THUMBNAIL | in testQueryDocument()
[all …]
DDocumentLoaderTest.java23 import android.provider.DocumentsContract;
24 import android.provider.DocumentsContract.Document;
71 final Uri uri = DocumentsContract.buildChildDocumentsUri( in testBasic()
142 assertFalse(cursor.getExtras().getBoolean(DocumentsContract.EXTRA_LOADING)); in testError_GetObjectInfo()
156 assertTrue(cursor.getExtras().getBoolean(DocumentsContract.EXTRA_LOADING)); in testCancelTask()
159 final Uri uri = DocumentsContract.buildChildDocumentsUri( in testCancelTask()
173 assertTrue(cursor.getExtras().getBoolean(DocumentsContract.EXTRA_LOADING)); in testCancelTask()
/frameworks/base/core/tests/utiltests/src/android/util/
DMetadataReaderTest.java21 import android.provider.DocumentsContract;
56 Bundle exif = mData.getBundle(DocumentsContract.METADATA_EXIF); in testGetMetadata()
66 assertEquals(mData.getStringArray(DocumentsContract.METADATA_TYPES)[0], in testGetMetadata()
67 DocumentsContract.METADATA_EXIF); in testGetMetadata()
75 mData.getBundle(DocumentsContract.METADATA_EXIF).getString(tags[0])); in testGetMetadata_JpegOneTag()
84 assertEquals(mData.getStringArray(DocumentsContract.METADATA_TYPES).length, 0); in testGetMetadata_JpegNoResults()
/frameworks/base/packages/ExternalStorageProvider/src/com/android/externalstorage/
DExternalStorageProvider.java36 import android.provider.DocumentsContract;
37 import android.provider.DocumentsContract.Document;
38 import android.provider.DocumentsContract.Path;
39 import android.provider.DocumentsContract.Root;
70 public static final String AUTHORITY = DocumentsContract.EXTERNAL_STORAGE_PROVIDER_AUTHORITY;
100 DocumentsContract.EXTERNAL_STORAGE_PRIMARY_EMULATED_ROOT_ID;
421 return DocumentsContract.buildChildDocumentsUri(AUTHORITY, docId); in buildNotificationUri()
495 if (DocumentsContract.isTreeUri(uri)) { in getDocumentUri()
496 final String parentDocId = DocumentsContract.getTreeDocumentId(uri); in getDocumentUri()
502 final String candidateDocId = DocumentsContract.getDocumentId(uri); in getDocumentUri()
[all …]
DTestDocumentsProvider.java39 import android.provider.DocumentsContract;
40 import android.provider.DocumentsContract.Document;
41 import android.provider.DocumentsContract.Root;
125 final Uri uri = DocumentsContract.buildRootsUri(mAuthority); in queryRoots()
233 final Uri notifyUri = DocumentsContract.buildDocumentUri( in queryChildDocuments()
277 result.extras.putString(DocumentsContract.EXTRA_INFO, in queryChildDocuments()
280 result.extras.putString(DocumentsContract.EXTRA_ERROR, in queryChildDocuments()
284 result.extras.putBoolean(DocumentsContract.EXTRA_LOADING, true); in queryChildDocuments()
/frameworks/base/packages/MtpDocumentsProvider/src/com/android/mtp/
DReceiverActivity.java25 import android.provider.DocumentsContract;
46 final Uri uri = DocumentsContract.buildRootUri( in onCreate()
50 intent.setDataAndType(uri, DocumentsContract.Root.MIME_TYPE_ITEM); in onCreate()
DRootScanner.java22 import android.provider.DocumentsContract;
74 final Uri uri = DocumentsContract.buildRootsUri(MtpDocumentsProvider.AUTHORITY); in notifyChange()
DMtpDatabaseConstants.java21 import android.provider.DocumentsContract.Document;
22 import android.provider.DocumentsContract.Root;
DMtpDocumentsProvider.java41 import android.provider.DocumentsContract;
42 import android.provider.DocumentsContract.Document;
43 import android.provider.DocumentsContract.Path;
44 import android.provider.DocumentsContract.Root;
175 mResolver, DocumentsContract.buildRootsUri(MtpDocumentsProvider.AUTHORITY)); in queryRoots()
668 DocumentsContract.buildChildDocumentsUri(AUTHORITY, parentDocumentId), in notifyChildDocumentsChange()
740 bundle.putString(DocumentsContract.EXTRA_ERROR, mResources.getString(stringResId)); in createErrorCursor()
DDocumentLoader.java28 import android.provider.DocumentsContract;
298 extras.putBoolean(DocumentsContract.EXTRA_LOADING, true); in createCursor()
428 return DocumentsContract.buildChildDocumentsUri( in createUri()
DMtpDatabase.java36 import android.provider.DocumentsContract;
38 import android.provider.DocumentsContract.Document;
39 import android.provider.DocumentsContract.Root;
659 String documentId = DocumentsContract.getDocumentId(uri); in cleanDatabase()
851 return DocumentsContract.Document.MIME_TYPE_DIR; in getMimeType()
DMapper.java25 import android.provider.DocumentsContract.Document;
26 import android.provider.DocumentsContract.Root;
/frameworks/base/packages/Shell/src/com/android/shell/
DBugreportStorageProvider.java27 import android.provider.DocumentsContract;
28 import android.provider.DocumentsContract.Document;
29 import android.provider.DocumentsContract.Root;
77 extras.putCharSequence(DocumentsContract.EXTRA_INFO, in queryChildDocuments()
108 return DocumentsContract.buildChildDocumentsUri(AUTHORITY, docId); in buildNotificationUri()
/frameworks/base/core/java/android/os/storage/
DStorageVolume.java31 import android.provider.DocumentsContract;
380 ? DocumentsContract.EXTERNAL_STORAGE_PRIMARY_EMULATED_ROOT_ID in createOpenDocumentTreeIntent()
382 final Uri rootUri = DocumentsContract.buildRootUri( in createOpenDocumentTreeIntent()
383 DocumentsContract.EXTERNAL_STORAGE_PROVIDER_AUTHORITY, rootId); in createOpenDocumentTreeIntent()
385 .putExtra(DocumentsContract.EXTRA_INITIAL_URI, rootUri) in createOpenDocumentTreeIntent()
386 .putExtra(DocumentsContract.EXTRA_SHOW_ADVANCED, true); in createOpenDocumentTreeIntent()
DVolumeInfo.java31 import android.provider.DocumentsContract;
458 uri = DocumentsContract.buildRootUri(DOCUMENT_AUTHORITY, fsUuid); in buildBrowseIntentForUser()
460 uri = DocumentsContract.buildRootUri(DOCUMENT_AUTHORITY, in buildBrowseIntentForUser()
468 intent.setDataAndType(uri, DocumentsContract.Root.MIME_TYPE_ITEM); in buildBrowseIntentForUser()
472 intent.putExtra(DocumentsContract.EXTRA_SHOW_ADVANCED, isPrimary()); in buildBrowseIntentForUser()
/frameworks/base/core/java/com/android/internal/content/
DFileSystemProvider.java36 import android.provider.DocumentsContract;
37 import android.provider.DocumentsContract.Document;
80 DocumentsContract.QUERY_ARG_DISPLAY_NAME,
81 DocumentsContract.QUERY_ARG_FILE_SIZE_OVER,
82 DocumentsContract.QUERY_ARG_LAST_MODIFIED_AFTER,
83 DocumentsContract.QUERY_ARG_MIME_TYPES);
179 res.putLong(DocumentsContract.METADATA_TREE_COUNT, treeCount.value); in getDocumentMetadata()
180 res.putLong(DocumentsContract.METADATA_TREE_SIZE, treeSize.value); in getDocumentMetadata()
435 final String[] handledQueryArgs = DocumentsContract.getHandledQueryArguments(queryArgs); in querySearchDocuments()
505 fileMimeType = DocumentsContract.Document.MIME_TYPE_DIR; in matchSearchQueryArguments()
[all …]
/frameworks/base/core/tests/coretests/src/android/os/
DFileUtilsTest.java53 import android.provider.DocumentsContract.Document;
/frameworks/base/core/java/android/os/
DFileUtils.java45 import android.provider.DocumentsContract.Document;

12