Home
last modified time | relevance | path

Searched refs:timeZone (Results 1 – 25 of 41) sorted by relevance

12

/frameworks/base/core/tests/benchmarks/src/android/text/format/
DAndroidTimeVsOthersBenchmark.java62 java.util.TimeZone timeZone = java.util.TimeZone.getTimeZone(timezoneId); in toMillis_javaUtil() local
63 java.util.Calendar calendar = new java.util.GregorianCalendar(timeZone); in toMillis_javaUtil()
76 android.icu.util.TimeZone timeZone = in toMillis_androidIucUtil() local
78 android.icu.util.Calendar calendar = new android.icu.util.GregorianCalendar(timeZone); in toMillis_androidIucUtil()
/frameworks/base/packages/SettingsLib/tests/integ/src/com/android/settingslib/utils/
DZoneGetterTest.java92 final TimeZone timeZone = TimeZone.getTimeZone(TIME_ZONE_LA_ID); in getTimeZoneOffsetAndName_withTtsSpan() local
94 CharSequence timeZoneString = ZoneGetter.getTimeZoneOffsetAndName(context, timeZone, in getTimeZoneOffsetAndName_withTtsSpan()
104 final TimeZone timeZone = TimeZone.getTimeZone(timeZoneId); in testTimeZoneOffsetAndNameInner() local
106 CharSequence timeZoneString = ZoneGetter.getTimeZoneOffsetAndName(context, timeZone, in testTimeZoneOffsetAndNameInner()
/frameworks/base/core/java/android/widget/
DTextClock.java176 final String timeZone = intent.getStringExtra(Intent.EXTRA_TIMEZONE);
177 createTime(timeZone);
279 private void createTime(String timeZone) { in createTime() argument
280 if (timeZone != null) { in createTime()
281 mTime = Calendar.getInstance(TimeZone.getTimeZone(timeZone)); in createTime()
488 public void setTimeZone(String timeZone) { in setTimeZone() argument
489 mTimeZone = timeZone; in setTimeZone()
491 createTime(timeZone); in setTimeZone()
/frameworks/base/packages/SystemUI/src/com/android/keyguard/clock/
DImageClock.java75 public void onTimeZoneChanged(TimeZone timeZone) { in onTimeZoneChanged() argument
76 mTimeZone = timeZone; in onTimeZoneChanged()
77 mTime.setTimeZone(timeZone); in onTimeZoneChanged()
DAnalogClockController.java202 public void onTimeZoneChanged(TimeZone timeZone) { in onTimeZoneChanged() argument
203 mAnalogClock.onTimeZoneChanged(timeZone); in onTimeZoneChanged()
DBubbleClockController.java202 public void onTimeZoneChanged(TimeZone timeZone) { in onTimeZoneChanged() argument
203 mAnalogClock.onTimeZoneChanged(timeZone); in onTimeZoneChanged()
DDefaultClockController.java172 public void onTimeZoneChanged(TimeZone timeZone) {} in onTimeZoneChanged() argument
/frameworks/opt/timezonepicker/src/com/android/timezonepicker/
DTimeZonePickerDialog.java61 String timeZone = null; in onCreateView() local
65 timeZone = b.getString(BUNDLE_TIME_ZONE); in onCreateView()
72 mView = new TimeZonePickerView(getActivity(), null, timeZone, timeMillis, this, in onCreateView()
DTimeZoneResultAdapter.java65 TextView timeZone; field in TimeZoneResultAdapter.ViewHolder
71 vh.timeZone = (TextView) v.findViewById(R.id.time_zone); in setupViewHolder()
286 vh.timeZone.setText(tzi.mDisplayName); in getView()
DTimeZonePickerView.java56 String timeZone, long timeMillis, OnTimeZoneSetListener l, in TimeZonePickerView() argument
66 TimeZoneData tzd = new TimeZoneData(mContext, timeZone, timeMillis); in TimeZonePickerView()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/nitz/
DTimeZoneLookupHelper.java250 TimeZone timeZone = timeZoneMapping.getTimeZone(); in countryUsesDifferentOffsets() local
251 int candidateOffset = timeZone.getOffset(whenMillis); in countryUsesDifferentOffsets()
289 private static boolean offsetMatchesAtTime(@NonNull TimeZone timeZone, int totalOffsetMillis, in offsetMatchesAtTime() argument
292 timeZone.getOffset(whenMillis, false /* local */, offsets); in offsetMatchesAtTime()
/frameworks/base/core/tests/coretests/src/android/text/format/
DTimeMigrationUtilsTest.java105 TimeZone timeZone = TimeZone.getTimeZone(timeZoneId); in formatMillisAsDateTime_matchesOldBehavior() local
106 TimeZone.setDefault(timeZone); in formatMillisAsDateTime_matchesOldBehavior()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/nitz/
DNitzStateMachineTestSupport.java293 TimeZone timeZone = TimeZone.getFrozenTimeZone(zoneId); in zone() local
294 if (timeZone.getID().equals(TimeZone.UNKNOWN_ZONE_ID)) { in zone()
297 return timeZone; in zone()
DTimeZoneLookupHelperTest.java456 TimeZone timeZone = lookupResult.getTimeZone(); in assertOffsetResultZoneOffsets() local
457 GregorianCalendar calendar = new GregorianCalendar(timeZone); in assertOffsetResultZoneOffsets()
465 assertEquals(expectedDstAtTime > 0, timeZone.inDaylightTime(date)); in assertOffsetResultZoneOffsets()
/frameworks/base/media/java/android/media/
DMetadata.java511 final String timeZone = mParcel.readString(); in getDate() local
513 if (timeZone.length() == 0) { in getDate()
516 TimeZone tz = TimeZone.getTimeZone(timeZone); in getDate()
/frameworks/base/core/java/android/app/
DAlarmManager.java992 public void setTimeZone(String timeZone) { in setTimeZone() argument
993 if (TextUtils.isEmpty(timeZone)) { in setTimeZone()
1001 hasTimeZone = ZoneInfoDb.getInstance().hasTimeZone(timeZone); in setTimeZone()
1006 throw new IllegalArgumentException("Timezone: " + timeZone + " is not an Olson ID"); in setTimeZone()
1011 mService.setTimeZone(timeZone); in setTimeZone()
/frameworks/base/packages/SystemUI/src/com/android/keyguard/
DKeyguardStatusView.java88 public void onTimeZoneChanged(TimeZone timeZone) {
89 updateTimeZone(timeZone);
258 private void updateTimeZone(TimeZone timeZone) { in updateTimeZone() argument
259 mClockView.onTimeZoneChanged(timeZone); in updateTimeZone()
DKeyguardUpdateMonitorCallback.java58 public void onTimeZoneChanged(TimeZone timeZone) { } in onTimeZoneChanged() argument
DKeyguardClockSwitch.java404 public void onTimeZoneChanged(TimeZone timeZone) { in onTimeZoneChanged() argument
406 mClockPlugin.onTimeZoneChanged(timeZone); in onTimeZoneChanged()
/frameworks/base/core/java/android/timezone/
DCountryTimeZones.java102 public OffsetResult(@NonNull TimeZone timeZone, boolean isOnlyMatch) { in OffsetResult() argument
103 mTimeZone = Objects.requireNonNull(timeZone); in OffsetResult()
/frameworks/base/packages/SystemUI/plugin/src/com/android/systemui/plugins/
DClockPlugin.java127 default void onTimeZoneChanged(TimeZone timeZone) {} in onTimeZoneChanged() argument
/frameworks/rs/
DrsScript.cpp173 void rsi_ScriptSetTimeZone(Context * rsc, RsScript vs, const char * timeZone, size_t length) { in rsi_ScriptSetTimeZone() argument
182 strncpy(tz, timeZone, length); in rsi_ScriptSetTimeZone()
/frameworks/base/core/java/android/text/format/
DDateUtils.java741 long endMillis, int flags, String timeZone) { in formatDateRange() argument
749 String range = DateIntervalFormat.formatDateRange(startMillis, endMillis, flags, timeZone); in formatDateRange()
/frameworks/base/rs/java/android/renderscript/
DScript.java465 public void setTimeZone(String timeZone) { in setTimeZone() argument
468 mRS.nScriptSetTimeZone(getID(mRS), timeZone.getBytes("UTF-8")); in setTimeZone()
/frameworks/rs/support/java/src/androidx/renderscript/
DScript.java227 public void setTimeZone(String timeZone) { in setTimeZone() argument
230 mRS.nScriptSetTimeZone(getID(mRS), timeZone.getBytes("UTF-8"), mUseIncSupp); in setTimeZone()

12