/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()
|
D | DiskStatsFileLoggerTest.java | 50 mOutputFile = temporaryFolder.newFile(); in setUp()
|
/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() 187 File newFile = createNewFile(mainStorageDir); in testMtpObjectGetNameNonRoot() local 190 Assert.assertEquals(stream.get(0).getName(), newFile.getName()); in testMtpObjectGetNameNonRoot() 205 File newFile = createNewFile(mainStorageDir); in testMtpObjectGetIdNonRoot() local 223 File newFile = createNewFile(mainStorageDir, "TEST123.mp3"); in testMtpObjectIsDirFalse() local 233 File newFile = createNewDir(mainStorageDir); in testMtpObjectGetFormatDir() local 243 File newFile = createNewFile(mainStorageDir, "TEST123.mp3"); in testMtpObjectGetFormatNonDir() local 253 File newFile = createNewFile(mainStorageDir); in testMtpObjectGetStorageId() local 263 File newFile = createNewFile(mainStorageDir); in testMtpObjectGetLastModified() local [all …]
|
/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/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/servicestests/src/com/android/server/backup/ |
D | DataChangedJournalTest.java | 60 mFile = mTemporaryFolder.newFile(); in setUp() 94 assertThat(mJournal.equals(new DataChangedJournal(mTemporaryFolder.newFile()))).isFalse(); in equals_isFalseForDifferentFiles()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/backup/utils/ |
D | DataStreamFileCodecTest.java | 44 File unicornFile = mTemporaryFolder.newFile(); in serialize_writesToTheFile()
|
/frameworks/base/services/core/java/com/android/server/appop/ |
D | HistoricalRegistry.java | 943 final File newFile = generateFile(newBaseDir, depth); in handlePersistHistoricalOpsRecursiveDLocked() local 944 Files.createLink(newFile.toPath(), oldFile.toPath()); in handlePersistHistoricalOpsRecursiveDLocked() 1066 final File newFile = generateFile(newBaseDir, depth); in handlePersistHistoricalOpsRecursiveDLocked() local 1067 oldFileNames.remove(newFile.getName()); in handlePersistHistoricalOpsRecursiveDLocked() 1071 writeHistoricalOpsDLocked(persistedOps, intervalOverflowMillis, newFile); in handlePersistHistoricalOpsRecursiveDLocked()
|
/frameworks/base/packages/Shell/src/com/android/shell/ |
D | BugreportProgressService.java | 1767 final File newFile; in renameScreenshots() local 1771 newFile = oldFile.renameTo(renamedFile) ? renamedFile : oldFile; in renameScreenshots() 1774 newFile = oldFile; in renameScreenshots() 1776 renamedFiles.add(newFile); in renameScreenshots()
|
/frameworks/base/services/usage/java/com/android/server/usage/ |
D | UsageStatsDatabase.java | 539 final File newFile = new File(file.getBaseFile().getParentFile(), newName); in onTimeChanged() local 541 file.getBaseFile().renameTo(newFile); in onTimeChanged()
|
/frameworks/base/tools/aapt/ |
D | ResourceTable.cpp | 4810 sp<AaptFile> newFile = new AaptFile(target->getSourceFile(), in versionForCompat() local 4813 newFile->getGroupEntry().toDirName(target->getResourceType()).string(), in versionForCompat() 4830 item.file = newFile; in versionForCompat() 4934 sp<AaptFile> newFile = new AaptFile(target->getSourceFile(), in modifyForCompat() local 4937 newFile->getGroupEntry().toDirName(target->getResourceType()).string(), in modifyForCompat() 4947 newFile->getResourceType().string(), in modifyForCompat() 4964 item.file = newFile; in modifyForCompat()
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/metrics/ |
D | PersistAtomsStorageTest.java | 312 mTestFile = mFolder.newFile(TEST_FILE); in setUp()
|