Home
last modified time | relevance | path

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

/frameworks/base/packages/SystemUI/src/com/android/systemui/settings/
DDisplayTrackerImpl.kt44 private val brightnessCallbacks: MutableList<DisplayTrackerDataItem> = ArrayList() constant in com.android.systemui.settings.DisplayTrackerImpl
88 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()
/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/settings/
DFakeDisplayTracker.kt30 private val brightnessCallbacks: MutableList<DisplayTracker.Callback> = ArrayList() in <lambda>() constant in com.android.systemui.settings.FakeDisplayTracker
38 brightnessCallbacks.add(callback) in <lambda>()
43 brightnessCallbacks.remove(callback) in <lambda>()
67 notifyCallbacks({ onDisplayChanged(displayId) }, brightnessCallbacks) in <lambda>()