Searched refs:mSwitchController (Results 1 – 5 of 5) sorted by relevance
55 private final SwitchWidgetController mSwitchController; field in BluetoothEnabler86 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 …]
83 private SwitchWidgetController mSwitchController; field in BluetoothEnablerTest95 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 …]
51 private SwitchWidgetController mSwitchController; field in BluetoothSwitchPreferenceControllerTest68 mSwitchController, mFooterPreference); in setUp()
48 private GenericSwitchController mSwitchController; field in AutomaticStorageManagementSwitchPreferenceController84 mSwitchController = new GenericSwitchController(mSwitch); in onResume()85 mSwitchController.setListener(this); in onResume()86 mSwitchController.startListening(); in onResume()
53 private AutomaticStorageManagerSwitchBarController mSwitchController; field in AutomaticStorageManagerSettings89 mSwitchController = in initializeSwitchBar()124 mSwitchController.tearDown(); in onDestroyView()