Home
last modified time | relevance | path

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

/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/bluetooth/
DBluetoothEnabler.java42 private final SwitchWidgetController mSwitchController; field in BluetoothEnabler
76 mSwitchController = switchController; in BluetoothEnabler()
77 mSwitchController.setListener(this); in BluetoothEnabler()
84 mSwitchController.setEnabled(false); in BluetoothEnabler()
91 mSwitchController.setupView(); in setupSwitchController()
95 mSwitchController.teardownView(); in teardownSwitchController()
106 mSwitchController.setEnabled(false); in resume()
115 mSwitchController.startListening(); in resume()
125 mSwitchController.stopListening(); in pause()
134 mSwitchController.setEnabled(false); in handleStateChanged()
[all …]
/packages/apps/Settings/src/com/android/settings/bluetooth/
DBluetoothEnabler.java42 private final SwitchWidgetController mSwitchController; field in BluetoothEnabler
76 mSwitchController = switchController; in BluetoothEnabler()
77 mSwitchController.setListener(this); in BluetoothEnabler()
84 mSwitchController.setEnabled(false); in BluetoothEnabler()
91 mSwitchController.setupView(); in setupSwitchController()
95 mSwitchController.teardownView(); in teardownSwitchController()
106 mSwitchController.setEnabled(false); in resume()
115 mSwitchController.startListening(); in resume()
125 mSwitchController.stopListening(); in pause()
134 mSwitchController.setEnabled(false); in handleStateChanged()
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/bluetooth/
DBluetoothEnablerTest.java82 private SwitchWidgetController mSwitchController; field in BluetoothEnablerTest
92 mSwitchController = spy(new SwitchBarController(new SwitchBar(mContext))); in setUp()
95 mSwitchController, in setUp()
134 verify(mSwitchController).setDisabledByAdmin(null); in maybeEnforceRestrictions_noRestrictions()
136 verify(mSwitchController, never()).setChecked(anyBoolean()); in maybeEnforceRestrictions_noRestrictions()
152 verify(mSwitchController).setDisabledByAdmin(sFakeEnforcedAdmin); in maybeEnforceRestrictions_disallowBluetoothRestrictionSet()
155 verify(mSwitchController).setChecked(false); in maybeEnforceRestrictions_disallowBluetoothRestrictionSet()
171 verify(mSwitchController).setDisabledByAdmin(sFakeEnforcedAdmin); in maybeEnforceRestrictions_disallowConfigBluetoothRestrictionSet()
174 verify(mSwitchController).setChecked(false); in maybeEnforceRestrictions_disallowConfigBluetoothRestrictionSet()
187 verify(mSwitchController, never()).setEnabled(true); in maybeEnforceRestrictions_disallowBluetoothNotOverriden()
[all …]
DBluetoothSwitchPreferenceControllerTest.java49 private SwitchWidgetController mSwitchController; field in BluetoothSwitchPreferenceControllerTest
64 mSwitchController, mFooterPreference); in setUp()
/packages/apps/Settings/src/com/android/settings/deviceinfo/storage/
DAutomaticStorageManagementSwitchPreferenceController.java47 private MasterSwitchController mSwitchController; field in AutomaticStorageManagementSwitchPreferenceController
80 mSwitchController = new MasterSwitchController(mSwitch); in onResume()
81 mSwitchController.setListener(this); in onResume()
82 mSwitchController.startListening(); in onResume()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/deviceinfo/storage/
DAutomaticStorageManagementSwitchPreferenceController.java47 private MasterSwitchController mSwitchController; field in AutomaticStorageManagementSwitchPreferenceController
80 mSwitchController = new MasterSwitchController(mSwitch); in onResume()
81 mSwitchController.setListener(this); in onResume()
82 mSwitchController.startListening(); in onResume()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/deletionhelper/
DAutomaticStorageManagerSettings.java54 private AutomaticStorageManagerSwitchBarController mSwitchController; field in AutomaticStorageManagerSettings
90 mSwitchController = in initializeSwitchBar()
125 mSwitchController.tearDown(); in onDestroyView()
/packages/apps/Settings/src/com/android/settings/deletionhelper/
DAutomaticStorageManagerSettings.java54 private AutomaticStorageManagerSwitchBarController mSwitchController; field in AutomaticStorageManagerSettings
90 mSwitchController = in initializeSwitchBar()
125 mSwitchController.tearDown(); in onDestroyView()