Home
last modified time | relevance | path

Searched refs:gc1 (Results 1 – 2 of 2) sorted by relevance

/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/
DGregorianCalendarTest.java152 GregorianCalendar gc1 = new GregorianCalendar(AMERICA_NEW_YORK); in test_ConstructorLjava_util_TimeZone() local
153 gc1.setTime(date); in test_ConstructorLjava_util_TimeZone()
158 gc1.get(Calendar.HOUR), ((gc2.get(Calendar.HOUR) + 1) % 12)); in test_ConstructorLjava_util_TimeZone()
187 GregorianCalendar gc1 = new GregorianCalendar(AMERICA_NEW_YORK, Locale.JAPAN); in test_ConstructorLjava_util_TimeZoneLjava_util_Locale() local
188 gc1.setTime(date); in test_ConstructorLjava_util_TimeZoneLjava_util_Locale()
195 gc1.get(Calendar.HOUR), ((gc3.get(Calendar.HOUR) + 1) % 12)); in test_ConstructorLjava_util_TimeZoneLjava_util_Locale()
196 assertTrue("Locales not created correctly", gc1.equals(gc2) in test_ConstructorLjava_util_TimeZoneLjava_util_Locale()
197 && !gc1.equals(gc3)); in test_ConstructorLjava_util_TimeZoneLjava_util_Locale()
205 GregorianCalendar gc1 = new GregorianCalendar(1998, 11, 6); in test_addII() local
206 gc1.add(GregorianCalendar.YEAR, 1); in test_addII()
[all …]
/libcore/luni/src/test/java/libcore/java/util/
DOldGregorianCalendarTest.java33 GregorianCalendar gc1 = new GregorianCalendar(TimeZone.getTimeZone("GMT+1"), Locale.FRANCE); in testGetHour() local
34 gc1.setTime(now); in testGetHour()
38 assertTrue(gc2.get(Calendar.HOUR) == ((gc1.get(Calendar.HOUR) + 1) % 12)); in testGetHour()