HomeSort by relevance Sort by last modified time
    Searched defs:cal2 (Results 1 - 25 of 39) sorted by null

1 2

  /external/icu/icu4c/source/samples/dtitvfmtsample/
dtitvfmtsample.cpp 96 Calendar *cal2 = Calendar::createInstance(status); local
97 cal2->set(2007,10,10,10,10,10);
101 new DateInterval(cal1->getTime(status),cal2->getTime(status)),
102 new DateInterval(cal2->getTime(status),cal3->getTime(status))
  /external/icu/android_icu4j/src/main/tests/android/icu/dev/test/calendar/
AstroTest.java 244 GregorianCalendar cal2 = new GregorianCalendar(tz, Locale.US); local
261 cal2.setTime(cal.getTime());
262 cal2.set(Calendar.SECOND, 0);
263 cal2.set(Calendar.MILLISECOND, 0);
265 cal2.set(Calendar.HOUR_OF_DAY, USNO[4*i+0]);
266 cal2.set(Calendar.MINUTE, USNO[4*i+1]);
267 Date exprise = cal2.getTime();
268 cal2.set(Calendar.HOUR_OF_DAY, USNO[4*i+2]);
269 cal2.set(Calendar.MINUTE, USNO[4*i+3]);
270 Date expset = cal2.getTime()
    [all...]
JapaneseTest.java 177 Calendar cal2 = new JapaneseCalendar(loc); local
180 cal2.clear();
189 fmt.parse(samplestr, cal2, pp);
190 logln("cal2 after 1 parse:");
194 cal2.setTime(aDate);
195 gotYear = cal2.get(Calendar.YEAR);
196 gotEra = cal2.get(Calendar.ERA);
CompatibilityTest.java 283 Calendar cal2 = Calendar.getInstance(cal.getTimeZone()); local
286 cal2.setTime(when);
288 if (!(cal.equals(cal2))) errln("FAIL: Calendar.operator== failed");
289 // if ((*cal != *cal2)) errln("FAIL: Calendar.operator!= failed");
290 if (!cal.equals(cal2) ||
291 cal.before(cal2) ||
292 cal.after(cal2)) errln("FAIL: equals/before/after failed");
294 cal2.setTime(new Date(when.getTime() + 1000));
295 if (cal.equals(cal2) ||
296 cal2.before(cal) |
1078 Calendar cal2 = (Calendar)cal.clone(); local
1097 Calendar cal2 = (Calendar)cal.clone(); local
    [all...]
DangiTest.java 392 DangiCalendar cal2 = new DangiCalendar(d); local
397 assertEquals("DangiCalendar() and DangiCalendar(Date)", cal1, cal2);
CalendarRegression.java 107 java.util.GregorianCalendar cal2 = new java.util.GregorianCalendar(java.util.TimeZone.getTimeZone(ids[i])); local
108 cal2.clear();
109 cal2.set(1900, 15, 5, 5, 8, 13);
110 cal2.get(Calendar.HOUR);
113 cal2.get(Calendar.DST_OFFSET) / (60*60*1000.0) + "; ZONE_OFFSET = " +
114 cal2.get(Calendar.ZONE_OFFSET) / (60*60*1000.0) + "; getRawOffset() = " +
117 logln("ms = " + cal2.getTime() + " (" + cal2.getTime().getTime() + ")");
470 GregorianCalendar cal2 = new GregorianCalendar(1997, 10, 11, 10, 20, 40); local
472 * cal2.set( Calendar.YEAR, 1997 ); cal2.set( Calendar.MONTH, 10 )
512 Calendar cal2 = new GregorianCalendar(GMT); local
1032 GregorianCalendar cal2 = (GregorianCalendar)cal.clone(); local
2260 GregorianCalendar cal2 = new GregorianCalendar(TimeZone.GMT_ZONE,ULocale.US); local
    [all...]
IBMCalendarTest.java 1224 Calendar cal2 = (Calendar)cal.clone(); local
1732 Calendar cal2 = Calendar.getInstance(new ULocale(LOCALE_PAIRS[i + 1])); local
    [all...]
  /external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/calendar/
AstroTest.java 240 GregorianCalendar cal2 = new GregorianCalendar(tz, Locale.US); local
257 cal2.setTime(cal.getTime());
258 cal2.set(Calendar.SECOND, 0);
259 cal2.set(Calendar.MILLISECOND, 0);
261 cal2.set(Calendar.HOUR_OF_DAY, USNO[4*i+0]);
262 cal2.set(Calendar.MINUTE, USNO[4*i+1]);
263 Date exprise = cal2.getTime();
264 cal2.set(Calendar.HOUR_OF_DAY, USNO[4*i+2]);
265 cal2.set(Calendar.MINUTE, USNO[4*i+3]);
266 Date expset = cal2.getTime()
    [all...]
JapaneseTest.java 173 Calendar cal2 = new JapaneseCalendar(loc); local
176 cal2.clear();
185 fmt.parse(samplestr, cal2, pp);
186 logln("cal2 after 1 parse:");
190 cal2.setTime(aDate);
191 gotYear = cal2.get(Calendar.YEAR);
192 gotEra = cal2.get(Calendar.ERA);
CompatibilityTest.java 279 Calendar cal2 = Calendar.getInstance(cal.getTimeZone()); local
282 cal2.setTime(when);
284 if (!(cal.equals(cal2))) errln("FAIL: Calendar.operator== failed");
285 // if ((*cal != *cal2)) errln("FAIL: Calendar.operator!= failed");
286 if (!cal.equals(cal2) ||
287 cal.before(cal2) ||
288 cal.after(cal2)) errln("FAIL: equals/before/after failed");
290 cal2.setTime(new Date(when.getTime() + 1000));
291 if (cal.equals(cal2) ||
292 cal2.before(cal) |
1074 Calendar cal2 = (Calendar)cal.clone(); local
1093 Calendar cal2 = (Calendar)cal.clone(); local
    [all...]
DangiTest.java 388 DangiCalendar cal2 = new DangiCalendar(d); local
393 assertEquals("DangiCalendar() and DangiCalendar(Date)", cal1, cal2);
CalendarRegression.java 103 java.util.GregorianCalendar cal2 = new java.util.GregorianCalendar(java.util.TimeZone.getTimeZone(ids[i])); local
104 cal2.clear();
105 cal2.set(1900, 15, 5, 5, 8, 13);
106 cal2.get(Calendar.HOUR);
109 cal2.get(Calendar.DST_OFFSET) / (60*60*1000.0) + "; ZONE_OFFSET = " +
110 cal2.get(Calendar.ZONE_OFFSET) / (60*60*1000.0) + "; getRawOffset() = " +
113 logln("ms = " + cal2.getTime() + " (" + cal2.getTime().getTime() + ")");
466 GregorianCalendar cal2 = new GregorianCalendar(1997, 10, 11, 10, 20, 40); local
468 * cal2.set( Calendar.YEAR, 1997 ); cal2.set( Calendar.MONTH, 10 )
508 Calendar cal2 = new GregorianCalendar(GMT); local
1028 GregorianCalendar cal2 = (GregorianCalendar)cal.clone(); local
2256 GregorianCalendar cal2 = new GregorianCalendar(TimeZone.GMT_ZONE,ULocale.US); local
    [all...]
IBMCalendarTest.java 1220 Calendar cal2 = (Calendar)cal.clone(); local
1728 Calendar cal2 = Calendar.getInstance(new ULocale(LOCALE_PAIRS[i + 1])); local
    [all...]
  /external/icu/icu4c/source/test/intltest/
astrotst.cpp 269 GregorianCalendar *cal2 = new GregorianCalendar(tz->clone(), Locale::getUS(), status); local
296 cal2->setTime(cal->getTime(status), status);
297 cal2->set(UCAL_SECOND, 0);
298 cal2->set(UCAL_MILLISECOND, 0);
300 cal2->set(UCAL_HOUR_OF_DAY, USNO[4*i+0]);
301 cal2->set(UCAL_MINUTE, USNO[4*i+1]);
302 UDate exprise = cal2->getTime(status);
303 cal2->set(UCAL_HOUR_OF_DAY, USNO[4*i+2]);
304 cal2->set(UCAL_MINUTE, USNO[4*i+3]);
305 UDate expset = cal2->getTime(status)
    [all...]
incaltst.cpp 494 Calendar *cal2 = cal->clone(); local
521 fmt->parse(expected, *cal2, pp);
523 errln("Parse incorrect of " + expected + " - wanted " + aDate + " but got " + " = " + otherDate + ", " + str3 + " = " + CalendarTest::calToStr(*cal2) );
552 fmt->parse(expected, *cal2, pp);
555 otherDate + ", " + str3 + " = " + CalendarTest::calToStr(*cal2) );
562 delete cal2;
618 Calendar *cal2 = cal->clone(); local
636 cal2->clear();
641 fmt->parse(samplestr, *cal2, pp);
643 logln("*cal2 after 119 parse:")
    [all...]
caltest.cpp 389 Calendar *cal2 = Calendar::createInstance(cal->getTimeZone(), status); local
392 cal2->setTime(when, status);
395 if (!(*cal == *cal2)) errln("FAIL: Calendar::operator== failed");
396 if ((*cal != *cal2)) errln("FAIL: Calendar::operator!= failed");
397 if (!cal->equals(*cal2, status) ||
398 cal->before(*cal2, status) ||
399 cal->after(*cal2, status) ||
403 logln(UnicodeString("cal2=") +cal2->getTime(status) + UnicodeString(calToStr(*cal2)));
2400 Calendar* cal2 = cal->clone(); local
    [all...]
calregts.cpp 188 GregorianCalendar *cal2 = (GregorianCalendar*) cal1->clone() ; local
191 printdate(cal2, "cal2 - cloned(): ") ;
195 printdate(cal2, "cal2 should be unmodified:") ;
197 delete cal2;
206 LocalPointer<GregorianCalendar> cal2(new GregorianCalendar(status), status);
212 cal2->set(UCAL_HOUR,2);
214 cal2->clear();
217 cal2->set(2012,UCAL_JANUARY,06)
817 GregorianCalendar *cal2 = new GregorianCalendar(1997, 10, 11, 10, 20, 40,status); local
883 Calendar *cal2 = new GregorianCalendar(*GMT,status); local
1515 GregorianCalendar *cal2 = (GregorianCalendar*)cal->clone(); local
2308 Calendar *cal2 = cal.clone(); local
    [all...]
  /libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/text/
DateFormatTest.java 67 Calendar cal2 = format.getCalendar(); local
68 assertTrue("Calendars not identical", cal1 == cal2);
  /external/icu/icu4j/eclipse-build/plugins.template/com.ibm.icu.base.tests/src/com/ibm/icu/tests/
CalendarTest.java 25 Calendar cal2 = Calendar.getInstance(); local
30 cal2.setTimeInMillis(t);
34 testEHCS(cal1, cal2, cal3);
247 Calendar cal2 = Calendar.getInstance(); local
248 cal2.set(1994, 6, 21, 8, 7);
249 assertTrue(cal.isEquivalentTo(cal2));
251 cal2.setTimeZone(TimeZone.getTimeZone("PDT"));
252 assertFalse(cal.isEquivalentTo(cal2));
  /libcore/luni/src/test/java/libcore/java/sql/
OldResultSetGetterTests.java 938 Calendar cal2 = new GregorianCalendar(); local
939 cal2.set(Calendar.YEAR, 2007);
940 cal2.set(Calendar.MONTH, Calendar.OCTOBER);
941 cal2.set(Calendar.DATE, 9);
942 cal2.set(Calendar.HOUR_OF_DAY, 14);
943 cal2.set(Calendar.MINUTE, 28);
944 cal2.set(Calendar.SECOND, 02);
945 cal2.set(Calendar.MILLISECOND, 0);
947 long millis2 = cal2.getTime().getTime();
995 Calendar cal2 = new GregorianCalendar() local
1068 Calendar cal2 = new GregorianCalendar(); local
1120 Calendar cal2 = new GregorianCalendar(); local
1167 Calendar cal2 = new GregorianCalendar(); local
1224 Calendar cal2 = new GregorianCalendar(); local
1287 Calendar cal2 = new GregorianCalendar(); local
1347 Calendar cal2 = new GregorianCalendar(); local
    [all...]
  /external/icu/android_icu4j/src/main/tests/android/icu/dev/test/timezone/
TimeZoneTest.java 618 Calendar cal2 = Calendar.getInstance(); local
619 cal2.set(1990, Calendar.JUNE, 1);
621 cal2.getTimeInMillis(), marchOne);
623 cal2.set(1990, Calendar.DECEMBER, 31);
625 cal2.getTimeInMillis(), julyOne);
    [all...]
  /external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/timezone/
TimeZoneTest.java 614 Calendar cal2 = Calendar.getInstance(); local
615 cal2.set(1990, Calendar.JUNE, 1);
617 cal2.getTimeInMillis(), marchOne);
619 cal2.set(1990, Calendar.DECEMBER, 31);
621 cal2.getTimeInMillis(), julyOne);
    [all...]
  /external/owasp/sanitizer/tools/findbugs/lib/
commons-lang-2.6.jar 
  /prebuilts/eclipse/maven/apache-maven-3.2.1/lib/
commons-lang-2.6.jar 
  /prebuilts/tools/common/m2/repository/commons-lang/commons-lang/2.6/
commons-lang-2.6.jar 

Completed in 490 milliseconds

1 2