Home
last modified time | relevance | path

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

/packages/apps/Settings/src/com/android/settings/bluetooth/
DBluetoothEnabler.java55 private final SwitchWidgetController mSwitchController; field in BluetoothEnabler
86 mSwitchController = switchController; in BluetoothEnabler()
87 mSwitchController.setListener(this); in BluetoothEnabler()
88 mSwitchController.setTitle(context.getString(R.string.bluetooth_main_switch_title)); in BluetoothEnabler()
96 mSwitchController.setEnabled(false); in BluetoothEnabler()
104 mSwitchController.setupView(); in setupSwitchController()
108 mSwitchController.teardownView(); in teardownSwitchController()
119 mSwitchController.setEnabled(false); in resume()
128 mSwitchController.startListening(); in resume()
148 mSwitchController.stopListening(); in pause()
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/bluetooth/
DBluetoothEnablerTest.java83 private SwitchWidgetController mSwitchController; field in BluetoothEnablerTest
95 mSwitchController, in setUp()
147 verify(mSwitchController).setDisabledByAdmin(null); in maybeEnforceRestrictions_noRestrictions()
149 verify(mSwitchController, never()).setChecked(anyBoolean()); in maybeEnforceRestrictions_noRestrictions()
165 verify(mSwitchController).setDisabledByAdmin(sFakeEnforcedAdmin); in maybeEnforceRestrictions_disallowBluetoothRestrictionSet()
168 verify(mSwitchController).setChecked(false); in maybeEnforceRestrictions_disallowBluetoothRestrictionSet()
184 verify(mSwitchController).setDisabledByAdmin(sFakeEnforcedAdmin); in maybeEnforceRestrictions_disallowConfigBluetoothRestrictionSet()
187 verify(mSwitchController).setChecked(false); in maybeEnforceRestrictions_disallowConfigBluetoothRestrictionSet()
200 verify(mSwitchController, never()).setEnabled(true); in maybeEnforceRestrictions_disallowBluetoothNotOverriden()
206 verify(mSwitchController, never()).setChecked(anyBoolean()); in startWithBluetoothOff_switchIsOff()
[all …]
DBluetoothSwitchPreferenceControllerTest.java51 private SwitchWidgetController mSwitchController; field in BluetoothSwitchPreferenceControllerTest
68 mSwitchController, mFooterPreference); in setUp()
/packages/apps/Settings/src/com/android/settings/deviceinfo/storage/
DAutomaticStorageManagementSwitchPreferenceController.java48 private GenericSwitchController mSwitchController; field in AutomaticStorageManagementSwitchPreferenceController
84 mSwitchController = new GenericSwitchController(mSwitch); in onResume()
85 mSwitchController.setListener(this); in onResume()
86 mSwitchController.startListening(); in onResume()
/packages/apps/Settings/src/com/android/settings/deletionhelper/
DAutomaticStorageManagerSettings.java53 private AutomaticStorageManagerSwitchBarController mSwitchController; field in AutomaticStorageManagerSettings
89 mSwitchController = in initializeSwitchBar()
124 mSwitchController.tearDown(); in onDestroyView()