/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/timezone/ |
D | TimeZoneOffsetLocalTest.java | 40 final int HOUR = 60*60*1000; in TestGetOffsetAroundTransition() local 44 {2006, Calendar.APRIL, 2, 1, 30, 1*HOUR+30*MINUTE}, in TestGetOffsetAroundTransition() 45 {2006, Calendar.APRIL, 2, 2, 00, 2*HOUR}, in TestGetOffsetAroundTransition() 46 {2006, Calendar.APRIL, 2, 2, 30, 2*HOUR+30*MINUTE}, in TestGetOffsetAroundTransition() 47 {2006, Calendar.APRIL, 2, 3, 00, 3*HOUR}, in TestGetOffsetAroundTransition() 48 {2006, Calendar.APRIL, 2, 3, 30, 3*HOUR+30*MINUTE}, in TestGetOffsetAroundTransition() 49 {2006, Calendar.OCTOBER, 29, 0, 30, 0*HOUR+30*MINUTE}, in TestGetOffsetAroundTransition() 50 {2006, Calendar.OCTOBER, 29, 1, 00, 1*HOUR}, in TestGetOffsetAroundTransition() 51 {2006, Calendar.OCTOBER, 29, 1, 30, 1*HOUR+30*MINUTE}, in TestGetOffsetAroundTransition() 52 {2006, Calendar.OCTOBER, 29, 2, 00, 2*HOUR}, in TestGetOffsetAroundTransition() [all …]
|
D | TimeZoneRuleTest.java | 43 private static final int HOUR = 60 * 60 * 1000; field in TimeZoneRuleTest 53 SimpleTimeZone stz = new SimpleTimeZone(-1*HOUR, "TestSTZ", in TestSimpleRuleBasedTimeZone() 54 Calendar.SEPTEMBER, -30, -Calendar.SATURDAY, 1*HOUR, SimpleTimeZone.WALL_TIME, in TestSimpleRuleBasedTimeZone() 55 Calendar.FEBRUARY, 2, Calendar.SUNDAY, 1*HOUR, SimpleTimeZone.WALL_TIME, in TestSimpleRuleBasedTimeZone() 56 1*HOUR); in TestSimpleRuleBasedTimeZone() 65 -1*HOUR, // Raw offset in TestSimpleRuleBasedTimeZone() 66 1*HOUR); // DST saving amount in TestSimpleRuleBasedTimeZone() 71 1*HOUR, DateTimeRule.WALL_TIME); // SUN<=30 in September, at 1AM wall time in TestSimpleRuleBasedTimeZone() 73 -1*HOUR /* rawOffset */, 1*HOUR /* dstSavings */, dtr, in TestSimpleRuleBasedTimeZone() 77 1*HOUR, DateTimeRule.WALL_TIME); // 2nd Sunday in February, at 1AM wall time in TestSimpleRuleBasedTimeZone() [all …]
|
D | TimeZoneAliasTest.java | 157 static private final long HOUR = 1000*60*60; field in TimeZoneAliasTest.Zone 158 static private final double DHOUR = HOUR; 159 static private final long DAY = 24*HOUR; 161 static private final long EPSILON = HOUR/4;
|
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/timezone/ |
D | TimeZoneOffsetLocalTest.java | 36 final int HOUR = 60*60*1000; in TestGetOffsetAroundTransition() local 40 {2006, Calendar.APRIL, 2, 1, 30, 1*HOUR+30*MINUTE}, in TestGetOffsetAroundTransition() 41 {2006, Calendar.APRIL, 2, 2, 00, 2*HOUR}, in TestGetOffsetAroundTransition() 42 {2006, Calendar.APRIL, 2, 2, 30, 2*HOUR+30*MINUTE}, in TestGetOffsetAroundTransition() 43 {2006, Calendar.APRIL, 2, 3, 00, 3*HOUR}, in TestGetOffsetAroundTransition() 44 {2006, Calendar.APRIL, 2, 3, 30, 3*HOUR+30*MINUTE}, in TestGetOffsetAroundTransition() 45 {2006, Calendar.OCTOBER, 29, 0, 30, 0*HOUR+30*MINUTE}, in TestGetOffsetAroundTransition() 46 {2006, Calendar.OCTOBER, 29, 1, 00, 1*HOUR}, in TestGetOffsetAroundTransition() 47 {2006, Calendar.OCTOBER, 29, 1, 30, 1*HOUR+30*MINUTE}, in TestGetOffsetAroundTransition() 48 {2006, Calendar.OCTOBER, 29, 2, 00, 2*HOUR}, in TestGetOffsetAroundTransition() [all …]
|
D | TimeZoneRuleTest.java | 39 private static final int HOUR = 60 * 60 * 1000; field in TimeZoneRuleTest 49 SimpleTimeZone stz = new SimpleTimeZone(-1*HOUR, "TestSTZ", in TestSimpleRuleBasedTimeZone() 50 Calendar.SEPTEMBER, -30, -Calendar.SATURDAY, 1*HOUR, SimpleTimeZone.WALL_TIME, in TestSimpleRuleBasedTimeZone() 51 Calendar.FEBRUARY, 2, Calendar.SUNDAY, 1*HOUR, SimpleTimeZone.WALL_TIME, in TestSimpleRuleBasedTimeZone() 52 1*HOUR); in TestSimpleRuleBasedTimeZone() 61 -1*HOUR, // Raw offset in TestSimpleRuleBasedTimeZone() 62 1*HOUR); // DST saving amount in TestSimpleRuleBasedTimeZone() 67 1*HOUR, DateTimeRule.WALL_TIME); // SUN<=30 in September, at 1AM wall time in TestSimpleRuleBasedTimeZone() 69 -1*HOUR /* rawOffset */, 1*HOUR /* dstSavings */, dtr, in TestSimpleRuleBasedTimeZone() 73 1*HOUR, DateTimeRule.WALL_TIME); // 2nd Sunday in February, at 1AM wall time in TestSimpleRuleBasedTimeZone() [all …]
|
D | TimeZoneAliasTest.java | 153 static private final long HOUR = 1000*60*60; field in TimeZoneAliasTest.Zone 154 static private final double DHOUR = HOUR; 155 static private final long DAY = 24*HOUR; 157 static private final long EPSILON = HOUR/4;
|
/external/icu/icu4c/source/test/intltest/ |
D | tzoffloc.cpp | 44 const int32_t HOUR = 60*60*1000; in TestGetOffsetAroundTransition() local 48 {2006, UCAL_APRIL, 2, 1, 30, 1*HOUR+30*MINUTE}, in TestGetOffsetAroundTransition() 49 {2006, UCAL_APRIL, 2, 2, 00, 2*HOUR}, in TestGetOffsetAroundTransition() 50 {2006, UCAL_APRIL, 2, 2, 30, 2*HOUR+30*MINUTE}, in TestGetOffsetAroundTransition() 51 {2006, UCAL_APRIL, 2, 3, 00, 3*HOUR}, in TestGetOffsetAroundTransition() 52 {2006, UCAL_APRIL, 2, 3, 30, 3*HOUR+30*MINUTE}, in TestGetOffsetAroundTransition() 53 {2006, UCAL_OCTOBER, 29, 0, 30, 0*HOUR+30*MINUTE}, in TestGetOffsetAroundTransition() 54 {2006, UCAL_OCTOBER, 29, 1, 00, 1*HOUR}, in TestGetOffsetAroundTransition() 55 {2006, UCAL_OCTOBER, 29, 1, 30, 1*HOUR+30*MINUTE}, in TestGetOffsetAroundTransition() 56 {2006, UCAL_OCTOBER, 29, 2, 00, 2*HOUR}, in TestGetOffsetAroundTransition() [all …]
|
D | tzrulets.cpp | 31 #define HOUR (60*60*1000) macro 152 SimpleTimeZone stz(-1*HOUR, "TestSTZ", in TestSimpleRuleBasedTimeZone() 153 UCAL_SEPTEMBER, -30, -UCAL_SATURDAY, 1*HOUR, SimpleTimeZone::WALL_TIME, in TestSimpleRuleBasedTimeZone() 154 UCAL_FEBRUARY, 2, UCAL_SUNDAY, 1*HOUR, SimpleTimeZone::WALL_TIME, in TestSimpleRuleBasedTimeZone() 155 1*HOUR, status); in TestSimpleRuleBasedTimeZone() 166 -1*HOUR, // Raw offset in TestSimpleRuleBasedTimeZone() 167 1*HOUR); // DST saving amount in TestSimpleRuleBasedTimeZone() 172 1*HOUR, DateTimeRule::WALL_TIME); // SUN<=30 in September, at 1AM wall time in TestSimpleRuleBasedTimeZone() 174 -1*HOUR /*rawOffset*/, 1*HOUR /*dstSavings*/, dtr, in TestSimpleRuleBasedTimeZone() 181 1*HOUR, DateTimeRule::WALL_TIME); // 2nd Sunday in February, at 1AM wall time in TestSimpleRuleBasedTimeZone() [all …]
|
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/serializable/ |
D | SerializableTest.java | 196 private static final int HOUR = 60*60*1000; field in SerializableTest 198 new AnnualTimeZoneRule("EST", -5*HOUR, 0, 199 … new DateTimeRule(Calendar.OCTOBER, -1, Calendar.SUNDAY, 2*HOUR, DateTimeRule.WALL_TIME), 202 new AnnualTimeZoneRule("EST", -5*HOUR, 0, 203 … new DateTimeRule(Calendar.NOVEMBER, 1, Calendar.SUNDAY, true, 2*HOUR, DateTimeRule.WALL_TIME), 206 new AnnualTimeZoneRule("EDT", -5*HOUR, 1*HOUR, 207 … new DateTimeRule(Calendar.APRIL, -1, Calendar.SUNDAY, 2*HOUR, DateTimeRule.WALL_TIME), 210 new AnnualTimeZoneRule("EDT", -5*HOUR, 1*HOUR, 211 new DateTimeRule(Calendar.JANUARY, 6, 2*HOUR, DateTimeRule.WALL_TIME), 214 new AnnualTimeZoneRule("EDT", -5*HOUR, 1*HOUR, [all …]
|
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/serializable/ |
D | SerializableTest.java | 192 private static final int HOUR = 60*60*1000; field in SerializableTest 194 new AnnualTimeZoneRule("EST", -5*HOUR, 0, 195 … new DateTimeRule(Calendar.OCTOBER, -1, Calendar.SUNDAY, 2*HOUR, DateTimeRule.WALL_TIME), 198 new AnnualTimeZoneRule("EST", -5*HOUR, 0, 199 … new DateTimeRule(Calendar.NOVEMBER, 1, Calendar.SUNDAY, true, 2*HOUR, DateTimeRule.WALL_TIME), 202 new AnnualTimeZoneRule("EDT", -5*HOUR, 1*HOUR, 203 … new DateTimeRule(Calendar.APRIL, -1, Calendar.SUNDAY, 2*HOUR, DateTimeRule.WALL_TIME), 206 new AnnualTimeZoneRule("EDT", -5*HOUR, 1*HOUR, 207 new DateTimeRule(Calendar.JANUARY, 6, 2*HOUR, DateTimeRule.WALL_TIME), 210 new AnnualTimeZoneRule("EDT", -5*HOUR, 1*HOUR, [all …]
|
/external/icu/android_icu4j/src/main/java/android/icu/impl/duration/ |
D | TimeUnitConstants.java | 29 public static final TimeUnit HOUR = TimeUnit.HOUR; field
|
D | TimeUnit.java | 46 public static final TimeUnit HOUR = new TimeUnit("hour", 4); field in TimeUnit 69 YEAR, MONTH, WEEK, DAY, HOUR, MINUTE, SECOND, MILLISECOND
|
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/duration/ |
D | TimeUnitConstants.java | 27 public static final TimeUnit HOUR = TimeUnit.HOUR; field
|
D | TimeUnit.java | 44 public static final TimeUnit HOUR = new TimeUnit("hour", 4); field in TimeUnit 67 YEAR, MONTH, WEEK, DAY, HOUR, MINUTE, SECOND, MILLISECOND
|
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/util/ |
D | TimeUnit.java | 38 return new TimeUnit[] { SECOND, MINUTE, HOUR, DAY, WEEK, MONTH, YEAR }; in values() 54 return HOUR; in readResolve()
|
/external/icu/android_icu4j/src/main/java/android/icu/util/ |
D | TimeUnit.java | 36 return new TimeUnit[] { SECOND, MINUTE, HOUR, DAY, WEEK, MONTH, YEAR }; in values() 52 return HOUR; in readResolve()
|
/external/icu/android_icu4j/src/main/java/android/icu/text/ |
D | DateIntervalFormat.java | 647 } else if ( fromCalendar.get(Calendar.HOUR) != in getPatterns() 648 toCalendar.get(Calendar.HOUR) ) { in getPatterns() 649 field = Calendar.HOUR; in getPatterns() 708 } else if ( fromCalendar.get(Calendar.HOUR) != in format() 709 toCalendar.get(Calendar.HOUR) ) { in format() 710 field = Calendar.HOUR; in format() 723 …boolean fromToOnSameDay = (field==Calendar.AM_PM || field==Calendar.HOUR || field==Calendar.MINUTE… in format() 1234 … concatSingleDate2TimeInterval(fDateTimeFormat, datePattern, Calendar.HOUR, intervalPatterns); in initializeIntervalPattern() 1535 … genIntervalPattern(Calendar.HOUR, skeleton, bestSkeleton, differenceInfo, intervalPatterns); in genSeparateDateTimePtn() 1589 Calendar.HOUR); in genIntervalPattern()
|
D | DateIntervalInfo.java | 472 } else if ( key.equals(CALENDAR_FIELD_TO_PATTERN_LETTER[Calendar.HOUR]) ) { in setup() 473 calendarField = Calendar.HOUR; in setup() 474 key = CALENDAR_FIELD_TO_PATTERN_LETTER[Calendar.HOUR]; in setup() 478 calendarField = Calendar.HOUR; in setup() 479 key = CALENDAR_FIELD_TO_PATTERN_LETTER[Calendar.HOUR]; in setup() 636 CALENDAR_FIELD_TO_PATTERN_LETTER[Calendar.HOUR], in setIntervalPattern()
|
D | DateTimePatternGenerator.java | 136 if (fld.getType() == HOUR) { in getFrozenInstance() 849 static final public int HOUR = 11; field in DateTimePatternGenerator 887 public static final int MATCH_HOUR_FIELD_LENGTH = 1 << HOUR; 1767 if ( (type == HOUR && (options & MATCH_HOUR_FIELD_LENGTH)==0) || in adjustFieldTypes() 1781 …char c = (type != HOUR && type != MONTH && type != WEEKDAY && (type != YEAR || reqField.charAt(0)=… in adjustFieldTypes() 1783 if (type == HOUR && flags.contains(DTPGflags.SKELETON_USES_CAP_J)) { in adjustFieldTypes() 1978 {'H', HOUR, NUMERIC + 10*DELTA, 1, 2}, // 24 hour 1979 {'k', HOUR, NUMERIC + 11*DELTA, 1, 2}, 1980 {'h', HOUR, NUMERIC, 1, 2}, // 12 hour 1981 {'K', HOUR, NUMERIC + DELTA, 1, 2},
|
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/ |
D | DateIntervalFormat.java | 654 } else if ( fromCalendar.get(Calendar.HOUR) != in getPatterns() 655 toCalendar.get(Calendar.HOUR) ) { in getPatterns() 656 field = Calendar.HOUR; in getPatterns() 716 } else if ( fromCalendar.get(Calendar.HOUR) != in format() 717 toCalendar.get(Calendar.HOUR) ) { in format() 718 field = Calendar.HOUR; in format() 731 …boolean fromToOnSameDay = (field==Calendar.AM_PM || field==Calendar.HOUR || field==Calendar.MINUTE… in format() 1246 … concatSingleDate2TimeInterval(fDateTimeFormat, datePattern, Calendar.HOUR, intervalPatterns); in initializeIntervalPattern() 1547 … genIntervalPattern(Calendar.HOUR, skeleton, bestSkeleton, differenceInfo, intervalPatterns); in genSeparateDateTimePtn() 1601 Calendar.HOUR); in genIntervalPattern()
|
D | DateIntervalInfo.java | 481 } else if ( key.equals(CALENDAR_FIELD_TO_PATTERN_LETTER[Calendar.HOUR]) ) { in setup() 482 calendarField = Calendar.HOUR; in setup() 483 key = CALENDAR_FIELD_TO_PATTERN_LETTER[Calendar.HOUR]; in setup() 487 calendarField = Calendar.HOUR; in setup() 488 key = CALENDAR_FIELD_TO_PATTERN_LETTER[Calendar.HOUR]; in setup() 646 CALENDAR_FIELD_TO_PATTERN_LETTER[Calendar.HOUR], in setIntervalPattern()
|
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/format/ |
D | MeasureUnitTest.java | 289 MeasureUnit.HOUR, in TestCompatible53_1() 326 MeasureUnit.HOUR, in TestCompatible54_1() 453 MeasureUnit.HOUR, in TestCompatible55_1() 584 MeasureUnit.HOUR, in TestCompatible56_1() 727 new TimeUnitAmount(1.0, TimeUnit.HOUR), in TestFormatPeriodEn() 730 new TimeUnitAmount(1.0, TimeUnit.HOUR), in TestFormatPeriodEn() 733 new TimeUnitAmount(1.0, TimeUnit.HOUR), in TestFormatPeriodEn() 745 new TimeUnitAmount(5.0, TimeUnit.HOUR), in TestFormatPeriodEn() 748 new TimeUnitAmount(-5.0, TimeUnit.HOUR), in TestFormatPeriodEn() 754 new TimeUnitAmount(0.0, TimeUnit.HOUR), in TestFormatPeriodEn() [all …]
|
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/ |
D | MeasureUnitTest.java | 285 MeasureUnit.HOUR, in TestCompatible53_1() 322 MeasureUnit.HOUR, in TestCompatible54_1() 449 MeasureUnit.HOUR, in TestCompatible55_1() 580 MeasureUnit.HOUR, in TestCompatible56_1() 723 new TimeUnitAmount(1.0, TimeUnit.HOUR), in TestFormatPeriodEn() 726 new TimeUnitAmount(1.0, TimeUnit.HOUR), in TestFormatPeriodEn() 729 new TimeUnitAmount(1.0, TimeUnit.HOUR), in TestFormatPeriodEn() 741 new TimeUnitAmount(5.0, TimeUnit.HOUR), in TestFormatPeriodEn() 744 new TimeUnitAmount(-5.0, TimeUnit.HOUR), in TestFormatPeriodEn() 750 new TimeUnitAmount(0.0, TimeUnit.HOUR), in TestFormatPeriodEn() [all …]
|
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/duration/ |
D | PeriodBuilderFactoryTest.java | 102 assertEquals("hours", 1.0f, p.getCount(HOUR)); in testBuilderFactoryPeriodConstruction() 108 assertEquals("hours", 1.0f, p.getCount(HOUR)); in testBuilderFactoryPeriodConstruction()
|
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/duration/ |
D | PeriodBuilderFactoryTest.java | 98 assertEquals("hours", 1.0f, p.getCount(HOUR)); in testBuilderFactoryPeriodConstruction() 104 assertEquals("hours", 1.0f, p.getCount(HOUR)); in testBuilderFactoryPeriodConstruction()
|