Home
last modified time | relevance | path

Searched refs:newFile (Results 1 – 9 of 9) sorted by relevance

/frameworks/support/core-utils/tests/java/android/support/v4/provider/
DDocumentFileTest.java233 final DocumentFile newFile = meow.createFile("text/plain", "My New File"); in testCreate()
234 assertEquals("My New File.txt", newFile.getName()); in testCreate()
235 assertEquals("text/plain", newFile.getType()); in testCreate()
236 assertTrue("isFile", newFile.isFile()); in testCreate()
237 assertFalse("isDirectory", newFile.isDirectory()); in testCreate()
239 assertEquals("length", 0, newFile.length()); in testCreate()
240 writeInt(newFile.getUri(), 0); in testCreate()
241 assertEquals("length", 4, newFile.length()); in testCreate()
/frameworks/base/core/tests/coretests/src/android/os/
DMemoryFileTest.java51 MemoryFile newFile = new MemoryFile("MemoryFileTest", 10000000); in testPurge() local
52 newFile.allowPurging(true); in testPurge()
53 newFile.writeBytes(testString, 0, 0, testString.length); in testPurge()
54 files.add(newFile); in testPurge()
/frameworks/base/tools/aapt2/link/
DTableMerger.cpp68 FileReference* newFile, FileReference* oldFile) -> bool { in mergeImpl() argument
78 newFile->file = f; in mergeImpl()
113 FileReference* newFile, FileReference* oldFile) -> bool { in mergeAndMangle() argument
122 newFile->file = f; in mergeAndMangle()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
DPasspointManagementObjectManagerTest.java68 File file = tempFolder.newFile(configFile.split("/")[1]); in createFileFromResource()
172 File file = tempFolder.newFile("PerProviderSubscription.conf"); in addSP()
DWifiCertManagerTest.java58 File configFile = mTempFolder.newFile(); in setUp()
/frameworks/base/media/java/android/mtp/
DMtpDatabase.java785 File newFile = new File(newPath); in renameFile() local
786 boolean success = oldFile.renameTo(newFile); in renameFile()
806 newFile.renameTo(oldFile); in renameFile()
811 if (newFile.isDirectory()) { in renameFile()
/frameworks/base/services/usage/java/com/android/server/usage/
DUsageStatsDatabase.java321 final File newFile = new File(file.getBaseFile().getParentFile(), newName); in onTimeChanged() local
323 file.getBaseFile().renameTo(newFile); in onTimeChanged()
/frameworks/base/packages/Shell/src/com/android/shell/
DBugreportProgressService.java1714 final File newFile; in renameScreenshots() local
1718 newFile = oldFile.renameTo(renamedFile) ? renamedFile : oldFile; in renameScreenshots()
1721 newFile = oldFile; in renameScreenshots()
1723 renamedFiles.add(newFile); in renameScreenshots()
/frameworks/base/tools/aapt/
DResourceTable.cpp4815 sp<AaptFile> newFile = new AaptFile(target->getSourceFile(), in modifyForCompat() local
4818 newFile->getGroupEntry().toDirName(target->getResourceType()).string(), in modifyForCompat()
4828 newFile->getResourceType().string(), in modifyForCompat()
4845 item.file = newFile; in modifyForCompat()