/frameworks/opt/timezonepicker/src/com/android/timezonepicker/ |
D | TimeZoneData.java | 141 final TimeZone tz = TimeZone.getTimeZone(tzId); in loadTzs() local 142 if (tz == null) { in loadTzs() 147 TimeZoneInfo tzInfo = new TimeZoneInfo(tz, null); in loadTzs() 183 for (TimeZoneInfo tz : mTimeZones) { in loadTzs() 186 mTimeZonesById.put(tz.mTzId, tz); in loadTzs() 194 for (TimeZoneInfo tz : mTimeZones) { in loadTzs() 197 if (tz.mDisplayName == null) { in loadTzs() 198 tz.mDisplayName = tz.mTz.getDisplayName(tz.mTz.inDaylightTime(date), in loadTzs() 204 ArrayList<Integer> group = mTimeZonesByCountry.get(tz.mCountry); in loadTzs() 207 mTimeZonesByCountry.put(tz.mCountry, group); in loadTzs() [all …]
|
D | TimeZonePickerUtils.java | 82 private CharSequence buildGmtDisplayName(TimeZone tz, long timeMillis, boolean grayGmt) { in buildGmtDisplayName() argument 83 Time time = new Time(tz.getID()); in buildGmtDisplayName() 88 String displayName = getDisplayName(tz, time.isDst != 0); in buildGmtDisplayName() 92 final int gmtOffset = tz.getOffset(timeMillis); in buildGmtDisplayName() 99 if (tz.useDaylightTime()) { in buildGmtDisplayName() 112 if (tz.useDaylightTime()) { in buildGmtDisplayName() 161 private String getDisplayName(TimeZone tz, boolean daylightTime) { in getDisplayName() argument 164 return tz.getDisplayName(daylightTime, TimeZone.LONG, Locale.getDefault()); in getDisplayName() 168 if (tz.getID().equals(mOverrideIds[i])) { in getDisplayName() 180 return tz.getDisplayName(daylightTime, TimeZone.LONG, Locale.getDefault()); in getDisplayName()
|
D | TimeZoneInfo.java | 56 public TimeZoneInfo(TimeZone tz, String country) { in TimeZoneInfo() argument 57 mTz = tz; in TimeZoneInfo() 58 mTzId = tz.getID(); in TimeZoneInfo() 60 mRawoffset = tz.getRawOffset(); in TimeZoneInfo() 198 final TimeZone tz = this.mTz; in toString() local 202 sb.append(tz.getDisplayName(false /* daylightTime */, TimeZone.LONG)); in toString() 204 sb.append(tz.getDisplayName(false /* daylightTime */, TimeZone.SHORT)); in toString() 206 if (tz.useDaylightTime()) { in toString() 207 sb.append(tz.getDisplayName(true, TimeZone.LONG)); in toString() 209 sb.append(tz.getDisplayName(true, TimeZone.SHORT)); in toString() [all …]
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/datetime/ |
D | ZoneGetter.java | 55 public static String getTimeZoneOffsetAndName(TimeZone tz, Date now) { in getTimeZoneOffsetAndName() argument 57 String gmtString = getGmtOffsetString(locale, tz, now); in getTimeZoneOffsetAndName() 59 String zoneNameString = getZoneLongName(timeZoneNames, tz, now); in getTimeZoneOffsetAndName() 99 TimeZone tz = TimeZone.getTimeZone(olsonId); in getZonesList() local 100 timeZones[i] = tz; in getZonesList() 101 gmtOffsetStrings[i] = getGmtOffsetString(locale, tz, now); in getZonesList() 116 TimeZone tz = timeZones[i]; in getZonesList() local 117 String displayName = getZoneLongName(timeZoneNames, tz, now); in getZonesList() 133 TimeZone tz = timeZones[i]; in getZonesList() local 140 displayName = getZoneLongName(timeZoneNames, tz, now); in getZonesList() [all …]
|
/frameworks/base/core/tests/coretests/src/android/util/ |
D | TimeUtilsTest.java | 39 TimeZone tz = TimeZone.getTimeZone(name); in testMainstream() local 40 Calendar c = Calendar.getInstance(tz); in testMainstream() 60 TimeZone tz = TimeZone.getTimeZone(name); in testWeird() local 61 Calendar c = Calendar.getInstance(tz); in testWeird() 76 TimeZone tz = TimeZone.getTimeZone(name); in testOld() local 77 Calendar c = Calendar.getInstance(tz); in testOld() 390 TimeZone tz = TimeZone.getTimeZone(name); in testWorld() local 391 Calendar c = Calendar.getInstance(tz); in testWorld() 414 TimeZone tz = TimeZone.getTimeZone(name); in testWorldWeird() local 415 Calendar c = Calendar.getInstance(tz); in testWorldWeird()
|
/frameworks/base/core/java/android/util/ |
D | TimeUtils.java | 75 for (TimeZone tz : getTimeZones(country)) { in getTimeZone() 80 if (tz.getID().equals(currentName)) { in getTimeZone() 92 if (tz.getOffset(when) == offset && in getTimeZone() 93 tz.inDaylightTime(d) == dst) { in getTimeZone() 94 best = tz; in getTimeZone() 192 TimeZone tz = TimeZone.getTimeZone(zoneIdString); in getTimeZones() local 193 if (tz.getID().startsWith("GMT") == false) { in getTimeZones() 195 tzs.add(tz); in getTimeZones() 198 + ((tz != null) ? tz.getID() : "<no tz>")); in getTimeZones()
|
/frameworks/opt/calendar/tests/src/com/android/calendarcommon2/ |
D | RecurrenceProcessorTest.java | 88 String tz = "America/Los_Angeles"; in verifyRecurrence() local 89 Time dtstart = new Time(tz); in verifyRecurrence() 90 Time rangeStart = new Time(tz); in verifyRecurrence() 91 Time rangeEnd = new Time(tz); in verifyRecurrence() 92 Time outCal = new Time(tz); in verifyRecurrence() 156 Time expectedLast = new Time(tz); in verifyRecurrence() 2454 String tz = "America/Los_Angeles"; in performanceTextExpand() local 2455 Time dtstart = new Time(tz); in performanceTextExpand() 2456 Time rangeStart = new Time(tz); in performanceTextExpand() 2457 Time rangeEnd = new Time(tz); in performanceTextExpand() [all …]
|
D | RRuleTest.java | 71 String golden, String advanceTo, String tz) throws Exception { in runRecurrenceIteratorTest() argument 72 runRecurrenceIteratorTest(rrule, dtstartStr, limit, golden, advanceTo, null, tz); in runRecurrenceIteratorTest() 89 String golden, String advanceTo, String endAt, String tz) throws Exception { in runRecurrenceIteratorTest() argument 98 Time dtstart = new Time(tz); in runRecurrenceIteratorTest() 99 Time rangeStart = new Time(tz); in runRecurrenceIteratorTest() 100 Time rangeEnd = new Time(tz); in runRecurrenceIteratorTest() 101 Time outCal = new Time(tz); in runRecurrenceIteratorTest()
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ |
D | HbpcdUtils.java | 43 public int getMcc(int sid, int tz, int DSTflag, boolean isNitzTimeZone) { in getMcc() argument 80 MccLookup.GMT_OFFSET_LOW + "<=" + tz + ") and (" + tz + "<=" + in getMcc() 82 MccLookup.GMT_DST_LOW + "<=" + tz + ") and (" + tz + "<=" + in getMcc()
|
/frameworks/base/rs/java/android/renderscript/ |
D | AllocationAdapter.java | 46 int tz = mAdaptedAllocation.mType.getZ(); in initLOD() local 49 if ((tx==1) && (ty == 1) && (tz == 1)) { in initLOD() 55 if (tz > 1) tz >>= 1; in initLOD() 60 mCurrentDimZ = tz; in initLOD()
|
/frameworks/opt/bluetooth/src/android/bluetooth/client/map/utils/ |
D | ObexTime.java | 68 TimeZone tz = TimeZone.getTimeZone("UTC"); in ObexTime() local 69 tz.setRawOffset(offset); in ObexTime() 71 cal.setTimeZone(tz); in ObexTime()
|
/frameworks/base/tests/LocationTracker/src/com/android/locationtracker/data/ |
D | DateUtils.java | 39 TimeZone tz = TimeZone.getTimeZone("GMT"); in getKMLTimestamp() local 40 Calendar c = Calendar.getInstance(tz); in getKMLTimestamp()
|
/frameworks/base/core/tests/coretests/src/android/app/activity/ |
D | SetTimeZonePermissionsTest.java | 55 String tz = mZones[i]; in testSetTimeZonePermissions() local 57 mAlarm.setTimeZone(tz); in testSetTimeZonePermissions()
|
/frameworks/rs/ |
D | rsScript.cpp | 180 char *tz = (char *) malloc(length + 1); in rsi_ScriptSetTimeZone() local 181 if (!tz) { in rsi_ScriptSetTimeZone() 185 strncpy(tz, timeZone, length); in rsi_ScriptSetTimeZone() 186 tz[length] = '\0'; in rsi_ScriptSetTimeZone() 187 if (setenv("TZ", tz, 1) == 0) { in rsi_ScriptSetTimeZone() 192 free(tz); in rsi_ScriptSetTimeZone()
|
D | rsType.cpp | 104 uint32_t tz = mHal.state.dimZ; in compute() local 110 mHal.state.lodDimZ[lod] = tz; in compute() 111 mCellCount += tx * rsMax(ty, 1u) * rsMax(tz, 1u); in compute() 114 if (tz > 1) tz >>= 1; in compute()
|
/frameworks/opt/calendar/src/com/android/calendarcommon2/ |
D | RecurrenceSet.java | 153 String tz = Time.TIMEZONE_UTC; in parseRecurrenceDates() local 156 tz = recurrence.substring(0, tzidx); in parseRecurrenceDates() 159 Time time = new Time(tz); in parseRecurrenceDates() 174 time.timezone = tz; in parseRecurrenceDates() 452 String tz = null; in addPropertyForDateStr() local 455 tz = dateStr.substring(0, tzidx); in addPropertyForDateStr() 458 if (!TextUtils.isEmpty(tz)) { in addPropertyForDateStr() 459 prop.addParameter(new ICalendar.Parameter("TZID", tz)); in addPropertyForDateStr()
|
/frameworks/native/opengl/libagl/ |
D | dxt.cpp | 139 struct timezone tz; in DXT1HasAlpha() local 141 gettimeofday(&start_t, &tz); in DXT1HasAlpha() 183 gettimeofday(&end_t, &tz); in DXT1HasAlpha() 604 struct timezone tz; in decodeDXT() local 606 gettimeofday(&start_t, &tz); in decodeDXT() 628 gettimeofday(&end_t, &tz); in decodeDXT()
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/cat/ |
D | ResponseData.java | 254 String tz = SystemProperties.get("persist.sys.timezone", ""); in format() local 255 if (TextUtils.isEmpty(tz)) { in format() 258 TimeZone zone = TimeZone.getTimeZone(tz); in format()
|
/frameworks/base/services/core/jni/ |
D | com_android_server_AlarmManagerService.cpp | 270 struct timezone tz; in android_server_AlarmManagerService_setKernelTimezone() local 272 tz.tz_minuteswest = minswest; in android_server_AlarmManagerService_setKernelTimezone() 273 tz.tz_dsttime = 0; in android_server_AlarmManagerService_setKernelTimezone() 275 int result = settimeofday(NULL, &tz); in android_server_AlarmManagerService_setKernelTimezone()
|
/frameworks/base/services/core/java/com/android/server/notification/ |
D | ScheduleCalendar.java | 51 public void setTimeZone(TimeZone tz) { in setTimeZone() argument 52 mCalendar.setTimeZone(tz); in setTimeZone()
|
/frameworks/base/media/java/android/media/ |
D | Metadata.java | 500 TimeZone tz = TimeZone.getTimeZone(timeZone); in getDate() local 501 Calendar cal = Calendar.getInstance(tz); in getDate()
|
/frameworks/base/core/java/android/widget/ |
D | AnalogClock.java | 256 String tz = intent.getStringExtra("time-zone"); 257 mCalendar = new Time(TimeZone.getTimeZone(tz).getID());
|
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/unit/ |
D | MediaPlayerMetadataParserTest.java | 403 private void writeDateRecord(int metadataId, long time, String tz) { in writeDateRecord() argument 409 mParcel.writeString(tz); in writeDateRecord()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/ |
D | Clock.java | 142 String tz = intent.getStringExtra("time-zone"); 143 mCalendar = Calendar.getInstance(TimeZone.getTimeZone(tz));
|
/frameworks/base/core/java/android/text/format/ |
D | DateFormat.java | 559 TimeZone tz = inDate.getTimeZone(); in getTimeZoneString() local 566 return tz.getDisplayName(dst, TimeZone.SHORT); in getTimeZoneString()
|