Home
last modified time | relevance | path

Searched refs:createDocument (Results 1 – 25 of 34) sorted by relevance

12

/frameworks/base/packages/MtpDocumentsProvider/tests/src/com/android/mtp/
DMtpDatabaseTest.java185 private MtpObjectInfo createDocument(int objectHandle, String name, int format, int size) { in createDocument() method in MtpDatabaseTest
200 createDocument(100, "note.txt", MtpConstants.FORMAT_TEXT, 1024), in testPutChildDocuments()
201 createDocument(101, "image.jpg", MtpConstants.FORMAT_EXIF_JPEG, 2 * 1024 * 1024), in testPutChildDocuments()
202 createDocument(102, "music.mp3", MtpConstants.FORMAT_MP3, 3 * 1024 * 1024) in testPutChildDocuments()
275 createDocument(100, "note.txt", MtpConstants.FORMAT_TEXT, 1024) in testPutChildDocuments_operationsSupported()
292 createDocument(100, "note.txt", MtpConstants.FORMAT_TEXT, 1024) in testPutChildDocuments_operationsSupported()
308 createDocument(100, "note.txt", MtpConstants.FORMAT_TEXT, 1024) in testPutChildDocuments_operationsSupported()
395 createDocument(100, "note.txt", MtpConstants.FORMAT_TEXT, 1024), in testRestoreIdForChildDocuments()
396 createDocument(101, "image.jpg", MtpConstants.FORMAT_EXIF_JPEG, 2 * 1024 * 1024), in testRestoreIdForChildDocuments()
397 createDocument(102, "music.mp3", MtpConstants.FORMAT_MP3, 3 * 1024 * 1024) in testRestoreIdForChildDocuments()
[all …]
DMtpManagerTest.java143 final int objectHandle = mManager.createDocument( in testCreateDocumentAndGetPartialObject()
DTestMtpManager.java152 int createDocument(int deviceId, MtpObjectInfo objectInfo, ParcelFileDescriptor source) in createDocument() method in TestMtpManager
DMtpDocumentsProviderTest.java542 final String documentId = mProvider.createDocument("2", "text/plain", "test.txt"); in testOpenDocument_writing()
699 mProvider.createDocument("1", "text/palin", "note.txt"); in testCreateDocument_noWritingSupport()
/frameworks/base/packages/DocumentsUI/tests/src/com/android/documentsui/
DFilesActivityUiTest.java52 mDocsHelper.createDocument(rootDir0, "text/plain", "file0.log"); in initTestFiles()
53 mDocsHelper.createDocument(rootDir0, "image/png", "file1.png"); in initTestFiles()
54 mDocsHelper.createDocument(rootDir0, "text/csv", "file2.csv"); in initTestFiles()
56 mDocsHelper.createDocument(rootDir1, "text/plain", "anotherFile0.log"); in initTestFiles()
57 mDocsHelper.createDocument(rootDir1, "text/plain", "poodles.text"); in initTestFiles()
106 mDocsHelper.createDocument(rootDir0, "yummers/sandwich", "Ham & Cheese.sandwich"); in testFilesList_LiveUpdate()
DDocumentsProviderHelper.java87 public Uri createDocument(Uri parentUri, String mimeType, String name) { in createDocument() method in DocumentsProviderHelper
92 Uri uri = DocumentsContract.createDocument(mClient, parentUri, mimeType, name); in createDocument()
100 public Uri createDocument(String parentId, String mimeType, String name) { in createDocument() method in DocumentsProviderHelper
102 return createDocument(parentUri, mimeType, name); in createDocument()
105 public Uri createDocument(RootInfo root, String mimeType, String name) { in createDocument() method in DocumentsProviderHelper
106 return createDocument(root.documentId, mimeType, name); in createDocument()
125 return createDocument(parentUri, Document.MIME_TYPE_DIR, name); in createFolder()
130 return createDocument(parentUri, Document.MIME_TYPE_DIR, name); in createFolder()
134 return createDocument(root, Document.MIME_TYPE_DIR, name); in createFolder()
DActivityTest.java150 mDocsHelper.createDocument(rootDir0, "text/plain", fileName1); in initTestFiles()
151 mDocsHelper.createDocument(rootDir0, "image/png", fileName2); in initTestFiles()
155 mDocsHelper.createDocument(rootDir1, "text/plain", fileName3); in initTestFiles()
156 mDocsHelper.createDocument(rootDir1, "text/plain", fileName4); in initTestFiles()
DStubProvider.java185 public String createDocument(String parentId, String mimeType, String displayName) in createDocument() method in StubProvider
527 documentId = createDocument(rootId, mimeType, name, flags, streamTypes); in dispatchCreateDocumentWithFlags()
536 public String createDocument(String parentId, String mimeType, String displayName, int flags, in createDocument() method in StubProvider
/frameworks/base/packages/DocumentsUI/tests/src/com/android/documentsui/services/
DAbstractCopyJobTest.java34 Uri testFile1 = mDocs.createDocument(mSrcRoot, "text/plain", "test1.txt"); in runCopyFilesTest()
37 Uri testFile2 = mDocs.createDocument(mSrcRoot, "text/plain", "test2.txt"); in runCopyFilesTest()
91 mDocs.createDocument(testDir1, "text/plain", "test1.txt"); in runCopyDirRecursivelyTest()
94 mDocs.createDocument(testDir2, "text/plain", "test2.txt"); in runCopyDirRecursivelyTest()
140 Uri testFile = mDocs.createDocument(mSrcRoot, "text/plain", "test1.txt"); in runCopyFileWithReadErrorsTest()
DDeleteJobTest.java34 Uri testFile1 = mDocs.createDocument(mSrcRoot, "text/plain", "test1.txt"); in testDeleteFiles()
37 Uri testFile2 = mDocs.createDocument(mSrcRoot, "text/plain", "test2.txt"); in testDeleteFiles()
/frameworks/support/core-utils/api21/android/support/v4/provider/
DDocumentsContractApi21.java33 return DocumentsContract.createDocument(context.getContentResolver(), self, mimeType, in createFile()
/frameworks/base/packages/MtpDocumentsProvider/src/com/android/mtp/
DMtpFileWriter.java86 final int newObjectHandle = manager.createDocument( in flush()
DMtpDocumentsProvider.java336 public String createDocument(String parentDocumentId, String mimeType, String displayName) in createDocument() method in MtpDocumentsProvider
384 objectHandle = mMtpManager.createDocument( in createDocument()
DMtpManager.java193 int createDocument(int deviceId, MtpObjectInfo objectInfo, in createDocument() method in MtpManager
/frameworks/base/packages/ExternalStorageProvider/src/com/android/externalstorage/
DTestDocumentsProvider.java156 public String createDocument(String parentDocumentId, String mimeType, String displayName) in createDocument() method in TestDocumentsProvider
160 return super.createDocument(parentDocumentId, mimeType, displayName); in createDocument()
DExternalStorageProvider.java435 public String createDocument(String docId, String mimeType, String displayName) in createDocument() method in ExternalStorageProvider
/frameworks/base/core/java/android/provider/
DDocumentsContract.java1060 public static Uri createDocument(ContentResolver resolver, Uri parentDocumentUri, in createDocument() method in DocumentsContract
1065 return createDocument(client, parentDocumentUri, mimeType, displayName); in createDocument()
1075 public static Uri createDocument(ContentProviderClient client, Uri parentDocumentUri, in createDocument() method in DocumentsContract
DDocumentsProvider.java225 public String createDocument(String parentDocumentId, String mimeType, String displayName) in createDocument() method in DocumentsProvider
757 final String newDocumentId = createDocument(documentId, mimeType, displayName); in callUnchecked()
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/
DCreateDirectoryFragment.java140 final Uri childUri = DocumentsContract.createDocument( in doInBackground()
DDocumentsActivity.java568 childUri = DocumentsContract.createDocument( in run()
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/services/
DCopyJob.java349 dstUri = DocumentsContract.createDocument( in byteCopyDocument()
/frameworks/base/docs/html-intl/intl/ko/about/versions/
Dandroid-5.0.jd410 ….DocumentsContract#createDocument(android.content.ContentResolver, android.net.Uri, java.lang.Stri…
/frameworks/base/docs/html-intl/intl/zh-tw/about/versions/
Dandroid-5.0.jd409 ….DocumentsContract#createDocument(android.content.ContentResolver, android.net.Uri, java.lang.Stri…
/frameworks/base/docs/html-intl/intl/ja/about/versions/
Dandroid-5.0.jd409 ….DocumentsContract#createDocument(android.content.ContentResolver, android.net.Uri, java.lang.Stri…
/frameworks/base/docs/html-intl/intl/ru/about/versions/
Dandroid-5.0.jd410 ….DocumentsContract#createDocument(android.content.ContentResolver, android.net.Uri, java.lang.Stri…

12