/frameworks/base/services/tests/servicestests/src/com/android/server/timezonedetector/location/ |
D | ZoneInfoDbTimeZoneProviderEventPreProcessorTest.java | 42 for (String timeZone : TimeZone.getAvailableIDs()) { in timeZoneIdsFromZoneInfoDbAreValid() 43 TimeZoneProviderEvent event = timeZoneProviderEvent(timeZone); in timeZoneIdsFromZoneInfoDbAreValid() 44 assertWithMessage("Time zone %s should be supported", timeZone) in timeZoneIdsFromZoneInfoDbAreValid() 54 for (String timeZone : nonExistingTimeZones) { in eventWithNonExistingZones_areMappedToUncertainEvent() 55 TimeZoneProviderEvent event = timeZoneProviderEvent(timeZone); in eventWithNonExistingZones_areMappedToUncertainEvent() 59 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/services/core/java/com/android/server/timezonedetector/location/ |
D | ZoneInfoDbTimeZoneProviderEventPreProcessor.java | 63 for (String timeZone : event.getSuggestion().getTimeZoneIds()) { in hasInvalidZones() 64 if (!ZoneInfoDb.getInstance().hasTimeZone(timeZone)) { in hasInvalidZones() 65 infoLog("event=" + event + " has unsupported zone(" + timeZone + ")"); in hasInvalidZones()
|
/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/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 | 179 final String timeZone = intent.getStringExtra(Intent.EXTRA_TIMEZONE); 180 createTime(timeZone); 290 private void createTime(String timeZone) { in createTime() argument 291 if (timeZone != null) { in createTime() 292 mTime = Calendar.getInstance(TimeZone.getTimeZone(timeZone)); in createTime() 499 public void setTimeZone(String timeZone) { in setTimeZone() argument 500 mTimeZone = timeZone; in setTimeZone() 502 createTime(timeZone); in setTimeZone()
|
D | AnalogClock.java | 563 public void setTimeZone(@Nullable String timeZone) { in setTimeZone() argument 564 mTimeZone = toZoneId(timeZone); in setTimeZone() 880 private static ZoneId toZoneId(@Nullable String timeZone) { in toZoneId() argument 881 if (timeZone == null) { in toZoneId() 886 return ZoneId.of(timeZone); in toZoneId() 888 Log.w(LOG_TAG, "Failed to parse time zone from " + timeZone, e); in toZoneId()
|
/frameworks/base/packages/SystemUI/src/com/android/keyguard/clock/ |
D | ImageClock.java | 75 public void onTimeZoneChanged(TimeZone timeZone) { in onTimeZoneChanged() argument 76 mTimeZone = timeZone; in onTimeZoneChanged() 77 mTime.setTimeZone(timeZone); in onTimeZoneChanged()
|
D | AnalogClockController.java | 202 public void onTimeZoneChanged(TimeZone timeZone) { in onTimeZoneChanged() argument 203 mAnalogClock.onTimeZoneChanged(timeZone); in onTimeZoneChanged()
|
D | BubbleClockController.java | 202 public void onTimeZoneChanged(TimeZone timeZone) { in onTimeZoneChanged() argument 203 mAnalogClock.onTimeZoneChanged(timeZone); in onTimeZoneChanged()
|
/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/packages/SystemUI/tests/src/com/android/systemui/shared/clocks/ |
D | DefaultClockProviderTest.kt | 136 val timeZone = mock<TimeZone>() in defaultClock_events_onTimeZoneChanged() constant 138 clock.events.onTimeZoneChanged(timeZone) in defaultClock_events_onTimeZoneChanged() 140 verify(mockSmallClockView).onTimeZoneChanged(timeZone) in defaultClock_events_onTimeZoneChanged() 141 verify(mockLargeClockView).onTimeZoneChanged(timeZone) in defaultClock_events_onTimeZoneChanged()
|
/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/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/packages/SystemUI/plugin/src/com/android/systemui/plugins/ |
D | ClockPlugin.java | 129 default void onTimeZoneChanged(TimeZone timeZone) {} in onTimeZoneChanged() argument
|
/frameworks/base/apex/jobscheduler/framework/java/android/app/ |
D | AlarmManager.java | 1318 public void setTimeZone(String timeZone) { in setTimeZone() argument 1319 if (TextUtils.isEmpty(timeZone)) { in setTimeZone() 1325 boolean hasTimeZone = ZoneInfoDb.getInstance().hasTimeZone(timeZone); in setTimeZone() 1327 throw new IllegalArgumentException("Timezone: " + timeZone + " is not an Olson ID"); in setTimeZone() 1332 mService.setTimeZone(timeZone); in setTimeZone()
|
/frameworks/base/packages/SystemUI/customization/src/com/android/systemui/shared/clocks/ |
D | AnimatableClockView.kt | 176 fun onTimeZoneChanged(timeZone: TimeZone?) { in <lambda>() 177 time.timeZone = timeZone in <lambda>() 180 { str1 = timeZone?.toString() }, in <lambda>()
|
D | DefaultClockController.kt | 189 override fun onTimeZoneChanged(timeZone: TimeZone) = in onTimeZoneChanged() 190 clocks.forEach { it.onTimeZoneChanged(timeZone) } in onTimeZoneChanged()
|
/frameworks/base/packages/SystemUI/src/com/android/keyguard/ |
D | KeyguardUpdateMonitorCallback.java | 54 public void onTimeZoneChanged(TimeZone timeZone) { } in onTimeZoneChanged() argument
|