Home
last modified time | relevance | path

Searched refs:mTimeZoneDetectorListeners (Results 1 – 1 of 1) sorted by relevance

/frameworks/base/core/java/android/app/time/
DTimeManager.java61 private ArrayMap<TimeZoneDetectorListener, TimeZoneDetectorListener> mTimeZoneDetectorListeners; field in TimeManager
208 if (mTimeZoneDetectorListeners == null) { in addTimeZoneDetectorListener()
209 mTimeZoneDetectorListeners = new ArrayMap<>(); in addTimeZoneDetectorListener()
210 } else if (mTimeZoneDetectorListeners.containsKey(listener)) { in addTimeZoneDetectorListener()
228 mTimeZoneDetectorListeners.put(listener, () -> executor.execute(listener::onChange)); in addTimeZoneDetectorListener()
235 if (mTimeZoneDetectorListeners == null || mTimeZoneDetectorListeners.isEmpty()) { in notifyTimeZoneDetectorListeners()
238 timeZoneDetectorListeners = new ArrayMap<>(mTimeZoneDetectorListeners); in notifyTimeZoneDetectorListeners()
257 if (mTimeZoneDetectorListeners == null || mTimeZoneDetectorListeners.isEmpty()) { in removeTimeZoneDetectorListener()
260 mTimeZoneDetectorListeners.remove(listener); in removeTimeZoneDetectorListener()
264 if (mTimeZoneDetectorListeners.isEmpty()) { in removeTimeZoneDetectorListener()