Home
last modified time | relevance | path

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

/system/core/healthd/
Dcharger_test.cpp77 const char* createFile(const char* path, const char* content) { in createFile() function
123 config->batteryStatusPath = createFile("/data/local/tmp/batteryStatus", "Not charging"); in healthd_board_init()
124 config->batteryHealthPath = createFile("/data/local/tmp/batteryHealth", "Unspecified failure"); in healthd_board_init()
125 config->batteryPresentPath = createFile("/data/local/tmp/batteryPresent", "1"); in healthd_board_init()
126 config->batteryCapacityPath = createFile("/data/local/tmp/batteryCapacity", "47"); in healthd_board_init()
127 config->batteryVoltagePath = createFile("/data/local/tmp/batteryVoltage", "45000"); in healthd_board_init()
128 config->batteryTemperaturePath = createFile("/data/local/tmp/batteryTemperature", "987"); in healthd_board_init()
129 config->batteryTechnologyPath = createFile("/data/local/tmp/batteryTechnology", "NiCd"); in healthd_board_init()
130 config->batteryCurrentNowPath = createFile("/data/local/tmp/batteryCurrentNow", "99000"); in healthd_board_init()
131 config->batteryCurrentAvgPath = createFile("/data/local/tmp/batteryCurrentAvg", "98000"); in healthd_board_init()
[all …]
/system/timezone/input_tools/android/tzlookup_generator/src/test/java/com/android/libcore/timezone/tzlookup/
DZoneTabFileTest.java53 String file = createFile(""); in parseEmpty()
60 String file = createFile( in parseIgnoresCommentsAndEmptyLines()
74 String file = createFile( in parse()
95 String file = createFile("GB\tStuff"); in parseMalformedFile()
101 String file = createFile( in createCountryToOlsonIdsMap()
120 private String createFile(String... lines) throws IOException { in createFile() method in ZoneTabFileTest
121 return TestUtils.createFile(tempDir, lines); in createFile()
DTzLookupGeneratorTest.java22 import static com.android.libcore.timezone.testing.TestUtils.createFile;
68 String countryZonesFile = createFile(tempDir, "THIS IS NOT A VALID FILE"); in invalidCountryZonesFile()
998 return TestUtils.createFile(tempDir, lines.toArray(new String[0])); in createZoneTabFile()
1002 return TestUtils.createFile(tempDir, TextFormat.printToString(countryZones)); in createCountryZonesFile()
/system/timezone/input_tools/android/zone_compactor/test/java/
DZoneCompactorTest.java57 String setupFile = TestUtils.createFile(inputFilesDir, zoneAndLinks); in shouldFollowLinkChains_definedInForwardOrder()
59 Path americaToronto = Files.createFile(inputFilesDir.resolve("America").resolve("Toronto")); in shouldFollowLinkChains_definedInForwardOrder()
86 String setupFile = TestUtils.createFile(inputFilesDir, zoneAndLinks); in shouldFollowLinkChains_definedInBackwardsOrder()
88 Path americaToronto = Files.createFile(inputFilesDir.resolve("America").resolve("Toronto")); in shouldFollowLinkChains_definedInBackwardsOrder()
114 String setupFile = TestUtils.createFile(inputFilesDir, zoneAndLinks); in shouldFail_ifSetupFileHasMultipleZoneEntriesOfTheSameTimeZoneId()
116 Path americaToronto = Files.createFile(inputFilesDir.resolve("America").resolve("Toronto")); in shouldFail_ifSetupFileHasMultipleZoneEntriesOfTheSameTimeZoneId()
/system/timezone/input_tools/android/telephonylookup_generator/src/test/java/com/android/libcore/timezone/telephonylookup/
DTelephonyLookupGeneratorTest.java20 import static com.android.libcore.timezone.testing.TestUtils.createFile;
55 String telephonyLookupFile = createFile(tempDir, "THIS IS NOT A VALID FILE"); in invalidTelephonyLookupFile()
152 return TestUtils.createFile(tempDir, TextFormat.printToString(telephonyLookup)); in createTelephonyLookupFile()
/system/timezone/input_tools/android/common/src/testing/java/com/android/libcore/timezone/testing/
DTestUtils.java41 public static String createFile(Path dir, String... lines) throws IOException { in createFile() method in TestUtils