Home
last modified time | relevance | path

Searched refs:DocumentsContract (Results 1 – 25 of 37) 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
914 in.putParcelable(DocumentsContract.EXTRA_URI, parentDocumentUri); in createDocument()
919 return out.getParcelable(DocumentsContract.EXTRA_URI); in createDocument()
953 in.putParcelable(DocumentsContract.EXTRA_URI, documentUri); in renameDocument()
957 final Uri outUri = out.getParcelable(DocumentsContract.EXTRA_URI); in renameDocument()
985 in.putParcelable(DocumentsContract.EXTRA_URI, documentUri); in deleteDocument()
/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;
177 .notifyChange(DocumentsContract.buildRootsUri(AUTHORITY), null, false); in updateVolumesLocked()
522 return DocumentsContract.openImageThumbnail(file);
613 final Uri notifyUri = DocumentsContract.buildChildDocumentsUri(
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/
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;
109 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()
DDirectoryLoader.java35 import android.provider.DocumentsContract;
36 import android.provider.DocumentsContract.Document;
108 final Uri docUri = DocumentsContract.buildDocumentUri( in loadInBackground()
DDirectoryFragment.java53 import android.provider.DocumentsContract;
54 import android.provider.DocumentsContract.Document;
269 contentsUri = DocumentsContract.buildChildDocumentsUri( in onActivityCreated()
272 contentsUri = DocumentsContract.setManageMode(contentsUri); in onActivityCreated()
277 contentsUri = DocumentsContract.buildSearchDocumentsUri( in onActivityCreated()
280 contentsUri = DocumentsContract.setManageMode(contentsUri); in onActivityCreated()
604 DocumentsContract.deleteDocument(client, doc.derivedUri); in onDeleteDocuments()
709 final String info = extras.getString(DocumentsContract.EXTRA_INFO); in swapResult()
713 final String error = extras.getString(DocumentsContract.EXTRA_ERROR); in swapResult()
717 if (extras.getBoolean(DocumentsContract.EXTRA_LOADING, false)) { in swapResult()
[all …]
DDocumentsActivity.java51 import android.provider.DocumentsContract;
52 import android.provider.DocumentsContract.Root;
236 } else if (DocumentsContract.ACTION_MANAGE_ROOT.equals(action)) { in buildDefaultState()
255 mState.forceAdvanced = intent.getBooleanExtra(DocumentsContract.EXTRA_SHOW_ADVANCED, false); in buildDefaultState()
275 final String rootId = DocumentsContract.getRootId(mRootUri); in doInBackground()
824 final String extra = getIntent().getStringExtra(DocumentsContract.EXTRA_PACKAGE_NAME); in getCallingPackageMaybeExtra()
939 final Uri uri = DocumentsContract.buildDocumentUri( in doInBackground()
1003 final Intent manage = new Intent(DocumentsContract.ACTION_MANAGE_DOCUMENT); in onDocumentPicked()
1043 final Uri viaUri = DocumentsContract.buildTreeDocumentUri(pickTarget.authority, in onPickRequested()
1125 childUri = DocumentsContract.createDocument( in doInBackground()
DFilteringCursorWrapper.java26 import android.provider.DocumentsContract.Document;
DSortingCursorWrapper.java28 import android.provider.DocumentsContract.Document;
DIconUtils.java24 import android.provider.DocumentsContract.Document;
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/model/
DDocumentInfo.java25 import android.provider.DocumentsContract;
26 import android.provider.DocumentsContract.Document;
210 derivedUri = DocumentsContract.buildDocumentUri(authority, documentId); in deriveFields()
DRootInfo.java28 import android.provider.DocumentsContract.Root;
/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/ExternalStorageProvider/tests/src/com/android/externalstorage/
DExternalStorageProviderTest.java22 import android.provider.DocumentsContract.Document;
/frameworks/base/docs/html-intl/intl/ko/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/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/zh-cn/about/versions/
Dandroid-5.0.jd409DocumentsContract#buildChildDocumentsUriUsingTree(android.net.Uri, java.lang.String) buildChildDoc…
411DocumentsContract#createDocument(android.content.ContentResolver, android.net.Uri, java.lang.Strin…
413 …并在您的 {@link android.provider.DocumentsContract.Root#COLUMN_FLAGS COLUMN_FLAGS} 中添加 {@link android.…
/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…
/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…

12