Home
last modified time | relevance | path

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

/frameworks/base/packages/SystemUI/src/com/android/systemui/settings/
DDisplayTrackerImpl.kt42 private val displayCallbacks: MutableList<DisplayTrackerDataItem> = ArrayList() constant in com.android.systemui.settings.DisplayTrackerImpl
53 val list = synchronized(displayCallbacks) { displayCallbacks.toList() } in onDisplayAdded()
62 val list = synchronized(displayCallbacks) { displayCallbacks.toList() } in onDisplayRemoved()
71 val list = synchronized(displayCallbacks) { displayCallbacks.toList() } in onDisplayChanged()
95 synchronized(displayCallbacks) { in addDisplayChangeCallback()
96 if (displayCallbacks.isEmpty()) { in addDisplayChangeCallback()
99 displayCallbacks.add(DisplayTrackerDataItem(WeakReference(callback), executor)) in addDisplayChangeCallback()
120 synchronized(displayCallbacks) { in removeCallback()
121 val changed = displayCallbacks.removeIf { it.sameOrEmpty(callback) } in removeCallback()
122 if (changed && displayCallbacks.isEmpty()) { in removeCallback()
/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/settings/
DFakeDisplayTracker.kt29 val displayCallbacks: MutableList<DisplayTracker.Callback> = ArrayList() in <lambda>() constant in com.android.systemui.settings.FakeDisplayTracker
32 displayCallbacks.add(callback) in <lambda>()
42 displayCallbacks.remove(callback) in <lambda>()
55 notifyCallbacks({ onDisplayAdded(displayId) }, displayCallbacks) in <lambda>()
59 notifyCallbacks({ onDisplayRemoved(displayId) }, displayCallbacks) in <lambda>()
63 notifyCallbacks({ onDisplayChanged(displayId) }, displayCallbacks) in <lambda>()