Searched refs:brightnessCallbacks (Results 1 – 2 of 2) sorted by relevance
44 private val brightnessCallbacks: MutableList<DisplayTrackerDataItem> = ArrayList() constant in com.android.systemui.settings.DisplayTrackerImpl88 val list = synchronized(brightnessCallbacks) { brightnessCallbacks.toList() } in onDisplayChanged()107 synchronized(brightnessCallbacks) { in addBrightnessChangeCallback()108 if (brightnessCallbacks.isEmpty()) { in addBrightnessChangeCallback()115 brightnessCallbacks.add(DisplayTrackerDataItem(WeakReference(callback), executor)) in addBrightnessChangeCallback()127 synchronized(brightnessCallbacks) { in removeCallback()128 val changed = brightnessCallbacks.removeIf { it.sameOrEmpty(callback) } in removeCallback()129 if (changed && brightnessCallbacks.isEmpty()) { in removeCallback()
30 private val brightnessCallbacks: MutableList<DisplayTracker.Callback> = ArrayList() in <lambda>() constant in com.android.systemui.settings.FakeDisplayTracker38 brightnessCallbacks.add(callback) in <lambda>()43 brightnessCallbacks.remove(callback) in <lambda>()67 notifyCallbacks({ onDisplayChanged(displayId) }, brightnessCallbacks) in <lambda>()