/frameworks/support/v4/kitkat/android/support/v4/provider/ |
D | DocumentsContractApi19.java | 25 import android.provider.DocumentsContract; 33 return DocumentsContract.isDocumentUri(context, self); in isDocumentUri() 37 return queryForString(context, self, DocumentsContract.Document.COLUMN_DISPLAY_NAME, null); in getName() 41 return queryForString(context, self, DocumentsContract.Document.COLUMN_MIME_TYPE, null); in getRawType() 46 if (DocumentsContract.Document.MIME_TYPE_DIR.equals(rawType)) { in getType() 54 return DocumentsContract.Document.MIME_TYPE_DIR.equals(getRawType(context, self)); in isDirectory() 59 if (DocumentsContract.Document.MIME_TYPE_DIR.equals(type) || TextUtils.isEmpty(type)) { in isFile() 67 return queryForLong(context, self, DocumentsContract.Document.COLUMN_LAST_MODIFIED, 0); in lastModified() 71 return queryForLong(context, self, DocumentsContract.Document.COLUMN_SIZE, 0); in length() 97 final int flags = queryForInt(context, self, DocumentsContract.Document.COLUMN_FLAGS, 0); in canWrite() [all …]
|
/frameworks/support/v4/api21/android/support/v4/provider/ |
D | DocumentsContractApi21.java | 23 import android.provider.DocumentsContract; 33 return DocumentsContract.createDocument(context.getContentResolver(), self, mimeType, in createFile() 38 return createFile(context, self, DocumentsContract.Document.MIME_TYPE_DIR, displayName); in createDirectory() 42 return DocumentsContract.buildDocumentUriUsingTree(treeUri, in prepareTreeUri() 43 DocumentsContract.getTreeDocumentId(treeUri)); in prepareTreeUri() 48 final Uri childrenUri = DocumentsContract.buildChildDocumentsUriUsingTree(self, in listFiles() 49 DocumentsContract.getDocumentId(self)); in listFiles() 55 DocumentsContract.Document.COLUMN_DOCUMENT_ID }, null, null, null); in listFiles() 58 final Uri documentUri = DocumentsContract.buildDocumentUriUsingTree(self, in listFiles() 72 return DocumentsContract.renameDocument(context.getContentResolver(), self, displayName); in renameTo()
|
/frameworks/base/core/java/android/provider/ |
D | DocumentsProvider.java | 19 import static android.provider.DocumentsContract.METHOD_COPY_DOCUMENT; 20 import static android.provider.DocumentsContract.METHOD_CREATE_DOCUMENT; 21 import static android.provider.DocumentsContract.METHOD_DELETE_DOCUMENT; 22 import static android.provider.DocumentsContract.METHOD_IS_CHILD_DOCUMENT; 23 import static android.provider.DocumentsContract.METHOD_MOVE_DOCUMENT; 24 import static android.provider.DocumentsContract.METHOD_REMOVE_DOCUMENT; 25 import static android.provider.DocumentsContract.METHOD_RENAME_DOCUMENT; 26 import static android.provider.DocumentsContract.buildDocumentUri; 27 import static android.provider.DocumentsContract.buildDocumentUriMaybeUsingTree; 28 import static android.provider.DocumentsContract.buildTreeDocumentUri; [all …]
|
D | DocumentsContract.java | 71 public final class DocumentsContract { class 83 private DocumentsContract() { in DocumentsContract() method in DocumentsContract 692 return DocumentsContract.buildRootUri("com.android.externalstorage.documents", "home"); in buildHomeUri() 1079 in.putParcelable(DocumentsContract.EXTRA_URI, parentDocumentUri); in createDocument() 1084 return out.getParcelable(DocumentsContract.EXTRA_URI); in createDocument() 1092 in.putParcelable(DocumentsContract.EXTRA_URI, parentDocumentUri); in isChildDocument() 1093 in.putParcelable(DocumentsContract.EXTRA_TARGET_URI, childDocumentUri); in isChildDocument() 1099 if (!out.containsKey(DocumentsContract.EXTRA_RESULT)) { in isChildDocument() 1102 return out.getBoolean(DocumentsContract.EXTRA_RESULT); in isChildDocument() 1136 in.putParcelable(DocumentsContract.EXTRA_URI, documentUri); in renameDocument() [all …]
|
/frameworks/support/documents-archive/tests/src/android/support/provider/ |
D | IntegrationTest.java | 25 import android.provider.DocumentsContract.Document; 26 import android.provider.DocumentsContract; 67 DocumentsContract.buildChildDocumentsUri( in testQueryForChildren() 76 DocumentsContract.buildDocumentUri( in testQueryForDocument_Archive() 88 DocumentsContract.buildDocumentUri( in testQueryForDocument_ArchiveDescendant() 112 DocumentsContract.buildChildDocumentsUri( in testQueryForDocument_ArchiveDescendant() 125 DocumentsContract.buildDocumentUri( in testGetType() 131 DocumentsContract.buildDocumentUri( in testOpenFileDescriptor()
|
/frameworks/base/packages/MtpDocumentsProvider/tests/src/com/android/mtp/ |
D | MtpDatabaseTest.java | 25 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 …]
|
D | MtpDocumentsProviderTest.java | 26 import android.provider.DocumentsContract.Document; 27 import android.provider.DocumentsContract.Root; 30 import android.provider.DocumentsContract; 45 DocumentsContract.buildRootsUri(MtpDocumentsProvider.AUTHORITY); 148 DocumentsContract.Root.COLUMN_TITLE, in testOpenDeviceOnDemand() 149 DocumentsContract.Root.COLUMN_DOCUMENT_ID in testOpenDeviceOnDemand() 319 DocumentsContract.Document.FLAG_SUPPORTS_DELETE | in testQueryDocument() 320 DocumentsContract.Document.FLAG_SUPPORTS_WRITE | in testQueryDocument() 321 DocumentsContract.Document.FLAG_SUPPORTS_THUMBNAIL, in testQueryDocument() 350 assertEquals(DocumentsContract.Document.MIME_TYPE_DIR, cursor.getString(1)); in testQueryDocument_directory() [all …]
|
D | DocumentLoaderTest.java | 23 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/packages/MtpDocumentsProvider/src/com/android/mtp/ |
D | ReceiverActivity.java | 25 import android.provider.DocumentsContract; 46 final Uri uri = DocumentsContract.buildRootUri( in onCreate() 49 final Intent intent = new Intent(DocumentsContract.ACTION_BROWSE); in onCreate() 52 intent.putExtra(DocumentsContract.EXTRA_FANCY_FEATURES, true); in onCreate()
|
/frameworks/base/packages/DocumentsUI/tests/src/com/android/documentsui/services/ |
D | AbstractCopyJobTest.java | 22 import android.provider.DocumentsContract; 114 DocumentsContract.buildDocumentUri(AUTHORITY, mSrcRoot.documentId), in runNoCopyDirToSelfTest() 129 DocumentsContract.buildDocumentUri(AUTHORITY, mSrcRoot.documentId), in runNoCopyDirToDescendentTest() 143 String testId = DocumentsContract.getDocumentId(testFile); in runCopyFileWithReadErrorsTest() 161 Uri srcParent = DocumentsContract.buildDocumentUri(AUTHORITY, mSrcRoot.documentId); in createJob() 162 Uri destination = DocumentsContract.buildDocumentUri(AUTHORITY, mDestRoot.documentId); in createJob()
|
D | DeleteJobTest.java | 22 import android.provider.DocumentsContract; 41 DocumentsContract.buildDocumentUri(AUTHORITY, mSrcRoot.documentId)).run(); in testDeleteFiles() 51 Uri stack = DocumentsContract.buildDocumentUri(AUTHORITY, mSrcRoot.documentId); in createJob()
|
D | TestContentResolver.java | 22 import android.provider.DocumentsContract; 79 if (DocumentsContract.isDocumentUri(mContext, uri)) { in notifyChange()
|
/frameworks/base/packages/DocumentsUI/tests/src/com/android/documentsui/ |
D | StubProvider.java | 32 import android.provider.DocumentsContract; 33 import android.provider.DocumentsContract.Document; 34 import android.provider.DocumentsContract.Root; 195 DocumentsContract.buildDocumentUri(mAuthority, document.documentId), in createDocument() 215 DocumentsContract.buildDocumentUri(mAuthority, document.documentId), in deleteDocument() 235 DocumentsContract.buildChildDocumentsUri(mAuthority, parentDocumentId)); in queryChildDocuments() 302 DocumentsContract.buildDocumentUri(mAuthority, oldDoc.documentId), null, false); in renameDocument() 307 DocumentsContract.buildDocumentUri(mAuthority, newDoc.documentId), null, false); in renameDocument() 345 simulateReadErrorsForFile(DocumentsContract.getDocumentId(uri)); in simulateReadErrorsForFile() 388 final StubDocument document = mStorage.get(DocumentsContract.getDocumentId(uri)); in getStreamTypes() [all …]
|
D | DocumentsProviderHelper.java | 19 import static android.provider.DocumentsContract.buildChildDocumentsUri; 20 import static android.provider.DocumentsContract.buildDocumentUri; 21 import static android.provider.DocumentsContract.buildRootsUri; 36 import android.provider.DocumentsContract; 37 import android.provider.DocumentsContract.Document; 38 import android.provider.DocumentsContract.Root; 92 Uri uri = DocumentsContract.createDocument(mClient, parentUri, mimeType, name); in createDocument() 120 Uri uri = out.getParcelable(DocumentsContract.EXTRA_URI); in createDocumentWithFlags() 256 String id = DocumentsContract.getDocumentId(parentUri); in listChildren() 303 return DocumentsContract.buildDocumentUri(mAuthority, documentId); in createVirtualFile()
|
/frameworks/base/packages/DocumentsUI/tests/src/com/android/documentsui/dirlist/ |
D | TestContentProvider.java | 21 import android.provider.DocumentsContract; 38 if (DocumentsContract.METHOD_DELETE_DOCUMENT.equals(method)) { in call() 39 final Uri documentUri = extras.getParcelable(DocumentsContract.EXTRA_URI); in call()
|
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/ |
D | LauncherActivity.java | 28 import android.provider.DocumentsContract; 51 DocumentsContract.EXTRA_SHOW_FILESIZE, 52 DocumentsContract.EXTRA_SHOW_ADVANCED, 53 DocumentsContract.EXTRA_FANCY_FEATURES,
|
D | LoadRootTask.java | 20 import android.provider.DocumentsContract; 37 String rootId = DocumentsContract.getRootId(mRootUri); in run()
|
D | BaseActivity.java | 42 import android.provider.DocumentsContract; 43 import android.provider.DocumentsContract.Root; 210 state.forceSize = intent.getBooleanExtra(DocumentsContract.EXTRA_SHOW_FILESIZE, false); in getState() 319 final Intent intent = new Intent(DocumentsContract.ACTION_DOCUMENT_ROOT_SETTINGS); in onOptionsItemSelected() 320 intent.setDataAndType(root.getUri(), DocumentsContract.Root.MIME_TYPE_ITEM); in onOptionsItemSelected() 426 if (getIntent().getBooleanExtra(DocumentsContract.EXTRA_EXCLUDE_SELF, false)) { in getExcludedAuthorities() 453 … final String extra = getIntent().getStringExtra(DocumentsContract.EXTRA_PACKAGE_NAME); in getCallingPackageMaybeExtra() 477 ? DocumentsContract.buildHomeUri() in getDefaultRoot() 478 : DocumentsContract.buildRootUri( in getDefaultRoot() 718 final Uri uri = DocumentsContract.buildDocumentUri( in getRootDocumentBlocking()
|
D | Shared.java | 24 import android.provider.DocumentsContract; 205 || intent.getBooleanExtra(DocumentsContract.EXTRA_SHOW_ADVANCED, false); in shouldShowDeviceRoot() 214 || intent.getBooleanExtra(DocumentsContract.EXTRA_FANCY_FEATURES, false); in shouldShowFancyFeatures()
|
/frameworks/base/packages/ExternalStorageProvider/src/com/android/externalstorage/ |
D | TestDocumentsProvider.java | 39 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/DocumentsUI/src/com/android/documentsui/services/ |
D | MoveJob.java | 26 import android.provider.DocumentsContract; 27 import android.provider.DocumentsContract.Document; 94 if (DocumentsContract.moveDocument(getClient(src), src.derivedUri, in processDocument()
|
D | CopyJob.java | 20 import static android.provider.DocumentsContract.buildChildDocumentsUri; 21 import static android.provider.DocumentsContract.buildDocumentUri; 22 import static android.provider.DocumentsContract.getDocumentId; 23 import static android.provider.DocumentsContract.isChildDocument; 46 import android.provider.DocumentsContract; 47 import android.provider.DocumentsContract.Document; 297 if (DocumentsContract.copyDocument(getClient(src), src.derivedUri, in processDocument() 349 dstUri = DocumentsContract.createDocument( in byteCopyDocument()
|
/frameworks/base/packages/DocumentsUI/perf-tests/src/com/android/documentsui/ |
D | StressProvider.java | 29 import android.provider.DocumentsContract.Document; 30 import android.provider.DocumentsContract.Root; 31 import android.provider.DocumentsContract; 219 DocumentsContract.Document.MIME_TYPE_DIR, createRandomId(index), 0, in createDirectory() 224 return new StubDocument(DocumentsContract.Document.MIME_TYPE_DIR, id, 0, 0, -1); in createDirectory()
|
/frameworks/base/docs/html-intl/intl/zh-cn/guide/topics/providers/ |
D | document-provider.jd | 43 <li>{@link android.provider.DocumentsContract}</li> 131 {@link android.provider.DocumentsContract.Root#COLUMN_ROOT_ID},并且指向表示该根目录下内容的文档(目录)。根目录采用动态设计,以支持多个… 142 {@link android.provider.DocumentsContract.Document#COLUMN_DOCUMENT_ID} 引用各个文件和目录来显示它们。文档 150 {@link android.provider.DocumentsContract.Document#MIME_TYPE_DIR} MIME 类型);</li> 153 …DocumentsContract.Document#COLUMN_FLAGS COLUMN_FLAGS} 所述。例如,{@link android.provider.DocumentsContr… 155 {@link android.provider.DocumentsContract.Document#FLAG_SUPPORTS_THUMBNAIL}。多个目录中可以包含相同的 156 {@link android.provider.DocumentsContract.Document#COLUMN_DOCUMENT_ID}。 451 {@link android.provider.DocumentsContract.Document#COLUMN_FLAGS Document.COLUMN_FLAGS} 453 {@link android.provider.DocumentsContract.Document#FLAG_SUPPORTS_DELETE SUPPORTS_DELETE},便可以删除该文档。例… 456 DocumentsContract.deleteDocument(getContentResolver(), uri); [all …]
|
/frameworks/base/docs/html-intl/intl/ru/guide/topics/providers/ |
D | document-provider.jd | 43 <li>{@link android.provider.DocumentsContract}</li> 132 Каждый корневой каталог имеет уникальный идентификатор {@link android.provider.DocumentsContract.Ro… 143 идентификатора {@link android.provider.DocumentsContract.Document#COLUMN_DOCUMENT_ID}. 150 MIME-типом {@link android.provider.DocumentsContract.Document#MIME_TYPE_DIR}).</li> 153 {@link android.provider.DocumentsContract.Document#COLUMN_FLAGS COLUMN_FLAGS}, 154 такими как{@link android.provider.DocumentsContract.Document#FLAG_SUPPORTS_WRITE}, 155 {@link android.provider.DocumentsContract.Document#FLAG_SUPPORTS_DELETE} и 156 {@link android.provider.DocumentsContract.Document#FLAG_SUPPORTS_THUMBNAIL}. 157 Документ с одним и тем же идентификатором {@link android.provider.DocumentsContract.Document#COLUMN… 450 {@link android.provider.DocumentsContract.Document#COLUMN_FLAGS Document.COLUMN_FLAGS} [all …]
|