Home
last modified time | relevance | path

Searched refs:rulesVersion (Results 1 – 5 of 5) sorted by relevance

/system/timezone/distro/core/src/main/com/android/timezone/distro/
DDistroVersion.java62 public final String rulesVersion; field in DistroVersion
65 public DistroVersion(int formatMajorVersion, int formatMinorVersion, String rulesVersion, in DistroVersion() argument
69 if (!RULES_VERSION_PATTERN.matcher(rulesVersion).matches()) { in DistroVersion()
70 throw new DistroException("Invalid rulesVersion: " + rulesVersion); in DistroVersion()
72 this.rulesVersion = rulesVersion; in DistroVersion()
86 String rulesVersion = matcher.group(3); in fromBytes() local
91 rulesVersion, in fromBytes()
100 return toBytes(formatMajorVersion, formatMinorVersion, rulesVersion, revision); in toBytes()
105 int majorFormatVersion, int minorFormatVerison, String rulesVersion, int revision) { in toBytes() argument
107 + "|" + rulesVersion + "|" + to3DigitVersionString(revision)) in toBytes()
[all …]
/system/timezone/distro/core/src/test/com/android/timezone/distro/
DDistroVersionTest.java46 int majorVersion, int minorVersion, String rulesVersion, int revision) { in checkConstructorThrows() argument
48 new DistroVersion(majorVersion, minorVersion, rulesVersion, revision); in checkConstructorThrows()
57 assertEquals(VALID_RULES_VERSION, distroVersion.rulesVersion); in testConstructor()
/system/timezone/distro/installer/src/test/com/android/timezone/distro/installer/
DTimeZoneDistroInstallerTest.java624 String rulesVersion, int revision) throws Exception { in createValidTimeZoneDistroBytes() argument
625 return createValidTimeZoneDistroBuilder(rulesVersion, revision).buildBytes(); in createValidTimeZoneDistroBytes()
629 String rulesVersion, int revision) throws Exception { in createValidTimeZoneDistroBuilder() argument
631 byte[] tzData = createTzData(rulesVersion); in createValidTimeZoneDistroBuilder()
633 String tzlookupXml = "<timezones ianaversion=\"" + rulesVersion + "\">\n" in createValidTimeZoneDistroBuilder()
651 rulesVersion, in createValidTimeZoneDistroBuilder()
791 private static byte[] createTzData(String rulesVersion) { in createTzData() argument
794 .setHeaderMagic("tzdata" + rulesVersion) in createTzData()
/system/timezone/distro/installer/src/main/com/android/timezone/distro/installer/
DTimeZoneDistroInstaller.java189 distroVersion.rulesVersion, distroVersion.revision); in stageInstallWithErrorCode()
444 String distroRulesVersion = distroVersion.rulesVersion; in checkDistroRulesNewerThanBase()
/system/timezone/distro/tools/src/main/com/android/timezone/distro/builder/
DTimeZoneDistroBuilder.java63 majorVersion, minorVersion, distroVersion.rulesVersion, distroVersion.revision); in replaceFormatVersionForTests()