Home
last modified time | relevance | path

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

12

/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/archives/
DWriteableArchiveTest.java85 final String dirDocumentId = mArchive.createDocument(createArchiveId("/").toDocumentId(), in testCreateDocument()
89 final String documentId = mArchive.createDocument(dirDocumentId, "image/jpeg", "test.jpeg"); in testCreateDocument()
93 mArchive.createDocument(dirDocumentId, in testCreateDocument()
101 mArchive.createDocument(createArchiveId("/").toDocumentId(), in testCreateDocument()
109 mArchive.createDocument(createArchiveId("/").toDocumentId(), in testCreateDocument()
117 mArchive.createDocument(createArchiveId("/").toDocumentId(), in testCreateDocument()
125 mArchive.createDocument(createArchiveId("/").toDocumentId(), in testCreateDocument()
133 mArchive.createDocument(createArchiveId("/").toDocumentId(), in testCreateDocument()
141 mArchive.createDocument(createArchiveId("/").toDocumentId(), in testCreateDocument()
150 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.java65 mDocsHelper.createDocument(rootDir0, "text/plain", "file0.log"); in initTestFiles()
66 mDocsHelper.createDocument(rootDir0, "image/png", "file1.png"); in initTestFiles()
67 mDocsHelper.createDocument(rootDir0, "text/csv", "file2.csv"); in initTestFiles()
69 mDocsHelper.createDocument(rootDir1, "text/plain", "anotherFile0.log"); in initTestFiles()
70 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.java165 mDocsHelper.createDocument(rootDir0, "text/plain", fileName1); in initTestFiles()
166 mDocsHelper.createDocument(rootDir0, "image/png", fileName2); in initTestFiles()
170 mDocsHelper.createDocument(rootDir1, "text/plain", fileName3); in initTestFiles()
171 mDocsHelper.createDocument(rootDir1, "text/plain", fileName4); in initTestFiles()
DFileCopyUiTest.java269 Uri uri = helper.createDocument(root, "image/png", fileName); in loadImageFromResources()
427 mDocsHelper.createDocument(rootDir0, "text/plain", fileName1); in testCopyDocuments_documentsDisabled()
DKeyboardNavigationUiTest.java42 mDocsHelper.createDocument(rootDir0, "image/png", "file1.png"); in initTestFiles()
DFileDeleteUiTest.java147 Uri uri = mDocsHelper.createDocument(rootDir0, "text/plain", fileName); in createDummyFiles()
DSortDocumentUiTest.java80 Uri uri = mDocsHelper.createDocument(rootDir0, MIMES[i], FILES[i]); in initFiles()
DCancelFromNotificationUiTest.java135 Uri uri = mDocsHelper.createDocument(rootDir0, "*/*", TARGET_FILE); in createDummyFile()
/packages/apps/DocumentsUI/tests/common/com/android/documentsui/
DDocumentsProviderHelper.java94 public Uri createDocument(Uri parentUri, String mimeType, String name) { in createDocument() method in DocumentsProviderHelper
99 Uri uri = DocumentsContract.createDocument(wrap(mClient), parentUri, mimeType, name); in createDocument()
107 public Uri createDocument(String parentId, String mimeType, String name) { in createDocument() method in DocumentsProviderHelper
109 return createDocument(parentUri, mimeType, name); in createDocument()
112 public Uri createDocument(RootInfo root, String mimeType, String name) { in createDocument() method in DocumentsProviderHelper
113 return createDocument(root.documentId, mimeType, name); in createDocument()
132 return createDocument(parentUri, Document.MIME_TYPE_DIR, name); in createFolder()
137 return createDocument(parentUri, Document.MIME_TYPE_DIR, name); in createFolder()
141 return createDocument(root, Document.MIME_TYPE_DIR, name); in createFolder()
DStubProvider.java190 public String createDocument(String parentId, String mimeType, String displayName) in createDocument() method in StubProvider
560 documentId = createDocument(rootId, mimeType, name, flags, streamTypes); in dispatchCreateDocumentWithFlags()
585 public String createDocument(String parentId, String mimeType, String displayName, int flags, in createDocument() method in StubProvider
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/services/
DDeleteJobTest.java33 Uri testFile1 = mDocs.createDocument(mSrcRoot, "text/plain", "test1.txt"); in testDeleteFiles()
36 Uri testFile2 = mDocs.createDocument(mSrcRoot, "text/plain", "test2.txt"); in testDeleteFiles()
47 Uri testFile1 = mDocs.createDocument(mSrcRoot, "text/plain", "test1.txt"); in testDeleteFiles_NoSrcParent()
50 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.java38 Uri validUri = mDocs.createDocument(mSrcRoot, "text/plain", "test2.txt"); in testRecoversFromInvalidUri()
53 Uri validUri = mDocs.createDocument(mSrcRoot, "text/plain", "test2.txt"); in testRecordsInvalidUris()
67 Uri validUri = mDocs.createDocument(mSrcRoot, "text/plain", "test2.txt"); in testReportsCorrectFailureCount()
DMoveJobTest.java41 Uri testFile1 = mDocs.createDocument(mSrcRoot, "text/plain", "test1.txt"); in testMoveFiles_NoSrcParent()
44 Uri testFile2 = mDocs.createDocument(mSrcRoot, "text/plain", "test2.txt"); in testMoveFiles_NoSrcParent()
/packages/apps/DocumentsUI/tests/common/com/android/documentsui/testing/
DTestModel.java81 return createDocument( in createFile()
97 return createDocument( in createFolder()
103 public DocumentInfo createDocument(String name, String mimeType, int flags) { in createDocument() method in TestModel
DTestDocumentsAccess.java63 public Uri createDocument(DocumentInfo parentDoc, String mimeType, String displayName) { in createDocument() method in TestDocumentsAccess
/packages/apps/DocumentsUI/src/com/android/documentsui/
DDocumentsAccess.java57 @Nullable Uri createDocument(DocumentInfo parentDoc, String mimeType, String displayName); in createDocument() method
135 public Uri createDocument(DocumentInfo parentDoc, String mimeType, String displayName) { in createDocument() method in DocumentsAccess.RuntimeDocumentAccess
139 return DocumentsContract.createDocument( in createDocument()
DCreateDirectoryFragment.java151 final Uri childUri = DocumentsContract.createDocument( in doInBackground()
/packages/apps/DocumentsUI/src/com/android/documentsui/archives/
DArchivesProvider.java207 public String createDocument( in createDocument() method in ArchivesProvider
211 return loader.get().createDocument(parentDocumentId, mimeType, displayName); in createDocument()
DWriteableArchive.java135 public String createDocument(String parentDocumentId, String mimeType, String displayName) in createDocument() method in WriteableArchive
/packages/services/Car/tests/BugReportApp/src/com/google/android/car/bugreport/
DBugReportInfoActivity.java281 Uri newFileUri = DocumentsContract.createDocument( in mergeFilesAndCopyToUsb()
317 Uri newFileUri = DocumentsContract.createDocument( in copyFileToUsb()
/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.java108 archiveUri = DocumentsContract.createDocument( in setUp()

12