Home
last modified time | relevance | path

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

/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DAccessibilityController.java36 private final ArrayList<AccessibilityStateChangedCallback> mChangeCallbacks = new ArrayList<>(); field in AccessibilityController
68 mChangeCallbacks.add(cb); in addStateChangedCallback()
73 mChangeCallbacks.remove(cb); in removeStateChangedCallback()
77 final int N = mChangeCallbacks.size(); in fireChanged()
79 mChangeCallbacks.get(i).onStateChanged(mAccessibilityEnabled, mTouchExplorationEnabled); in fireChanged()
DBatteryControllerImpl.java61 …private final ArrayList<BatteryController.BatteryStateChangeCallback> mChangeCallbacks = new Array… field in BatteryControllerImpl
122 synchronized (mChangeCallbacks) { in addCallback()
123 mChangeCallbacks.add(cb); in addCallback()
132 synchronized (mChangeCallbacks) { in removeCallback()
133 mChangeCallbacks.remove(cb); in removeCallback()
286 synchronized (mChangeCallbacks) { in fireBatteryLevelChanged()
287 final int N = mChangeCallbacks.size(); in fireBatteryLevelChanged()
289 mChangeCallbacks.get(i).onBatteryLevelChanged(mLevel, mPluggedIn, mCharging); in fireBatteryLevelChanged()
295 synchronized (mChangeCallbacks) { in firePowerSaveChanged()
296 final int N = mChangeCallbacks.size(); in firePowerSaveChanged()
[all …]
DNextAlarmControllerImpl.java40 private final ArrayList<NextAlarmChangeCallback> mChangeCallbacks = new ArrayList<>(); field in NextAlarmControllerImpl
63 mChangeCallbacks.add(cb); in addCallback()
68 mChangeCallbacks.remove(cb); in removeCallback()
85 int n = mChangeCallbacks.size(); in fireNextAlarmChanged()
87 mChangeCallbacks.get(i).onNextAlarmChanged(mNextAlarm); in fireNextAlarmChanged()
/frameworks/base/packages/CarSystemUI/src/com/android/systemui/statusbar/car/
DCarBatteryController.java61 private final ArrayList<BatteryStateChangeCallback> mChangeCallbacks = new ArrayList<>(); field in CarBatteryController
106 mChangeCallbacks.add(cb); in addCallback()
116 mChangeCallbacks.remove(cb); in removeCallback()
261 for (int i = 0, size = mChangeCallbacks.size(); i < size; i++) { in notifyBatteryLevelChanged()
262 mChangeCallbacks.get(i) in notifyBatteryLevelChanged()
/frameworks/base/packages/SystemUI/src/com/android/systemui/settings/
DBrightnessController.java77 private ArrayList<BrightnessStateChangeCallback> mChangeCallbacks = field in BrightnessController
126 for (BrightnessStateChangeCallback cb : mChangeCallbacks) { in onChange()
287 mChangeCallbacks.add(cb); in addStateChangedCallback()
291 return mChangeCallbacks.remove(cb); in removeStateChangedCallback()
380 for (BrightnessStateChangeCallback cb : mChangeCallbacks) { in onChanged()