Home
last modified time | relevance | path

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

/packages/apps/Settings/src/com/android/settings/network/telephony/
DMobileDataPreferenceController.java131 if (isOpportunistic()) { in updateState()
147 private boolean isOpportunistic() { in isOpportunistic() method in MobileDataPreferenceController
149 return info != null && info.isOpportunistic(); in isOpportunistic()
DDefaultSubscriptionController.java172 if (sub.isOpportunistic()) { in updateEntries()
DRenameMobileNetworkDialogFragment.java191 phoneTitle.setVisibility(info.isOpportunistic() ? View.GONE : View.VISIBLE); in populateView()
DMobileNetworkUtils.java332 if (subInfo.getSubscriptionId() != subId && !subInfo.isOpportunistic()) { in setMobileDataEnabled()
/packages/apps/Car/Settings/src/com/android/car/settings/network/
DMobileDataTogglePreferenceController.java131 preference.setEnabled(!isOpportunistic()); in updateState()
166 private boolean isOpportunistic() { in isOpportunistic() method in MobileDataTogglePreferenceController
168 return info != null && info.isOpportunistic(); in isOpportunistic()
DNetworkUtils.java75 if (subInfo.getSubscriptionId() != subId && !subInfo.isOpportunistic()) { in setMobileDataEnabled()
/packages/apps/Settings/tests/unit/src/com/android/settings/network/telephony/
DMobileDataPreferenceControllerTest.java168 doReturn(true).when(mSubscriptionInfo).isOpportunistic(); in updateState_opportunistic_disabled()
181 doReturn(false).when(mSubscriptionInfo).isOpportunistic(); in updateState_notOpportunistic_enabled()
DDefaultSubscriptionControllerTest.java188 when(sub2.isOpportunistic()).thenReturn(true); in displayPreference_threeSubsOneIsOpportunistic_correctListPreferenceValues()
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/network/
DMobileDataTogglePreferenceControllerTest.java347 private SubscriptionInfo createSubscriptionInfo(int subId, boolean isOpportunistic) { in createSubscriptionInfo() argument
353 /* accessRules= */ null, /* cardString= */ "", isOpportunistic, in createSubscriptionInfo()
/packages/apps/Settings/src/com/android/settings/network/
DSubscriptionUtil.java159 if (!subInfo.isOpportunistic()) { in isPrimarySubscriptionWithinSameUuid()
493 if (info.getGroupUuid() == null || !info.isOpportunistic()) return true;
/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/
DAnalyticsTests.java477 when(subInfo1.isOpportunistic()).thenReturn(false);
478 when(subInfo2.isOpportunistic()).thenReturn(true);
/packages/services/AlternativeNetworkAccess/src/com/android/ons/
DONSProfileSelector.java459 if (!subscriptionInfo.isOpportunistic() && subscriptionInfo.isEmbedded()) { in isPrimaryActiveOnOpportunisticSlot()
638 if (subscriptionInfo.isOpportunistic()) { in getActiveOpportunisticSubId()
/packages/apps/Settings/tests/robotests/src/com/android/settings/network/telephony/
DRenameMobileNetworkDialogFragmentTest.java169 when(mSubscriptionInfo.isOpportunistic()).thenReturn(true); in populateView_infoIsOpportunistic_hideNumberLabel()
/packages/services/Telephony/src/com/android/services/telephony/
DTelecomAccountRegistry.java559 && controller.isOpportunistic(activeDataSubId); in isEmergencyPreferredAccount()
1517 if (info == null || info.isOpportunistic()) { in setupAccounts()
DTelephonyConnectionService.java804 || SubscriptionController.getInstance().isOpportunistic( in onCreateOutgoingConnection()
/packages/services/Telephony/src/com/android/phone/settings/
DPhoneAccountSettingsFragment.java478 .filter(subInfo -> !subInfo.isOpportunistic()) in getLaunchSmartForwardingMenuIntent()
/packages/services/Mms/src/com/android/mms/service/
DMmsService.java344 .sorted(Comparator.comparing(SubscriptionInfo::isOpportunistic))
/packages/services/Telecomm/src/com/android/server/telecom/
DAnalytics.java707 + (subInfo.isOpportunistic() ? 0 : scoreNotOpportunistic) in scoreSubscriptionInfo()