Home
last modified time | relevance | path

Searched refs:isMobileDataEnabled (Results 1 – 18 of 18) sorted by relevance

/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/qc/
DMobileDataTileTest.java73 when(mDataUsageController.isMobileDataEnabled()).thenReturn(false); in getQCItem_mobileDataDisabled_tileUnchecked()
82 when(mDataUsageController.isMobileDataEnabled()).thenReturn(true); in getQCItem_mobileDataEnabled_tileChecked()
91 when(mDataUsageController.isMobileDataEnabled()).thenReturn(true); in getQCItem_noNetworkName_setsDefaultSubtitle()
101 when(mDataUsageController.isMobileDataEnabled()).thenReturn(true); in getQCItem_hasNetworkName_setsSubtitle()
110 when(mDataUsageController.isMobileDataEnabled()).thenReturn(false); in getQCItem_dataDisabled_setsSubtitle()
120 when(mDataUsageController.isMobileDataEnabled()).thenReturn(true); in getQCItem_hasBaseUmRestriction_tileDisabled()
131 when(mDataUsageController.isMobileDataEnabled()).thenReturn(true); in getQCItem_hasUmRestriction_tileClickableWhileDisabled()
142 when(mDataUsageController.isMobileDataEnabled()).thenReturn(false); in onNotifyChange_togglesMobileData()
DMobileDataRowTest.java73 when(mDataUsageController.isMobileDataEnabled()).thenReturn(false); in getQCItem_mobileDataDisabled_switchUnchecked()
82 when(mDataUsageController.isMobileDataEnabled()).thenReturn(true); in getQCItem_mobileDataEnabled_switchChecked()
91 when(mDataUsageController.isMobileDataEnabled()).thenReturn(true); in getQCItem_noNetworkName_nullSubtitle()
100 when(mDataUsageController.isMobileDataEnabled()).thenReturn(true); in getQCItem_hasNetworkName_setsSubtitle()
109 when(mDataUsageController.isMobileDataEnabled()).thenReturn(false); in getQCItem_dataDisabled_setsSubtitle()
119 when(mDataUsageController.isMobileDataEnabled()).thenReturn(true); in getQCItem_hasBaseUmRestriction_switchDisabled()
131 when(mDataUsageController.isMobileDataEnabled()).thenReturn(true); in getQCItem_hasUmRestriction_switchClickableWhileDisabled()
143 when(mDataUsageController.isMobileDataEnabled()).thenReturn(false); in onNotifyChange_togglesMobileData()
/packages/apps/Settings/src/com/android/settings/spa/network/
DMobileDataSwitchingPreference.kt32 isMobileDataEnabled: () -> Boolean?, in <lambda>()
41 override val checked = { isMobileDataEnabled() } in <lambda>()
DNetworkCellularGroupProvider.kt224 isMobileDataEnabled = { mobileDataStateChanged }, in MobileDataSectionImpl()
/packages/apps/Messaging/src/android/support/v7/mms/
DMmsNetworkManager.java139 if (!isMobileDataEnabled()) { in acquireNetwork()
230 (state == NetworkInfo.State.DISCONNECTED && !isMobileDataEnabled())) { in onMmsConnectivityChange()
371 private boolean isMobileDataEnabled() { in isMobileDataEnabled() method in MmsNetworkManager
/packages/apps/Settings/tests/robotests/src/com/android/settings/network/telephony/
DMobileDataSliceTest.java170 final boolean isMobileDataEnabled = mMobileDataSlice.isMobileDataEnabled(); in isMobileDataEnabled_mobileDataEnabled()
172 assertThat(isMobileDataEnabled).isEqualTo(seed); in isMobileDataEnabled_mobileDataEnabled()
/packages/apps/Settings/src/com/android/settings/network/telephony/
DMobileDataSlice.java103 null /* actionTitle */, isMobileDataEnabled()); in getSlice()
127 isMobileDataEnabled()); in onNotifyChange()
206 boolean isMobileDataEnabled() { in isMobileDataEnabled() method in MobileDataSlice
DMobileDataPreferenceController.java150 : mMobileNetworkInfoEntity.isMobileDataEnabled; in isChecked()
DMobileNetworkUtils.java346 public static boolean isMobileDataEnabled(Context context) { in isMobileDataEnabled() method in MobileNetworkUtils
/packages/apps/Car/Settings/src/com/android/car/settings/qc/
DMobileDataTile.java58 boolean dataEnabled = mDataUsageController.isMobileDataEnabled(); in getQCItem()
95 !mDataUsageController.isMobileDataEnabled()); in onNotifyChange()
DMobileDataRow.java71 boolean dataEnabled = mDataUsageController.isMobileDataEnabled(); in getQCItem()
117 !mDataUsageController.isMobileDataEnabled()); in onNotifyChange()
/packages/apps/Settings/src/com/android/settings/network/
DProviderModelSliceHelper.java95 public boolean isMobileDataEnabled() { in isMobileDataEnabled() method in ProviderModelSliceHelper
192 "mobile_toggle" /* actionTitle */, isMobileDataEnabled()); in createCarrierRow()
259 if (!isMobileDataEnabled()) { in getMobileSummary()
DProviderModelSlice.java210 mHelper.isMobileDataEnabled()); in onNotifyChange()
232 isToggleAction ? newState : MobileNetworkUtils.isMobileDataEnabled(mContext); in onNotifyChange()
DSubscriptionsPreferenceController.java513 if (!MobileNetworkUtils.isMobileDataEnabled(mContext)) { in connectCarrierNetwork()
/packages/apps/Messaging/src/com/android/messaging/util/
DPhoneUtils.java220 public abstract boolean isMobileDataEnabled(); in isMobileDataEnabled() method in PhoneUtils
391 public boolean isMobileDataEnabled() { in isMobileDataEnabled() method in PhoneUtils.PhoneUtilsPreLMR1
613 public boolean isMobileDataEnabled() { in isMobileDataEnabled() method in PhoneUtils.PhoneUtilsLMR1
/packages/apps/Messaging/src/com/android/messaging/datamodel/action/
DBugleActionToasts.java66 } else if (!isSms && !phoneUtils.isMobileDataEnabled()) { in onSendMessageOrManualDownloadActionCompleted()
/packages/modules/Wifi/service/java/com/android/server/wifi/
DWifiCarrierInfoManager.java2154 && isMobileDataEnabled(subId); in isCarrierNetworkOffloadEnabled()
2161 private boolean isMobileDataEnabled(int subId) { in isMobileDataEnabled() method in WifiCarrierInfoManager
/packages/apps/Messaging/src/com/android/messaging/sms/
DMmsUtils.java2030 return !phoneUtils.isAirplaneModeOn() && phoneUtils.isMobileDataEnabled(); in isMmsDataAvailable()