Home
last modified time | relevance | path

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

12

/packages/services/Mtp/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()
276 createDocument(100, "note.txt", MtpConstants.FORMAT_TEXT, 1024) in testPutChildDocuments_operationsSupported()
293 createDocument(100, "note.txt", MtpConstants.FORMAT_TEXT, 1024) in testPutChildDocuments_operationsSupported()
309 createDocument(100, "note.txt", MtpConstants.FORMAT_TEXT, 1024) in testPutChildDocuments_operationsSupported()
396 createDocument(100, "note.txt", MtpConstants.FORMAT_TEXT, 1024), in testRestoreIdForChildDocuments()
397 createDocument(101, "image.jpg", MtpConstants.FORMAT_EXIF_JPEG, 2 * 1024 * 1024), in testRestoreIdForChildDocuments()
398 createDocument(102, "music.mp3", MtpConstants.FORMAT_MP3, 3 * 1024 * 1024) in testRestoreIdForChildDocuments()
[all …]
DMtpDocumentsProviderTest.java610 final String documentId = mProvider.createDocument("2", "text/plain", "test.txt"); in testOpenDocument_writing()
757 final String documentId = mProvider.createDocument("1", "text/plain", "note.txt"); in testCreateDocument()
792 mProvider.createDocument("1", "text/palin", "note.txt"); in testCreateDocument_noWritingSupport()
/packages/apps/DocumentsUI/tests/functional/com/android/documentsui/archives/
DWriteableArchiveTest.java84 final String dirDocumentId = mArchive.createDocument(createArchiveId("/").toDocumentId(), in testCreateDocument()
88 final String documentId = mArchive.createDocument(dirDocumentId, "image/jpeg", "test.jpeg"); in testCreateDocument()
92 mArchive.createDocument(dirDocumentId, in testCreateDocument()
100 mArchive.createDocument(createArchiveId("/").toDocumentId(), in testCreateDocument()
108 mArchive.createDocument(createArchiveId("/").toDocumentId(), in testCreateDocument()
116 mArchive.createDocument(createArchiveId("/").toDocumentId(), in testCreateDocument()
124 mArchive.createDocument(createArchiveId("/").toDocumentId(), in testCreateDocument()
132 mArchive.createDocument(createArchiveId("/").toDocumentId(), in testCreateDocument()
140 mArchive.createDocument(createArchiveId("/").toDocumentId(), in testCreateDocument()
149 final String documentId = mArchive.createDocument(createArchiveId("/").toDocumentId(), in testAddDirectory()
[all …]
/packages/apps/DocumentsUI/tests/functional/com/android/documentsui/
DFilesActivityUiTest.java47 mDocsHelper.createDocument(rootDir0, "text/plain", "file0.log"); in initTestFiles()
48 mDocsHelper.createDocument(rootDir0, "image/png", "file1.png"); in initTestFiles()
49 mDocsHelper.createDocument(rootDir0, "text/csv", "file2.csv"); in initTestFiles()
51 mDocsHelper.createDocument(rootDir1, "text/plain", "anotherFile0.log"); in initTestFiles()
52 mDocsHelper.createDocument(rootDir1, "text/plain", "poodles.text"); in initTestFiles()
80 mDocsHelper.createDocument(rootDir0, "yummers/sandwich", "Ham & Cheese.sandwich"); in testFilesList_LiveUpdate()
DContextMenuUiTest.java64 mDocsHelper.createDocument(rootDir0, "text/plain", "file0.log"); in initTestFiles()
65 mDocsHelper.createDocument(rootDir0, "image/png", "file1.png"); in initTestFiles()
66 mDocsHelper.createDocument(rootDir0, "text/csv", "file2.csv"); in initTestFiles()
68 mDocsHelper.createDocument(rootDir1, "text/plain", "anotherFile0.log"); in initTestFiles()
69 mDocsHelper.createDocument(rootDir1, "text/plain", "poodles.text"); in initTestFiles()
DFileManagementUiTest.java57 mDocsHelper.createDocument(rootDir0, "text/plain", "file0.log"); in initTestFiles()
58 mDocsHelper.createDocument(rootDir0, "image/png", "file1.png"); in initTestFiles()
59 mDocsHelper.createDocument(rootDir0, "text/csv", "file2.csv"); in initTestFiles()
61 mDocsHelper.createDocument(rootDir1, "text/plain", "anotherFile0.log"); in initTestFiles()
62 mDocsHelper.createDocument(rootDir1, "text/plain", "poodles.text"); in initTestFiles()
151 mDocsHelper.createDocument(test, "text/plain", name); in testCopyLargeAmountOfFiles()
DActivityTest.java168 mDocsHelper.createDocument(rootDir0, "text/plain", fileName1); in initTestFiles()
169 mDocsHelper.createDocument(rootDir0, "image/png", fileName2); in initTestFiles()
173 mDocsHelper.createDocument(rootDir1, "text/plain", fileName3); in initTestFiles()
174 mDocsHelper.createDocument(rootDir1, "text/plain", fileName4); in initTestFiles()
DKeyboardNavigationUiTest.java42 mDocsHelper.createDocument(rootDir0, "image/png", "file1.png"); in initTestFiles()
DFileCopyUiTest.java304 Uri uri = helper.createDocument(root, "image/png", fileName); in loadImageFromResources()
468 mDocsHelper.createDocument(rootDir0, "text/plain", fileName1); in testCopyDocuments_documentsDisabled()
DFileDeleteUiTest.java147 Uri uri = mDocsHelper.createDocument(rootDir0, "text/plain", fileName); in createDummyFiles()
/packages/apps/DocumentsUI/tests/common/com/android/documentsui/
DDocumentsProviderHelper.java98 public Uri createDocument(Uri parentUri, String mimeType, String name) { in createDocument() method in DocumentsProviderHelper
103 Uri uri = DocumentsContract.createDocument(wrap(mClient), parentUri, mimeType, name); in createDocument()
111 public Uri createDocument(String parentId, String mimeType, String name) { in createDocument() method in DocumentsProviderHelper
113 return createDocument(parentUri, mimeType, name); in createDocument()
116 public Uri createDocument(RootInfo root, String mimeType, String name) { in createDocument() method in DocumentsProviderHelper
117 return createDocument(root.documentId, mimeType, name); in createDocument()
136 return createDocument(parentUri, Document.MIME_TYPE_DIR, name); in createFolder()
141 return createDocument(parentUri, Document.MIME_TYPE_DIR, name); in createFolder()
145 return createDocument(root, Document.MIME_TYPE_DIR, name); in createFolder()
DStubProvider.java210 public String createDocument(String parentId, String mimeType, String displayName) in createDocument() method in StubProvider
580 documentId = createDocument(rootId, mimeType, name, flags, streamTypes); in dispatchCreateDocumentWithFlags()
605 public String createDocument(String parentId, String mimeType, String displayName, int flags, in createDocument() method in StubProvider
/packages/apps/DocumentsUI/tests/functional/com/android/documentsui/services/
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()
48 Uri testFile1 = mDocs.createDocument(mSrcRoot, "text/plain", "test1.txt"); in testDeleteFiles_NoSrcParent()
51 Uri testFile2 = mDocs.createDocument(mSrcRoot, "text/plain", "test2.txt"); in testDeleteFiles_NoSrcParent()
DAbstractCopyJobTest.java47 Uri testFile1 = mDocs.createDocument(mSrcRoot, "text/plain", "test1.txt"); in runCopyFilesTest()
50 Uri testFile2 = mDocs.createDocument(mSrcRoot, "text/plain", "test2.txt"); in runCopyFilesTest()
112 mDocs.createDocument(testDir1, "text/plain", "test1.txt"); in runCopyDirRecursivelyTest()
115 mDocs.createDocument(testDir2, "text/plain", "test2.txt"); in runCopyDirRecursivelyTest()
163 Uri testFile = mDocs.createDocument(mSrcRoot, "text/plain", "test1.txt"); in runCopyFileWithReadErrorsTest()
DJobErrorHandlingTest.java39 Uri validUri = mDocs.createDocument(mSrcRoot, "text/plain", "test2.txt"); in testRecoversFromInvalidUri()
54 Uri validUri = mDocs.createDocument(mSrcRoot, "text/plain", "test2.txt"); in testRecordsInvalidUris()
68 Uri validUri = mDocs.createDocument(mSrcRoot, "text/plain", "test2.txt"); in testReportsCorrectFailureCount()
DMoveJobTest.java42 Uri testFile1 = mDocs.createDocument(mSrcRoot, "text/plain", "test1.txt"); in testMoveFiles_NoSrcParent()
45 Uri testFile2 = mDocs.createDocument(mSrcRoot, "text/plain", "test2.txt"); in testMoveFiles_NoSrcParent()
/packages/apps/DocumentsUI/tests/common/com/android/documentsui/testing/
DTestModel.java84 return createDocument( in createFile()
100 return createDocument( in createFolder()
123 public DocumentInfo createDocument(String name, String mimeType, int flags) { in createDocument() method in TestModel
DTestDocumentsAccess.java64 public Uri createDocument(DocumentInfo parentDoc, String mimeType, String displayName) { in createDocument() method in TestDocumentsAccess
/packages/apps/DocumentsUI/src/com/android/documentsui/
DDocumentsAccess.java63 @Nullable Uri createDocument(DocumentInfo parentDoc, String mimeType, String displayName); in createDocument() method
153 public Uri createDocument(DocumentInfo parentDoc, String mimeType, String displayName) { in createDocument() method in DocumentsAccess.RuntimeDocumentAccess
157 Uri createUri = DocumentsContract.createDocument( in createDocument()
/packages/apps/DocumentsUI/src/com/android/documentsui/archives/
DArchivesProvider.java215 public String createDocument( in createDocument() method in ArchivesProvider
219 return loader.get().createDocument(parentDocumentId, mimeType, displayName); in createDocument()
/packages/services/Car/tests/BugReportApp/src/com/android/car/bugreport/
DBugReportInfoActivity.java281 Uri newFileUri = DocumentsContract.createDocument( in mergeFilesAndCopyToUsb()
317 Uri newFileUri = DocumentsContract.createDocument( in copyFileToUsb()
/packages/services/Mtp/src/com/android/mtp/
DMtpDocumentsProvider.java387 public String createDocument(String parentDocumentId, String mimeType, String displayName) in createDocument() method in MtpDocumentsProvider
412 createDocument(storageDocumentIds[0], mimeType, displayName); in createDocument()
463 objectHandle = mMtpManager.createDocument( in createDocument()
DMtpFileWriter.java86 final int newObjectHandle = manager.createDocument( in flush()
/packages/apps/DocumentsUI/src/com/android/documentsui/picker/
DCreatePickedDocumentTask.java79 Uri childUri = mDocs.createDocument(cwd, mMimeType, mDisplayName); in run()
/packages/apps/DocumentsUI/src/com/android/documentsui/services/
DCompressJob.java104 archiveUri = DocumentsContract.createDocument( in setUp()

12