Home
last modified time | relevance | path

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

12

/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/archives/
DWriteableArchiveTest.java87 final String dirDocumentId = mArchive.createDocument(createArchiveId("/").toDocumentId(), in testCreateDocument()
91 final String documentId = mArchive.createDocument(dirDocumentId, "image/jpeg", "test.jpeg"); in testCreateDocument()
95 mArchive.createDocument(dirDocumentId, in testCreateDocument()
103 mArchive.createDocument(createArchiveId("/").toDocumentId(), in testCreateDocument()
111 mArchive.createDocument(createArchiveId("/").toDocumentId(), in testCreateDocument()
119 mArchive.createDocument(createArchiveId("/").toDocumentId(), in testCreateDocument()
127 mArchive.createDocument(createArchiveId("/").toDocumentId(), in testCreateDocument()
135 mArchive.createDocument(createArchiveId("/").toDocumentId(), in testCreateDocument()
143 mArchive.createDocument(createArchiveId("/").toDocumentId(), in testCreateDocument()
152 final String documentId = mArchive.createDocument(createArchiveId("/").toDocumentId(), in testAddDirectory()
[all …]
/packages/apps/DocumentsUI/tests/functional/com/android/documentsui/
DFilesActivityUiTest.java45 mDocsHelper.createDocument(rootDir0, "text/plain", "file0.log"); in initTestFiles()
46 mDocsHelper.createDocument(rootDir0, "image/png", "file1.png"); in initTestFiles()
47 mDocsHelper.createDocument(rootDir0, "text/csv", "file2.csv"); in initTestFiles()
49 mDocsHelper.createDocument(rootDir1, "text/plain", "anotherFile0.log"); in initTestFiles()
50 mDocsHelper.createDocument(rootDir1, "text/plain", "poodles.text"); in initTestFiles()
83 mDocsHelper.createDocument(rootDir0, "yummers/sandwich", "Ham & Cheese.sandwich"); in testFilesList_LiveUpdate()
DFileManagementUiTest.java55 mDocsHelper.createDocument(rootDir0, "text/plain", "file0.log"); in initTestFiles()
56 mDocsHelper.createDocument(rootDir0, "image/png", "file1.png"); in initTestFiles()
57 mDocsHelper.createDocument(rootDir0, "text/csv", "file2.csv"); in initTestFiles()
59 mDocsHelper.createDocument(rootDir1, "text/plain", "anotherFile0.log"); in initTestFiles()
60 mDocsHelper.createDocument(rootDir1, "text/plain", "poodles.text"); in initTestFiles()
146 mDocsHelper.createDocument(test, "text/plain", name); in testCopyLargeAmountOfFiles()
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()
DActivityTest.java162 mDocsHelper.createDocument(rootDir0, "text/plain", fileName1); in initTestFiles()
163 mDocsHelper.createDocument(rootDir0, "image/png", fileName2); in initTestFiles()
167 mDocsHelper.createDocument(rootDir1, "text/plain", fileName3); in initTestFiles()
168 mDocsHelper.createDocument(rootDir1, "text/plain", fileName4); in initTestFiles()
DKeyboardNavigationUiTest.java41 mDocsHelper.createDocument(rootDir0, "image/png", "file1.png"); in initTestFiles()
DSortDocumentUiTest.java79 Uri uri = mDocsHelper.createDocument(rootDir0, MIMES[i], FILES[i]); in initFiles()
/packages/apps/DocumentsUI/tests/common/com/android/documentsui/
DDocumentsProviderHelper.java88 public Uri createDocument(Uri parentUri, String mimeType, String name) { in createDocument() method in DocumentsProviderHelper
93 Uri uri = DocumentsContract.createDocument(mClient, parentUri, mimeType, name); in createDocument()
101 public Uri createDocument(String parentId, String mimeType, String name) { in createDocument() method in DocumentsProviderHelper
103 return createDocument(parentUri, mimeType, name); in createDocument()
106 public Uri createDocument(RootInfo root, String mimeType, String name) { in createDocument() method in DocumentsProviderHelper
107 return createDocument(root.documentId, mimeType, name); in createDocument()
126 return createDocument(parentUri, Document.MIME_TYPE_DIR, name); in createFolder()
131 return createDocument(parentUri, Document.MIME_TYPE_DIR, name); in createFolder()
135 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
551 documentId = createDocument(rootId, mimeType, name, flags, streamTypes); in dispatchCreateDocumentWithFlags()
576 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/
DAbstractCopyJobTest.java40 Uri testFile1 = mDocs.createDocument(mSrcRoot, "text/plain", "test1.txt"); in runCopyFilesTest()
43 Uri testFile2 = mDocs.createDocument(mSrcRoot, "text/plain", "test2.txt"); in runCopyFilesTest()
97 mDocs.createDocument(testDir1, "text/plain", "test1.txt"); in runCopyDirRecursivelyTest()
100 mDocs.createDocument(testDir2, "text/plain", "test2.txt"); in runCopyDirRecursivelyTest()
148 Uri testFile = mDocs.createDocument(mSrcRoot, "text/plain", "test1.txt"); in runCopyFileWithReadErrorsTest()
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()
DJobErrorHandlingTest.java37 Uri validUri = mDocs.createDocument(mSrcRoot, "text/plain", "test2.txt"); in testRecoversFromInvalidUri()
52 Uri validUri = mDocs.createDocument(mSrcRoot, "text/plain", "test2.txt"); in testRecordsInvalidUris()
66 Uri validUri = mDocs.createDocument(mSrcRoot, "text/plain", "test2.txt"); in testReportsCorrectFailureCount()
DMoveJobTest.java40 Uri testFile1 = mDocs.createDocument(mSrcRoot, "text/plain", "test1.txt"); in testMoveFiles_NoSrcParent()
43 Uri testFile2 = mDocs.createDocument(mSrcRoot, "text/plain", "test2.txt"); in testMoveFiles_NoSrcParent()
/packages/apps/DocumentsUI/tests/common/com/android/documentsui/testing/
DTestModel.java80 return createDocument( in createFile()
96 return createDocument( in createFolder()
102 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
DTestEnv.java147 FILE_VIRTUAL = model.createDocument( in reset()
/packages/apps/DocumentsUI/src/com/android/documentsui/
DDocumentsAccess.java54 @Nullable Uri createDocument(DocumentInfo parentDoc, String mimeType, String displayName); in createDocument() method
132 public Uri createDocument(DocumentInfo parentDoc, String mimeType, String displayName) { in createDocument() method in DocumentsAccess.RuntimeDocumentAccess
136 return DocumentsContract.createDocument( in createDocument()
DCreateDirectoryFragment.java142 final Uri childUri = DocumentsContract.createDocument( in doInBackground()
/packages/apps/DocumentsUI/src/com/android/documentsui/archives/
DArchivesProvider.java187 public String createDocument( in createDocument() method in ArchivesProvider
191 return loader.get().createDocument(parentDocumentId, mimeType, displayName); in createDocument()
DWriteableArchive.java138 public String createDocument(String parentDocumentId, String mimeType, String displayName) in createDocument() method in WriteableArchive
DArchive.java235 public String createDocument(String parentDocumentId, String mimeType, String displayName) in createDocument() method in Archive
/packages/providers/DownloadProvider/src/com/android/providers/downloads/
DDownloadStorageProvider.java154 public String createDocument(String parentDocId, String mimeType, String displayName) in createDocument() method in DownloadStorageProvider
159 String newDocumentId = super.createDocument(parentDocId, mimeType, displayName); in createDocument()
/packages/apps/DocumentsUI/src/com/android/documentsui/picker/
DCreatePickedDocumentTask.java78 Uri childUri = mDocs.createDocument(cwd, mMimeType, mDisplayName); in run()
/packages/apps/DocumentsUI/src/com/android/documentsui/services/
DCompressJob.java108 archiveUri = DocumentsContract.createDocument( in setUp()
DCopyJob.java439 dstUri = DocumentsContract.createDocument( in byteCopyDocument()

12