Home
last modified time | relevance | path

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

12

/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/services/jni/
Dcom_android_server_AlarmManagerService.cpp42 struct timezone tz; in android_server_AlarmManagerService_setKernelTimezone() local
44 tz.tz_minuteswest = minswest; in android_server_AlarmManagerService_setKernelTimezone()
45 tz.tz_dsttime = 0; in android_server_AlarmManagerService_setKernelTimezone()
47 int result = settimeofday(NULL, &tz); in android_server_AlarmManagerService_setKernelTimezone()
/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/support/renderscript/v8/java/src/android/support/v8/renderscript/
DAllocationAdapter.java106 int tz = mAdaptedAllocation.mType.getZ(); in initLOD() local
109 if ((tx==1) && (ty == 1) && (tz == 1)) { in initLOD()
115 if (tz > 1) tz >>= 1; in initLOD()
120 mCurrentDimZ = tz; in initLOD()
/frameworks/base/graphics/java/android/renderscript/
DAllocationAdapter.java106 int tz = mAdaptedAllocation.mType.getZ(); in initLOD() local
109 if ((tx==1) && (ty == 1) && (tz == 1)) { in initLOD()
115 if (tz > 1) tz >>= 1; in initLOD()
120 mCurrentDimZ = tz; in initLOD()
/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/support/renderscript/v8/rs_support/
DrsScript.cpp149 char *tz = (char *) malloc(length + 1); in rsi_ScriptSetTimeZone() local
150 if (!tz) { in rsi_ScriptSetTimeZone()
154 strncpy(tz, timeZone, length); in rsi_ScriptSetTimeZone()
155 tz[length] = '\0'; in rsi_ScriptSetTimeZone()
156 if (setenv("TZ", tz, 1) == 0) { in rsi_ScriptSetTimeZone()
161 free(tz); in rsi_ScriptSetTimeZone()
DrsType.cpp90 uint32_t tz = mHal.state.dimZ; in compute() local
95 mHal.state.lodDimZ[lod] = tz; in compute()
97 offset += tx * rsMax(ty, 1u) * rsMax(tz, 1u) * mElement->getSizeBytes(); in compute()
100 if (tz > 1) tz >>= 1; in compute()
/frameworks/rs/
DrsScript.cpp149 char *tz = (char *) malloc(length + 1); in rsi_ScriptSetTimeZone() local
150 if (!tz) { in rsi_ScriptSetTimeZone()
154 strncpy(tz, timeZone, length); in rsi_ScriptSetTimeZone()
155 tz[length] = '\0'; in rsi_ScriptSetTimeZone()
156 if (setenv("TZ", tz, 1) == 0) { in rsi_ScriptSetTimeZone()
161 free(tz); in rsi_ScriptSetTimeZone()
DrsType.cpp90 uint32_t tz = mHal.state.dimZ; in compute() local
95 mHal.state.lodDimZ[lod] = tz; in compute()
97 offset += tx * rsMax(ty, 1u) * rsMax(tz, 1u) * mElement->getSizeBytes(); in compute()
100 if (tz > 1) tz >>= 1; in compute()
/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/av/libvideoeditor/osal/src/
DM4OSA_Clock.c59 struct timezone tz; in M4OSA_clockGetTime() local
76 if(gettimeofday(&tv, &tz) == 0) in M4OSA_clockGetTime()
/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.java142 String tz = Time.TIMEZONE_UTC; in parseRecurrenceDates() local
145 tz = recurrence.substring(0, tzidx); in parseRecurrenceDates()
148 Time time = new Time(tz); in parseRecurrenceDates()
163 time.timezone = tz; in parseRecurrenceDates()
441 String tz = null; in addPropertyForDateStr() local
444 tz = dateStr.substring(0, tzidx); in addPropertyForDateStr()
447 if (!TextUtils.isEmpty(tz)) { in addPropertyForDateStr()
448 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/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.java117 String tz = intent.getStringExtra("time-zone");
118 mCalendar = Calendar.getInstance(TimeZone.getTimeZone(tz));
/frameworks/support/renderscript/v8/rs_support/driver/
DrsdAllocation.cpp86 uint32_t tz = drv->lod[0].dimZ; in AllocationBuildPointerTable() local
90 drv->lod[lod].dimZ = tz; in AllocationBuildPointerTable()
93 o += drv->lod[lod].stride * rsMax(ty, 1u) * rsMax(tz, 1u); in AllocationBuildPointerTable()
96 if (tz > 1) tz >>= 1; in AllocationBuildPointerTable()
/frameworks/base/core/java/android/widget/
DAnalogClock.java244 String tz = intent.getStringExtra("time-zone");
245 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()
/frameworks/base/services/java/com/android/server/
DAlarmManagerService.java172 String tz = SystemProperties.get(TIMEZONE_PROPERTY); in AlarmManagerService() local
173 if (tz != null) { in AlarmManagerService()
174 setTimeZone(tz); in AlarmManagerService()
290 public void setTimeZone(String tz) { in setTimeZone() argument
297 if (TextUtils.isEmpty(tz)) return; in setTimeZone()
298 TimeZone zone = TimeZone.getTimeZone(tz); in setTimeZone()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DMccTable.java108 String[] tz = TimeZones.forLocale(locale); in defaultTimeZoneForMcc() local
109 if (tz.length == 0) return null; in defaultTimeZoneForMcc()
110 return tz[0]; in defaultTimeZoneForMcc()
/frameworks/rs/driver/
DrsdAllocation.cpp251 uint32_t tz = drv->lod[0].dimZ; in AllocationBuildPointerTable() local
255 drv->lod[lod].dimZ = tz; in AllocationBuildPointerTable()
258 o += drv->lod[lod].stride * rsMax(ty, 1u) * rsMax(tz, 1u); in AllocationBuildPointerTable()
261 if (tz > 1) tz >>= 1; in AllocationBuildPointerTable()

12