Home
last modified time | relevance | path

Searched refs:rules (Results 1 – 25 of 90) sorted by relevance

1234

/libcore/ojluni/src/main/java/java/time/
DZoneRegion.java103 private final transient ZoneRules rules; field in ZoneRegion
117 ZoneRules rules = null; in ofId() local
120 rules = ZoneRulesProvider.getRules(zoneId, true); in ofId()
126 return new ZoneRegion(zoneId, rules); in ofId()
162 ZoneRegion(String id, ZoneRules rules) { in ZoneRegion() argument
164 this.rules = rules; in ZoneRegion()
177 return (rules != null ? rules : ZoneRulesProvider.getRules(id, false)); in getRules()
DZonedDateTime.java366 ZoneRules rules = zone.getRules(); in ofLocal() local
367 List<ZoneOffset> validOffsets = rules.getValidOffsets(localDateTime); in ofLocal()
372 ZoneOffsetTransition trans = rules.getTransition(localDateTime); in ofLocal()
447 ZoneRules rules = zone.getRules(); in create() local
449 ZoneOffset offset = rules.getOffset(instant); in create()
472 ZoneRules rules = zone.getRules(); in ofStrict() local
473 if (rules.isValidOffset(localDateTime, offset) == false) { in ofStrict()
474 ZoneOffsetTransition trans = rules.getTransition(localDateTime); in ofStrict()
DZoneId.java573 ZoneRules rules = getRules();
574 if (rules.isFixedOffset()) {
575 return rules.getOffset(Instant.EPOCH);
/libcore/ojluni/src/main/java/java/util/
DSimpleTimeZone.java1572 byte[] rules = new byte[6]; in packRules()
1573 rules[0] = (byte)startDay; in packRules()
1574 rules[1] = (byte)startDayOfWeek; in packRules()
1575 rules[2] = (byte)endDay; in packRules()
1576 rules[3] = (byte)endDayOfWeek; in packRules()
1579 rules[4] = (byte)startTimeMode; in packRules()
1580 rules[5] = (byte)endTimeMode; in packRules()
1582 return rules; in packRules()
1589 private void unpackRules(byte[] rules) in unpackRules() argument
1591 startDay = rules[0]; in unpackRules()
[all …]
/libcore/ojluni/src/test/java/time/tck/java/time/zone/
DTCKZoneRulesProvider.java105 ZoneRules rules = ZoneRulesProvider.getRules("Europe/London", false); in test_getRules_StringBoolean() local
106 assertNotNull(rules); in test_getRules_StringBoolean()
108 assertEquals(rules2, rules); in test_getRules_StringBoolean()
142 ZoneRules rules = ZoneRulesProvider.getRules("Europe/London", false); in test_getVersions_String() local
143 assertEquals(versions.lastEntry().getValue(), rules); in test_getVersions_String() local
185 final ZoneRules rules = ZoneOffset.of("+01:45").getRules(); field in TCKZoneRulesProvider.MockTempProvider
193 result.put("BarVersion", rules); in provideVersions()
199 return rules; in provideRules()
DTCKZoneRules.java370 List<ZoneOffsetTransitionRule> rules = test.getTransitionRules(); in test_London_getTransitionRules() local
371 assertEquals(rules.size(), 2); in test_London_getTransitionRules()
373 ZoneOffsetTransitionRule in = rules.get(0); in test_London_getTransitionRules()
384 ZoneOffsetTransitionRule out = rules.get(1); in test_London_getTransitionRules()
415 List<ZoneOffsetTransitionRule> rules = test.getTransitionRules(); in test_London_nextTransition_rulesBased() local
419 assertEquals(test.nextTransition(last.getInstant()), rules.get(0).createTransition(1998)); in test_London_nextTransition_rulesBased()
422 ZoneOffsetTransition a = rules.get(0).createTransition(year); in test_London_nextTransition_rulesBased()
423 ZoneOffsetTransition b = rules.get(1).createTransition(year); in test_London_nextTransition_rulesBased()
424 ZoneOffsetTransition c = rules.get(0).createTransition(year + 1); in test_London_nextTransition_rulesBased()
436 List<ZoneOffsetTransitionRule> rules = test.getTransitionRules(); in test_London_nextTransition_lastYear() local
[all …]
/libcore/test-rules/src/main/java/libcore/junit/junit3/
DTestCaseWithRules.java24 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/
DRuleBasedCollator.java284 public RuleBasedCollator(String rules) throws ParseException { in RuleBasedCollator() argument
286 if (rules == null) { in RuleBasedCollator()
290 icuColl = new android.icu.text.RuleBasedCollator(rules); in RuleBasedCollator()
/libcore/test-rules/src/test/java/libcore/junit/util/
DEnableDeprecatedBouncyCastleAlgorithmsRuleTest.java22 import org.junit.rules.RuleChain;
23 import org.junit.rules.TestRule;
DSwitchTargetSdkVersionRuleTest.java25 import org.junit.rules.TestRule;
/libcore/ojluni/src/main/java/java/time/chrono/
DChronoZonedDateTimeImpl.java141 ZoneRules rules = zone.getRules(); in ofBest() local
143 List<ZoneOffset> validOffsets = rules.getValidOffsets(isoLDT); in ofBest()
148 ZoneOffsetTransition trans = rules.getTransition(isoLDT); in ofBest()
171 ZoneRules rules = zone.getRules(); in ofInstant() local
172 ZoneOffset offset = rules.getOffset(instant); in ofInstant()
/libcore/test-rules/src/main/java/libcore/junit/util/
DResourceLeakageDetector.java24 import org.junit.rules.RuleChain;
25 import org.junit.rules.TestRule;
DEnableDeprecatedBouncyCastleAlgorithmsRule.java24 import org.junit.rules.TestRule;
/libcore/luni/src/test/java/libcore/java/lang/reflect/annotations/
DRetentionPolicyTest.java32 import org.junit.rules.TemporaryFolder;
33 import org.junit.rules.TestRule;
/libcore/ojluni/src/main/java/java/time/temporal/
DWeekFields.java316 WeekFields rules = CACHE.get(key); in of() local
317 if (rules == null) { in of()
318 rules = new WeekFields(firstDayOfWeek, minimalDaysInFirstWeek); in of()
319 CACHE.putIfAbsent(key, rules); in of()
320 rules = CACHE.get(key); in of()
322 return rules; in of()
/libcore/luni/src/test/java/libcore/java/net/
DOldSocketTestCase.java23 import org.junit.rules.TestRule;
DMulticastSocketTest.java28 import org.junit.rules.TestRule;
DServerSocketTest.java27 import org.junit.rules.TestRule;
DOldUnixSocketTest.java32 import org.junit.rules.TestRule;
/libcore/test-rules/src/test/java/libcore/junit/util/compat/
DCoreCompatChangeRuleTest.java27 import org.junit.rules.TestRule;
/libcore/luni/src/test/java/libcore/java/io/
DFileOutputStreamTest.java25 import org.junit.rules.TestRule;
/libcore/luni/src/test/java/libcore/java/util/zip/
DGZIPOutputStreamTest.java29 import org.junit.rules.TestRule;
/libcore/luni/src/test/java/libcore/javax/security/auth/x500/
DX500PrincipalTest.java28 import org.junit.rules.TestRule;
/libcore/test-rules/src/platform_compat/java/libcore/junit/util/
DCoreCompatChangeRule.java22 import org.junit.rules.TestRule;
/libcore/luni/src/test/java/libcore/javax/crypto/
DMacTest.java32 import org.junit.rules.TestRule;

1234