Home
last modified time | relevance | path

Searched refs:setDataEnabled (Results 1 – 16 of 16) sorted by relevance

/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/network/
DMobileDataTogglePreferenceControllerTest.java77 mTelephonyManager.setDataEnabled(false); in setUp()
142 mTelephonyManager.setDataEnabled(true); in refreshUi_dataEnabled_setChecked()
150 mTelephonyManager.setDataEnabled(false); in refreshUi_dataDisabled_setUnchecked()
169 mTelephonyManager.setDataEnabled(true); in handlePreferenceChanged_setFalse_isMultiSim_disablesData()
179 mTelephonyManager.setDataEnabled(true); in handlePreferenceChanged_setFalse_isMultiSim_setsUnchecked()
189 mTelephonyManager.setDataEnabled(false); in handlePreferenceChanged_setTrue_isSingleSim_enablesData()
199 mTelephonyManager.setDataEnabled(false); in handlePreferenceChanged_setTrue_isSingleSim_setsChecked()
209 mTelephonyManager.setDataEnabled(false); in handlePreferenceChanged_setTrue_isMultiSim_noOtherSimActive_enablesData()
221 mTelephonyManager.setDataEnabled(false); in handlePreferenceChanged_setTrue_isMultiSim_noOtherSimActive_setsChecked()
234 mTelephonyManager.setDataEnabled(false); in handlePreferenceChanged_setTrue_isMultiSim_otherSimActive_opensDialog()
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/network/telephony/
DMobileNetworkUtilsTest.java126 verify(mTelephonyManager).setDataEnabled(true); in setMobileDataEnabled_setEnabled_enabled()
127 verify(mTelephonyManager2, never()).setDataEnabled(anyBoolean()); in setMobileDataEnabled_setEnabled_enabled()
134 verify(mTelephonyManager2).setDataEnabled(true); in setMobileDataEnabled_setDisabled_disabled()
135 verify(mTelephonyManager, never()).setDataEnabled(anyBoolean()); in setMobileDataEnabled_setDisabled_disabled()
142 verify(mTelephonyManager).setDataEnabled(true); in setMobileDataEnabled_disableOtherSubscriptions()
143 verify(mTelephonyManager2).setDataEnabled(false); in setMobileDataEnabled_disableOtherSubscriptions()
DMobileDataSliceTest.java117 verify(mTelephonyManager).setDataEnabled(true); in handleUriChange_turnedOn_updatesMobileData()
129 verify(mTelephonyManager).setDataEnabled(false); in handleUriChange_turnedOff_updatesMobileData()
141 verify(mTelephonyManager, times(0)).setDataEnabled(true); in handleUriChange_turnedOff_airplaneModeOn_mobileDataDoesNotUpdate()
DMobileDataPreferenceControllerTest.java136 verify(mTelephonyManager).setDataEnabled(true); in onPreferenceChange_singleSim_On_shouldEnableData()
147 verify(mTelephonyManager).setDataEnabled(true); in onPreferenceChange_multiSim_On_shouldEnableData()
/packages/apps/Car/Settings/src/com/android/car/settings/network/
DNetworkUtils.java67 telephonyManager.setDataEnabled(enabled); in setMobileDataEnabled()
77 subInfo.getSubscriptionId()).setDataEnabled(false); in setMobileDataEnabled()
/packages/apps/Settings/src/com/android/settings/datausage/
DCellDataPreference.java159 getContext().getSystemService(TelephonyManager.class).setDataEnabled(mSubId, enabled); in setMobileDataEnabled()
217 getContext().getSystemService(TelephonyManager.class).setDataEnabled(subId, false); in disableDataForOtherSubscriptions()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/datausage/
DCellDataPreference.java180 mTelephonyManager.setDataEnabled(mSubId, enabled); in setMobileDataEnabled()
240 mTelephonyManager.setDataEnabled(subInfo.getSubscriptionId(), false); in disableDataForOtherSubscriptions()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/network/telephony/
DMobileNetworkUtils.java226 telephonyManager.setDataEnabled(enabled); in setMobileDataEnabled()
236 subInfo.getSubscriptionId()).setDataEnabled(false); in setMobileDataEnabled()
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/testutils/
DShadowTelephonyManager.java71 protected void setDataEnabled(boolean enable) { in setDataEnabled() method in ShadowTelephonyManager
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/homepage/contextualcards/conditional/
DCellularDataConditionController.java78 mTelephonyManager.setDataEnabled(true); in onActionClick()
/packages/apps/Settings/src/com/android/settings/homepage/contextualcards/conditional/
DCellularDataConditionController.java92 mTelephonyManager.setDataEnabled(true); in onActionClick()
/packages/apps/Settings/src/com/android/settings/sim/
DSimDialogActivity.java153 telephonyManager.setDataEnabled(true); in setDefaultDataSubId()
/packages/apps/Settings/src/com/android/settings/network/telephony/
DMobileNetworkUtils.java297 telephonyManager.setDataEnabled(enabled); in setMobileDataEnabled()
307 subInfo.getSubscriptionId()).setDataEnabled(false); in setMobileDataEnabled()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/sim/
DSimDialogActivity.java124 telephonyManager.setDataEnabled(true); in setDefaultDataSubId()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/
DRadioInfo.java1239 mTelephonyManager.setDataEnabled(false);
1242 mTelephonyManager.setDataEnabled(true);
/packages/services/Telephony/src/com/android/phone/settings/
DRadioInfo.java1388 mTelephonyManager.setDataEnabled(false);
1391 mTelephonyManager.setDataEnabled(true);