/packages/services/Mtp/tests/src/com/android/mtp/ |
D | MtpDatabaseTest.java | 185 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 …]
|
D | MtpDocumentsProviderTest.java | 610 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/ |
D | WriteableArchiveTest.java | 84 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/ |
D | FilesActivityUiTest.java | 47 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()
|
D | ContextMenuUiTest.java | 64 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()
|
D | FileManagementUiTest.java | 57 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()
|
D | ActivityTest.java | 168 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()
|
D | KeyboardNavigationUiTest.java | 42 mDocsHelper.createDocument(rootDir0, "image/png", "file1.png"); in initTestFiles()
|
D | FileCopyUiTest.java | 304 Uri uri = helper.createDocument(root, "image/png", fileName); in loadImageFromResources() 468 mDocsHelper.createDocument(rootDir0, "text/plain", fileName1); in testCopyDocuments_documentsDisabled()
|
D | FileDeleteUiTest.java | 147 Uri uri = mDocsHelper.createDocument(rootDir0, "text/plain", fileName); in createDummyFiles()
|
/packages/apps/DocumentsUI/tests/common/com/android/documentsui/ |
D | DocumentsProviderHelper.java | 98 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()
|
D | StubProvider.java | 210 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/ |
D | DeleteJobTest.java | 34 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()
|
D | AbstractCopyJobTest.java | 47 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()
|
D | JobErrorHandlingTest.java | 39 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()
|
D | MoveJobTest.java | 42 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/ |
D | TestModel.java | 84 return createDocument( in createFile() 100 return createDocument( in createFolder() 123 public DocumentInfo createDocument(String name, String mimeType, int flags) { in createDocument() method in TestModel
|
D | TestDocumentsAccess.java | 64 public Uri createDocument(DocumentInfo parentDoc, String mimeType, String displayName) { in createDocument() method in TestDocumentsAccess
|
/packages/apps/DocumentsUI/src/com/android/documentsui/ |
D | DocumentsAccess.java | 63 @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/ |
D | ArchivesProvider.java | 215 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/ |
D | BugReportInfoActivity.java | 281 Uri newFileUri = DocumentsContract.createDocument( in mergeFilesAndCopyToUsb() 317 Uri newFileUri = DocumentsContract.createDocument( in copyFileToUsb()
|
/packages/services/Mtp/src/com/android/mtp/ |
D | MtpDocumentsProvider.java | 387 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()
|
D | MtpFileWriter.java | 86 final int newObjectHandle = manager.createDocument( in flush()
|
/packages/apps/DocumentsUI/src/com/android/documentsui/picker/ |
D | CreatePickedDocumentTask.java | 79 Uri childUri = mDocs.createDocument(cwd, mMimeType, mDisplayName); in run()
|
/packages/apps/DocumentsUI/src/com/android/documentsui/services/ |
D | CompressJob.java | 104 archiveUri = DocumentsContract.createDocument( in setUp()
|