/libcore/ojluni/src/main/java/java/time/ |
D | ZoneRegion.java | 104 private final transient ZoneRules rules; field in ZoneRegion 118 ZoneRules rules = null; in ofId() local 121 rules = ZoneRulesProvider.getRules(zoneId, true); in ofId() 127 return new ZoneRegion(zoneId, rules); in ofId() 163 ZoneRegion(String id, ZoneRules rules) { in ZoneRegion() argument 165 this.rules = rules; in ZoneRegion() 178 return (rules != null ? rules : ZoneRulesProvider.getRules(id, false)); in getRules()
|
D | ZoneId.java | 571 ZoneRules rules = getRules(); 572 if (rules.isFixedOffset()) { 573 return rules.getOffset(Instant.EPOCH);
|
D | ZonedDateTime.java | 367 ZoneRules rules = zone.getRules(); in ofLocal() local 368 List<ZoneOffset> validOffsets = rules.getValidOffsets(localDateTime); in ofLocal() 373 ZoneOffsetTransition trans = rules.getTransition(localDateTime); in ofLocal() 448 ZoneRules rules = zone.getRules(); in create() local 450 ZoneOffset offset = rules.getOffset(instant); in create() 474 ZoneRules rules = zone.getRules(); in ofStrict() local 475 if (rules.isValidOffset(localDateTime, offset) == false) { in ofStrict() 476 ZoneOffsetTransition trans = rules.getTransition(localDateTime); in ofStrict()
|
/libcore/ojluni/src/main/java/java/util/ |
D | SimpleTimeZone.java | 1556 byte[] rules = new byte[MAX_RULE_NUM]; in packRules() 1557 rules[0] = (byte)startDay; in packRules() 1558 rules[1] = (byte)startDayOfWeek; in packRules() 1559 rules[2] = (byte)endDay; in packRules() 1560 rules[3] = (byte)endDayOfWeek; in packRules() 1563 rules[4] = (byte)startTimeMode; in packRules() 1564 rules[5] = (byte)endTimeMode; in packRules() 1566 return rules; in packRules() 1573 private void unpackRules(byte[] rules) in unpackRules() argument 1575 startDay = rules[0]; in unpackRules() [all …]
|
/libcore/ojluni/src/test/java/time/tck/java/time/zone/ |
D | TCKZoneRulesProvider.java | 106 ZoneRules rules = ZoneRulesProvider.getRules("Europe/London", false); in test_getRules_StringBoolean() local 107 assertNotNull(rules); in test_getRules_StringBoolean() 109 assertEquals(rules2, rules); in test_getRules_StringBoolean() 143 ZoneRules rules = ZoneRulesProvider.getRules("Europe/London", false); in test_getVersions_String() local 144 assertEquals(versions.lastEntry().getValue(), rules); in test_getVersions_String() local 186 final ZoneRules rules = ZoneOffset.of("+01:45").getRules(); field in TCKZoneRulesProvider.MockTempProvider 194 result.put("BarVersion", rules); in provideVersions() 200 return rules; in provideRules()
|
D | TCKZoneRules.java | 383 List<ZoneOffsetTransitionRule> rules = test.getTransitionRules(); in test_London_getTransitionRules() local 384 assertEquals(rules.size(), 2); in test_London_getTransitionRules() 386 ZoneOffsetTransitionRule in = rules.get(0); in test_London_getTransitionRules() 397 ZoneOffsetTransitionRule out = rules.get(1); in test_London_getTransitionRules() 430 List<ZoneOffsetTransitionRule> rules = test.getTransitionRules(); in test_London_nextTransition_rulesBased() local 434 assertEquals(test.nextTransition(last.getInstant()), rules.get(0).createTransition(1998)); in test_London_nextTransition_rulesBased() 437 ZoneOffsetTransition a = rules.get(0).createTransition(year); in test_London_nextTransition_rulesBased() 438 ZoneOffsetTransition b = rules.get(1).createTransition(year); in test_London_nextTransition_rulesBased() 439 ZoneOffsetTransition c = rules.get(0).createTransition(year + 1); in test_London_nextTransition_rulesBased() 452 List<ZoneOffsetTransitionRule> rules = test.getTransitionRules(); in test_London_nextTransition_lastYear() local [all …]
|
/libcore/test-rules/src/main/java/libcore/junit/junit3/ |
D | TestCaseWithRules.java | 24 import org.junit.rules.MethodRule; 25 import org.junit.rules.TestRule; 32 import static org.junit.internal.runners.rules.RuleMemberValidator.RULE_VALIDATOR; 97 List<Object> rules = testClass.getAnnotatedFieldValues(this, Rule.class, Object.class); in runBare() local 98 for (Object rule : rules) { in runBare()
|
/libcore/ojluni/src/main/java/java/text/ |
D | RuleBasedCollator.java | 285 public RuleBasedCollator(String rules) throws ParseException { in RuleBasedCollator() argument 287 if (rules == null) { in RuleBasedCollator() 291 icuColl = new android.icu.text.RuleBasedCollator(rules); in RuleBasedCollator()
|
/libcore/test-rules/src/test/java/libcore/junit/util/ |
D | EnableDeprecatedBouncyCastleAlgorithmsRuleTest.java | 22 import org.junit.rules.RuleChain; 23 import org.junit.rules.TestRule;
|
D | SwitchTargetSdkVersionRuleTest.java | 25 import org.junit.rules.TestRule;
|
/libcore/ojluni/src/main/java/java/time/chrono/ |
D | ChronoZonedDateTimeImpl.java | 142 ZoneRules rules = zone.getRules(); in ofBest() local 144 List<ZoneOffset> validOffsets = rules.getValidOffsets(isoLDT); in ofBest() 149 ZoneOffsetTransition trans = rules.getTransition(isoLDT); in ofBest() 172 ZoneRules rules = zone.getRules(); in ofInstant() local 173 ZoneOffset offset = rules.getOffset(instant); in ofInstant()
|
/libcore/ojluni/src/test/java/time/test/java/time/zone/ |
D | TestZoneRules.java | 219 ZoneRules rules = ZoneRules.of(OFF_1, OFF_1, in test_EmptyTransitionList() local 223 assertEquals(rules.getOffset(testDay), ZoneOffset.ofHours(offset)); in test_EmptyTransitionList() 224 assertEquals(rules.getStandardOffset(testDay), ZoneOffset.ofHours(stdOffset)); in test_EmptyTransitionList() 225 assertEquals(rules.getDaylightSavings(testDay), Duration.ofHours(savings)); in test_EmptyTransitionList() 226 assertEquals(rules.isDaylightSavings(testDay), isDST); in test_EmptyTransitionList()
|
/libcore/test-rules/src/main/java/libcore/junit/util/ |
D | ResourceLeakageDetector.java | 24 import org.junit.rules.RuleChain; 25 import org.junit.rules.TestRule;
|
D | EnableDeprecatedBouncyCastleAlgorithmsRule.java | 24 import org.junit.rules.TestRule;
|
/libcore/luni/src/test/java/libcore/java/lang/reflect/annotations/ |
D | RetentionPolicyTest.java | 32 import org.junit.rules.TemporaryFolder; 33 import org.junit.rules.TestRule;
|
/libcore/ojluni/src/main/java/java/time/temporal/ |
D | WeekFields.java | 339 WeekFields rules = CACHE.get(key); in of() local 340 if (rules == null) { in of() 341 rules = new WeekFields(firstDayOfWeek, minimalDaysInFirstWeek); in of() 342 CACHE.putIfAbsent(key, rules); in of() 343 rules = CACHE.get(key); in of() 345 return rules; in of()
|
/libcore/luni/src/test/java/libcore/java/net/ |
D | OldSocketTestCase.java | 23 import org.junit.rules.TestRule;
|
D | MulticastSocketTest.java | 28 import org.junit.rules.TestRule;
|
D | OldUnixSocketTest.java | 32 import org.junit.rules.TestRule;
|
/libcore/test-rules/src/test/java/libcore/junit/util/compat/ |
D | CoreCompatChangeRuleTest.java | 27 import org.junit.rules.TestRule;
|
/libcore/luni/src/test/java/libcore/java/io/ |
D | FileOutputStreamTest.java | 25 import org.junit.rules.TestRule;
|
/libcore/luni/src/test/java/libcore/javax/security/auth/x500/ |
D | X500PrincipalTest.java | 28 import org.junit.rules.TestRule;
|
/libcore/test-rules/src/platform_compat/java/libcore/junit/util/ |
D | CoreCompatChangeRule.java | 22 import org.junit.rules.TestRule;
|
/libcore/luni/src/test/java9compatibility/ |
D | Android.bp | 37 "core-test-rules",
|
/libcore/luni/src/test/java/libcore/java/util/zip/ |
D | GZIPOutputStreamTest.java | 32 import org.junit.rules.TestRule;
|