/frameworks/base/services/tests/servicestests/src/com/android/server/storage/ |
D | FileCollectorTest.java | 52 writeDataToFile(temporaryFolder.newFile("test.jpg"), "1234"); in testImageFile() 61 writeDataToFile(temporaryFolder.newFile("test.mp4"), "1234"); in testVideoFile() 70 writeDataToFile(temporaryFolder.newFile("test.mp3"), "1234"); in testAudioFile() 79 writeDataToFile(temporaryFolder.newFile("test"), "1234"); in testMiscFile() 98 writeDataToFile(temporaryFolder.newFile("test"), "1234"); in testMultipleFiles() 99 writeDataToFile(temporaryFolder.newFile("test2"), "12345"); in testMultipleFiles() 108 writeDataToFile(temporaryFolder.newFile("test.jpg"), "1"); in testTotalSize() 109 writeDataToFile(temporaryFolder.newFile("test.mp3"), "1"); in testTotalSize() 110 writeDataToFile(temporaryFolder.newFile("test.mp4"), "1"); in testTotalSize() 111 writeDataToFile(temporaryFolder.newFile("test"), "1"); in testTotalSize() [all …]
|
D | DiskStatsLoggingServiceTest.java | 84 mInputFile = mTemporaryFolder.newFile(); in setUp() 121 writeDataToFile(mDownloads.newFile(), "lol"); in testPopulatedLogTask()
|
/frameworks/base/media/tests/MtpTests/src/android/mtp/ |
D | MtpStorageManagerTest.java | 79 private static void vWriteNewFile(File newFile) { in vWriteNewFile() argument 81 new FileOutputStream(newFile).write(new byte[] {0, 0, 0}); in vWriteNewFile() 188 File newFile = createNewFile(mainStorageDir); in testMtpObjectGetNameNonRoot() local 191 Assert.assertEquals(stream.get(0).getName(), newFile.getName()); in testMtpObjectGetNameNonRoot() 206 File newFile = createNewFile(mainStorageDir); in testMtpObjectGetIdNonRoot() local 224 File newFile = createNewFile(mainStorageDir, "TEST123.mp3"); in testMtpObjectIsDirFalse() local 234 File newFile = createNewDir(mainStorageDir); in testMtpObjectGetFormatDir() local 244 File newFile = createNewFile(mainStorageDir, "TEST123.mp3"); in testMtpObjectGetFormatNonDir() local 254 File newFile = createNewFile(mainStorageDir); in testMtpObjectGetStorageId() local 264 File newFile = createNewFile(mainStorageDir); in testMtpObjectGetLastModified() local [all …]
|
D | MtpDatabaseTest.java | 84 private static void writeNewFile(File newFile) { in writeNewFile() argument 86 new FileOutputStream(newFile).write(new byte[] {0, 0, 0}); in writeNewFile() 92 private static void writeNewFileFromByte(File newFile, byte[] byteData) { in writeNewFileFromByte() argument 94 new FileOutputStream(newFile).write(byteData); in writeNewFileFromByte()
|
/frameworks/base/packages/PackageInstaller/src/com/android/packageinstaller/wear/ |
D | WearPackageUtil.java | 46 File newFile = new File(newFileDir, packageName + ".apk"); in getTemporaryFile() local 47 return newFile; in getTemporaryFile() 80 File newFile = getTemporaryFile(context, packageName); in getFileFromFd() local 99 final FileOutputStream fo = new FileOutputStream(newFile); in getFileFromFd() 105 Os.chmod(newFile.getAbsolutePath(), 0644); in getFileFromFd() 106 return newFile; in getFileFromFd()
|
/frameworks/av/media/mtp/tests/MtpFuzzer/ |
D | mtp_fuzzer.cpp | 100 std::string newFile = toPathStr + name; in createDatabaseFromSourceDir() local 103 ret += makeFolder(newFile.c_str()); in createDatabaseFromSourceDir() 114 ret += createDatabaseFromSourceDir(oldFile.c_str(), newFile.c_str(), in createDatabaseFromSourceDir() 117 ret += copyFile(oldFile.c_str(), newFile.c_str()); in createDatabaseFromSourceDir()
|
/frameworks/base/core/tests/coretests/src/android/os/ |
D | MemoryFileTest.java | 53 MemoryFile newFile = new MemoryFile("MemoryFileTest", 10000000); in testPurge() local 54 newFile.allowPurging(true); in testPurge() 55 newFile.writeBytes(testString, 0, 0, testString.length); in testPurge() 56 files.add(newFile); in testPurge()
|
/frameworks/av/media/mtp/ |
D | MtpUtils.cpp | 144 string newFile = toPathStr + name; in copyRecursive() local 147 ret += makeFolder(newFile.c_str()); in copyRecursive() 148 ret += copyRecursive(oldFile.c_str(), newFile.c_str()); in copyRecursive() 150 ret += copyFile(oldFile.c_str(), newFile.c_str()); in copyRecursive()
|
/frameworks/base/services/tests/PackageManagerServiceTests/host/src/com/android/server/pm/test/ |
D | FactoryPackageTest.kt | 54 val versionTwoFile = HostUtils.copyResourceToHostFile(VERSION_TWO, tempFolder.newFile()) in testGetInstalledPackagesFactoryOnlyFlag() 67 val deviceSideFile = HostUtils.copyResourceToHostFile(DEVICE_SIDE, tempFolder.newFile()) in runDeviceTest()
|
D | InvalidNewSystemAppTest.kt | 69 val versionTwoFile = HostUtils.copyResourceToHostFile(VERSION_TWO, tempFolder.newFile()) in verify() 82 val versionFourFile = HostUtils.copyResourceToHostFile(VERSION_FOUR, tempFolder.newFile()) in verify()
|
D | BootTest.kt | 42 val testApkFile = HostUtils.copyResourceToHostFile(TEST_APK_NAME, tempFolder.newFile()) in installApk()
|
D | SdCardEjectionTests.kt | 86 val hostApkFile = HostUtils.copyResourceToHostFile(VERSION_ONE, tempFolder.newFile()) in launchActivity() 117 val usesApkFile = HostUtils.copyResourceToHostFile(VERSION_USES, tempFolder.newFile()) in uninstallStaticLibraryInUse()
|
D | OverlayActorVisibilityTest.kt | 72 val file = tempFolder.newFile().apply { in pushSysConfigFile()
|
D | OriginalPackageMigrationTest.kt | 88 val file = tempFolder.newFile().apply { writeText("Test") } in runForApk()
|
D | HostUtils.kt | 45 val file = HostUtils.copyResourceToHostFile(javaResource, tempFolder.newFile()) in installJavaResourceApk()
|
/frameworks/base/services/tests/PackageManagerServiceTests/unit/src/com/android/server/pm/test/verify/domain/ |
D | DomainVerificationPersistenceTest.kt | 113 val file = tempFolder.newFile().writeXml { in <lambda>() 132 val file = tempFolder.newFile().writeXml { in <lambda>() 161 val file = tempFolder.newFile().writeXml { in <lambda>()
|
D | DomainVerificationLegacySettingsTest.kt | 72 val file = tempFolder.newFile().writeXml(settings::writeSettings) in writeAndReadBackNormal()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/backup/ |
D | DataChangedJournalTest.java | 64 mFile = mTemporaryFolder.newFile(); in setUp() 104 assertThat(mJournal.equals(new DataChangedJournal(mTemporaryFolder.newFile()))).isFalse(); in equals_isFalseForDifferentFiles()
|
/frameworks/base/packages/BackupEncryption/test/robolectric/src/com/android/server/backup/encryption/chunking/ |
D | BackupFileBuilderTest.java | 523 mOldFile = mTemporaryFolder.newFile(); in setUpOldBackupWithChunks() 548 File newFile = mTemporaryFolder.newFile(); in parseDiffScript() local 549 new DiffScriptProcessor(mOldFile, newFile).process(new ByteArrayInputStream(diffScript)); in parseDiffScript() 550 return Files.toByteArray(newFile); in parseDiffScript()
|
D | DecryptedChunkFileOutputTest.java | 59 mOutputFile = temporaryFolder.newFile(); in setUp()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/backup/utils/ |
D | DataStreamFileCodecTest.java | 44 File unicornFile = mTemporaryFolder.newFile(); in serialize_writesToTheFile()
|
/frameworks/base/packages/BackupEncryption/test/robolectric/src/com/android/server/backup/encryption/keys/ |
D | TertiaryKeyRotationWindowedCountTest.java | 53 mFile = mTemporaryFolder.newFile(); in setUp()
|
/frameworks/base/packages/BackupEncryption/test/robolectric/src/com/android/server/backup/encryption/tasks/ |
D | FullRestoreToFileTaskTest.java | 65 mTargetFile = mTemporaryFolder.newFile(); in setUp()
|
/frameworks/base/services/core/java/com/android/server/wm/ |
D | LaunchParamsPersister.java | 167 final File newFile = new File(launchParamsFolder, paramsFileName); in loadLaunchParams() local 168 if (paramsFile.renameTo(newFile)) { in loadLaunchParams() 169 paramsFile = newFile; in loadLaunchParams()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/parsing/ |
D | PackageParsingDeferErrorTest.kt | 125 val file = tempFolder.newFile() in <lambda>()
|