Home
last modified time | relevance | path

Searched refs:hasMobileData (Results 1 – 12 of 12) sorted by relevance

/packages/apps/Settings/tests/robotests/src/com/android/settings/datausage/
DDataUsageUtilsTest.java66 final boolean hasMobileData = DataUsageUtils.hasMobileData(mContext); in mobileDataStatus_whenNetworkIsSupported()
67 assertThat(hasMobileData).isTrue(); in mobileDataStatus_whenNetworkIsSupported()
73 final boolean hasMobileData = DataUsageUtils.hasMobileData(mContext); in mobileDataStatus_whenNetworkIsNotSupported()
74 assertThat(hasMobileData).isFalse(); in mobileDataStatus_whenNetworkIsNotSupported()
/packages/apps/Settings/src/com/android/settings/datausage/
DDataUsageSummary.java92 boolean hasMobileData = DataUsageUtils.hasMobileData(context); in onCreate()
96 hasMobileData = false; in onCreate()
99 if (!hasMobileData || !UserManager.get(context).isAdminUser()) { in onCreate()
103 if (hasMobileData) { in onCreate()
DDataUsageUtils.java105 public static boolean hasMobileData(Context context) { in hasMobileData() method in DataUsageUtils
153 if (SubscriptionManager.isValidSubscriptionId(defaultSubId) && hasMobileData(context)) { in getDefaultTemplate()
174 if (SubscriptionManager.isValidSubscriptionId(subId) && hasMobileData(context)) { in getMobileNetworkTemplateFromSubId()
DBillingCyclePreferenceController.java50 return DataUsageUtils.hasMobileData(mContext) ? AVAILABLE : CONDITIONALLY_UNAVAILABLE; in getAvailabilityStatus()
DDataSaverSummary.kt100 DataUsageUtils.hasMobileData(context) && in <lambda>()
DDataUsageSummaryPreferenceController.kt62 if (DataUsageUtils.hasMobileData(mContext)) { in <lambda>()
DBillingCycleSettings.java532 && DataUsageUtils.hasMobileData(context);
/packages/apps/Settings/src/com/android/settings/network/telephony/
DAutoDataSwitchPreferenceController.java132 protected boolean hasMobileData() { in hasMobileData() method in AutoDataSwitchPreferenceController
133 return DataUsageUtils.hasMobileData(mContext); in hasMobileData()
141 || (!hasMobileData())) { in getAvailabilityStatus()
DDataUsagePreferenceController.kt57 DataUsageUtils.hasMobileData(mContext) -> AVAILABLE in <lambda>()
/packages/apps/Settings/tests/robotests/src/com/android/settings/testutils/shadow/
DShadowDataUsageUtils.java19 protected static boolean hasMobileData(Context context) { in hasMobileData() method in ShadowDataUsageUtils
/packages/apps/Settings/tests/robotests/src/com/android/settings/network/telephony/
DAutoDataSwitchPreferenceControllerTest.java84 protected boolean hasMobileData() { in setUp()
/packages/apps/Settings/tests/spa_unit/src/com/android/settings/network/telephony/
DDataUsagePreferenceControllerTest.kt86 ExtendedMockito.doReturn(true).`when` { DataUsageUtils.hasMobileData(context) } in setUp()