Home
last modified time | relevance | path

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

/packages/apps/Settings/src/com/android/settings/widget/
DSwitchBar.java71 private final List<OnSwitchChangeListener> mSwitchChangeListeners = new ArrayList<>(); field in SwitchBar
285 final int count = mSwitchChangeListeners.size(); in propagateChecked()
287 mSwitchChangeListeners.get(n).onSwitchChanged(mSwitch, isChecked); in propagateChecked()
306 if (mSwitchChangeListeners.contains(listener)) { in addOnSwitchChangeListener()
309 mSwitchChangeListeners.add(listener); in addOnSwitchChangeListener()
313 if (!mSwitchChangeListeners.contains(listener)) { in removeOnSwitchChangeListener()
316 mSwitchChangeListeners.remove(listener); in removeOnSwitchChangeListener()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/widget/
DSwitchBar.java73 private final List<OnSwitchChangeListener> mSwitchChangeListeners = new ArrayList<>(); field in SwitchBar
287 final int count = mSwitchChangeListeners.size(); in propagateChecked()
289 mSwitchChangeListeners.get(n).onSwitchChanged(mSwitch, isChecked); in propagateChecked()
308 if (mSwitchChangeListeners.contains(listener)) { in addOnSwitchChangeListener()
311 mSwitchChangeListeners.add(listener); in addOnSwitchChangeListener()
315 if (!mSwitchChangeListeners.contains(listener)) { in removeOnSwitchChangeListener()
318 mSwitchChangeListeners.remove(listener); in removeOnSwitchChangeListener()