Searched refs:hasMobileData (Results 1 – 12 of 12) sorted by relevance
66 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()
92 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()
105 public static boolean hasMobileData(Context context) { in hasMobileData() method in DataUsageUtils153 if (SubscriptionManager.isValidSubscriptionId(defaultSubId) && hasMobileData(context)) { in getDefaultTemplate()174 if (SubscriptionManager.isValidSubscriptionId(subId) && hasMobileData(context)) { in getMobileNetworkTemplateFromSubId()
50 return DataUsageUtils.hasMobileData(mContext) ? AVAILABLE : CONDITIONALLY_UNAVAILABLE; in getAvailabilityStatus()
100 DataUsageUtils.hasMobileData(context) && in <lambda>()
62 if (DataUsageUtils.hasMobileData(mContext)) { in <lambda>()
532 && DataUsageUtils.hasMobileData(context);
132 protected boolean hasMobileData() { in hasMobileData() method in AutoDataSwitchPreferenceController133 return DataUsageUtils.hasMobileData(mContext); in hasMobileData()141 || (!hasMobileData())) { in getAvailabilityStatus()
57 DataUsageUtils.hasMobileData(mContext) -> AVAILABLE in <lambda>()
19 protected static boolean hasMobileData(Context context) { in hasMobileData() method in ShadowDataUsageUtils
84 protected boolean hasMobileData() { in setUp()
86 ExtendedMockito.doReturn(true).`when` { DataUsageUtils.hasMobileData(context) } in setUp()