Searched refs:displayCallbacks (Results 1 – 2 of 2) sorted by relevance
42 private val displayCallbacks: MutableList<DisplayTrackerDataItem> = ArrayList() constant in com.android.systemui.settings.DisplayTrackerImpl53 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()
29 val displayCallbacks: MutableList<DisplayTracker.Callback> = ArrayList() in <lambda>() constant in com.android.systemui.settings.FakeDisplayTracker32 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>()