Home
last modified time | relevance | path

Searched refs:tz (Results 1 – 25 of 37) sorted by relevance

12

/frameworks/base/packages/SettingsLib/src/com/android/settingslib/datetime/
DZoneGetter.java56 public static String getTimeZoneOffsetAndName(TimeZone tz, Date now) { in getTimeZoneOffsetAndName() argument
58 String gmtString = getGmtOffsetString(locale, tz, now); in getTimeZoneOffsetAndName()
59 String zoneNameString = getZoneLongName(locale, tz, now); in getTimeZoneOffsetAndName()
102 TimeZone tz = TimeZone.getTimeZone(olsonId); in getZonesList() local
103 String zoneLongName = getZoneLongName(locale, tz, now); in getZonesList()
115 final TimeZone tz = TimeZone.getTimeZone(olsonId); in getZonesList() local
120 String displayName = getZoneDisplayName(locale, tz, now, preferLongName); in getZonesList()
122 String gmtOffsetString = getGmtOffsetString(locale, tz, now); in getZonesList()
123 int offsetMillis = tz.getOffset(now.getTime()); in getZonesList()
125 createDisplayEntry(tz, gmtOffsetString, displayName, offsetMillis); in getZonesList()
[all …]
/frameworks/opt/timezonepicker/src/com/android/timezonepicker/
DTimeZoneData.java141 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 …]
DTimeZoneInfo.java57 public TimeZoneInfo(TimeZone tz, String country) { in TimeZoneInfo() argument
58 mTz = tz; in TimeZoneInfo()
59 mTzId = tz.getID(); in TimeZoneInfo()
61 mRawoffset = tz.getRawOffset(); in TimeZoneInfo()
64 mTransitions = getTransitions(tz, time); in TimeZoneInfo()
197 private static int[] getTransitions(TimeZone tz, long time) in getTransitions() argument
199 Class<?> zoneInfoClass = tz.getClass(); in getTransitions()
202 int[] objTransitions = (int[]) mTransitionsField.get(tz); in getTransitions()
232 final TimeZone tz = this.mTz; in toString() local
236 sb.append(tz.getDisplayName(false /* daylightTime */, TimeZone.LONG)); in toString()
[all …]
DTimeZonePickerUtils.java82 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()
/frameworks/base/core/tests/coretests/src/android/util/
DTimeUtilsTest.java39 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/
DTimeUtils.java75 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/
DRecurrenceProcessorTest.java88 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 …]
DRRuleTest.java71 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/
DHbpcdUtils.java43 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/
DAllocationAdapter.java46 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/
DObexTime.java68 TimeZone tz = TimeZone.getTimeZone("UTC"); in ObexTime() local
69 tz.setRawOffset(offset); in ObexTime()
71 cal.setTimeZone(tz); in ObexTime()
/frameworks/opt/bluetooth/src/android/bluetooth/client/pbap/utils/
DObexTime.java68 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/
DDateUtils.java39 TimeZone tz = TimeZone.getTimeZone("GMT"); in getKMLTimestamp() local
40 Calendar c = Calendar.getInstance(tz); in getKMLTimestamp()
/frameworks/rs/
DrsScript.cpp180 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()
DrsType.cpp104 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/base/core/tests/coretests/src/android/app/activity/
DSetTimeZonePermissionsTest.java55 String tz = mZones[i]; in testSetTimeZonePermissions() local
57 mAlarm.setTimeZone(tz); in testSetTimeZonePermissions()
/frameworks/opt/calendar/src/com/android/calendarcommon2/
DRecurrenceSet.java153 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/
Ddxt.cpp139 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/
DResponseData.java243 String tz = SystemProperties.get("persist.sys.timezone", ""); in format() local
244 if (TextUtils.isEmpty(tz)) { in format()
247 TimeZone zone = TimeZone.getTimeZone(tz); in format()
/frameworks/base/services/core/jni/
Dcom_android_server_AlarmManagerService.cpp268 struct timezone tz; in android_server_AlarmManagerService_setKernelTimezone() local
270 tz.tz_minuteswest = minswest; in android_server_AlarmManagerService_setKernelTimezone()
271 tz.tz_dsttime = 0; in android_server_AlarmManagerService_setKernelTimezone()
273 int result = settimeofday(NULL, &tz); in android_server_AlarmManagerService_setKernelTimezone()
/frameworks/base/services/core/java/com/android/server/notification/
DScheduleCalendar.java55 public void setTimeZone(TimeZone tz) { in setTimeZone() argument
56 mCalendar.setTimeZone(tz); in setTimeZone()
/frameworks/base/media/java/android/media/
DMetadata.java492 TimeZone tz = TimeZone.getTimeZone(timeZone); in getDate() local
493 Calendar cal = Calendar.getInstance(tz); in getDate()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DClock.java124 String tz = intent.getStringExtra("time-zone");
125 mCalendar = Calendar.getInstance(TimeZone.getTimeZone(tz));
/frameworks/base/core/java/android/widget/
DAnalogClock.java257 String tz = intent.getStringExtra("time-zone");
258 mCalendar = new Time(TimeZone.getTimeZone(tz).getID());
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/unit/
DMediaPlayerMetadataParserTest.java403 private void writeDateRecord(int metadataId, long time, String tz) { in writeDateRecord() argument
409 mParcel.writeString(tz); in writeDateRecord()

12