/external/jsilver/src/org/clearsilver/jni/ |
JniHdf.java | 240 setValue(hdfname + ".year", 241 Integer.toString(cal.get(Calendar.YEAR))); 243 Integer.toString(cal.get(Calendar.YEAR)).substring(2));
|
/external/nist-sip/java/gov/nist/javax/sip/header/ |
SIPDate.java | 112 /** year member 114 protected int year; field in class:SIPDate 142 this.year == other.year && 155 year = -1; 244 year = javaCal.get(Calendar.YEAR); 291 encoding += year 360 if (year != -1) 361 javaCal.set(Calendar.YEAR, year) [all...] |
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/ |
DateTest.java | 284 assertEquals("Returned incorrect year", 98, d.getYear()); 307 assertEquals("Parsed incorrect year", 1998, cal.get(Calendar.YEAR)); 423 assertEquals("Set incorrect year", 8, d.getYear()); 446 cal.set(Calendar.YEAR, 1970);
|
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/wizards/export/ |
KeyCheckPage.java | 247 int expirationYear = expirationCalendar.get(Calendar.YEAR); 248 int thisYear = today.get(Calendar.YEAR); 254 sb.append("<p>The certificate expires this year.</p>"); 259 count, count == 1 ? "year" : "years"));
|
/cts/tests/tests/provider/src/android/provider/cts/ |
MediaStore_Audio_Playlists_MembersTest.java | 63 Members.YEAR, 93 Members.YEAR, 241 assertEquals(Audio1.YEAR, c.getInt(c.getColumnIndex(Members.YEAR))); 285 assertEquals(Audio2.YEAR, c.getInt(c.getColumnIndex(Members.YEAR)));
|
MediaStore_Audio_Genres_MembersTest.java | 147 assertEquals(Audio1.YEAR, c.getInt(c.getColumnIndex(Members.YEAR)));
|
/frameworks/base/core/java/android/widget/ |
CalendarViewLegacyDelegate.java | 689 && firstDate.get(Calendar.YEAR) == secondDate.get(Calendar.YEAR)); 704 selectedDay.get(Calendar.YEAR), [all...] |
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/format/ |
MeasureUnitTest.java | 124 {"YEAR", "53"}, 228 TIME_CODES.add("year"); 328 MeasureUnit.YEAR, 378 MeasureUnit.YEAR, 506 MeasureUnit.YEAR, 638 MeasureUnit.YEAR, 779 MeasureUnit.YEAR, [all...] |
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/ |
MeasureUnitTest.java | 123 {"YEAR", "53"}, 227 TIME_CODES.add("year"); 327 MeasureUnit.YEAR, 377 MeasureUnit.YEAR, 505 MeasureUnit.YEAR, 637 MeasureUnit.YEAR, 778 MeasureUnit.YEAR, [all...] |
/external/icu/android_icu4j/src/main/java/android/icu/text/ |
DateTimePatternGenerator.java | [all...] |
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/ |
DateTimePatternGenerator.java | [all...] |
/libcore/ojluni/src/test/java/time/tck/java/time/ |
TCKYear.java | 63 import static java.time.temporal.ChronoField.YEAR; 87 import java.time.Year; 115 * Test Year. 120 private static final Year TEST_2008 = Year.of(2008); 137 YEAR, 158 Year expected = Year.now(Clock.systemDefaultZone()); 159 Year test = Year.now() 267 Year year = Year.parse(text); local [all...] |
/external/icu/icu4j/eclipse-build/plugins.template/com.ibm.icu.base/src/com/ibm/icu/text/ |
DateFormat.java | 151 * corresponding to the {@link Calendar#YEAR} field. 669 * {@icu} Constant for date skeleton with year. 672 public static final String YEAR = "y"; 689 * {@icu} Constant for date skeleton with year and quarter. 695 * {@icu} Constant for date skeleton with year and abbreviated quarter. 719 * {@icu} Constant for date skeleton with year and month. 725 * {@icu} Constant for date skeleton with year and abbreviated month. 731 * {@icu} Constant for date skeleton with year and numeric month. 743 * {@icu} Constant for date skeleton with year, month, and day. 750 * {@icu} Constant for date skeleton with year, abbreviated month, and day [all...] |
/libcore/ojluni/src/test/java/time/test/java/time/chrono/ |
TestUmmAlQuraChronology.java | 31 import static java.time.temporal.ChronoField.YEAR; 119 // UmmAlQura chronology ranges for year, month and days for the HijrahChronology 123 ValueRange year = chrono.range(YEAR); local 124 assertEquals(year.getMinimum(), 1300, "Minimum year"); 125 assertEquals(year.getLargestMinimum(), 1300, "Largest minimum year"); 126 assertEquals(year.getMaximum(), 1600, "Largest year"); [all...] |
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/calendar/ |
ChineseTest.java | 29 * Wed May 23 2001 = 4638-04*-01, Year 18, Cycle 78 30 * Sun Mar 21 2004 = 4641-02*-01, Year 21, Cycle 78 31 * Thu Aug 24 2006 = 4643-07*-01, Year 23, Cycle 78 32 * Tue Jun 23 2009 = 4646-05*-01, Year 26, Cycle 78 33 * Mon May 21 2012 = 4649-04*-01, Year 29, Cycle 78 34 * Fri Oct 24 2014 = 4651-09*-01, Year 31, Cycle 78 35 * Sun Jul 23 2017 = 4654-06*-01, Year 34, Cycle 78 36 * Sat May 23 2020 = 4657-04*-01, Year 37, Cycle 78 37 * Wed Mar 22 2023 = 4660-02*-01, Year 40, Cycle 78 38 * Fri Jul 25 2025 = 4662-06*-01, Year 42, Cycle 7 [all...] |
AstroTest.java | 38 // year, month, day, hour, minute, longitude (radians), ascension(radians), declination(radians) 92 // year, month, day, hour, minute, ascension(radians), declination(radians) 248 cal.set(Calendar.YEAR, 2001); 315 // cal.set(cal.YEAR, 1986); 318 // cal.set(cal.YEAR, 1988); 332 cal3.set(Calendar.YEAR, 1980); 347 // cal3.set(cal3.YEAR, 1990); 377 String testString = "CASE["+i+"]: Year "+(int)testcase[i][0]+" Month "+(int)testcase[i][1]+" Day "+
|
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/calendar/ |
ChineseTest.java | 28 * Wed May 23 2001 = 4638-04*-01, Year 18, Cycle 78 29 * Sun Mar 21 2004 = 4641-02*-01, Year 21, Cycle 78 30 * Thu Aug 24 2006 = 4643-07*-01, Year 23, Cycle 78 31 * Tue Jun 23 2009 = 4646-05*-01, Year 26, Cycle 78 32 * Mon May 21 2012 = 4649-04*-01, Year 29, Cycle 78 33 * Fri Oct 24 2014 = 4651-09*-01, Year 31, Cycle 78 34 * Sun Jul 23 2017 = 4654-06*-01, Year 34, Cycle 78 35 * Sat May 23 2020 = 4657-04*-01, Year 37, Cycle 78 36 * Wed Mar 22 2023 = 4660-02*-01, Year 40, Cycle 78 37 * Fri Jul 25 2025 = 4662-06*-01, Year 42, Cycle 7 [all...] |
AstroTest.java | 37 // year, month, day, hour, minute, longitude (radians), ascension(radians), declination(radians) 91 // year, month, day, hour, minute, ascension(radians), declination(radians) 247 cal.set(Calendar.YEAR, 2001); 314 // cal.set(cal.YEAR, 1986); 317 // cal.set(cal.YEAR, 1988); 331 cal3.set(Calendar.YEAR, 1980); 346 // cal3.set(cal3.YEAR, 1990); 376 String testString = "CASE["+i+"]: Year "+(int)testcase[i][0]+" Month "+(int)testcase[i][1]+" Day "+
|
/libcore/luni/src/test/java/libcore/java/util/ |
GregorianCalendarTest.java | 123 // A different year explains why we get very different results for the methods being tested. 124 assertEquals(1999, gc.get(Calendar.YEAR)); 145 assertEquals(2000, gc.get(Calendar.YEAR)); 295 assertEquals(2007, calendar.get(Calendar.YEAR)); 432 public int getOffset(int era, int year, int month, int day, int dayOfWeek, 434 return timeZone.getOffset(era, year, month, day, dayOfWeek, milliseconds);
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/text/ |
SimpleDateFormatTest.java | 510 int year = cal.get(Calendar.YEAR); local 512 assertTrue("Wrong default year start", cal.get(Calendar.YEAR) == (year - 80)); 839 int year = cal.get(Calendar.YEAR); local [all...] |
/external/icu/android_icu4j/src/main/java/android/icu/impl/duration/ |
BasicPeriodBuilderFactory.java | 41 TimeUnit maxUnit = TimeUnit.YEAR; 59 result.maxUnit = TimeUnit.YEAR;
|
/external/icu/icu4j/demos/src/com/ibm/icu/dev/demo/calendar/ |
CalendarFrame.java | 128 // plus the month/year label for each calendar 149 // Now add the next/previous year/month buttons: 151 prevYear.addActionListener(new AddAction(Calendar.YEAR, -1)); 169 nextYear.addActionListener(new AddAction(Calendar.YEAR, 1)); 328 * AddAction handles the next/previous year/month buttons...
|
/external/icu/icu4j/eclipse-build/plugins.template/com.ibm.icu.base.tests/src/com/ibm/icu/tests/ |
DateFormatTest.java | 47 gcal.set(java.util.GregorianCalendar.YEAR, 1990); 65 anFPField = new FieldPosition(DateFormat.Field.YEAR);
|
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/duration/ |
BasicPeriodBuilderFactory.java | 40 TimeUnit maxUnit = TimeUnit.YEAR; 58 result.maxUnit = TimeUnit.YEAR;
|
/frameworks/base/core/java/android/text/format/ |
DateUtils.java | 58 * This constant is actually the length of 364 days, not of a year! 226 * Return a localized string for the month of the year. 233 * @return Localized month of the year. 488 if (thenCal.get(Calendar.YEAR) == nowCal.get(Calendar.YEAR) 505 int thenYear = time.year; 510 return (thenYear == time.year) 620 * If FORMAT_SHOW_YEAR is set, then the year is always shown. 621 * If FORMAT_SHOW_YEAR is not set, then the year 622 * is shown only if it is different from the current year, or if the star [all...] |