/frameworks/base/services/core/java/com/android/server/ |
D | SystemTimeZone.java | 123 @NonNull String timeZoneId, @TimeZoneConfidence int confidence, in setTimeZoneId() 125 if (TextUtils.isEmpty(timeZoneId) || !isValidTimeZoneId(timeZoneId)) { in setTimeZoneId() 127 + " timeZoneId=" + timeZoneId in setTimeZoneId() 136 if (currentTimeZoneId == null || !currentTimeZoneId.equals(timeZoneId)) { in setTimeZoneId() 137 SystemProperties.set(TIME_ZONE_SYSTEM_PROPERTY, timeZoneId); in setTimeZoneId() 139 Slog.v(TAG, "Time zone changed: " + currentTimeZoneId + ", new=" + timeZoneId); in setTimeZoneId() 146 + " (new) timeZoneId=" + timeZoneId in setTimeZoneId() 199 private static boolean isValidTimeZoneId(String timeZoneId) { in isValidTimeZoneId() argument 200 return timeZoneId != null in isValidTimeZoneId() 201 && !timeZoneId.isEmpty() in isValidTimeZoneId() [all …]
|
/frameworks/base/services/core/java/com/android/server/timezonedetector/ |
D | TimeZoneCanonicalizer.java | 29 public String apply(String timeZoneId) { in apply() argument 31 .findCanonicalTimeZoneId(timeZoneId); in apply() 33 return canonicialZoneId == null ? timeZoneId : canonicialZoneId; in apply()
|
D | TimeZoneDetectorStrategyImpl.java | 362 public synchronized boolean confirmTimeZone(@NonNull String timeZoneId) { in confirmTimeZone() argument 363 Objects.requireNonNull(timeZoneId); in confirmTimeZone() 366 if (!currentTimeZoneId.equals(timeZoneId)) { in confirmTimeZone() 372 TIME_ZONE_CONFIDENCE_HIGH, "confirmTimeZone: timeZoneId=" + timeZoneId); in confirmTimeZone() 452 String timeZoneId = suggestion.getZoneId(); 460 + ", timeZoneId=" + timeZoneId 471 setDeviceTimeZoneIfRequired(timeZoneId, cause);
|
D | TimeZoneDetectorStrategy.java | 159 boolean confirmTimeZone(@NonNull String timeZoneId); in confirmTimeZone() argument
|
D | TimeZoneDetectorShellCommand.java | 210 String timeZoneId = parseTimeZoneIdArg(this); in runConfirmTimeZone() local 211 getOutPrintWriter().println(mInterface.confirmTimeZone(timeZoneId)); in runConfirmTimeZone()
|
D | TimeZoneDetectorService.java | 334 public boolean confirmTimeZone(@NonNull String timeZoneId) { in confirmTimeZone() argument 339 return mTimeZoneDetectorStrategy.confirmTimeZone(timeZoneId); in confirmTimeZone()
|
/frameworks/opt/timezonepicker/src/com/android/timezonepicker/ |
D | TimeZoneData.java | 107 public int findIndexByTimeZoneIdSlow(String timeZoneId) { in findIndexByTimeZoneIdSlow() argument 110 if (timeZoneId.equals(tzi.mTzId)) { in findIndexByTimeZoneIdSlow() 385 final String timeZoneId = fields[2]; in loadTzsInZoneTab() local 387 final TimeZone tz = TimeZone.getTimeZone(timeZoneId); in loadTzsInZoneTab() 389 Log.e(TAG, "Timezone not found: " + timeZoneId); in loadTzsInZoneTab() 399 if (countryCode == null && !timeZoneId.startsWith("Etc/GMT")) { in loadTzsInZoneTab() 400 processedTimeZones.add(timeZoneId); in loadTzsInZoneTab() 417 && timeZoneId.equals(mAlternateDefaultTimeZoneId)) { in loadTzsInZoneTab() 450 Log.e(TAG, "# Adding time zone: " + timeZoneId + " ## " + in loadTzsInZoneTab() 456 Log.e(TAG, "# Dropping identical time zone: " + timeZoneId + " ## " + in loadTzsInZoneTab() [all …]
|
/frameworks/base/core/java/android/app/time/ |
D | TimeManager.java | 390 public boolean confirmTimeZone(@NonNull String timeZoneId) { in confirmTimeZone() argument 392 Log.d(TAG, "confirmTimeZone called: " + timeZoneId); in confirmTimeZone() 395 return mITimeZoneDetectorService.confirmTimeZone(timeZoneId); in confirmTimeZone() 411 public boolean setManualTimeZone(@NonNull String timeZoneId) { in setManualTimeZone() argument 413 Log.d(TAG, "setManualTimeZone called: " + timeZoneId); in setManualTimeZone() 417 new ManualTimeZoneSuggestion(timeZoneId); in setManualTimeZone()
|
/frameworks/base/core/tests/coretests/src/android/text/format/ |
D | TimeMigrationUtilsTest.java | 104 for (String timeZoneId : timeZoneIds) { in formatMillisAsDateTime_matchesOldBehavior() 105 TimeZone timeZone = TimeZone.getTimeZone(timeZoneId); in formatMillisAsDateTime_matchesOldBehavior() 113 "locale=" + locale + ", timeZoneId=" + timeZoneId in formatMillisAsDateTime_matchesOldBehavior()
|
/frameworks/base/packages/SettingsLib/tests/integ/src/com/android/settingslib/utils/ |
D | ZoneGetterTest.java | 102 private void testTimeZoneOffsetAndNameInner(String timeZoneId, String expectedName) { in testTimeZoneOffsetAndNameInner() argument 104 final TimeZone timeZone = TimeZone.getTimeZone(timeZoneId); in testTimeZoneOffsetAndNameInner()
|
/frameworks/base/services/tests/timetests/src/com/android/server/timezonedetector/ |
D | TimeZoneDetectorStrategyImplTest.java | 1478 String timeZoneId = "Europe/London"; in testGetTimeZoneState() local 1481 script.initializeTimeZoneSetting(timeZoneId, TIME_ZONE_CONFIDENCE_LOW); in testGetTimeZoneState() 1482 assertEquals(new TimeZoneState(timeZoneId, true), in testGetTimeZoneState() 1486 script.initializeTimeZoneSetting(timeZoneId, TIME_ZONE_CONFIDENCE_HIGH); in testGetTimeZoneState() 1488 assertEquals(new TimeZoneState(timeZoneId, false), in testGetTimeZoneState() 1500 String timeZoneId = "Europe/London"; in testSetTimeZoneState() local 1502 TimeZoneState state = new TimeZoneState(timeZoneId, userShouldConfirmId); in testSetTimeZoneState() 1505 script.verifyTimeZoneChangedAndReset(timeZoneId, TIME_ZONE_CONFIDENCE_HIGH); in testSetTimeZoneState() 1520 String timeZoneId = "Europe/London"; in testConfirmTimeZone() local 1523 .initializeTimeZoneSetting(timeZoneId, TIME_ZONE_CONFIDENCE_LOW) in testConfirmTimeZone() [all …]
|
D | FakeTimeZoneDetectorStrategy.java | 53 public boolean confirmTimeZone(String timeZoneId) { in confirmTimeZone() argument
|
/frameworks/base/core/java/android/app/timezonedetector/ |
D | ITimeZoneDetectorService.aidl | 48 boolean confirmTimeZone(in String timeZoneId); in confirmTimeZone() argument
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/nitz/ |
D | NitzStateMachineTestSupport.java | 161 Scenario changeCountry(String timeZoneId, String networkCountryIsoCode) { in changeCountry() argument 163 mZone = zone(timeZoneId); in changeCountry()
|