/frameworks/base/services/tests/timetests/src/com/android/server/timezonedetector/location/ |
D | ZoneInfoDbTimeZoneProviderEventPreProcessorTest.java | 47 for (String timeZone : TimeZone.getAvailableIDs()) { in timeZoneIdsFromZoneInfoDbAreValid() 48 TimeZoneProviderEvent event = timeZoneProviderEvent(timeZone); in timeZoneIdsFromZoneInfoDbAreValid() 49 assertWithMessage("Time zone %s should be supported", timeZone) in timeZoneIdsFromZoneInfoDbAreValid() 59 for (String timeZone : nonExistingTimeZones) { in eventWithNonExistingZones_areMappedToUncertainEvent() 60 TimeZoneProviderEvent event = timeZoneProviderEvent(timeZone); in eventWithNonExistingZones_areMappedToUncertainEvent() 70 assertWithMessage(timeZone + " is not a valid time zone") in eventWithNonExistingZones_areMappedToUncertainEvent()
|
/frameworks/base/core/java/android/app/admin/ |
D | FullyManagedDeviceProvisioningParams.java | 66 @Nullable String timeZone, in FullyManagedDeviceProvisioningParams() argument 75 this.mTimeZone = timeZone; in FullyManagedDeviceProvisioningParams() 88 @Nullable String timeZone, in FullyManagedDeviceProvisioningParams() argument 97 timeZone, in FullyManagedDeviceProvisioningParams() 264 public Builder setTimeZone(@Nullable String timeZone) { in setTimeZone() argument 265 this.mTimeZone = timeZone; in setTimeZone() 387 String timeZone = in.readString(); 398 timeZone,
|
/frameworks/base/core/tests/benchmarks/src/android/text/format/ |
D | AndroidTimeVsOthersBenchmark.java | 62 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/services/core/java/com/android/server/timezonedetector/location/ |
D | ZoneInfoDbTimeZoneProviderEventPreProcessor.java | 71 for (String timeZone : event.getSuggestion().getTimeZoneIds()) { in hasInvalidZones() 72 if (!ZoneInfoDb.getInstance().hasTimeZone(timeZone)) { in hasInvalidZones() 73 infoLog("event=" + event + " has unsupported zone(" + timeZone + ")"); in hasInvalidZones()
|
/frameworks/base/packages/SettingsLib/tests/integ/src/com/android/settingslib/utils/ |
D | ZoneGetterTest.java | 92 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/ |
D | TextClock.java | 182 final String timeZone = intent.getStringExtra(Intent.EXTRA_TIMEZONE); 183 createTime(timeZone); 293 private void createTime(String timeZone) { in createTime() argument 294 if (timeZone != null) { in createTime() 295 mTime = Calendar.getInstance(TimeZone.getTimeZone(timeZone)); in createTime() 513 public void setTimeZone(String timeZone) { in setTimeZone() argument 514 mTimeZone = timeZone; in setTimeZone() 516 createTime(timeZone); in setTimeZone()
|
D | AnalogClock.java | 569 public void setTimeZone(@Nullable String timeZone) { in setTimeZone() argument 570 mTimeZone = toZoneId(timeZone); in setTimeZone() 886 private static ZoneId toZoneId(@Nullable String timeZone) { in toZoneId() argument 887 if (timeZone == null) { in toZoneId() 892 return ZoneId.of(timeZone); in toZoneId() 894 Log.w(LOG_TAG, "Failed to parse time zone from " + timeZone, e); in toZoneId()
|
/frameworks/opt/timezonepicker/src/com/android/timezonepicker/ |
D | TimeZonePickerDialog.java | 61 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()
|
D | TimeZoneResultAdapter.java | 65 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()
|
D | TimeZonePickerView.java | 56 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/ |
D | TimeZoneLookupHelper.java | 250 TimeZone timeZone = timeZoneMapping.getTimeZone(); in countryUsesDifferentOffsets() local 251 int candidateOffset = timeZone.getOffset(whenMillis); in countryUsesDifferentOffsets() 293 private static boolean offsetMatchesAtTime(@NonNull TimeZone timeZone, int totalOffsetMillis, in offsetMatchesAtTime() argument 296 timeZone.getOffset(whenMillis, false /* local */, offsets); in offsetMatchesAtTime()
|
/frameworks/base/core/tests/coretests/src/android/text/format/ |
D | TimeMigrationUtilsTest.java | 105 TimeZone timeZone = TimeZone.getTimeZone(timeZoneId); in formatMillisAsDateTime_matchesOldBehavior() local 106 TimeZone.setDefault(timeZone); in formatMillisAsDateTime_matchesOldBehavior()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/shared/clocks/ |
D | DefaultClockProviderTest.kt | 140 val timeZone = mock<TimeZone>() in createClock() constant 142 clock.events.onTimeZoneChanged(timeZone) in createClock() 144 verify(mockSmallClockView).onTimeZoneChanged(timeZone) in createClock() 145 verify(mockLargeClockView).onTimeZoneChanged(timeZone) in createClock()
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/nitz/ |
D | NitzStateMachineTestSupport.java | 311 TimeZone timeZone = TimeZone.getFrozenTimeZone(zoneId); in zone() local 312 if (timeZone.getID().equals(TimeZone.UNKNOWN_ZONE_ID)) { in zone() 315 return timeZone; in zone()
|
D | TimeZoneLookupHelperTest.java | 477 TimeZone timeZone = lookupResult.getTimeZone(); in assertOffsetResultZoneOffsets() local 478 GregorianCalendar calendar = new GregorianCalendar(timeZone); in assertOffsetResultZoneOffsets() 486 assertEquals(expectedDstAtTime > 0, timeZone.inDaylightTime(date)); in assertOffsetResultZoneOffsets()
|
/frameworks/base/media/java/android/media/ |
D | Metadata.java | 511 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/timezone/ |
D | CountryTimeZones.java | 102 public OffsetResult(@NonNull TimeZone timeZone, boolean isOnlyMatch) { in OffsetResult() argument 103 mTimeZone = Objects.requireNonNull(timeZone); in OffsetResult()
|
/frameworks/base/apex/jobscheduler/framework/java/android/app/ |
D | AlarmManager.java | 1450 public void setTimeZone(String timeZone) { in setTimeZone() argument 1451 if (TextUtils.isEmpty(timeZone)) { in setTimeZone() 1457 boolean hasTimeZone = ZoneInfoDb.getInstance().hasTimeZone(timeZone); in setTimeZone() 1459 throw new IllegalArgumentException("Timezone: " + timeZone + " is not an Olson ID"); in setTimeZone() 1464 mService.setTimeZone(timeZone); in setTimeZone()
|
/frameworks/base/packages/SystemUI/customization/src/com/android/systemui/shared/clocks/ |
D | AnimatableClockView.kt | 213 fun onTimeZoneChanged(timeZone: TimeZone?) { in <lambda>() 214 logger.d({ "onTimeZoneChanged($str1)" }) { str1 = timeZone?.toString() } in <lambda>() 215 time.timeZone = timeZone in <lambda>()
|
D | DefaultClockController.kt | 247 override fun onTimeZoneChanged(timeZone: TimeZone) = in onTimeZoneChanged() 248 clocks.forEach { it.onTimeZoneChanged(timeZone) } in onTimeZoneChanged()
|
/frameworks/base/packages/SystemUI/src/com/android/keyguard/ |
D | KeyguardUpdateMonitorCallback.java | 56 public void onTimeZoneChanged(TimeZone timeZone) { } in onTimeZoneChanged() argument
|
/frameworks/rs/ |
D | rsScript.cpp | 173 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/ |
D | DateUtils.java | 752 long endMillis, int flags, String timeZone) { in formatDateRange() argument 760 String range = DateIntervalFormat.formatDateRange(startMillis, endMillis, flags, timeZone); in formatDateRange()
|
/frameworks/base/packages/SystemUI/plugin/src/com/android/systemui/plugins/clocks/ |
D | ClockProviderPlugin.kt | 160 fun onTimeZoneChanged(timeZone: TimeZone) in onTimeZoneChanged()
|
/frameworks/base/rs/java/android/renderscript/ |
D | Script.java | 470 public void setTimeZone(String timeZone) { in setTimeZone() argument 473 mRS.nScriptSetTimeZone(getID(mRS), timeZone.getBytes("UTF-8")); in setTimeZone()
|