Searched refs:newFile (Results 1 – 8 of 8) sorted by relevance
/cts/hostsidetests/packagemanager/parsing/processing/api/src/android/content/pm/parsing/cts/generator/api/ |
D | ApkGenerator.kt | 76 return tempFolder.newFile().apply { in <lambda>() 90 val outputFile = tempFolder.newFile() in <lambda>()
|
/cts/tests/tests/os/src/android/os/cts/ |
D | FileAccessPermissionTest.java | 113 File newFile = new File(dir, System.currentTimeMillis() + "test.txt"); in testAccessAppDataDir() local 115 assertTrue(newFile.createNewFile()); in testAccessAppDataDir() 116 writeFileCheck(newFile); in testAccessAppDataDir()
|
/cts/hostsidetests/packagemanager/domainverification/host/src/com/android/cts/packagemanager/verify/domain/host/ |
D | DomainVerificationHostUtils.kt | 33 copyResourceToHostFile(apkName.value, tempFolder.newFile()), in <lambda>()
|
/cts/hostsidetests/scopedstorage/src/android/scopedstorage/cts/ |
D | ScopedStorageTest.java | 633 private void assertCreateFileAndScanNomediaDirDoesntNoOp(File newFile, File scanDir) in assertCreateFileAndScanNomediaDirDoesntNoOp() argument 635 assertThat(newFile.createNewFile()).isTrue(); in assertCreateFileAndScanNomediaDirDoesntNoOp() 638 assertThat(getFileRowIdFromDatabase(newFile)).isEqualTo(-1); in assertCreateFileAndScanNomediaDirDoesntNoOp() 641 assertThat(getFileRowIdFromDatabase(newFile)).isNotEqualTo(-1); in assertCreateFileAndScanNomediaDirDoesntNoOp() 922 private void createAndCheckFileAsApp(TestApp testApp, File newFile) throws Exception { in createAndCheckFileAsApp() argument 923 assertThat(createFileAs(testApp, newFile.getPath())).isTrue(); in createAndCheckFileAsApp() 924 assertThat(getFileOwnerPackageFromDatabase(newFile)) in createAndCheckFileAsApp() 926 assertThat(getFileRowIdFromDatabase(newFile)).isNotEqualTo(-1); in createAndCheckFileAsApp()
|
/cts/hostsidetests/scopedstorage/libs/ScopedStorageTestLib/src/android/scopedstorage/cts/lib/ |
D | TestUtils.java | 925 public static void assertCanRenameFile(File oldFile, File newFile) { in assertCanRenameFile() argument 926 assertCanRenameFile(oldFile, newFile, /* checkDB */ true); in assertCanRenameFile() 932 public static void assertCanRenameFile(File oldFile, File newFile, boolean checkDatabase) { in assertCanRenameFile() argument 933 assertThat(oldFile.renameTo(newFile)).isTrue(); in assertCanRenameFile() 935 assertThat(newFile.exists()).isTrue(); in assertCanRenameFile() 938 assertThat(getFileRowIdFromDatabase(newFile)).isNotEqualTo(-1); in assertCanRenameFile() 945 public static void assertCantRenameFile(File oldFile, File newFile) { in assertCantRenameFile() argument 947 assertThat(oldFile.renameTo(newFile)).isFalse(); in assertCantRenameFile()
|
/cts/hostsidetests/appsecurity/test-apps/MediaStorageApp/src/com/android/cts/mediastorageapp/ |
D | MediaStorageTest.java | 478 final File newFile = Environment.buildPath(Environment.getExternalStorageDirectory(), in assertRenameFileAPISupport() local 480 assertThat(oldFile.renameTo(newFile)).isTrue(); in assertRenameFileAPISupport() 482 assertThat(newFile.renameTo(oldFile)).isTrue(); in assertRenameFileAPISupport()
|
/cts/hostsidetests/scopedstorage/legacy/src/android/scopedstorage/cts/legacy/ |
D | LegacyStorageTest.java | 332 final File newFile = new File(TestUtils.getMusicDir(), "LegacyFileAccessTest.mp3"); in testReadOnlyExternalStorage_hasR() local 334 newFile.createNewFile(); in testReadOnlyExternalStorage_hasR() 335 fail("Creating file expected to fail: " + newFile); in testReadOnlyExternalStorage_hasR()
|
/cts/hostsidetests/scopedstorage/device/src/android/scopedstorage/cts/device/ |
D | ScopedStorageDeviceTest.java | 1056 File newFile = new File(getDcimDir(), newDisplayName); in testContentResolverUpdate() local 1070 assertThat(newFile.exists()).isTrue(); in testContentResolverUpdate() 1071 assertThat(newFile.createNewFile()).isFalse(); in testContentResolverUpdate() 1074 newFile.delete(); in testContentResolverUpdate() 2883 final File newFile = new File(file.getAbsolutePath(), "test"); in testTransformsDirCommon() local 2884 assertThat(newFile.mkdir()).isFalse(); in testTransformsDirCommon() 2885 assertThrows(IOException.class, () -> newFile.createNewFile()); in testTransformsDirCommon()
|