/external/chromium_org/third_party/icu/source/test/cintltst/ |
cldrtest.c | 1020 UResourceBundle* cal = ures_getByKey(currentLocale, "calendar", NULL, &errorCode); local [all...] |
/external/chromium_org/third_party/icu/source/test/intltest/ |
caltest.cpp | 27 UnicodeString CalendarTest::calToStr(const Calendar & cal) 34 out += (UnicodeString("") + fieldName((UCalendarDateFields)i) + "=" + cal.get((UCalendarDateFields)i, status) + UnicodeString(" ")); 36 out += "[" + UnicodeString(cal.getType()) + "]"; 38 if(cal.inDaylightTime(status)) { 46 out += cal.getTimeZone().getDisplayName(str2); 47 d = cal.getTime(status); 286 Calendar *cal = Calendar::createInstance(zone->clone(), status); local 289 if (*zone != cal->getTimeZone()) errln("FAIL: Calendar::getTimeZone failed"); 291 Calendar *cal2 = Calendar::createInstance(cal->getTimeZone(), status); 293 cal->setTime(when, status) 561 GregorianCalendar* cal = new GregorianCalendar(status); local 802 Calendar *cal = Calendar::createInstance(status); local 837 Calendar *cal = Calendar::createInstance(status); local 1150 Calendar *cal = new GregorianCalendar(status); local 1339 Calendar *cal = new GregorianCalendar(1972, UCAL_OCTOBER, 26, status); local 1358 Calendar *cal=Calendar::createInstance(Locale::getGermany(), status); local 2055 Calendar *cal; local [all...] |
dtfmrgts.cpp | 357 Calendar *cal = new GregorianCalendar(status); local 359 cal->setTime(myDate, status); 360 failure(status, "cal->setTime"); 361 if ((cal->get(UCAL_DAY_OF_YEAR, status) != 40) || failure(status, "cal->get")) 362 errln((UnicodeString) "Fail: Got " + cal->get(UCAL_DAY_OF_YEAR, status) + 374 cal->setTime(myDate, status); 375 failure(status, "cal->setTime"); 376 if ((cal->get(UCAL_DAY_OF_YEAR, status) != 40) || failure(status, "cal->get") 1329 Calendar *cal = new GregorianCalendar(status); local 1438 Calendar *cal = new GregorianCalendar(zone, status); local [all...] |
loctest.cpp | 1338 Calendar *cal = Calendar::createInstance(status); local 1359 Calendar *cal = Calendar::createInstance(Locale("ru", "", ""), status); local 1822 Calendar* cal = Calendar::createInstance(Locale::createFromName(req), ec); local [all...] |
tzregts.cpp | 140 GregorianCalendar cal(1997, UCAL_JANUARY, 31, status); 146 cal.adoptTimeZone(z); 153 sdf.setCalendar(cal); 158 UBool indt = z->inDaylightTime(jan31=cal.getTime(status), status); 163 cal.set(1997, UCAL_MARCH, 1); 164 indt = z->inDaylightTime(mar1=cal.getTime(status), status); 168 sdf.format(cal.getTime(status), str); 172 cal.set(1997, UCAL_MARCH, 31); 173 indt = z->inDaylightTime(mar31=cal.getTime(status), status); 180 cal.set(1997, Calendar::DECEMBER, 31) 453 Calendar *cal = Calendar::createInstance(status); local [all...] |
numrgts.cpp | 2648 Calendar *cal = Calendar::createInstance(loc, status); local [all...] |
tzrulets.cpp | 278 GregorianCalendar *cal = new GregorianCalendar(status); local 287 cal->setTimeZone(*rbtz1); 288 cal->clear(); 291 cal->set(UCAL_ERA, GregorianCalendar::BC); 292 cal->set(1000, UCAL_JANUARY, 1); 294 era = cal->get(UCAL_ERA, status); 295 year = cal->get(UCAL_YEAR, status); 296 month = cal->get(UCAL_MONTH, status); 297 dayOfMonth = cal->get(UCAL_DAY_OF_MONTH, status); 298 dayOfWeek = cal->get(UCAL_DAY_OF_WEEK, status) 2308 Calendar *cal = Calendar::createInstance(*tz, status); local [all...] |
/external/icu4c/i18n/ |
tzfmt.cpp | 760 const Calendar* cal = dynamic_cast<const Calendar*>(formatObj); local 761 if (cal != NULL) { 762 tz = &cal->getTimeZone(); 763 date = cal->getTime(status); [all...] |
/external/icu4c/test/cintltst/ |
cdattst.c | 67 const UCalendar *cal; local 355 cal=udat_getCalendar(fr_pat); 358 udat_setCalendar(def1, cal); 796 UCalendar *cal=0; local 975 UCalendar *cal = ucal_open(NULL, -1, NULL, UCAL_GREGORIAN, &status); local [all...] |
cldrtest.c | 951 UResourceBundle* cal = ures_getByKey(currentLocale, "calendar", NULL, &errorCode); local [all...] |
ccaltst.c | 747 UCalendar *cal = 0; local 755 cal=ucal_open(tzID, u_strlen(tzID), "en_US", UCAL_TRADITIONAL, &status); 907 UCalendar *cal = 0; local 1100 UCalendar *cal = 0; local 1197 UCalendar *cal = 0; local 1270 UCalendar *gmtcal = 0, *cal = 0; local 1498 UCalendar *cal; local 1735 UCalendar * cal = ucal_open(NULL, 0, testDatesPtr->locale, UCAL_GREGORIAN, &status); local 1779 UCalendar * cal = ucal_open(NULL, 0, testDaysPtr->locale, UCAL_GREGORIAN, &status); local [all...] |
/external/icu4c/test/intltest/ |
dtfmrgts.cpp | 359 Calendar *cal = new GregorianCalendar(status); local 361 cal->setTime(myDate, status); 362 failure(status, "cal->setTime"); 363 if ((cal->get(UCAL_DAY_OF_YEAR, status) != 40) || failure(status, "cal->get")) 364 errln((UnicodeString) "Fail: Got " + cal->get(UCAL_DAY_OF_YEAR, status) + 378 cal->setTime(myDate, status); 379 failure(status, "cal->setTime"); 380 if ((cal->get(UCAL_DAY_OF_YEAR, status) != 40) || failure(status, "cal->get") 1333 Calendar *cal = new GregorianCalendar(status); local 1442 Calendar *cal = new GregorianCalendar(zone, status); local 1512 Calendar *cal = new GregorianCalendar(status); local [all...] |
tzregts.cpp | 140 GregorianCalendar cal(1997, UCAL_JANUARY, 31, status); 146 cal.adoptTimeZone(z); 153 sdf.setCalendar(cal); 158 UBool indt = z->inDaylightTime(jan31=cal.getTime(status), status); 163 cal.set(1997, UCAL_MARCH, 1); 164 indt = z->inDaylightTime(mar1=cal.getTime(status), status); 168 sdf.format(cal.getTime(status), str); 172 cal.set(1997, UCAL_MARCH, 31); 173 indt = z->inDaylightTime(mar31=cal.getTime(status), status); 180 cal.set(1997, Calendar::DECEMBER, 31) 453 Calendar *cal = Calendar::createInstance(status); local [all...] |
caltest.cpp | 35 UnicodeString CalendarTest::calToStr(const Calendar & cal) 42 out += (UnicodeString("") + fieldName((UCalendarDateFields)i) + "=" + cal.get((UCalendarDateFields)i, status) + UnicodeString(" ")); 44 out += "[" + UnicodeString(cal.getType()) + "]"; 46 if(cal.inDaylightTime(status)) { 54 out += cal.getTimeZone().getDisplayName(str2); 55 d = cal.getTime(status); 336 Calendar *cal = Calendar::createInstance(zone->clone(), status); local 339 if (*zone != cal->getTimeZone()) errln("FAIL: Calendar::getTimeZone failed"); 341 Calendar *cal2 = Calendar::createInstance(cal->getTimeZone(), status); 343 cal->setTime(when, status) 649 GregorianCalendar* cal = new GregorianCalendar(status); local 890 Calendar *cal = Calendar::createInstance(status); local 925 Calendar *cal = Calendar::createInstance(status); local 1238 Calendar *cal = new GregorianCalendar(status); local 1427 Calendar *cal = new GregorianCalendar(1972, UCAL_OCTOBER, 26, status); local 1446 Calendar *cal=Calendar::createInstance(Locale::getGermany(), status); local 2143 Calendar *cal; local 2252 Calendar *cal; local 2306 Calendar *cal = Calendar::createInstance(TEST_LOCALES[i], status); local 2336 Calendar* cal = Calendar::createInstance(status); local [all...] |
loctest.cpp | 1359 Calendar *cal = Calendar::createInstance(status); local 1380 Calendar *cal = Calendar::createInstance(Locale("ru", "", ""), status); local 1843 Calendar* cal = Calendar::createInstance(Locale::createFromName(req), ec); local [all...] |
numrgts.cpp | 2652 Calendar *cal = Calendar::createInstance(loc, status); local [all...] |
tzrulets.cpp | 279 GregorianCalendar *cal = new GregorianCalendar(status); local 288 cal->setTimeZone(*rbtz1); 289 cal->clear(); 292 cal->set(UCAL_ERA, GregorianCalendar::BC); 293 cal->set(1000, UCAL_JANUARY, 1); 295 era = cal->get(UCAL_ERA, status); 296 year = cal->get(UCAL_YEAR, status); 297 month = cal->get(UCAL_MONTH, status); 298 dayOfMonth = cal->get(UCAL_DAY_OF_MONTH, status); 299 dayOfWeek = cal->get(UCAL_DAY_OF_WEEK, status) 2309 Calendar *cal = Calendar::createInstance(*tz, status); local [all...] |
/libcore/luni/src/main/java/java/util/ |
Calendar.java | 865 Calendar cal = (Calendar) object; local 866 return getTimeInMillis() == cal.getTimeInMillis() 867 && isLenient() == cal.isLenient() 868 && getFirstDayOfWeek() == cal.getFirstDayOfWeek() 869 && getMinimalDaysInFirstWeek() == cal.getMinimalDaysInFirstWeek() 870 && getTimeZone().equals(cal.getTimeZone()); [all...] |
/libcore/luni/src/test/java/libcore/java/security/cert/ |
CertificateFactoryTest.java | 524 GregorianCalendar cal = new GregorianCalendar(); local 525 cal.setTimeZone(TimeZone.getTimeZone("UTC")); 526 cal.set(2100, 0, 1, 0, 0, 0); // Jan 1, 2100 UTC 527 Date expiryDate = cal.getTime();
|
/libcore/luni/src/test/java/libcore/java/sql/ |
OldPreparedStatementTest.java | 1353 Calendar cal = new GregorianCalendar(1799, 5, 26); local 1411 Calendar cal = new GregorianCalendar(1799,5,26); local [all...] |
/packages/apps/Bluetooth/src/com/android/bluetooth/map/ |
BluetoothMapSmsPdu.java | 357 Calendar cal = Calendar.getInstance(); local 358 int offset = (cal.get(Calendar.ZONE_OFFSET) + cal.get(Calendar.DST_OFFSET)) / (15 * 60 * 1000); /* offset in quarters of an hour */
|
/packages/apps/Exchange/src/com/android/exchange/utility/ |
CalendarUtilities.java | 263 GregorianCalendar cal = new GregorianCalendar(TimeZone.getDefault()); local 265 cal.setTimeInMillis(millis + 30*SECONDS); 268 setWord(bytes, offset + MSFT_SYSTEMTIME_MONTH, cal.get(Calendar.MONTH) + 1); 270 setWord(bytes, offset + MSFT_SYSTEMTIME_DAY_OF_WEEK, cal.get(Calendar.DAY_OF_WEEK) - 1); 273 int wom = cal.get(Calendar.DAY_OF_WEEK_IN_MONTH); 278 setWord(bytes, offset + MSFT_SYSTEMTIME_HOUR, getTrueTransitionHour(cal)); 279 setWord(bytes, offset + MSFT_SYSTEMTIME_MINUTE, getTrueTransitionMinute(cal)); 467 GregorianCalendar cal = calendars[i]; local 468 if (cal == null) return null; 470 if (cal.get(Calendar.MONTH) != month) 556 GregorianCalendar cal = new GregorianCalendar(tz); local 967 GregorianCalendar cal = new GregorianCalendar(tz); local 1027 GregorianCalendar cal = new GregorianCalendar(tz); local 1293 final GregorianCalendar cal = new GregorianCalendar(); local 1309 final GregorianCalendar cal = new GregorianCalendar(); local [all...] |
/external/chromium_org/third_party/mesa/src/src/gallium/drivers/nv50/codegen/ |
nv50_ir_ra.cpp | 391 FlowInstruction *cal = i->asFlow(); local 392 if (!cal || cal->op != OP_CALL || cal->builtin) 397 for (int s = 0; cal->srcExists(s); ++s) { 398 LValue *tmp = new_LValue(func, cal->getSrc(s)->asLValue()); 399 tmp->reg.data.id = cal->target.fn->ins[s].rep()->reg.data.id; 404 mov->setSrc(0, cal->getSrc(s)); 405 cal->setSrc(s, tmp); 407 bb->insertBefore(cal, mov) [all...] |
/external/mesa3d/src/gallium/drivers/nv50/codegen/ |
nv50_ir_ra.cpp | 391 FlowInstruction *cal = i->asFlow(); local 392 if (!cal || cal->op != OP_CALL || cal->builtin) 397 for (int s = 0; cal->srcExists(s); ++s) { 398 LValue *tmp = new_LValue(func, cal->getSrc(s)->asLValue()); 399 tmp->reg.data.id = cal->target.fn->ins[s].rep()->reg.data.id; 404 mov->setSrc(0, cal->getSrc(s)); 405 cal->setSrc(s, tmp); 407 bb->insertBefore(cal, mov) [all...] |
/external/valgrind/main/VEX/priv/ |
host_amd64_isel.c | 2203 IRExpr* cal = e->Iex.Binop.arg1; local [all...] |