Home
last modified time | relevance | path

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

/packages/apps/Car/SystemUI/src/com/android/systemui/car/users/
DCarDisplayTrackerImpl.java60 private final List<DisplayTrackerCallbackData> mBrightnessCallbacks = new ArrayList<>(); field in CarDisplayTrackerImpl
114 synchronized (mBrightnessCallbacks) {
115 callbacks = List.copyOf(mBrightnessCallbacks);
174 synchronized (mBrightnessCallbacks) { in addBrightnessChangeCallback()
175 if (mBrightnessCallbacks.isEmpty()) { in addBrightnessChangeCallback()
179 mBrightnessCallbacks.add(new DisplayTrackerCallbackData(callback, executor)); in addBrightnessChangeCallback()
192 synchronized (mBrightnessCallbacks) { in removeCallback()
193 boolean changed = mBrightnessCallbacks.removeIf(it -> it.sameOrEmpty(callback)); in removeCallback()
194 if (changed && mBrightnessCallbacks.isEmpty()) { in removeCallback()