Home
last modified time | relevance | path

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

12345

/libcore/ojluni/src/main/java/java/time/
DZoneRegion.java104 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()
DZoneId.java571 ZoneRules rules = getRules();
572 if (rules.isFixedOffset()) {
573 return rules.getOffset(Instant.EPOCH);
DZonedDateTime.java367 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/
DSimpleTimeZone.java1556 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/
DTCKZoneRulesProvider.java106 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()
DTCKZoneRules.java383 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/
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.java285 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/
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.java142 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/
DTestZoneRules.java219 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/
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.java339 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/
DOldSocketTestCase.java23 import org.junit.rules.TestRule;
DMulticastSocketTest.java28 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/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/java9compatibility/
DAndroid.bp37 "core-test-rules",
/libcore/luni/src/test/java/libcore/java/util/zip/
DGZIPOutputStreamTest.java32 import org.junit.rules.TestRule;

12345