Home
last modified time | relevance | path

Searched refs:stringToFile (Results 1 – 10 of 10) sorted by relevance

/frameworks/base/core/tests/coretests/src/com/android/internal/os/
DCpuScalingPolicyReaderTest.java44 FileUtils.stringToFile(new File(policy0, "related_cpus"), "0 2 7"); in setup()
45 FileUtils.stringToFile(new File(policy0, "scaling_available_frequencies"), "1234 9876"); in setup()
49 FileUtils.stringToFile(new File(policy5, "related_cpus"), "3 6\n"); in setup()
50 FileUtils.stringToFile(new File(policy5, "scaling_available_frequencies"), "1234 5678\n"); in setup()
51 FileUtils.stringToFile(new File(policy5, "scaling_boost_frequencies"), "9998 9999\n"); in setup()
55 FileUtils.stringToFile(new File(policy7, "related_cpus"), "8\n"); in setup()
56 FileUtils.stringToFile(new File(policy7, "cpuinfo_cur_freq"), "1000000"); in setup()
60 FileUtils.stringToFile(new File(policy9, "related_cpus"), "42"); in setup()
/frameworks/base/services/tests/servicestests/src/com/android/server/net/watchlist/
DFileHashCacheTests.java111 FileUtils.stringToFile(apkA, APK_A_CONTENT); in testFileHashCache_generic()
112 FileUtils.stringToFile(apkB, APK_B_CONTENT); in testFileHashCache_generic()
133 FileUtils.stringToFile(apkA, APK_A_ALT_CONTENT); in testFileHashCache_generic()
/frameworks/base/services/core/java/com/android/server/
DZramWriteback.java68 FileUtils.stringToFile(new File(idlePath), IDLE_SYS_ALL_PAGES); in markPagesAsIdle()
78 FileUtils.stringToFile(new File(wbPath), WB_SYS_IDLE_PAGES); in flushIdlePages()
DBootReceiver.java263 FileUtils.stringToFile(lastHeaderFile, newHeaders); in getBootHeadersToLogAndUpdate()
/frameworks/base/services/tests/servicestests/src/com/android/server/graphics/fonts/
DUpdatableFontDirTest.java292 FileUtils.stringToFile(dirForPreparation.getPostScriptMap().get("foo"), "bar,4"); in construct_fontNameMismatch()
369 FileUtils.stringToFile(new File(mPreinstalledFontDirs.get(0), "foo.ttf"), "foo,5,foo"); in construct_olderThanPreinstalledFont()
370 FileUtils.stringToFile(new File(mPreinstalledFontDirs.get(1), "bar.ttf"), "bar,1,bar"); in construct_olderThanPreinstalledFont()
371 FileUtils.stringToFile(new File(mPreinstalledFontDirs.get(1), "bar.ttf"), "bar,2,bar"); in construct_olderThanPreinstalledFont()
498 FileUtils.stringToFile(file, "foo.ttf,1,bar"); in installFontFile_systemFontHasPSNameDifferentFromFileName()
621 FileUtils.stringToFile(new File(mPreinstalledFontDirs.get(0), "test.ttf"), in installFontFile_preinstalled_upgrade()
636 FileUtils.stringToFile(new File(mPreinstalledFontDirs.get(0), "test.ttf"), in installFontFile_preinstalled_sameVersion()
652 FileUtils.stringToFile(file, "test.ttf,2,test"); in installFontFile_preinstalled_downgrade()
681 FileUtils.stringToFile(new File(mPreinstalledFontDirs.get(0), "test.ttf"), in installFontFile_failedToWriteConfigXml()
1595 FileUtils.stringToFile(file, content); in newFontUpdateRequest()
/frameworks/base/core/java/android/os/
DFileUtils.java797 public static void stringToFile(File file, String string) throws IOException { in stringToFile() method in FileUtils
798 stringToFile(file.getAbsolutePath(), string); in stringToFile()
831 public static void stringToFile(String filename, String string) throws IOException { in stringToFile() method in FileUtils
/frameworks/base/core/tests/coretests/src/com/android/internal/content/res/
DOverlayConfigTest.java83 FileUtils.stringToFile(f.getPath(), content); in createFile()
/frameworks/base/services/core/java/com/android/server/power/
DShutdownThread.java845 FileUtils.stringToFile(RecoverySystem.UNCRYPT_STATUS_FILE, timeoutMessage);
/frameworks/base/services/usb/java/com/android/server/usb/
DUsbDeviceManager.java512 FileUtils.stringToFile(RNDIS_ETH_ADDR_PATH, addrString); in initRndisAddress()
/frameworks/base/services/usage/java/com/android/server/usage/
DUsageStatsService.java314 FileUtils.stringToFile(KERNEL_COUNTER_FILE, uid + " " + newCounter);