Searched refs:createFile (Results 1 – 8 of 8) sorted by relevance
/system/core/healthd/ |
D | charger_test.cpp | 77 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/ |
D | BackwardFileTest.java | 55 String file = createFile(""); in parseEmpty() 62 String file = createFile( in parseIgnoresCommentsAndEmptyLines() 77 String file = createFile( in parse() 112 String file = createFile( in getDirectLinksWithLoop() 123 String file = createFile( in parseWithDupes() 133 String file = createFile("NotLink\tBooHoo"); in parseMalformedFile() 137 private String createFile(String... lines) throws IOException { in createFile() method in BackwardFileTest 138 return TestUtils.createFile(tempDir, lines); in createFile()
|
D | ZoneTabFileTest.java | 53 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()
|
D | TzLookupGeneratorTest.java | 42 import static com.android.libcore.timezone.testing.TestUtils.createFile; 66 String countryZonesFile = createFile(tempDir, "THIS IS NOT A VALID FILE"); in invalidCountryZonesFile() 395 String badBackwardFile = TestUtils.createFile(tempDir, "THIS IS NOT VALID"); in badBackwardFile() 648 return TestUtils.createFile(tempDir, lines.toArray(new String[0])); in createZoneTabFile() 652 return TestUtils.createFile(tempDir, TextFormat.printToString(countryZones)); in createCountryZonesFile() 865 return TestUtils.createFile(tempDir, lines.toArray(new String[0])); in createBackwardFile()
|
/system/timezone/input_tools/android/telephonylookup_generator/src/test/java/com/android/libcore/timezone/telephonylookup/ |
D | TelephonyLookupGeneratorTest.java | 20 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/ |
D | TestUtils.java | 39 public static String createFile(Path dir, String... lines) throws IOException { in createFile() method in TestUtils
|
/system/timezone/distro/core/src/test/com/android/timezone/distro/ |
D | FileUtilsTest.java | 244 File file = createFile(contents); in testReadBytes() 293 private File createFile(byte[] contents) throws IOException { in createFile() method in FileUtilsTest
|
/system/timezone/distro/installer/src/test/com/android/timezone/distro/installer/ |
D | TimeZoneDistroInstallerTest.java | 77 createFile(testBaseVersionFile, tzDataSetVersion.toBytes()); in setUp() 348 createFile(new File(workingDir, "myFile"), new byte[] { 'a' }); in testStageInstallWithErrorCode_withWorkingDir() 798 private static void createFile(File file, byte[] bytes) { in createFile() method in TimeZoneDistroInstallerTest
|