Home
last modified time | relevance | path

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

12

/frameworks/support/v4/kitkat/android/support/v4/provider/
DDocumentsContractApi19.java25 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/
DDocumentsContractApi21.java23 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/
DDocumentsProvider.java19 import static android.provider.DocumentsContract.METHOD_CREATE_DOCUMENT;
20 import static android.provider.DocumentsContract.METHOD_DELETE_DOCUMENT;
21 import static android.provider.DocumentsContract.METHOD_RENAME_DOCUMENT;
22 import static android.provider.DocumentsContract.buildDocumentUri;
23 import static android.provider.DocumentsContract.buildDocumentUriMaybeUsingTree;
24 import static android.provider.DocumentsContract.buildTreeDocumentUri;
25 import static android.provider.DocumentsContract.getDocumentId;
26 import static android.provider.DocumentsContract.getRootId;
27 import static android.provider.DocumentsContract.getSearchDocumentsQuery;
28 import static android.provider.DocumentsContract.getTreeDocumentId;
[all …]
DDocumentsContract.java68 public final class DocumentsContract { class
80 private DocumentsContract() { in DocumentsContract() method in DocumentsContract
942 in.putParcelable(DocumentsContract.EXTRA_URI, parentDocumentUri); in createDocument()
947 return out.getParcelable(DocumentsContract.EXTRA_URI); in createDocument()
981 in.putParcelable(DocumentsContract.EXTRA_URI, documentUri); in renameDocument()
985 final Uri outUri = out.getParcelable(DocumentsContract.EXTRA_URI); in renameDocument()
1013 in.putParcelable(DocumentsContract.EXTRA_URI, documentUri); in deleteDocument()
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/
DCopyService.java37 import android.provider.DocumentsContract;
38 import android.provider.DocumentsContract.Document;
267 final Uri queryUri = DocumentsContract.buildChildDocumentsUri(authority, in calculateFileSizesHelper()
268 DocumentsContract.getDocumentId(uri)); in calculateFileSizesHelper()
283 final Uri subdirUri = DocumentsContract.buildDocumentUri(authority, in calculateFileSizesHelper()
381 final Uri dstUri = DocumentsContract.createDocument(mDstClient, dstDirInfo.derivedUri, in copy()
414 final Uri queryUri = DocumentsContract.buildChildDocumentsUri(srcDirUri.getAuthority(), in copyDirectoryHelper()
415 DocumentsContract.getDocumentId(srcDirUri)); in copyDirectoryHelper()
422 final Uri dstUri = DocumentsContract.createDocument(mDstClient, dstDirUri, in copyDirectoryHelper()
424 final Uri childUri = DocumentsContract.buildDocumentUri(srcDirUri.getAuthority(), in copyDirectoryHelper()
[all …]
DRecentLoader.java31 import android.provider.DocumentsContract;
32 import android.provider.DocumentsContract.Document;
33 import android.provider.DocumentsContract.Root;
130 final Uri uri = DocumentsContract.buildRecentDocumentsUri(authority, rootId); in runInternal()
234 extras.putBoolean(DocumentsContract.EXTRA_LOADING, true); in loadInBackground()
DCreateDirectoryFragment.java33 import android.provider.DocumentsContract;
34 import android.provider.DocumentsContract.Document;
113 final Uri childUri = DocumentsContract.createDocument( in doInBackground()
DRootsCache.java35 import android.provider.DocumentsContract;
36 import android.provider.DocumentsContract.Root;
195 final Intent intent = new Intent(DocumentsContract.PROVIDER_INTERFACE); in doInBackground()
249 final Uri rootsUri = DocumentsContract.buildRootsUri(authority); in loadRootsForAuthority()
255 final Uri rootsUri = DocumentsContract.buildRootsUri(authority); in loadRootsForAuthority()
DRecentsProvider.java33 import android.provider.DocumentsContract;
34 import android.provider.DocumentsContract.Document;
35 import android.provider.DocumentsContract.Root;
258 final Intent intent = new Intent(DocumentsContract.PROVIDER_INTERFACE); in call()
277 final Intent intent = new Intent(DocumentsContract.PROVIDER_INTERFACE); in call()
DBaseActivity.java45 import android.provider.DocumentsContract;
46 import android.provider.DocumentsContract.Root;
228 final Intent intent = new Intent(DocumentsContract.ACTION_DOCUMENT_ROOT_SETTINGS); in onOptionsItemSelected()
229 intent.setDataAndType(DocumentsContract.buildRootUri(root.authority, root.rootId), in onOptionsItemSelected()
230 DocumentsContract.Root.MIME_TYPE_ITEM); in onOptionsItemSelected()
257 if (getIntent().getBooleanExtra(DocumentsContract.EXTRA_EXCLUDE_SELF, false)) { in getExcludedAuthorities()
279 … final String extra = getIntent().getStringExtra(DocumentsContract.EXTRA_PACKAGE_NAME); in getCallingPackageMaybeExtra()
515 final Uri uri = DocumentsContract.buildDocumentUri( in doInBackground()
DDocumentsActivity.java53 import android.provider.DocumentsContract;
54 import android.provider.DocumentsContract.Root;
226 } else if (DocumentsContract.ACTION_MANAGE_ROOT.equals(action)) { in buildDefaultState()
228 } else if (DocumentsContract.ACTION_BROWSE_DOCUMENT_ROOT.equals(action)) { in buildDefaultState()
249 state.forceAdvanced = intent.getBooleanExtra(DocumentsContract.EXTRA_SHOW_ADVANCED, false); in buildDefaultState()
277 final String rootId = DocumentsContract.getRootId(mRootUri); in doInBackground()
399 final String prompt = getIntent().getStringExtra(DocumentsContract.EXTRA_PROMPT); in updateActionBar()
624 final Intent manage = new Intent(DocumentsContract.ACTION_MANAGE_DOCUMENT); in onDocumentPicked()
670 result = DocumentsContract.buildTreeDocumentUri( in onPickRequested()
811 childUri = DocumentsContract.createDocument( in doInBackground()
DDirectoryLoader.java38 import android.provider.DocumentsContract;
39 import android.provider.DocumentsContract.Document;
111 final Uri docUri = DocumentsContract.buildDocumentUri( in loadInBackground()
DDirectoryFragment.java57 import android.provider.DocumentsContract;
58 import android.provider.DocumentsContract.Document;
279 contentsUri = DocumentsContract.buildChildDocumentsUri( in onActivityCreated()
282 contentsUri = DocumentsContract.setManageMode(contentsUri); in onActivityCreated()
287 contentsUri = DocumentsContract.buildSearchDocumentsUri( in onActivityCreated()
290 contentsUri = DocumentsContract.setManageMode(contentsUri); in onActivityCreated()
670 DocumentsContract.deleteDocument(client, doc.derivedUri); in onDeleteDocuments()
796 final String info = extras.getString(DocumentsContract.EXTRA_INFO); in swapResult()
800 final String error = extras.getString(DocumentsContract.EXTRA_ERROR); in swapResult()
804 if (extras.getBoolean(DocumentsContract.EXTRA_LOADING, false)) { in swapResult()
[all …]
DFilteringCursorWrapper.java26 import android.provider.DocumentsContract.Document;
/frameworks/base/packages/DocumentsUI/tests/src/com/android/documentsui/
DStubProvider.java32 import android.provider.DocumentsContract;
33 import android.provider.DocumentsContract.Document;
34 import android.provider.DocumentsContract.Root;
181 DocumentsContract.buildDocumentUri(mAuthority, document.documentId), in createDocument()
199 DocumentsContract.buildDocumentUri(mAuthority, document.documentId), in deleteDocument()
213 DocumentsContract.buildChildDocumentsUri(mAuthority, parentDocumentId)); in queryChildDocuments()
317 DocumentsContract.buildDocumentUri(mAuthority, document.documentId), in startWrite()
356 DocumentsContract.buildChildDocumentsUri(mAuthority, parentId), null, false); in notifyParentChanged()
358 getContext().getContentResolver().notifyChange(DocumentsContract.buildRootsUri(mAuthority), in notifyParentChanged()
401 DocumentsContract.buildRootsUri(mAuthority), in setSize()
[all …]
DCopyTest.java30 import android.provider.DocumentsContract;
99 if (DocumentsContract.isDocumentUri(mContext, uri)) { in notifyChange()
133 Uri queryUri = DocumentsContract.buildRootsUri(AUTHORITY); in setUp()
207 Uri testDir = mStorage.createFile(SRC, srcPath, DocumentsContract.Document.MIME_TYPE_DIR, in testCopyEmptyDir()
251 final Uri dst = DocumentsContract.buildDocumentUri(AUTHORITY, mRoots.get(1).documentId); in copyToDestination()
265 final Uri queryUri = DocumentsContract.buildChildDocumentsUri(AUTHORITY, in assertDstFileCountEquals()
/frameworks/base/packages/ExternalStorageProvider/src/com/android/externalstorage/
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()
DExternalStorageProvider.java37 import android.provider.DocumentsContract;
38 import android.provider.DocumentsContract.Document;
39 import android.provider.DocumentsContract.Root;
477 return DocumentsContract.openImageThumbnail(file);
589 final Uri notifyUri = DocumentsContract.buildChildDocumentsUri(
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/model/
DDocumentInfo.java25 import android.provider.DocumentsContract;
26 import android.provider.DocumentsContract.Document;
27 import android.provider.DocumentsContract.Root;
209 derivedUri = DocumentsContract.buildDocumentUri(authority, documentId); in deriveFields()
/frameworks/base/core/java/android/os/storage/
DVolumeInfo.java29 import android.provider.DocumentsContract;
430 uri = DocumentsContract.buildRootUri(DOCUMENT_AUTHORITY, fsUuid); in buildBrowseIntent()
432 uri = DocumentsContract.buildRootUri(DOCUMENT_AUTHORITY, in buildBrowseIntent()
438 final Intent intent = new Intent(DocumentsContract.ACTION_BROWSE_DOCUMENT_ROOT); in buildBrowseIntent()
/frameworks/base/docs/html/guide/topics/providers/
Ddocument-provider.jd43 <li>{@link android.provider.DocumentsContract}</li>
132 Each root has a unique {@link android.provider.DocumentsContract.Root#COLUMN_ROOT_ID},
143 {@link android.provider.DocumentsContract.Document#COLUMN_DOCUMENT_ID}.
150 {@link android.provider.DocumentsContract.Document#MIME_TYPE_DIR} MIME type).</li>
153 {@link android.provider.DocumentsContract.Document#COLUMN_FLAGS COLUMN_FLAGS}.
154 For example, {@link android.provider.DocumentsContract.Document#FLAG_SUPPORTS_WRITE},
155 {@link android.provider.DocumentsContract.Document#FLAG_SUPPORTS_DELETE}, and
156 {@link android.provider.DocumentsContract.Document#FLAG_SUPPORTS_THUMBNAIL}.
157 The same {@link android.provider.DocumentsContract.Document#COLUMN_DOCUMENT_ID} can be
452 {@link android.provider.DocumentsContract.Document#COLUMN_FLAGS Document.COLUMN_FLAGS}
[all …]
/frameworks/base/packages/Shell/src/com/android/shell/
DBugreportStorageProvider.java25 import android.provider.DocumentsContract.Document;
26 import android.provider.DocumentsContract.Root;
/frameworks/base/docs/html-intl/intl/ja/about/versions/
Dandroid-5.0.jd407DocumentsContract#buildChildDocumentsUriUsingTree(android.net.Uri, java.lang.String) buildChildDoc…
409DocumentsContract#createDocument(android.content.ContentResolver, android.net.Uri, java.lang.Strin…
411 …nk android.provider.DocumentsContract.Root#FLAG_SUPPORTS_IS_CHILD FLAG_SUPPORTS_IS_CHILD} を {@link…
/frameworks/base/docs/html-intl/intl/ru/about/versions/
Dandroid-5.0.jd408DocumentsContract#buildChildDocumentsUriUsingTree(android.net.Uri, java.lang.String) buildChildDoc…
410DocumentsContract#createDocument(android.content.ContentResolver, android.net.Uri, java.lang.Strin…
412 …nk android.provider.DocumentsContract.Root#FLAG_SUPPORTS_IS_CHILD FLAG_SUPPORTS_IS_CHILD} в {@link…
/frameworks/base/docs/html-intl/intl/zh-tw/about/versions/
Dandroid-5.0.jd407DocumentsContract#buildChildDocumentsUriUsingTree(android.net.Uri, java.lang.String) buildChildDoc…
409DocumentsContract#createDocument(android.content.ContentResolver, android.net.Uri, java.lang.Strin…
411 … android.provider.DocumentsContract.Root#FLAG_SUPPORTS_IS_CHILD FLAG_SUPPORTS_IS_CHILD} 納入您的 {@lin…

12