Home
last modified time | relevance | path

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

/packages/apps/DocumentsUI/tests/functional/com/android/documentsui/services/
DAbstractCopyJobTest.java65 Uri testFile = mDocs.createVirtualFile( in runCopyVirtualTypedFileTest() local
69 createJob(newArrayList(testFile)).run(); in runCopyVirtualTypedFileTest()
79 Uri testFile = mDocs.createVirtualFile( in runCopyVirtualNonTypedFileTest() local
83 createJob(newArrayList(testFile)).run(); in runCopyVirtualNonTypedFileTest()
164 Uri testFile = mDocs.createDocument(mSrcRoot, "text/plain", "test1.txt"); in runCopyFileWithReadErrorsTest() local
165 mDocs.writeDocument(testFile, HAM_BYTES); in runCopyFileWithReadErrorsTest()
167 String testId = DocumentsContract.getDocumentId(testFile); in runCopyFileWithReadErrorsTest()
170 createJob(newArrayList(testFile)).run(); in runCopyFileWithReadErrorsTest()
DMoveJobTest.java60 Uri testFile = mDocs.createVirtualFile( in testMoveVirtualTypedFile() local
63 createJob(newArrayList(testFile)).run(); in testMoveVirtualTypedFile()
81 Uri testFile = mDocs.createDocumentWithFlags( in testMove_BackendSideVirtualTypedFile_Fallback() local
86 createJob(newArrayList(testFile)).run(); in testMove_BackendSideVirtualTypedFile_Fallback()
DCopyJobTest.java50 Uri testFile = mDocs.createDocumentWithFlags( in testCopy_BackendSideVirtualTypedFile_Fallback() local
55 createJob(newArrayList(testFile)).run(); in testCopy_BackendSideVirtualTypedFile_Fallback()
/packages/modules/Connectivity/tests/unit/java/android/net/
DNetworkStatsCollectionTest.java122 final File testFile = in testReadLegacyNetwork() local
124 stageFile(R.raw.netstats_v1, testFile); in testReadLegacyNetwork()
127 collection.readLegacyNetwork(testFile); in testReadLegacyNetwork()
150 final File testFile = in testReadLegacyUid() local
152 stageFile(R.raw.netstats_uid_v4, testFile); in testReadLegacyUid()
155 collection.readLegacyUid(testFile, false); in testReadLegacyUid()
178 final File testFile = in testReadLegacyUidTags() local
180 stageFile(R.raw.netstats_uid_v4, testFile); in testReadLegacyUidTags()
183 collection.readLegacyUid(testFile, true); in testReadLegacyUidTags()
205 final File testFile = in getUidInputStreamFromRes() local
[all …]
/packages/apps/Messaging/src/com/android/messaging/util/
DFileUtil.java47 File testFile = new File(directory, newName); in getNewFile() local
48 if (!testFile.exists()) { in getNewFile()
49 testFile.createNewFile(); in getNewFile()
50 return testFile; in getNewFile()
/packages/modules/CaptivePortalLogin/tests/src/com/android/captiveportallogin/
DDownloadServiceTest.kt271 private fun makeFileUri(testFile: File) = FileProvider.getUriForFile( in makeFileUri()
275 testFile in makeFileUri()
477 val testFile = createTestFile(extension = ".$TEST_TEXT_FILE_EXTENSION") in testTapDoneNotification() constant
481 startDownloadTask(binder, testFile, TEST_TEXT_FILE_TYPE) in testTapDoneNotification()
485 val note = findNotification(UiSelector().text(testFile.name)) in testTapDoneNotification()
564 val testFile = intent.data ?: fail("This activity expects a file") in onCreate() constant
565 val fileStream = contentResolver.openInputStream(testFile) in onCreate()
/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/modules/HealthFitness/tests/unittests/src/com/android/server/healthconnect/permission/
DGrantTimePersistenceUnitTest.java187 File testFile = new File(mMockDataDirectory, "test_file.xml"); in testWriteData_writeAndReadState_restoredEqualToWritten() local
188 GrantTimeXmlHelper.serializeGrantTimes(testFile, DEFAULT_STATE); in testWriteData_writeAndReadState_restoredEqualToWritten()
189 UserGrantTimeState state = GrantTimeXmlHelper.parseGrantTime(testFile); in testWriteData_writeAndReadState_restoredEqualToWritten()
/packages/modules/Virtualization/tests/hostside/helper/java/com/android/microdroid/test/host/
DMicrodroidHostTestCaseBase.java189 File testFile = FileUtil.findFile(subDir, name); in findTestFile() local
190 if (testFile != null) { in findTestFile()
191 return testFile; in findTestFile()
/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/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/data/measurement/
DDeleteApiIntegrationTest.java76 for (String testFile : testFileList) { in data()
77 inputStreams.add(assetManager.open(TEST_DIR + "/" + testFile)); in data()
/packages/apps/TV/tuner/sampletunertvinput/src/com/android/tv/samples/sampletunertvinput/
DSampleTunerTvInputUtils.java77 String testFile = context.getFilesDir().getAbsolutePath() + "/" + fileName; in readFilePlaybackInput() local
78 File file = new File(testFile); in readFilePlaybackInput()
/packages/providers/MediaProvider/tests/src/com/android/providers/media/
DMediaProviderTest.java328 final File testFile = stage(R.raw.lg_g4_iso_800_jpg, in testGrantMediaReadForPackage() local
330 final Uri uri = MediaStore.scanFile(sIsolatedResolver, testFile); in testGrantMediaReadForPackage()
350 testFile.delete(); in testGrantMediaReadForPackage()
359 final File testFile = stage(R.raw.lg_g4_iso_800_jpg, in testGetReadGrantsForPackage() local
361 final Uri uri = MediaStore.scanFile(sIsolatedResolver, testFile); in testGetReadGrantsForPackage()
393 testFile.delete(); in testGetReadGrantsForPackage()
401 final File testFile = stage(R.raw.lg_g4_iso_800_jpg, in testRevokeReadGrantsForPackage() local
403 final Uri uri = MediaStore.scanFile(sIsolatedResolver, testFile); in testRevokeReadGrantsForPackage()
435 testFile.delete(); in testRevokeReadGrantsForPackage()
/packages/providers/TelephonyProvider/src/com/android/providers/telephony/
DCarrierIdProvider.java538 File testFile = new File(OVERRIDE_PB_PATH); in getUpdateCarrierList() local
541 if (Build.IS_DEBUGGABLE && testFile.exists()) { in getUpdateCarrierList()
542 is = new FileInputStream(testFile); in getUpdateCarrierList()