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/
DBatteryControllerImpl.java48 …private final ArrayList<BatteryController.BatteryStateChangeCallback> mChangeCallbacks = new Array… field in BatteryControllerImpl
102 synchronized (mChangeCallbacks) { in addCallback()
103 mChangeCallbacks.add(cb); in addCallback()
112 synchronized (mChangeCallbacks) { in removeCallback()
113 mChangeCallbacks.remove(cb); in removeCallback()
200 synchronized (mChangeCallbacks) { in fireBatteryLevelChanged()
201 final int N = mChangeCallbacks.size(); in fireBatteryLevelChanged()
203 mChangeCallbacks.get(i).onBatteryLevelChanged(mLevel, mPluggedIn, mCharging); in fireBatteryLevelChanged()
209 synchronized (mChangeCallbacks) { in firePowerSaveChanged()
210 final int N = mChangeCallbacks.size(); in firePowerSaveChanged()
[all …]
DAccessibilityController.java30 private final ArrayList<AccessibilityStateChangedCallback> mChangeCallbacks = new ArrayList<>(); field in AccessibilityController
59 mChangeCallbacks.add(cb); in addStateChangedCallback()
64 mChangeCallbacks.remove(cb); in removeStateChangedCallback()
68 final int N = mChangeCallbacks.size(); in fireChanged()
70 mChangeCallbacks.get(i).onStateChanged(mAccessibilityEnabled, mTouchExplorationEnabled); in fireChanged()
DNextAlarmControllerImpl.java35 private final ArrayList<NextAlarmChangeCallback> mChangeCallbacks = new ArrayList<>(); field in NextAlarmControllerImpl
55 mChangeCallbacks.add(cb); in addCallback()
60 mChangeCallbacks.remove(cb); in removeCallback()
77 int n = mChangeCallbacks.size(); in fireNextAlarmChanged()
79 mChangeCallbacks.get(i).onNextAlarmChanged(mNextAlarm); in fireNextAlarmChanged()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/car/
DCarBatteryController.java63 private final ArrayList<BatteryStateChangeCallback> mChangeCallbacks = new ArrayList<>(); field in CarBatteryController
103 mChangeCallbacks.add(cb); in addCallback()
113 mChangeCallbacks.remove(cb); in removeCallback()
258 for (int i = 0, size = mChangeCallbacks.size(); i < size; i++) { in notifyBatteryLevelChanged()
259 mChangeCallbacks.get(i) in notifyBatteryLevelChanged()
/frameworks/base/packages/SystemUI/src/com/android/systemui/settings/
DBrightnessController.java82 private ArrayList<BrightnessStateChangeCallback> mChangeCallbacks = field in BrightnessController
131 for (BrightnessStateChangeCallback cb : mChangeCallbacks) { in onChange()
298 mChangeCallbacks.add(cb); in addStateChangedCallback()
302 return mChangeCallbacks.remove(cb); in removeStateChangedCallback()
392 for (BrightnessStateChangeCallback cb : mChangeCallbacks) { in onChanged()