Home
last modified time | relevance | path

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

/frameworks/support/tests/java/android/support/v4/provider/
DDocumentFileTest.java213 final DocumentFile newFile = meow.createFile("text/plain", "My New File"); in testCreate()
214 assertEquals("My New File.txt", newFile.getName()); in testCreate()
215 assertEquals("text/plain", newFile.getType()); in testCreate()
216 assertTrue("isFile", newFile.isFile()); in testCreate()
217 assertFalse("isDirectory", newFile.isDirectory()); in testCreate()
219 assertEquals("length", 0, newFile.length()); in testCreate()
220 writeInt(newFile.getUri(), 0); in testCreate()
221 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/services/usage/java/com/android/server/usage/
DUsageStatsDatabase.java181 final File newFile = new File(file.getBaseFile().getParentFile(), in onTimeChanged() local
184 + newFile.getAbsolutePath()); in onTimeChanged()
185 file.getBaseFile().renameTo(newFile); in onTimeChanged()
/frameworks/testing/support/tests/src/android/support/test/runner/
DAndroidJUnitRunnerTest.java140 final File file = mTmpFolder.newFile("myTestFile.txt"); in testBuildRequest_testFile()
/frameworks/base/media/java/android/mtp/
DMtpDatabase.java808 File newFile = new File(newPath); in renameFile() local
809 boolean success = oldFile.renameTo(newFile); in renameFile()
829 newFile.renameTo(oldFile); in renameFile()
834 if (newFile.isDirectory()) { in renameFile()
/frameworks/base/tools/aapt/
DResourceTable.cpp4437 sp<AaptFile> newFile = new AaptFile(target->getSourceFile(), in modifyForCompat() local
4440 newFile->getGroupEntry().toDirName(target->getResourceType()).string(), in modifyForCompat()
4450 newFile->getResourceType().string(), in modifyForCompat()
4467 item.file = newFile; in modifyForCompat()