Home
last modified time | relevance | path

Searched refs:createFile (Results 1 – 9 of 9) sorted by relevance

/packages/apps/DocumentsUI/tests/common/com/android/documentsui/testing/
DTestEnv.java151 FILE_TXT = model.createFile("woowoo.txt"); in reset()
152 FILE_PNG = model.createFile("peppey.png"); in reset()
153 FILE_JPG = model.createFile("jiffy.jpg"); in reset()
154 FILE_GIF = model.createFile("glibby.gif"); in reset()
155 FILE_PDF = model.createFile("busy.pdf"); in reset()
156 FILE_MP4 = model.createFile("cameravideo.mp4"); in reset()
157 FILE_APK = model.createFile("becareful.apk"); in reset()
158 FILE_PARTIAL = model.createFile( in reset()
162 FILE_READ_ONLY = model.createFile("topsecretsystemfile.bin", 0); in reset()
163 FILE_ARCHIVE = model.createFile("whatsinthere.zip"); in reset()
[all …]
DTestModel.java72 public DocumentInfo createFile(String name) { in createFile() method in TestModel
73 return createFile( in createFile()
80 public DocumentInfo createFile(String name, int flags) { in createFile() method in TestModel
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/
DGlobalSearchLoaderTest.java71 final DocumentInfo doc = mEnv.model.createFile(SEARCH_STRING + ".jpg", FILE_FLAG); in setUp()
175 final DocumentInfo pdfDoc = mEnv.model.createFile(SEARCH_STRING + ".pdf"); in testSearchResult_includeSearchString()
178 final DocumentInfo apkDoc = mEnv.model.createFile(SEARCH_STRING + ".apk"); in testSearchResult_includeSearchString()
181 final DocumentInfo testApkDoc = mEnv.model.createFile("test.apk"); in testSearchResult_includeSearchString()
206 final DocumentInfo pdfDoc = mEnv.model.createFile(SEARCH_STRING + ".pdf"); in testSearchResult_includeDifferentRoot()
209 final DocumentInfo apkDoc = mEnv.model.createFile(SEARCH_STRING + ".apk"); in testSearchResult_includeDifferentRoot()
212 final DocumentInfo testApkDoc = mEnv.model.createFile("test.apk"); in testSearchResult_includeDifferentRoot()
DRecentsLoaderTests.java93 final DocumentInfo doc = mEnv.model.createFile("freddy.jpg", in testDocumentsNotMovable()
123 final DocumentInfo doc = mEnv.model.createFile("freddy.jpg"); in testContentsUpdate_observable()
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/dirlist/
DDirectoryAddonsAdapterTest.java73 mEnv.model.createFile("b"); // id will be "2" in testGetPosition()
96 mEnv.model.createFile(name); in testItemCount_allFiles()
105 mEnv.model.createFile(name); in testAddsInfoMessage_WithDirectoryChildren()
/packages/apps/DocumentsUI/tests/common/com/android/documentsui/
DStubProvider.java193 File file = createFile(parent, mimeType, displayName); in createDocument()
589 File file = createFile(parent, mimeType, displayName); in createDocument()
603 private File createFile(StubDocument parent, String mimeType, String displayName) in createFile() method in StubProvider
702 final File file = createFile(rootId, path, mimeType, content); in createRegularFile()
717 final File file = createFile(rootId, path, mimeType, content); in createVirtualFile()
744 private File createFile(String rootId, String path, String mimeType, byte[] content) in createFile() method in StubProvider
/packages/apps/DocumentsUI/perf-tests/src/com/android/documentsui/
DStressProvider.java109 document = StubDocument.createFile( in onCreate()
227 public static StubDocument createFile(Context context, String mimeType, int thumbnail, in createFile() method in StressProvider.StubDocument
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/storagelifetime/
DStorageLifetimeFragment.java122 Files.createFile(filePath); in getFilePath()
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/common/
DFileCache.java189 public File createFile() throws IOException { in createFile() method in FileCache