Home
last modified time | relevance | path

Searched refs:readBytes (Results 1 – 7 of 7) sorted by relevance

/system/timezone/apex/tests/src/java/android/tzdata/mts/
DTimeZoneVersionTest.java80 private static byte[] readBytes(File file, int maxBytes) throws IOException { in readBytes() method in TimeZoneVersionTest
95 byte[] versionBytes = readBytes(TIME_ZONE_MODULE_VERSION_FILE, 13); in readTzDbVersionFromModuleVersionFile()
105 byte[] versionBytes = readBytes(TIME_ZONE_MODULE_VERSION_FILE, 7); in readMajorFormatVersionFromModuleVersionFile()
/system/timezone/distro/core/src/test/com/android/timezone/distro/
DFileUtilsTest.java232 FileUtils.readBytes(new File(dir, "doesNotExist"), 0); in testReadBytes()
238 FileUtils.readBytes(new File(dir, "doesNotExist"), 10); in testReadBytes()
245 byte[] oneByte = FileUtils.readBytes(file, 1); in testReadBytes()
249 byte[] allBytes = FileUtils.readBytes(file, contents.length); in testReadBytes()
252 byte[] exhaustedFileRead = FileUtils.readBytes(file, contents.length + 1); in testReadBytes()
/system/timezone/tzdatacheck/
Dtzdatacheck.cpp101 static bool readBytes(const std::string& fileName, char* buffer, size_t byteCount) { in readBytes() function
479 readBytes(distroVersionFileName, distroVersion.data(), READ_DATA_LENGTH); in main()
502 readBytes(baseVersionFileName, baseVersion.data(), READ_DATA_LENGTH); in main()
/system/timezone/distro/core/src/main/com/android/timezone/distro/
DFileUtils.java165 public static byte[] readBytes(File file, int maxBytes) throws IOException { in readBytes() method in FileUtils
/system/timezone/distro/installer/src/main/com/android/timezone/distro/installer/
DTimeZoneDistroInstaller.java428 FileUtils.readBytes(distroVersionFile, DistroVersion.DISTRO_VERSION_FILE_LENGTH); in readDistroVersion()
/system/timezone/distro/installer/src/test/com/android/timezone/distro/installer/
DTimeZoneDistroInstallerTest.java787 byte[] actualVersionBytes = FileUtils.readBytes(versionFile, expectedVersionBytes.length); in assertInstalledDistro()
/system/core/adb/
Dtest_device.py1485 readBytes = sock.recv(4096)
1486 self.assertEqual(b"foo\n", readBytes)