Searched refs:mSwitchWidgetController (Results 1 – 6 of 6) sorted by relevance
/packages/apps/Settings/tests/robotests/src/com/android/settings/development/graphicsdriver/ |
D | GraphicsDriverGlobalSwitchBarControllerTest.java | 44 private SwitchWidgetController mSwitchWidgetController; field in GraphicsDriverGlobalSwitchBarControllerTest 64 mContext, mSwitchWidgetController); in constructor_updatableDriverOn_shouldCheckSwitchBar() 66 verify(mSwitchWidgetController).setChecked(true); in constructor_updatableDriverOn_shouldCheckSwitchBar() 74 mContext, mSwitchWidgetController); in constructor_updatableDriverOff_shouldUncheckSwitchBar() 76 verify(mSwitchWidgetController).setChecked(false); in constructor_updatableDriverOff_shouldUncheckSwitchBar() 83 mContext, mSwitchWidgetController); in constructor_developmentSettingsEnabled_shouldEnableSwitchBar() 85 verify(mSwitchWidgetController).setEnabled(true); in constructor_developmentSettingsEnabled_shouldEnableSwitchBar() 92 mContext, mSwitchWidgetController); in constructor_developmentSettingsDisabled_shouldDisableSwitchBar() 94 verify(mSwitchWidgetController).setEnabled(false); in constructor_developmentSettingsDisabled_shouldDisableSwitchBar() 100 mContext, mSwitchWidgetController); in onStart_shouldStartListeningAndRegister() [all …]
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/users/ |
D | MultiUserSwitchBarControllerTest.java | 46 private SwitchWidgetController mSwitchWidgetController; field in MultiUserSwitchBarControllerTest 53 mSwitchWidgetController = mock(SwitchWidgetController.class); in setUp() 68 mSwitchWidgetController, null); in onStart_disallowUserSwitch_shouldSetDisabledByAdmin() 70 verify(mSwitchWidgetController).setDisabledByAdmin(any()); in onStart_disallowUserSwitch_shouldSetDisabledByAdmin() 79 mSwitchWidgetController, null); in onStart_allowUserSwitch_shouldNotSetDisabledByAdmin() 81 verify(mSwitchWidgetController, never()).setDisabledByAdmin(any()); in onStart_allowUserSwitch_shouldNotSetDisabledByAdmin() 90 new MultiUserSwitchBarController(mContext, mSwitchWidgetController, null); in onStart_userIsNotMain_shouldNotBeEnabled() 92 verify(mSwitchWidgetController, never()).setDisabledByAdmin(any()); in onStart_userIsNotMain_shouldNotBeEnabled() 93 verify(mSwitchWidgetController).setEnabled(false); in onStart_userIsNotMain_shouldNotBeEnabled() 100 new MultiUserSwitchBarController(mContext, mSwitchWidgetController, null); in onStart_userIsMain_shouldBeEnabled() [all …]
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/network/ |
D | TetherEnablerTest.java | 86 private SwitchWidgetController mSwitchWidgetController; field in TetherEnablerTest 105 mEnabler = spy(new TetherEnabler(context, mSwitchWidgetController, panReference)); in setUp() 116 verify(mSwitchWidgetController).setChecked(true); in lifecycle_onStart_setCheckedCorrectly() 151 clearInvocations(mSwitchWidgetController); in startTether_fail_resetSwitchBar() 155 verify(mSwitchWidgetController).setEnabled(true); in startTether_fail_resetSwitchBar() 156 verify(mSwitchWidgetController).setChecked(false); in startTether_fail_resetSwitchBar() 161 mSwitchWidgetController.setEnabled(true); in onDataSaverChanged_setsEnabledCorrectly() 164 clearInvocations(mSwitchWidgetController); in onDataSaverChanged_setsEnabledCorrectly() 167 verify(mSwitchWidgetController).setEnabled(false); in onDataSaverChanged_setsEnabledCorrectly() 170 clearInvocations(mSwitchWidgetController); in onDataSaverChanged_setsEnabledCorrectly() [all …]
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/development/ |
D | WirelessDebuggingEnablerTest.java | 51 private SwitchWidgetController mSwitchWidgetController; field in WirelessDebuggingEnablerTest 66 mContext, mSwitchWidgetController, mListener, mLifecycle)); in setUp() 76 verify(mSwitchWidgetController).setupView(); in onCreation_shouldShowSwitchBar() 83 verify(mSwitchWidgetController).teardownView(); in teardownSwitchController_shouldHideSwitchBar() 93 verify(mSwitchWidgetController).setChecked(false); in adbWifiEnabled_switchBarShouldBeChecked() 102 verify(mSwitchWidgetController).setChecked(true); in adbWifiEnabled_switchBarShouldBeChecked() 113 verify(mSwitchWidgetController).setChecked(true); in adbWifiEnabled_switchBarShouldNotBeChecked() 122 verify(mSwitchWidgetController).setChecked(false); in adbWifiEnabled_switchBarShouldNotBeChecked() 134 verify(mSwitchWidgetController).setChecked(false); in onSwitchToggled_true_wifiConnected_shouldSetAdbWifiEnabledTrue() 150 verify(mSwitchWidgetController).setChecked(false); in onSwitchToggled_true_wifiNotConnected_shouldSetAdbWifiEnabledFalse() [all …]
|
/packages/apps/Settings/src/com/android/settings/development/graphicsdriver/ |
D | GraphicsDriverGlobalSwitchBarController.java | 47 private final SwitchWidgetController mSwitchWidgetController; field in GraphicsDriverGlobalSwitchBarController 56 mSwitchWidgetController = switchWidgetController; in GraphicsDriverGlobalSwitchBarController() 57 mSwitchWidgetController.setEnabled( in GraphicsDriverGlobalSwitchBarController() 59 mSwitchWidgetController.setChecked( in GraphicsDriverGlobalSwitchBarController() 64 mSwitchWidgetController.setListener(this); in GraphicsDriverGlobalSwitchBarController() 69 mSwitchWidgetController.startListening(); in onStart() 75 mSwitchWidgetController.stopListening(); in onStop() 104 mSwitchWidgetController.setChecked( in onGraphicsDriverContentChanged()
|
/packages/apps/Settings/src/com/android/settings/network/ |
D | TetherEnabler.java | 120 private final SwitchWidgetController mSwitchWidgetController; field in TetherEnabler 145 mSwitchWidgetController = switchWidgetController; in TetherEnabler() 163 mSwitchWidgetController.setListener(this); in onStart() 164 mSwitchWidgetController.startListening(); in onStart() 193 mSwitchWidgetController.stopListening(); in onStop() 216 mSwitchWidgetController.setEnabled( in setSwitchEnabled() 235 mSwitchWidgetController.stopListening(); in setSwitchCheckedInternal() 240 mSwitchWidgetController.setChecked(checked); in setSwitchCheckedInternal() 241 mSwitchWidgetController.startListening(); in setSwitchCheckedInternal()
|