Home
last modified time | relevance | path

Searched refs:createNewFile (Results 1 – 25 of 56) sorted by relevance

123

/cts/tests/tests/os/src/android/os/cts/
DFileAccessPermissionTest.java61 fakeSystemFile.createNewFile(); in testSystemDirAccess()
115 assertTrue(newFile.createNewFile()); in testAccessAppDataDir()
129 assertFalse(newOtherAppFile.createNewFile()); in testAccessAppDataDir()
145 assertTrue(sdcardFile.createNewFile()); in testExternalStorageAccess()
155 assertTrue(sdcardSubDirFile.createNewFile()); in testExternalStorageAccess()
174 assertTrue(sdcardFile.createNewFile()); in testNoExternalStorageAccess()
DFileObserverTest.java45 testFile.createNewFile(); in helpSetUp()
175 testFile.createNewFile(); in helpTestFileObserver()
233 assertTrue(testFile.createNewFile()); in verifyTriggeredEventsOnDir()
/cts/hostsidetests/scopedstorage/device/src/android/scopedstorage/cts/device/
DScopedStorageDeviceTest.java280 new File(musicDir, NONMEDIA_FILE_NAME).createNewFile(); in testTypePathConformity()
284 new File(musicDir, VIDEO_FILE_NAME).createNewFile(); in testTypePathConformity()
288 new File(musicDir, IMAGE_FILE_NAME).createNewFile(); in testTypePathConformity()
293 new File(moviesDir, NONMEDIA_FILE_NAME).createNewFile(); in testTypePathConformity()
297 new File(moviesDir, AUDIO_FILE_NAME).createNewFile(); in testTypePathConformity()
301 new File(moviesDir, IMAGE_FILE_NAME).createNewFile(); in testTypePathConformity()
306 new File(dcimDir, NONMEDIA_FILE_NAME).createNewFile(); in testTypePathConformity()
310 new File(dcimDir, AUDIO_FILE_NAME).createNewFile(); in testTypePathConformity()
315 new File(picturesDir, NONMEDIA_FILE_NAME).createNewFile(); in testTypePathConformity()
319 new File(picturesDir, AUDIO_FILE_NAME).createNewFile(); in testTypePathConformity()
[all …]
/cts/tests/autofillservice/src/android/autofillservice/cts/activities/
DOutOfProcessLoginActivity.java56 if (!getStartedMarker(this).createNewFile()) { in onStart()
70 if (!getStoppedMarker(this).createNewFile()) { in onStop()
84 if (!getDestroyedMarker(this).createNewFile()) { in onDestroy()
/cts/hostsidetests/scopedstorage/legacy/src/android/scopedstorage/cts/legacy/
DLegacyStorageTest.java201 file.createNewFile(); in testCreateFilesInRandomPlaces_hasW()
241 newTxtFile.createNewFile(); in testCantAccessExternalStorage()
249 newMusicFile.createNewFile(); in testCantAccessExternalStorage()
281 assertThat(fileInDataDir.createNewFile()).isTrue(); in testCantAccessExternalStorage()
293 assertThat(fileInMediaDir.createNewFile()).isTrue(); in testCantAccessExternalStorage()
334 newFile.createNewFile(); in testReadOnlyExternalStorage_hasR()
411 assertThat(musicFile1.createNewFile()).isTrue(); in testCanRename_hasRW()
418 assertThat(pdfFile1.createNewFile()).isTrue(); in testCanRename_hasRW()
460 assertThat(mediaFile1.createNewFile()).isTrue(); in testCantRename_hasR()
495 assertThat(mediaFile1.createNewFile()).isTrue(); in testCantRename_noStoragePermission()
[all …]
/cts/hostsidetests/appsecurity/test-apps/WriteExternalStorageApp/src/com/android/cts/writeexternalstorageapp/
DWriteGiftTest.java41 assertTrue(write.createNewFile()); in testStageNonGifts()
70 none.createNewFile(); in testObbGifts()
103 new File(dir, "probe").createNewFile(); in testClearingWrite()
/cts/tests/tests/media/src/android/media/cts/
DMediaScannerNotificationTest.java59 noMedia.createNewFile(); in testMediaScannerNotification()
93 foo.createNewFile(); in createTempFiles()
/cts/hostsidetests/scopedstorage/src/android/scopedstorage/cts/
DScopedStorageTest.java221 otherAppExternalDataFile.createNewFile(); in testManageExternalStorageCantReadWriteOtherAppExternalDir()
270 assertThat(myAppPdf.createNewFile()).isTrue(); in testAccess_file()
474 assertThat(nomediaFile.createNewFile()).isTrue(); in testManageExternalStorageDoesntSkipScanningDirtyNomediaDir()
477 assertThat(mediaFile.createNewFile()).isTrue(); in testManageExternalStorageDoesntSkipScanningDirtyNomediaDir()
513 assertThat(topLevelNomediaFile.createNewFile()).isTrue(); in testScanDoesntSkipDirtySubtree()
514 assertThat(nomediaFileInSubDir.createNewFile()).isTrue(); in testScanDoesntSkipDirtySubtree()
635 assertThat(newFile.createNewFile()).isTrue(); in assertCreateFileAndScanNomediaDirDoesntNoOp()
728 otherAppExternalDataFile.createNewFile(); in testNoIsolatedStorageCantReadWriteOtherAppExternalDir()
794 assertTrue(imageFile.createNewFile()); in testRenameFromShell()
900 newTxtFile.createNewFile(); in testInstantAppsCantAccessExternalStorage()
[all …]
/cts/hostsidetests/appsecurity/test-apps/SplitApp/src/com/android/cts/splitapp/
DBaseBootReceiver.java37 probe.createNewFile(); in onReceive()
/cts/hostsidetests/appsecurity/test-apps/ReadExternalStorageApp/src/com/android/cts/readexternalstorageapp/
DReadMultiViewTest.java37 assertTrue(ourFile.createNewFile()); in testFolderSetup()
DReadGiftTest.java37 assertTrue(read.createNewFile()); in testStageNonGifts()
/cts/hostsidetests/install/app/src/android/cts/install/
DSessionRule.java51 mTestStateFile.createNewFile(); in before()
/cts/tests/tests/content/src/android/content/res/cts/
DAssetFileDescriptor_AutoCloseOutputStreamTest.java56 file.createNewFile(); in testAutoCloseOutputStream()
DAssetFileDescriptorTest.java50 mFile.createNewFile(); in setUp()
/cts/tests/tests/util/src/android/util/cts/
DPrintStreamPrinterTest.java51 mFile.createNewFile(); in setup()
DPrintWriterPrinterTest.java53 mFile.createNewFile(); in setup()
/cts/hostsidetests/appsecurity/test-apps/ExternalStorageApp/src/com/android/cts/externalstorageapp/
DCommonExternalStorageTest.java272 assertFalse(probe.createNewFile()); in assertDirReadOnlyAccess()
297 assertTrue(probe.createNewFile()); in assertDirReadWriteAccess()
311 assertFalse(probe.createNewFile()); in assertDirNoAccess()
331 assertFalse(probe.createNewFile()); in assertDirNoWriteAccess()
DGiftTest.java39 assertTrue(none.createNewFile()); in testStageNonGifts()
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/
DReportLogDeviceInfoStore.java84 mJsonFile.createNewFile(); in close()
/cts/tests/filesystem/src/android/filesystem/cts/
DFileUtil.java77 public static File createNewFile(Context context, String dirName) { in createNewFile() method in FileUtil
112 files[i] = createNewFile(context, dirName); in createNewFiles()
145 File file = createNewFile(context, dirName); in createNewFilledFile()
/cts/tests/tests/graphics/src/android/graphics/cts/
DUtils.java87 file.createNewFile(); in obtainFile()
/cts/hostsidetests/appsecurity/test-apps/AppDataIsolationTestApp/common/src/com/android/cts/appdataisolation/common/
DFileUtils.java130 file.createNewFile(); in touchFile()
/cts/tests/tests/provider/src/android/provider/cts/media/
DMediaStore_DownloadsTest.java119 downloadFile.createNewFile(); in testScannedDownload()
133 downloadFile.createNewFile(); in testScannedMediaDownload()
362 file.createNewFile(); in insertImage()
/cts/common/device-side/device-info/src/com/android/compatibility/common/deviceinfo/
DDeviceInfo.java92 jsonFile.createNewFile(); in testCollectDeviceInfo()
/cts/hostsidetests/backup/PreservedSettingsApp/src/android/cts/backup/preservedsettingsapp/
DPreservedSettingsRestoreTest.java72 mSharedPreferencesFile.createNewFile(); in setUp()

123