Home
last modified time | relevance | path

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

/packages/apps/Settings/tests/robotests/src/com/android/settings/datausage/
DDataUsageUtilsTest.java67 boolean hasMobileData = DataUsageUtils.hasMobileData(mContext); in mobileDataStatus_whenNetworkIsSupported()
68 assertThat(hasMobileData).isTrue(); in mobileDataStatus_whenNetworkIsSupported()
74 boolean hasMobileData = DataUsageUtils.hasMobileData(mContext); in mobileDataStatus_whenNetworkIsNotSupported()
75 assertThat(hasMobileData).isFalse(); in mobileDataStatus_whenNetworkIsNotSupported()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/datausage/
DDataUsageSummary.java88 boolean hasMobileData = DataUsageUtils.hasMobileData(context); in onCreate()
92 hasMobileData = false; in onCreate()
97 if (!hasMobileData || !isAdmin()) { in onCreate()
101 if (hasMobileData) { in onCreate()
367 if (!DataUsageUtils.hasMobileData(context)) {
DDataUsageSummaryPreferenceController.java118 mHasMobileData = DataUsageUtils.hasMobileData(activity) in DataUsageSummaryPreferenceController()
144 boolean hasMobileData, in DataUsageSummaryPreferenceController() argument
157 mHasMobileData = hasMobileData; in DataUsageSummaryPreferenceController()
DDataUsageUtils.java95 public static boolean hasMobileData(Context context) { in hasMobileData() method in DataUsageUtils
182 if (hasMobileData(context) && defaultSubId != SubscriptionManager.INVALID_SUBSCRIPTION_ID) { in getDefaultTemplate()
DDataUsageSummaryPreference.java141 void setUsageNumbers(long used, long dataPlanSize, boolean hasMobileData) { in setUsageNumbers() argument
144 mHasMobileData = hasMobileData; in setUsageNumbers()
DDataSaverSummary.java217 return DataUsageUtils.hasMobileData(context)
DBillingCycleSettings.java492 return DataUsageUtils.hasMobileData(context);
/packages/apps/Settings/src/com/android/settings/datausage/
DDataUsageSummary.java83 boolean hasMobileData = DataUsageUtils.hasMobileData(context); in onCreate()
87 hasMobileData = false; in onCreate()
92 if (!hasMobileData || !isAdmin()) { in onCreate()
96 if (hasMobileData) { in onCreate()
DDataUsageSummaryPreferenceController.java122 && DataUsageUtils.hasMobileData(activity); in DataUsageSummaryPreferenceController()
147 boolean hasMobileData, in DataUsageSummaryPreferenceController() argument
160 mHasMobileData = hasMobileData; in DataUsageSummaryPreferenceController()
DDataUsageUtils.java95 public static boolean hasMobileData(Context context) { in hasMobileData() method in DataUsageUtils
191 if (SubscriptionManager.isValidSubscriptionId(defaultSubId) && hasMobileData(context)) { in getDefaultTemplate()
DDataUsageSummaryPreference.java141 void setUsageNumbers(long used, long dataPlanSize, boolean hasMobileData) { in setUsageNumbers() argument
144 mHasMobileData = hasMobileData; in setUsageNumbers()
DDataSaverSummary.java217 return DataUsageUtils.hasMobileData(context)
DBillingCycleSettings.java492 return DataUsageUtils.hasMobileData(context);
/packages/apps/Settings/tests/robotests/src/com/android/settings/testutils/shadow/
DShadowDataUsageUtils.java20 protected static boolean hasMobileData(Context context) { in hasMobileData() method in ShadowDataUsageUtils