/external/icu/icu4c/source/samples/date/ |
date.c | 47 static void date(UDate when, const UChar *tz, UDateFormatStyle style, const char *format, UErrorCode *status); 48 static UDate getWhen(const char *millis, const char *seconds, const char *format, UDateFormatStyle style, const char *parse, const UChar *tz, UErrorCode *status); 69 const UChar *tz = 0; local 92 tz = GMT_ID; 161 when = getWhen(millis, seconds, format, style, parse, tz, &status); 167 date(when, tz, style, format, &status); 241 const UChar *tz, 263 fmt = udat_open(style, style, 0, tz, -1,NULL,0, status); 292 UDateFormatStyle style, const char *parse, const UChar *tz, UErrorCode *status) { 318 fmt = udat_open(style, style, 0, tz, -1,NULL,0, status) [all...] |
/external/icu/icu4c/source/test/intltest/ |
tztest.cpp | 230 TimeZoneTest::findTransition(const TimeZone& tz, 234 UBool startsInDST = tz.inDaylightTime(min, ec); 236 if (tz.inDaylightTime(max, ec) == startsInDST) { 237 logln("Error: " + tz.getID(id) + ".inDaylightTime(" + dateToString(min) + ") = " + (startsInDST?"TRUE":"FALSE") + 244 if (tz.inDaylightTime(mid, ec) == startsInDST) { 253 logln(tz.getID(id) + " Before: " + min/1000 + " = " + 254 dateToString(min,s,tz)); 255 logln(tz.getID(id) + " After: " + max/1000 + " = " + 256 dateToString(max,s,tz)); 260 TimeZoneTest::testUsingBinarySearch(const TimeZone& tz, 306 TimeZone* tz = TimeZone::createTimeZone("PRT"); local 496 TimeZone *tz = TimeZone::createTimeZone("PST"); local 690 TimeZone *tz = TimeZone::createTimeZone(*id1); local 898 TimeZone *tz = TimeZone::createTimeZone(itsID); local 1543 SimpleTimeZone *tz = new SimpleTimeZone(-5 * U_MILLIS_PER_HOUR, "dstSavingsTest", local 1786 TimeZone *tz = TimeZone::createTimeZone(id); local 1907 TimeZone *tz; local [all...] |
tzbdtest.cpp | 116 TimeZoneBoundaryTest::findDaylightBoundaryUsingTimeZone(UDate d, UBool startsInDST, UDate expectedBoundary, TimeZone* tz) 122 if (tz->inDaylightTime(d, status) != startsInDST) { 123 dataerrln("FAIL: " + tz->getID(str) + " inDaylightTime(" + dateToString(d) + ") != " + (startsInDST ? "true" : "false")); 127 if (tz->inDaylightTime(max, status) == startsInDST) { 128 dataerrln("FAIL: " + tz->getID(str) + " inDaylightTime(" + dateToString(max) + ") != " + (startsInDST ? "false" : "true")); 134 UBool isIn = tz->inDaylightTime(mid, status); 143 logln(tz->getID(str) + " Before: " + showDate(min)); 144 logln(tz->getID(str) + " After: " + showDate(max)); 337 TimeZone *tz; local 338 TimeZone::setDefault(*(tz = TimeZone::createTimeZone("PST"))) 425 SimpleTimeZone *tz; local [all...] |
tzbdtest.h | 42 virtual void findDaylightBoundaryUsingTimeZone(UDate d, UBool startsInDST, UDate expectedBoundary, TimeZone* tz); 65 virtual void testUsingBinarySearch(SimpleTimeZone* tz, UDate d, UDate expectedBoundary);
|
/packages/apps/Exchange/tests/src/com/android/exchange/utility/ |
CalendarUtilitiesTests.java | 90 // This time zone has no DST, but earlier, buggy code retrieved a TZ WITH DST 138 TimeZone tz = CalendarUtilities.tziStringToTimeZone(AMERICA_DAWSON_TIME); local 139 assertEquals("America/Dawson", tz.getID()); 140 tz = CalendarUtilities.tziStringToTimeZone(ASIA_CALCUTTA_TIME); 141 assertEquals("Asia/Calcutta", tz.getID()); 142 tz = CalendarUtilities.tziStringToTimeZone(AUSTRALIA_ACT_TIME); 143 assertEquals("Australia/ACT", tz.getID()); 145 tz = CalendarUtilities.tziStringToTimeZone(EUROPE_LONDON_TIME_BY_NAME); 146 assertEquals("Europe/London", tz.getID()); 150 // when the tz isn't foun 637 TimeZone tz = TimeZone.getTimeZone("US\/Central"); local 852 TimeZone tz = TimeZone.getTimeZone(tzs); local [all...] |
/external/chromium_org/third_party/icu/source/test/intltest/ |
tztest.cpp | 228 TimeZoneTest::findTransition(const TimeZone& tz, 232 UBool startsInDST = tz.inDaylightTime(min, ec); 234 if (tz.inDaylightTime(max, ec) == startsInDST) { 235 logln("Error: " + tz.getID(id) + ".inDaylightTime(" + dateToString(min) + ") = " + (startsInDST?"TRUE":"FALSE") + 242 if (tz.inDaylightTime(mid, ec) == startsInDST) { 251 logln(tz.getID(id) + " Before: " + min/1000 + " = " + 252 dateToString(min,s,tz)); 253 logln(tz.getID(id) + " After: " + max/1000 + " = " + 254 dateToString(max,s,tz)); 258 TimeZoneTest::testUsingBinarySearch(const TimeZone& tz, 304 TimeZone* tz = TimeZone::createTimeZone("PRT"); local 490 TimeZone *tz = TimeZone::createTimeZone("PST"); local [all...] |
tzbdtest.cpp | 116 TimeZoneBoundaryTest::findDaylightBoundaryUsingTimeZone(UDate d, UBool startsInDST, UDate expectedBoundary, TimeZone* tz) 122 if (tz->inDaylightTime(d, status) != startsInDST) { 123 dataerrln("FAIL: " + tz->getID(str) + " inDaylightTime(" + dateToString(d) + ") != " + (startsInDST ? "true" : "false")); 127 if (tz->inDaylightTime(max, status) == startsInDST) { 128 dataerrln("FAIL: " + tz->getID(str) + " inDaylightTime(" + dateToString(max) + ") != " + (startsInDST ? "false" : "true")); 134 UBool isIn = tz->inDaylightTime(mid, status); 143 logln(tz->getID(str) + " Before: " + showDate(min)); 144 logln(tz->getID(str) + " After: " + showDate(max)); 337 TimeZone *tz; local 338 TimeZone::setDefault(*(tz = TimeZone::createTimeZone("PST"))) 425 SimpleTimeZone *tz; local [all...] |
itformat.cpp | 77 TimeZone *tz = TimeZone::createTimeZone("PST"); local 78 TimeZone::setDefault(*tz); 79 delete tz;
|
tzbdtest.h | 42 virtual void findDaylightBoundaryUsingTimeZone(UDate d, UBool startsInDST, UDate expectedBoundary, TimeZone* tz); 65 virtual void testUsingBinarySearch(SimpleTimeZone* tz, UDate d, UDate expectedBoundary);
|
/frameworks/opt/bluetooth/src/android/bluetooth/client/map/utils/ |
ObexTime.java | 68 TimeZone tz = TimeZone.getTimeZone("UTC"); local 69 tz.setRawOffset(offset); 71 cal.setTimeZone(tz);
|
/frameworks/opt/bluetooth/src/android/bluetooth/client/pbap/utils/ |
ObexTime.java | 68 TimeZone tz = TimeZone.getTimeZone("UTC"); local 69 tz.setRawOffset(offset); 71 cal.setTimeZone(tz);
|
/external/chromium_org/third_party/mesa/src/src/mesa/math/ |
m_norm_tmp.h | 61 GLfloat tx, ty, tz; local 66 tz = ux * m8 + uy * m9 + uz * m10; 69 GLdouble len = tx*tx + ty*ty + tz*tz; 74 out[i][2] = tz * scale; 90 GLfloat tx, ty, tz; local 95 tz = ux * m8 + uy * m9 + uz * m10; 101 out[i][2] = tz * len; 128 GLfloat tx, ty, tz; local 133 tz = uz * m10 155 GLfloat tx, ty, tz; local [all...] |
/external/mesa3d/src/mesa/math/ |
m_norm_tmp.h | 61 GLfloat tx, ty, tz; local 66 tz = ux * m8 + uy * m9 + uz * m10; 69 GLdouble len = tx*tx + ty*ty + tz*tz; 74 out[i][2] = tz * scale; 90 GLfloat tx, ty, tz; local 95 tz = ux * m8 + uy * m9 + uz * m10; 101 out[i][2] = tz * len; 128 GLfloat tx, ty, tz; local 133 tz = uz * m10 155 GLfloat tx, ty, tz; local [all...] |
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/ |
TimeZoneTest.java | 224 TimeZone tz = TimeZone.getTimeZone("America/Los_Angeles"); local 225 int rawOffset = tz.getRawOffset(); 244 TimeZone tz = TimeZone.getTimeZone("Asia/Shanghai"); local 245 int rawoffset = tz.getRawOffset(); 282 TimeZone tz = TimeZone.getTimeZone("Asia/Shanghai"); local 283 int offset = tz.getRawOffset(); 289 if (!(ids[i].equalsIgnoreCase(tz.getID()))) { 291 assertTrue(tz.hasSameRules(sameZone)); 298 assertFalse("should return false when parameter is null", tz
|
/external/chromium_org/third_party/webrtc/modules/audio_device/ |
audio_device_utility.cc | 96 struct timezone tz; 99 gettimeofday(&tv, &tz);
|
/external/icu/icu4c/source/i18n/ |
zonemeta.h | 49 static const UChar* U_EXPORT2 getCanonicalCLDRID(const TimeZone& tz); 76 * tz database. This method is useful when you maintain persistent zone IDs without duplication. 96 * @param tz the time zone 99 static const UChar* U_EXPORT2 getShortID(const TimeZone& tz); 104 * @param tz the time zone ID
|
wintzimpl.cpp | 36 static UBool getSystemTimeInformation(TimeZone *tz, SYSTEMTIME &daylightDate, SYSTEMTIME &standardDate, int32_t &bias, int32_t &daylightBias, int32_t &standardBias) { 39 BasicTimeZone *btz = (BasicTimeZone*)tz; // we should check type 119 TimeZone *tz = TimeZone::createTimeZone(id); local 121 if (tz != NULL) { 128 if (getSystemTimeInformation(tz, daylightDate, standardDate, bias, daylightBias, standardBias)) {
|
/hardware/qcom/gps/msm8960/platform_lib_abstractions/ |
platform_lib_macros.h | 37 struct timezone tz; \ 39 gettimeofday(&tv, &tz); \
|
/hardware/qcom/gps/platform_lib_abstractions/ |
platform_lib_macros.h | 37 struct timezone tz; \ 39 gettimeofday(&tv, &tz); \
|
/ndk/sources/host-tools/sed-4.2.1/lib/ |
gettimeofday.c | 106 rpl_gettimeofday (struct timeval *restrict tv, void *restrict tz) 116 int result = gettimeofday (tv, tz);
|
/packages/apps/Contacts/src/com/android/contacts/interactions/ |
CalendarInteractionUtils.java | 105 * @param tz The time zone to convert this time to. 107 private static long convertAlldayUtcToLocal(Time recycle, long utcTime, String tz) { 113 recycle.timezone = tz; 117 public static long convertAlldayLocalToUTC(Time recycle, long localTime, String tz) { 121 recycle.timezone = tz; 179 String tz; local 181 tz = Time.TIMEZONE_UTC; 183 tz = Time.getCurrentTimezone(); 189 tz).toString();
|
/art/test/092-locale/src/ |
Main.java | 66 TimeZone tz = TimeZone.getTimeZone("GMT"); local 69 Calendar usaCal = Calendar.getInstance(tz, usa); 75 fmt.setTimeZone(tz); // defaults to local TZ; force GMT 85 Calendar franceCal = Calendar.getInstance(tz, france); 91 fmt.setTimeZone(tz); // defaults to local TZ; force GMT
|
/external/chromium_org/third_party/icu/source/i18n/ |
wintzimpl.cpp | 36 static UBool getSystemTimeInformation(TimeZone *tz, SYSTEMTIME &daylightDate, SYSTEMTIME &standardDate, int32_t &bias, int32_t &daylightBias, int32_t &standardBias) { 39 BasicTimeZone *btz = (BasicTimeZone*)tz; // we should check type 119 TimeZone *tz = TimeZone::createTimeZone(id); local 121 if (tz != NULL) { 128 if (getSystemTimeInformation(tz, daylightDate, standardDate, bias, daylightBias, standardBias)) {
|
/frameworks/base/rs/java/android/renderscript/ |
AllocationAdapter.java | 102 int tz = mAdaptedAllocation.mType.getZ(); local 105 if ((tx==1) && (ty == 1) && (tz == 1)) { 111 if (tz > 1) tz >>= 1; 116 mCurrentDimZ = tz;
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ |
HbpcdUtils.java | 43 public int getMcc(int sid, int tz, int DSTflag, boolean isNitzTimeZone) { 80 MccLookup.GMT_OFFSET_LOW + "<=" + tz + ") and (" + tz + "<=" + 82 MccLookup.GMT_DST_LOW + "<=" + tz + ") and (" + tz + "<=" +
|