Home
last modified time | relevance | path

Searched refs:isDataEnabled (Results 1 – 25 of 25) sorted by relevance

/packages/apps/Settings/tests/robotests/src/com/android/settings/network/telephony/
DMobileDataPreferenceControllerTest.java99 doReturn(true).when(mTelephonyManager).isDataEnabled(); in isDialogNeeded_disableSingleSim_returnFalse()
108 doReturn(false).when(mTelephonyManager).isDataEnabled(); in isDialogNeeded_enableNonDefaultSimInMultiSimMode_returnTrue()
130 doReturn(true).when(mTelephonyManager).isDataEnabled(); in onPreferenceChange_singleSim_On_shouldEnableData()
141 doReturn(true).when(mTelephonyManager).isDataEnabled(); in onPreferenceChange_multiSim_On_shouldEnableData()
155 doReturn(true).when(mTelephonyManager).isDataEnabled(); in isChecked_returnUserDataEnabled()
DNrDisabledInDsdsFooterPreferenceControllerTest.java71 when(mTelephonyManager.isDataEnabled()).thenReturn(true); in isAvailable_dataOnAndDsdsAnd5GSupported_Available()
81 when(mTelephonyManager.isDataEnabled()).thenReturn(true); in isAvailable_5gNotSupported_notAvailable()
91 when(mTelephonyManager.isDataEnabled()).thenReturn(false); in isAvailable_mobileDataOff_notAvailable()
101 when(mTelephonyManager.isDataEnabled()).thenReturn(true); in isAvailable_singleSimMode_notAvailable()
DMmsMessagePreferenceControllerTest.java85 when(mTelephonyManager.isDataEnabled()).thenReturn(true); in getAvailabilityStatus_mobileDataOn_returnUnavailable()
100 when(mTelephonyManager.isDataEnabled()).thenReturn(false); in getAvailabilityStatus_mobileDataOffWithValidSubId_returnAvailable()
DVideoCallingPreferenceControllerTest.java85 doReturn(true).when(mTelephonyManager).isDataEnabled(); in setUp()
104 doReturn(false).when(mTelephonyManager).isDataEnabled(); in isVideoCallEnabled_dataDisabled_returnFalse()
DMobileDataSliceTest.java166 doReturn(seed).when(mTelephonyManager).isDataEnabled(); in isMobileDataEnabled_mobileDataEnabled()
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/network/
DMobileDataTogglePreferenceControllerTest.java173 assertThat(mTelephonyManager.isDataEnabled()).isFalse(); in handlePreferenceChanged_setFalse_isMultiSim_disablesData()
193 assertThat(mTelephonyManager.isDataEnabled()).isTrue(); in handlePreferenceChanged_setTrue_isSingleSim_enablesData()
215 assertThat(mTelephonyManager.isDataEnabled()).isTrue(); in handlePreferenceChanged_setTrue_isMultiSim_noOtherSimActive_enablesData()
263 assertThat(mTelephonyManager.isDataEnabled()).isFalse(); in disableSingleSimDialog_onConfirm_disablesData()
308 assertThat(mTelephonyManager.isDataEnabled()).isTrue(); in enableMutliSimDialog_onConfirm_enablesData()
/packages/apps/Settings/src/com/android/settings/datausage/
DDataUsageBaseFragment.java75 && isDataEnabled(subId); in isNetworkPolicyModifiable()
78 private boolean isDataEnabled(int subId) { in isDataEnabled() method in DataUsageBaseFragment
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/datausage/
DDataUsageBaseFragment.java75 && isDataEnabled(subId); in isNetworkPolicyModifiable()
78 private boolean isDataEnabled(int subId) { in isDataEnabled() method in DataUsageBaseFragment
/packages/apps/Settings/src/com/android/settings/network/
DSubscriptionsPreferenceController.java215 final boolean showCutOut = !isDefaultForData || !mgr.isDataEnabled(); in setIcon()
266 final boolean dataEnabled = telMgrForSub.isDataEnabled(); in getSummary()
/packages/apps/Settings/tests/robotests/src/com/android/settings/network/
DSubscriptionsPreferenceControllerTest.java305 when(mTelephonyManager.isDataEnabled()).thenReturn(true); in getSummary_twoSubsOneDefaultForEverythingDataActive()
508 when(mgrForSub.isDataEnabled()).thenReturn(mobileDataEnabled); in setupMockSubscriptions()
543 when(mgrForSub.isDataEnabled()).thenReturn(enabled); in setMockSubDataEnabled()
/packages/apps/Settings/src/com/android/settings/network/telephony/
DNrDisabledInDsdsFooterPreferenceController.java91 if (teleManager.isDataEnabled() && activeSubCount >= 2 && is5GSupportedByRadio(teleManager) in getAvailabilityStatus()
DMmsMessagePreferenceController.java56 && !telephonyManager.isDataEnabled() in getAvailabilityStatus()
DMobileDataPreferenceController.java118 return mTelephonyManager.isDataEnabled(); in isChecked()
DVideoCallingPreferenceController.java143 || telephonyManager.isDataEnabled()); in isVideoCallEnabled()
DMobileDataSlice.java196 return mTelephonyManager.isDataEnabled(); in isMobileDataEnabled()
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/testutils/
DShadowTelephonyManager.java76 protected boolean isDataEnabled() { in isDataEnabled() method in ShadowTelephonyManager
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/homepage/contextualcards/conditional/
DCellularDataConditionController.java67 return !mTelephonyManager.isDataEnabled(); in isDisplayable()
/packages/apps/Settings/src/com/android/settings/homepage/contextualcards/conditional/
DCellularDataConditionController.java67 return !mTelephonyManager.isDataEnabled(); in isDisplayable()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/network/telephony/
DMobileDataPreferenceController.java118 return mTelephonyManager.isDataEnabled(); in isChecked()
DVideoCallingPreferenceController.java145 || telephonyManager.isDataEnabled()); in isVideoCallEnabled()
DMobileDataSlice.java211 return mTelephonyManager.isDataEnabled(); in isMobileDataEnabled()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/network/
DSubscriptionsPreferenceController.java193 } else if (!telMgrForSub.isDataEnabled()) { in getSummary()
/packages/apps/Car/Settings/src/com/android/car/settings/network/
DMobileDataTogglePreferenceController.java128 mTelephonyManager != null ? mTelephonyManager.isDataEnabled() : false); in updateState()
/packages/services/Telephony/src/com/android/phone/
DCallFeaturesSetting.java446 || mPhone.getDataEnabledSettings().isDataEnabled())) { in updateVtWfc()
DPhoneInterfaceManager.java5763 public boolean isDataEnabled(int subId) { in isDataEnabled() method in PhoneInterfaceManager
5772 boolean retVal = phone.getDataEnabledSettings().isDataEnabled(); in isDataEnabled()
8225 return !isMetered || phone.getDataEnabledSettings().isDataEnabled(apnType); in isDataEnabledForApn()