/frameworks/base/telephony/java/com/android/internal/telephony/ |
MccTable.java | 106 String[] tz = TimeZones.forLocale(locale); local 107 if (tz.length == 0) return null; 108 return tz[0]; 473 table.add(new MccEntry(640,"tz",2)); //Tanzania (United Republic of)
|
/libcore/luni/src/main/java/java/text/ |
SimpleDateFormat.java | 742 TimeZone tz = calendar.getTimeZone(); local 746 buffer.append(tz.getDisplayName(daylight, style, formatData.locale)); 751 String custom = TimeZones.getDisplayName(formatData.zoneStrings, tz.getID(), daylight, style); [all...] |
/libcore/luni/src/test/java/libcore/java/util/ |
OldTimeZoneTest.java | 86 TimeZone tz = TimeZone.getTimeZone("GMT-6"); local 87 assertEquals("GMT-06:00", tz.getDisplayName()); 88 tz = TimeZone.getTimeZone("America/Los_Angeles"); 89 assertEquals("Pacific Standard Time", tz.getDisplayName()); 93 TimeZone tz = TimeZone.getTimeZone("America/Los_Angeles"); local 94 assertEquals("Pacific Standard Time", tz.getDisplayName(new Locale("US"))); 97 assertEquals("heure normale du Pacifique", tz.getDisplayName(Locale.FRANCE)); 102 TimeZone tz = TimeZone.getTimeZone("America/Los_Angeles"); local 103 assertEquals("PST", tz.getDisplayName(false, 0)); 104 assertEquals("Pacific Daylight Time", tz.getDisplayName(true, 1)) 110 TimeZone tz = TimeZone.getTimeZone("America\/Los_Angeles"); local 126 TimeZone tz = TimeZone.getTimeZone("GMT-6"); local 148 TimeZone tz = TimeZone.getTimeZone("GMT-6"); local [all...] |
/libcore/luni/src/test/java/tests/api/java/util/ |
DateTest.java | 459 TimeZone tz = TimeZone.getDefault(); local 466 TimeZone.setDefault(tz); 487 TimeZone tz = TimeZone.getDefault(); local 497 TimeZone.setDefault(tz);
|
SimpleTimeZoneTest.java | 39 assertEquals("Incorrect TZ constructed", "TEST", st.getID()); 40 assertTrue("Incorrect TZ constructed: " + "returned wrong offset", st 42 assertTrue("Incorrect TZ constructed" + "using daylight savings", !st 56 assertTrue("Incorrect TZ constructed", st 59 assertTrue("Incorrect TZ constructed", !(st 62 assertEquals("Incorrect TZ constructed", "TEST", st.getID()); 63 assertEquals("Incorrect TZ constructed", 1000, st.getRawOffset()); 64 assertTrue("Incorrect TZ constructed", st.useDaylightTime()); 113 assertTrue("Incorrect TZ constructed", st 116 assertTrue("Incorrect TZ constructed", !(s 262 TimeZone tz = TimeZone.getTimeZone("EST"); local 402 TimeZone tz = TimeZone.getTimeZone("EST"); local [all...] |
/packages/apps/Calendar/src/com/android/calendar/ |
CalendarUtils.java | 172 String tz; local 174 tz = Time.TIMEZONE_UTC; 176 tz = getTimeZone(context, null); 181 tz).toString(); 192 * to the device's time zone. null or empty tz will be ignored. 239 // Write the use home tz setting 245 // If using a home tz write it to the db
|
TimezoneAdapter.java | 74 TimeZone tz = TimeZone.getTimeZone(id); local 76 int offset = tz.getOffset(System.currentTimeMillis()); 335 * @return double array of tz ids and tz names
|
/packages/apps/Calendar/src/com/android/calendar/agenda/ |
AgendaAdapter.java | 213 TimeZone tz = TimeZone.getTimeZone(tzString); local 214 if (tz == null || tz.getID().equals("GMT")) { 217 displayName = tz.getDisplayName(date.isDst != 0, TimeZone.SHORT);
|
/packages/apps/Calendar/src/com/android/calendar/alerts/ |
AlertReceiver.java | 173 String tz = Utils.getTimeZone(context, null); local 174 Time time = new Time(tz); 197 if (!allDay && tz != Time.getCurrentTimezone()) { 198 // Assumes time was set to the current tz 201 sb.append(" ").append(TimeZone.getTimeZone(tz).getDisplayName(
|
/packages/apps/Gallery2/src/com/android/gallery3d/app/ |
EyePosition.java | 127 float tz = t * z; local 129 float length = (float) Math.sqrt(tx * tx + ty * ty + tz * tz);
|
/packages/apps/Gallery2/tests/src/com/android/gallery3d/ui/ |
GLMock.java | 134 float tz = - (zFar + zNear) / (zFar - zNear); local 139 tx, ty, tz, 1
|
/dalvik/tools/dmtracedump/ |
CreateTestTrace.c | 366 struct timezone tz; local 368 gettimeofday(&tv, &tz);
|
/external/apache-harmony/luni/src/test/api/common/org/apache/harmony/luni/tests/java/util/ |
DateTest.java | 459 TimeZone tz = TimeZone.getDefault(); local 467 TimeZone.setDefault(tz);
|
/external/icu4c/i18n/ |
ucal.cpp | 206 const TimeZone& tz = ((Calendar*)cal)->getTimeZone(); local 216 tz.getDisplayName(FALSE, TimeZone::LONG, Locale(locale), id); 220 tz.getDisplayName(FALSE, TimeZone::SHORT, Locale(locale), id); 224 tz.getDisplayName(TRUE, TimeZone::LONG, Locale(locale), id); 228 tz.getDisplayName(TRUE, TimeZone::SHORT, Locale(locale), id);
|
/external/icu4c/test/intltest/ |
tzfmttst.cpp | 128 TimeZone *tz = TimeZone::createTimeZone(*tzid); local 134 sdf->setTimeZone(*tz); 160 tz->getOffset(DATES[datidx], false, inRaw, inDst, status); 183 if (!((BasicTimeZone*)&outtz)->hasEquivalentTransitions((BasicTimeZone&)*tz, low, high, TRUE, status)) { 186 logln("Canonical round trip failed (as expected); tz=" + *tzid 191 errln("Canonical round trip failed; tz=" + *tzid 216 errln((UnicodeString)"Offset round trip failed; tz=" + *tzid 224 errln((UnicodeString)"Raw offset round trip failed; tz=" + *tzid 233 delete tz; 344 BasicTimeZone *tz = (BasicTimeZone*) TimeZone::createTimeZone(*tzid) local [all...] |
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...] |
/external/icu4c/tools/tzcode/ |
icuzdump.cpp | 115 void setTimeZone(TimeZone* tz) { 116 timezone = tz; 239 TimeZone* tz = NULL; local 244 tz = TimeZone::createTimeZone(*zid); 250 tz = TimeZone::createTimeZone((const UnicodeString&)zids[idx]); 253 tz = TimeZone::createDefault(); 258 return tz; 375 TimeZone* tz = zit->next(); local 376 if (tz == NULL) { 379 dumper.setTimeZone(tz); 406 TimeZone* tz = zit->next(); local [all...] |
/external/wpa_supplicant_8/src/eap_server/ |
eap_server_pwd.c | 813 struct timezone tz; local 819 (void) gettimeofday(&tp, &tz);
|
/frameworks/base/opengl/libagl/ |
dxt.cpp | 139 struct timezone tz; local 141 gettimeofday(&start_t, &tz); 183 gettimeofday(&end_t, &tz); 604 struct timezone tz; local 606 gettimeofday(&start_t, &tz); 628 gettimeofday(&end_t, &tz);
|
/frameworks/base/tools/localize/ |
XLIFFFile.cpp | 481 struct timezone tz; local 482 gettimeofday(&tv, &tz);
|
/libcore/luni/src/main/java/java/util/ |
SimpleTimeZone.java | 312 SimpleTimeZone tz = (SimpleTimeZone) object; local 313 return getID().equals(tz.getID()) 314 && rawOffset == tz.rawOffset 315 && useDaylight == tz.useDaylight 316 && (!useDaylight || (startYear == tz.startYear 317 && startMonth == tz.startMonth 318 && startDay == tz.startDay && startMode == tz.startMode 319 && startDayOfWeek == tz.startDayOfWeek 320 && startTime == tz.startTime && endMonth == tz.endMont 503 SimpleTimeZone tz = (SimpleTimeZone) zone; local [all...] |
/libcore/luni/src/test/java/libcore/java/text/ |
OldDateFormatTest.java | 128 TimeZone tz = format.getTimeZone(); local 130 // throw new Exception(tz.getClass().getName()); 133 //assertFalse("Incorrect zone info", tz.getClass().getName().equals( 135 assertTrue("Incorrect time zone", tz.equals(format.getCalendar() 478 TimeZone tz = TimeZone.getTimeZone("America/Los_Angeles"); local 479 format.setTimeZone(tz); 480 assertTrue("TimeZone is set incorrectly", tz.equals(format
|
/packages/apps/Calendar/src/com/android/calendar/widget/ |
CalendarAppWidgetModel.java | 278 String tz = Utils.getTimeZone(mContext, null); local 298 start = Utils.convertAlldayUtcToLocal(recycle, start, tz); 299 end = Utils.convertAlldayUtcToLocal(recycle, end, tz);
|
/packages/apps/Settings/src/com/android/settings/ |
ZonePicker.java | 55 public void onZoneSelected(TimeZone tz); 116 * @param tz TimeZone to be searched. 120 public static int getTimeZoneIndex(SimpleAdapter adapter, TimeZone tz) { 121 final String defaultId = tz.getID(); 249 final TimeZone tz = TimeZone.getTimeZone(id); local 250 final int offset = tz.getOffset(date); 287 final TimeZone tz = TimeZone.getTimeZone(tzId); local 289 mListener.onZoneSelected(tz);
|
/system/core/init/ |
builtins.c | 534 struct timezone tz; local 539 memset(&tz, 0, sizeof(tz)); 540 tz.tz_minuteswest = atoi(args[1]); 541 if (settimeofday(NULL, &tz))
|