/frameworks/support/core-utils/api21/android/support/v4/provider/ |
DocumentsContractApi21.java | 23 import android.provider.DocumentsContract; 33 return DocumentsContract.createDocument(context.getContentResolver(), self, mimeType, 38 return createFile(context, self, DocumentsContract.Document.MIME_TYPE_DIR, displayName); 42 return DocumentsContract.buildDocumentUriUsingTree(treeUri, 43 DocumentsContract.getTreeDocumentId(treeUri)); 48 final Uri childrenUri = DocumentsContract.buildChildDocumentsUriUsingTree(self, 49 DocumentsContract.getDocumentId(self)); 55 DocumentsContract.Document.COLUMN_DOCUMENT_ID }, null, null, null); 58 final Uri documentUri = DocumentsContract.buildDocumentUriUsingTree(self, 72 return DocumentsContract.renameDocument(context.getContentResolver(), self, displayName) [all...] |
/frameworks/base/packages/DocumentsUI/tests/src/com/android/documentsui/dirlist/ |
TestContentProvider.java | 21 import android.provider.DocumentsContract; 38 if (DocumentsContract.METHOD_DELETE_DOCUMENT.equals(method)) { 39 final Uri documentUri = extras.getParcelable(DocumentsContract.EXTRA_URI);
|
/cts/hostsidetests/appsecurity/test-apps/DocumentClient/src/com/android/cts/documentclient/ |
DocumentsClientTest.java | 24 import android.provider.DocumentsContract; 25 import android.provider.DocumentsContract.Document; 123 assertEquals("doc:file1", DocumentsContract.getDocumentId(uri)); 150 assertEquals("doc:virtual-file", DocumentsContract.getDocumentId(uri)); 243 Uri doc = DocumentsContract.buildDocumentUriUsingTree(uri, 244 DocumentsContract.getTreeDocumentId(uri)); 245 Uri children = DocumentsContract.buildChildDocumentsUriUsingTree(uri, 246 DocumentsContract.getTreeDocumentId(uri)); 263 Uri pic = DocumentsContract.createDocument(resolver, doc, "image/png", "pic.png"); 264 Uri dir = DocumentsContract.createDocument(resolver, doc, Document.MIME_TYPE_DIR, "my dir") [all...] |
/frameworks/base/packages/MtpDocumentsProvider/src/com/android/mtp/ |
ReceiverActivity.java | 25 import android.provider.DocumentsContract; 46 final Uri uri = DocumentsContract.buildRootUri( 49 final Intent intent = new Intent(DocumentsContract.ACTION_BROWSE); 52 intent.putExtra(DocumentsContract.EXTRA_FANCY_FEATURES, true);
|
/frameworks/support/core-utils/kitkat/android/support/v4/provider/ |
DocumentsContractApi19.java | 25 import android.provider.DocumentsContract; 33 return DocumentsContract.isDocumentUri(context, self); 37 return queryForString(context, self, DocumentsContract.Document.COLUMN_DISPLAY_NAME, null); 41 return queryForString(context, self, DocumentsContract.Document.COLUMN_MIME_TYPE, null); 46 if (DocumentsContract.Document.MIME_TYPE_DIR.equals(rawType)) { 54 return DocumentsContract.Document.MIME_TYPE_DIR.equals(getRawType(context, self)); 59 if (DocumentsContract.Document.MIME_TYPE_DIR.equals(type) || TextUtils.isEmpty(type)) { 67 return queryForLong(context, self, DocumentsContract.Document.COLUMN_LAST_MODIFIED, 0); 71 return queryForLong(context, self, DocumentsContract.Document.COLUMN_SIZE, 0); 97 final int flags = queryForInt(context, self, DocumentsContract.Document.COLUMN_FLAGS, 0) [all...] |
/frameworks/base/core/java/android/provider/ |
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...] |
DocumentsContract.java | 71 public final class DocumentsContract { 72 private static final String TAG = "DocumentsContract"; 83 private DocumentsContract() { 264 * @see DocumentsContract#getDocumentThumbnail(ContentResolver, Uri, 290 * @see DocumentsContract#deleteDocument(ContentResolver, Uri) 328 * @see DocumentsContract#renameDocument(ContentResolver, Uri, 339 * @see DocumentsContract#copyDocument(ContentResolver, Uri, Uri) 349 * @see DocumentsContract#moveDocument(ContentResolver, Uri, Uri, Uri) 370 * @see DocumentsContract#removeDocument(ContentResolver, Uri, Uri) 522 * @see DocumentsContract#buildRecentDocumentsUri(String, String [all...] |
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/ |
LoadRootTask.java | 20 import android.provider.DocumentsContract; 37 String rootId = DocumentsContract.getRootId(mRootUri);
|
LauncherActivity.java | 28 import android.provider.DocumentsContract; 51 DocumentsContract.EXTRA_SHOW_FILESIZE, 52 DocumentsContract.EXTRA_SHOW_ADVANCED, 53 DocumentsContract.EXTRA_FANCY_FEATURES,
|
/frameworks/support/documents-archive/tests/src/android/support/provider/ |
IntegrationTest.java | 25 import android.provider.DocumentsContract.Document; 26 import android.provider.DocumentsContract; 67 DocumentsContract.buildChildDocumentsUri( 76 DocumentsContract.buildDocumentUri( 88 DocumentsContract.buildDocumentUri( 112 DocumentsContract.buildChildDocumentsUri( 125 DocumentsContract.buildDocumentUri( 131 DocumentsContract.buildDocumentUri(
|
/frameworks/base/packages/DocumentsUI/tests/src/com/android/documentsui/services/ |
DeleteJobTest.java | 22 import android.provider.DocumentsContract; 41 DocumentsContract.buildDocumentUri(AUTHORITY, mSrcRoot.documentId)).run(); 51 Uri stack = DocumentsContract.buildDocumentUri(AUTHORITY, mSrcRoot.documentId);
|
AbstractCopyJobTest.java | 22 import android.provider.DocumentsContract; 114 DocumentsContract.buildDocumentUri(AUTHORITY, mSrcRoot.documentId), 129 DocumentsContract.buildDocumentUri(AUTHORITY, mSrcRoot.documentId), 143 String testId = DocumentsContract.getDocumentId(testFile); 161 Uri srcParent = DocumentsContract.buildDocumentUri(AUTHORITY, mSrcRoot.documentId); 162 Uri destination = DocumentsContract.buildDocumentUri(AUTHORITY, mDestRoot.documentId);
|
TestContentResolver.java | 22 import android.provider.DocumentsContract; 79 if (DocumentsContract.isDocumentUri(mContext, uri)) {
|
/developers/build/prebuilts/gradle/DirectorySelection/Application/src/main/java/com/example/android/directoryselection/ |
DirectorySelectionFragment.java | 27 import android.provider.DocumentsContract; 28 import android.provider.DocumentsContract.Document; 152 Uri docUri = DocumentsContract.buildDocumentUriUsingTree(uri, 153 DocumentsContract.getTreeDocumentId(uri)); 154 Uri childrenUri = DocumentsContract.buildChildDocumentsUriUsingTree(uri, 155 DocumentsContract.getTreeDocumentId(uri)); 199 Uri docUri = DocumentsContract.buildDocumentUriUsingTree(uri, 200 DocumentsContract.getTreeDocumentId(uri)); 201 Uri directoryUri = DocumentsContract
|
/developers/samples/android/content/documentsUi/DirectorySelection/Application/src/main/java/com/example/android/directoryselection/ |
DirectorySelectionFragment.java | 27 import android.provider.DocumentsContract; 28 import android.provider.DocumentsContract.Document; 152 Uri docUri = DocumentsContract.buildDocumentUriUsingTree(uri, 153 DocumentsContract.getTreeDocumentId(uri)); 154 Uri childrenUri = DocumentsContract.buildChildDocumentsUriUsingTree(uri, 155 DocumentsContract.getTreeDocumentId(uri)); 199 Uri docUri = DocumentsContract.buildDocumentUriUsingTree(uri, 200 DocumentsContract.getTreeDocumentId(uri)); 201 Uri directoryUri = DocumentsContract
|
/development/samples/browseable/DirectorySelection/src/com.example.android.directoryselection/ |
DirectorySelectionFragment.java | 27 import android.provider.DocumentsContract; 28 import android.provider.DocumentsContract.Document; 152 Uri docUri = DocumentsContract.buildDocumentUriUsingTree(uri, 153 DocumentsContract.getTreeDocumentId(uri)); 154 Uri childrenUri = DocumentsContract.buildChildDocumentsUriUsingTree(uri, 155 DocumentsContract.getTreeDocumentId(uri)); 199 Uri docUri = DocumentsContract.buildDocumentUriUsingTree(uri, 200 DocumentsContract.getTreeDocumentId(uri)); 201 Uri directoryUri = DocumentsContract
|
/developers/build/prebuilts/gradle/ScopedDirectoryAccess/Application/src/main/java/com/example/android/scopeddirectoryaccess/ |
ScopedDirectoryAccessFragment.java | 29 import android.provider.DocumentsContract; 55 DocumentsContract.Document.COLUMN_DISPLAY_NAME, 56 DocumentsContract.Document.COLUMN_MIME_TYPE, 57 DocumentsContract.Document.COLUMN_DOCUMENT_ID, 188 Uri docUri = DocumentsContract.buildDocumentUriUsingTree(uri, 189 DocumentsContract.getTreeDocumentId(uri)); 190 Uri childrenUri = DocumentsContract.buildChildDocumentsUriUsingTree(uri, 191 DocumentsContract.getTreeDocumentId(uri)); 197 DocumentsContract.Document.COLUMN_DISPLAY_NAME))); 206 DocumentsContract.Document.COLUMN_DISPLAY_NAME)) [all...] |
DirectoryEntryAdapter.java | 3 import android.provider.DocumentsContract; 41 if (DocumentsContract.Document.MIME_TYPE_DIR
|
/developers/samples/android/content/documentsUi/ScopedDirectoryAccess/Application/src/main/java/com/example/android/scopeddirectoryaccess/ |
ScopedDirectoryAccessFragment.java | 29 import android.provider.DocumentsContract; 55 DocumentsContract.Document.COLUMN_DISPLAY_NAME, 56 DocumentsContract.Document.COLUMN_MIME_TYPE, 57 DocumentsContract.Document.COLUMN_DOCUMENT_ID, 188 Uri docUri = DocumentsContract.buildDocumentUriUsingTree(uri, 189 DocumentsContract.getTreeDocumentId(uri)); 190 Uri childrenUri = DocumentsContract.buildChildDocumentsUriUsingTree(uri, 191 DocumentsContract.getTreeDocumentId(uri)); 197 DocumentsContract.Document.COLUMN_DISPLAY_NAME))); 206 DocumentsContract.Document.COLUMN_DISPLAY_NAME)) [all...] |
/development/samples/browseable/ScopedDirectoryAccess/src/com.example.android.scopeddirectoryaccess/ |
ScopedDirectoryAccessFragment.java | 29 import android.provider.DocumentsContract; 55 DocumentsContract.Document.COLUMN_DISPLAY_NAME, 56 DocumentsContract.Document.COLUMN_MIME_TYPE, 57 DocumentsContract.Document.COLUMN_DOCUMENT_ID, 188 Uri docUri = DocumentsContract.buildDocumentUriUsingTree(uri, 189 DocumentsContract.getTreeDocumentId(uri)); 190 Uri childrenUri = DocumentsContract.buildChildDocumentsUriUsingTree(uri, 191 DocumentsContract.getTreeDocumentId(uri)); 197 DocumentsContract.Document.COLUMN_DISPLAY_NAME))); 206 DocumentsContract.Document.COLUMN_DISPLAY_NAME)) [all...] |
/frameworks/base/packages/MtpDocumentsProvider/tests/src/com/android/mtp/ |
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...] |
DocumentLoaderTest.java | 23 import android.provider.DocumentsContract; 24 import android.provider.DocumentsContract.Document; 71 final Uri uri = DocumentsContract.buildChildDocumentsUri( 142 assertFalse(cursor.getExtras().getBoolean(DocumentsContract.EXTRA_LOADING)); 156 assertTrue(cursor.getExtras().getBoolean(DocumentsContract.EXTRA_LOADING)); 159 final Uri uri = DocumentsContract.buildChildDocumentsUri( 173 assertTrue(cursor.getExtras().getBoolean(DocumentsContract.EXTRA_LOADING));
|
/development/samples/ApiDemos/src/com/example/android/apis/content/ |
DocumentsSample.java | 26 import android.provider.DocumentsContract; 27 import android.provider.DocumentsContract.Document; 43 * Example that exercises client side of {@link DocumentsContract}. 250 log("isDocumentUri=" + DocumentsContract.isDocumentUri(this, uri)); 289 Uri doc = DocumentsContract.buildDocumentUriUsingTree(uri, 290 DocumentsContract.getTreeDocumentId(uri)); 291 Uri child = DocumentsContract.buildChildDocumentsUriUsingTree(uri, 292 DocumentsContract.getTreeDocumentId(uri)); 304 Uri pic = DocumentsContract.createDocument(cr, doc, "image/png", "pic.png"); 305 Uri dir = DocumentsContract.createDocument(cr, doc, Document.MIME_TYPE_DIR, "my dir") [all...] |
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/services/ |
MoveJob.java | 26 import android.provider.DocumentsContract; 27 import android.provider.DocumentsContract.Document; 94 if (DocumentsContract.moveDocument(getClient(src), src.derivedUri,
|
/developers/build/prebuilts/gradle/StorageProvider/Application/src/main/java/com/example/android/storageprovider/ |
StorageProviderFragment.java | 23 import android.provider.DocumentsContract; 65 getActivity().getContentResolver().notifyChange(DocumentsContract.buildRootsUri
|