Home
last modified time | relevance | path

Searched refs:testFile (Results 1 – 8 of 8) sorted by relevance

/packages/modules/CaptivePortalLogin/tests/src/com/android/captiveportallogin/
DDownloadServiceTest.kt198 private fun makeDownloadIntent(testFile: File) = DownloadService.makeDownloadIntent( in makeDownloadIntent()
203 testFile.name, in makeDownloadIntent()
204 makeFileUri(testFile)) in makeDownloadIntent()
210 private fun makeFileUri(testFile: File) = FileProvider.getUriForFile( in makeDownloadIntent()
214 testFile) in makeDownloadIntent()
288 val testFile = createTestFile(extension = ".testtxtfile") in testTapDoneNotification() constant
289 val downloadIntent = makeDownloadIntent(testFile) in testTapDoneNotification()
356 val testFile = intent.data ?: fail("This activity expects a file") in onCreate() constant
357 val fileStream = contentResolver.openInputStream(testFile) in onCreate()
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/services/
DAbstractCopyJobTest.java64 Uri testFile = mDocs.createVirtualFile( in runCopyVirtualTypedFileTest() local
68 createJob(newArrayList(testFile)).run(); in runCopyVirtualTypedFileTest()
78 Uri testFile = mDocs.createVirtualFile( in runCopyVirtualNonTypedFileTest() local
82 createJob(newArrayList(testFile)).run(); in runCopyVirtualNonTypedFileTest()
163 Uri testFile = mDocs.createDocument(mSrcRoot, "text/plain", "test1.txt"); in runCopyFileWithReadErrorsTest() local
164 mDocs.writeDocument(testFile, HAM_BYTES); in runCopyFileWithReadErrorsTest()
166 String testId = DocumentsContract.getDocumentId(testFile); in runCopyFileWithReadErrorsTest()
169 createJob(newArrayList(testFile)).run(); in runCopyFileWithReadErrorsTest()
DMoveJobTest.java59 Uri testFile = mDocs.createVirtualFile( in testMoveVirtualTypedFile() local
62 createJob(newArrayList(testFile)).run(); in testMoveVirtualTypedFile()
80 Uri testFile = mDocs.createDocumentWithFlags( in testMove_BackendSideVirtualTypedFile_Fallback() local
85 createJob(newArrayList(testFile)).run(); in testMove_BackendSideVirtualTypedFile_Fallback()
DCopyJobTest.java49 Uri testFile = mDocs.createDocumentWithFlags( in testCopy_BackendSideVirtualTypedFile_Fallback() local
54 createJob(newArrayList(testFile)).run(); in testCopy_BackendSideVirtualTypedFile_Fallback()
/packages/apps/Messaging/src/com/android/messaging/util/
DFileUtil.java44 File testFile = new File(directory, newName); in getNewFile() local
45 if (!testFile.exists()) { in getNewFile()
46 testFile.createNewFile(); in getNewFile()
47 return testFile; in getNewFile()
/packages/apps/StorageManager/tests/unit/src/com/android/storagemanager/deletionhelper/
DFetchDownloadsLoaderTest.java65 File testFile = File.createTempFile("test", null, tempDir); in testNestedDirectories() local
66 testFile.setLastModified(0); in testNestedDirectories()
67 testFile.deleteOnExit(); in testNestedDirectories()
/packages/apps/TV/tuner/tests/unittests/javatests/com/android/tv/tuner/
DFileTunerHal.java63 FileTunerHal(Context context, File testFile) { in FileTunerHal() argument
65 mTestFile = testFile; in FileTunerHal()
/packages/providers/TelephonyProvider/src/com/android/providers/telephony/
DCarrierIdProvider.java535 File testFile = new File(OVERRIDE_PB_PATH); in getUpdateCarrierList() local
538 if (Build.IS_DEBUGGABLE && testFile.exists()) { in getUpdateCarrierList()
539 is = new FileInputStream(testFile); in getUpdateCarrierList()