/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/duration/ |
H A D | PeriodTest.java | 30 Period p = Period.at(0, TimeUnit.YEAR); 32 assertTrue(null, p.isSet(TimeUnit.YEAR)); 34 assertEquals(null, 0f, p.getCount(TimeUnit.YEAR), .1f); 35 p = p.omit(TimeUnit.YEAR); 36 assertFalse(null, p.isSet(TimeUnit.YEAR)); 40 Period p = Period.moreThan(1, TimeUnit.YEAR); 53 p = Period.lessThan(1, TimeUnit.YEAR); 57 p = Period.at(1, TimeUnit.YEAR); 61 assertEquals(null, 1f, p.getCount(TimeUnit.YEAR), .1f); 65 Period p = Period.at(1, TimeUnit.YEAR) [all...] |
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/duration/ |
H A D | PeriodTest.java | 26 Period p = Period.at(0, TimeUnit.YEAR); 28 assertTrue(null, p.isSet(TimeUnit.YEAR)); 30 assertEquals(null, 0f, p.getCount(TimeUnit.YEAR), .1f); 31 p = p.omit(TimeUnit.YEAR); 32 assertFalse(null, p.isSet(TimeUnit.YEAR)); 36 Period p = Period.moreThan(1, TimeUnit.YEAR); 49 p = Period.lessThan(1, TimeUnit.YEAR); 53 p = Period.at(1, TimeUnit.YEAR); 57 assertEquals(null, 1f, p.getCount(TimeUnit.YEAR), .1f); 61 Period p = Period.at(1, TimeUnit.YEAR) [all...] |
/external/icu/android_icu4j/src/main/java/android/icu/impl/duration/ |
H A D | TimeUnitConstants.java | 17 public static final TimeUnit YEAR = TimeUnit.YEAR; field in interface:TimeUnitConstants
|
H A D | TimeUnit.java | 34 public static final TimeUnit YEAR = new TimeUnit("year", 0); field in class:TimeUnit 69 YEAR, MONTH, WEEK, DAY, HOUR, MINUTE, SECOND, MILLISECOND
|
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/duration/ |
H A D | TimeUnitConstants.java | 15 public static final TimeUnit YEAR = TimeUnit.YEAR; field in interface:TimeUnitConstants
|
H A D | TimeUnit.java | 32 public static final TimeUnit YEAR = new TimeUnit("year", 0); field in class:TimeUnit 67 YEAR, MONTH, WEEK, DAY, HOUR, MINUTE, SECOND, MILLISECOND
|
/external/icu/android_icu4j/src/main/java/android/icu/util/ |
H A D | TimeUnit.java | 36 return new TimeUnit[] { SECOND, MINUTE, HOUR, DAY, WEEK, MONTH, YEAR }; 60 return YEAR;
|
H A D | TaiwanCalendar.java | 135 * @param year The value used to set the calendar's {@link #YEAR YEAR} time field. 150 * @param year The value used to set the calendar's {@link #YEAR YEAR} time field. 185 if (newerField(EXTENDED_YEAR, YEAR) == EXTENDED_YEAR 191 year = internalGet(YEAR, 1) + Taiwan_ERA_START; 193 year = 1 - internalGet(YEAR, 1) + Taiwan_ERA_START; 207 internalSet(YEAR, y); 210 internalSet(YEAR, 1- y); 216 * should really handle YEAR, YEAR_WO [all...] |
H A D | CopticCalendar.java | 176 * @param year The value used to set the calendar's {@link #YEAR YEAR} time field. 199 * @param year The value used to set the calendar's {@link #YEAR YEAR} time field. 228 if (newerField(EXTENDED_YEAR, YEAR) == EXTENDED_YEAR) { 234 eyear = 1 - internalGet(YEAR, 1); // Convert to extended year 236 eyear = internalGet(YEAR, 1); // Default to year 1 268 internalSet(YEAR, year);
|
H A D | BuddhistCalendar.java | 134 * @param year The value used to set the calendar's {@link #YEAR YEAR} time field. 149 * @param year The value used to set the calendar's {@link #YEAR YEAR} time field. 187 if (newerField(EXTENDED_YEAR, YEAR) == EXTENDED_YEAR) { 190 year = internalGet(YEAR, GREGORIAN_EPOCH - BUDDHIST_ERA_START) 209 internalSet(YEAR, y); 214 * should really handle YEAR, YEAR_WOY, and EXTENDED_YEAR here too to
|
H A D | GregorianCalendar.java | 115 * System.out.println("YEAR: " + calendar.get(Calendar.YEAR)); 140 * System.out.println("YEAR: " + calendar.get(Calendar.YEAR)); 257 { 1, 1, 5828963, 5838270 }, // YEAR 388 * @param year the value used to set the YEAR time field in the calendar. 397 set(YEAR, year); 405 * @param year the value used to set the YEAR time field in the calendar. 419 set(YEAR, year); 429 * @param year the value used to set the YEAR tim [all...] |
H A D | JapaneseCalendar.java | 139 * @param year The value used to set the calendar's {@link #YEAR YEAR} field, 156 * @param year The value used to set the calendar's {@link #YEAR YEAR} field, 174 * @param year The value used to set the calendar's {@link #YEAR YEAR} time field, 207 if (newerField(EXTENDED_YEAR, YEAR) == EXTENDED_YEAR && 212 year = internalGet(YEAR, 1) // pin to minimum of year 1 (first year) 306 internalSet(YEAR, year - ERAS[low*3] + 1); 593 case YEAR [all...] |
H A D | HebrewCalendar.java | 162 { -5000000, -5000000, 5000000, 5000000 }, // YEAR 333 * @param year The value used to set the calendar's {@link #YEAR YEAR} time field. 343 this.set(YEAR, year); 364 * @param year The value used to set the calendar's {@link #YEAR YEAR} time field. 382 this.set(YEAR, year); 434 int year = get(YEAR); 466 set(YEAR, year); 514 int year = get(YEAR); [all...] |
H A D | EthiopicCalendar.java | 203 * @param year The value used to set the calendar's {@link #YEAR YEAR} time field. 226 * @param year The value used to set the calendar's {@link #YEAR YEAR} time field. 278 if (newerField(EXTENDED_YEAR, YEAR) == EXTENDED_YEAR) { 281 eyear = internalGet(YEAR, 1 + AMETE_MIHRET_DELTA) 287 eyear = internalGet(YEAR, 1); // Default to year 1 289 eyear = internalGet(YEAR, 1) - AMETE_MIHRET_DELTA; 325 internalSet(YEAR, year);
|
H A D | PersianCalendar.java | 213 * @param year the value used to set the {@link #YEAR YEAR} time field in the calendar. 226 this.set(Calendar.YEAR, year); 235 * @param year the value used to set the {@link #YEAR YEAR} time field in the calendar. 255 this.set(Calendar.YEAR, year); 271 { -5000000, -5000000, 5000000, 5000000}, // YEAR 393 if (newerField(EXTENDED_YEAR, YEAR) == EXTENDED_YEAR) { 396 year = internalGet(YEAR, 1); // Default to year 1 406 * <li>YEAR [all...] |
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/util/ |
H A D | TimeUnit.java | 38 return new TimeUnit[] { SECOND, MINUTE, HOUR, DAY, WEEK, MONTH, YEAR }; 62 return YEAR;
|
H A D | TaiwanCalendar.java | 145 * @param year The value used to set the calendar's {@link #YEAR YEAR} time field. 161 * @param year The value used to set the calendar's {@link #YEAR YEAR} time field. 198 if (newerField(EXTENDED_YEAR, YEAR) == EXTENDED_YEAR 204 year = internalGet(YEAR, 1) + Taiwan_ERA_START; 206 year = 1 - internalGet(YEAR, 1) + Taiwan_ERA_START; 221 internalSet(YEAR, y); 224 internalSet(YEAR, 1- y); 230 * should really handle YEAR, YEAR_WO [all...] |
H A D | CopticCalendar.java | 195 * @param year The value used to set the calendar's {@link #YEAR YEAR} time field. 220 * @param year The value used to set the calendar's {@link #YEAR YEAR} time field. 250 if (newerField(EXTENDED_YEAR, YEAR) == EXTENDED_YEAR) { 256 eyear = 1 - internalGet(YEAR, 1); // Convert to extended year 258 eyear = internalGet(YEAR, 1); // Default to year 1 289 internalSet(YEAR, year);
|
H A D | BuddhistCalendar.java | 142 * @param year The value used to set the calendar's {@link #YEAR YEAR} time field. 158 * @param year The value used to set the calendar's {@link #YEAR YEAR} time field. 198 if (newerField(EXTENDED_YEAR, YEAR) == EXTENDED_YEAR) { 201 year = internalGet(YEAR, GREGORIAN_EPOCH - BUDDHIST_ERA_START) 222 internalSet(YEAR, y); 227 * should really handle YEAR, YEAR_WOY, and EXTENDED_YEAR here too to
|
H A D | GregorianCalendar.java | 114 * System.out.println("YEAR: " + calendar.get(Calendar.YEAR)); 139 * System.out.println("YEAR: " + calendar.get(Calendar.YEAR)); 259 { 1, 1, 5828963, 5838270 }, // YEAR 399 * @param year the value used to set the YEAR time field in the calendar. 409 set(YEAR, year); 417 * @param year the value used to set the YEAR time field in the calendar. 432 set(YEAR, year); 442 * @param year the value used to set the YEAR tim [all...] |
H A D | JapaneseCalendar.java | 146 * @param year The value used to set the calendar's {@link #YEAR YEAR} field, 164 * @param year The value used to set the calendar's {@link #YEAR YEAR} field, 183 * @param year The value used to set the calendar's {@link #YEAR YEAR} time field, 218 if (newerField(EXTENDED_YEAR, YEAR) == EXTENDED_YEAR && 223 year = internalGet(YEAR, 1) // pin to minimum of year 1 (first year) 320 internalSet(YEAR, year - ERAS[low*3] + 1); 613 case YEAR [all...] |
H A D | HebrewCalendar.java | 175 { -5000000, -5000000, 5000000, 5000000 }, // YEAR 352 * @param year The value used to set the calendar's {@link #YEAR YEAR} time field. 363 this.set(YEAR, year); 385 * @param year The value used to set the calendar's {@link #YEAR YEAR} time field. 404 this.set(YEAR, year); 457 int year = get(YEAR); 489 set(YEAR, year); 538 int year = get(YEAR); [all...] |
H A D | EthiopicCalendar.java | 221 * @param year The value used to set the calendar's {@link #YEAR YEAR} time field. 246 * @param year The value used to set the calendar's {@link #YEAR YEAR} time field. 302 if (newerField(EXTENDED_YEAR, YEAR) == EXTENDED_YEAR) { 305 eyear = internalGet(YEAR, 1 + AMETE_MIHRET_DELTA) 311 eyear = internalGet(YEAR, 1); // Default to year 1 313 eyear = internalGet(YEAR, 1) - AMETE_MIHRET_DELTA; 349 internalSet(YEAR, year);
|
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/calendar/ |
H A D | ChineseTestCase.java | 21 * @param year the YEAR field of tested calendar on the given 38 set(Calendar.YEAR, year); 50 get(Calendar.YEAR) + "of" + get(Calendar.ERA) +
|
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/calendar/ |
H A D | ChineseTestCase.java | 20 * @param year the YEAR field of tested calendar on the given 37 set(Calendar.YEAR, year); 49 get(Calendar.YEAR) + "of" + get(Calendar.ERA) +
|