Home
last modified time | relevance | path

Searched refs:currentYear (Results 1 – 10 of 10) sorted by relevance

/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/
DShadowDateUtilsTest.java52 final int currentYear = Calendar.getInstance().get(Calendar.YEAR); in formatDateTime_withCurrentYear_worksSinceM() local
53 assertThat(actual).isEqualTo("1/1/" + currentYear); in formatDateTime_withCurrentYear_worksSinceM()
60 final int currentYear = calendar.get(Calendar.YEAR); in formatDateTime_withCurrentYear_worksPreKitKat() local
65 assertThat(actual).isEqualTo("1/1/" + currentYear); in formatDateTime_withCurrentYear_worksPreKitKat()
87 final int currentYear = calendar.get(Calendar.YEAR); in getMillisAtStartOfYear() local
89 calendar.set(currentYear, Calendar.JANUARY, 1, 0, 0, 0); in getMillisAtStartOfYear()
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/calendar/
DEraRulesTest.java54 int currentYear = cal.get(Calendar.YEAR); in testAPIs() local
55 … int idx = rules1.getEraIndex(currentYear, cal.get(Calendar.MONTH) + 1, cal.get(Calendar.DATE)); in testAPIs()
62 if (currentYear < eraStartYear) { in testAPIs()
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/calendar/
DEraRulesTest.java51 int currentYear = cal.get(Calendar.YEAR); in testAPIs() local
52 … int idx = rules1.getEraIndex(currentYear, cal.get(Calendar.MONTH) + 1, cal.get(Calendar.DATE)); in testAPIs()
59 if (currentYear < eraStartYear) { in testAPIs()
/external/icu/icu4c/source/test/intltest/
Derarulestest.cpp82 int32_t currentYear = cal->get(UCAL_YEAR, status); in testAPIs() local
84 currentYear, cal->get(UCAL_MONTH, status) + 1, in testAPIs()
99 if (currentYear < eraStartYear) { in testAPIs()
/external/icu/icu4c/source/tools/toolutil/
Dtoolutil.cpp84 static int32_t currentYear = -1; variable
91 if(currentYear == -1) { in getCurrentYear()
94 currentYear = ucal_get(cal, UCAL_YEAR, &status); in getCurrentYear()
100 return currentYear; in getCurrentYear()
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/timezone/
DTimeZoneAliasTest.java169 static private final int currentYear = new GregorianCalendar().get(Calendar.YEAR); field in TimeZoneAliasTest.Zone
170 static private final long endDate = getDate((currentYear+1),0,1).getTime();
171 static private final long endDate2 = getDate((currentYear+1),6,1).getTime();
172 static private final long recentLimit = getDate((currentYear-1),6,1).getTime();
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/timezone/
DTimeZoneAliasTest.java166 static private final int currentYear = new GregorianCalendar().get(Calendar.YEAR); field in TimeZoneAliasTest.Zone
167 static private final long endDate = getDate((currentYear+1),0,1).getTime();
168 static private final long endDate2 = getDate((currentYear+1),6,1).getTime();
169 static private final long recentLimit = getDate((currentYear-1),6,1).getTime();
/external/cldr/tools/java/org/unicode/cldr/util/
DZoneInflections.java45 static private final int currentYear = Calendar.getInstance().get(Calendar.YEAR); field in ZoneInflections
47 static private final long endDate = getDateLong(currentYear + 5, 1, 1);
/external/icu/icu4c/source/test/cintltst/
Dcdattst.c1040 static int currentYear = 0; in getCurrentYear() local
1041 if (currentYear == 0) { in getCurrentYear()
1046 currentYear = ucal_get(cal, UCAL_YEAR, &status); in getCurrentYear()
1051 return currentYear; in getCurrentYear()
/external/doclava/res/assets/templates-sdk/assets/js/
Dandroid_3p-bundle.js2706currentYear;else{var d=new Date;c.selectedDay=d.getDate(),c.drawMonth=c.selectedMonth=d.getMonth()…