Searched refs:hasMobileData (Results 1 – 14 of 14) sorted by relevance
67 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()
88 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)) {
118 mHasMobileData = DataUsageUtils.hasMobileData(activity) in DataUsageSummaryPreferenceController()144 boolean hasMobileData, in DataUsageSummaryPreferenceController() argument157 mHasMobileData = hasMobileData; in DataUsageSummaryPreferenceController()
95 public static boolean hasMobileData(Context context) { in hasMobileData() method in DataUsageUtils182 if (hasMobileData(context) && defaultSubId != SubscriptionManager.INVALID_SUBSCRIPTION_ID) { in getDefaultTemplate()
141 void setUsageNumbers(long used, long dataPlanSize, boolean hasMobileData) { in setUsageNumbers() argument144 mHasMobileData = hasMobileData; in setUsageNumbers()
217 return DataUsageUtils.hasMobileData(context)
492 return DataUsageUtils.hasMobileData(context);
83 boolean hasMobileData = DataUsageUtils.hasMobileData(context); in onCreate()87 hasMobileData = false; in onCreate()92 if (!hasMobileData || !isAdmin()) { in onCreate()96 if (hasMobileData) { in onCreate()
122 && DataUsageUtils.hasMobileData(activity); in DataUsageSummaryPreferenceController()147 boolean hasMobileData, in DataUsageSummaryPreferenceController() argument160 mHasMobileData = hasMobileData; in DataUsageSummaryPreferenceController()
95 public static boolean hasMobileData(Context context) { in hasMobileData() method in DataUsageUtils191 if (SubscriptionManager.isValidSubscriptionId(defaultSubId) && hasMobileData(context)) { in getDefaultTemplate()
20 protected static boolean hasMobileData(Context context) { in hasMobileData() method in ShadowDataUsageUtils