Home
last modified time | relevance | path

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

/frameworks/base/services/core/java/com/android/server/stats/pull/netstats/
DSubInfo.java37 public final boolean isOpportunistic; field in SubInfo
40 @NonNull String subscriberId, boolean isOpportunistic) { in SubInfo() argument
46 this.isOpportunistic = isOpportunistic; in SubInfo()
56 && isOpportunistic == other.isOpportunistic in equals()
64 return Objects.hash(subId, mcc, mnc, carrierId, subscriberId, isOpportunistic); in hashCode()
/frameworks/base/telephony/java/android/telephony/
DSubscriptionInfo.java254 boolean isOpportunistic, @Nullable String groupUUID, int carrierId, int profileClass) { in SubscriptionInfo() argument
257 isOpportunistic, groupUUID, false, carrierId, profileClass, in SubscriptionInfo()
268 boolean isOpportunistic, @Nullable String groupUUID, boolean isGroupDisabled, in SubscriptionInfo() argument
289 this.mIsOpportunistic = isOpportunistic; in SubscriptionInfo()
551 public boolean isOpportunistic() { in isOpportunistic() method in SubscriptionInfo
772 boolean isOpportunistic = source.readBoolean();
787 countryIso, isEmbedded, nativeAccessRules, cardString, cardId, isOpportunistic,
DSubscriptionManager.java3060 if (info.getGroupUuid() == null || !info.isOpportunistic()) return true; in isSubscriptionVisible()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DMultiSimSettingController.java297 if (mSubController.getDefaultDataSubId() != subId && !mSubController.isOpportunistic(subId) in onUserDataEnabled()
437 if (mSubController.isActiveSubId(subId) && !mSubController.isOpportunistic(subId)) { in onSubscriptionGroupChanged()
552 mPrimarySubList = activeSubList.stream().filter(info -> !info.isOpportunistic()) in updatePrimarySubListAndGetChangeType()
584 if (!mSubController.isOpportunistic(subId)) { in updatePrimarySubListAndGetChangeType()
698 && !mSubController.isOpportunistic(phone.getSubId()) in disableDataForNonDefaultNonOpportunisticSubscriptions()
DSubscriptionInfoUpdater.java1067 boolean isOpportunistic = config.getBoolean( in updateSubscriptionByCarrierConfig()
1069 if (currentSubInfo.isOpportunistic() != isOpportunistic) { in updateSubscriptionByCarrierConfig()
1070 if (DBG) logd("Set SubId=" + currentSubId + " isOpportunistic=" + isOpportunistic); in updateSubscriptionByCarrierConfig()
1071 cv.put(SubscriptionManager.IS_OPPORTUNISTIC, isOpportunistic ? "1" : "0"); in updateSubscriptionByCarrierConfig()
DSubscriptionController.java555 boolean isOpportunistic = cursor.getInt(cursor.getColumnIndexOrThrow( in getSubInfoRecord()
579 + " isOpportunistic:" + isOpportunistic + " groupUUID:" + groupUUID in getSubInfoRecord()
592 countryIso, isEmbedded, accessRules, cardId, publicCardId, isOpportunistic, in getSubInfoRecord()
2673 public boolean isOpportunistic(int subId) { in isOpportunistic() method in SubscriptionController
2676 return (info != null) && info.isOpportunistic(); in isOpportunistic()
4120 if (!activeInfo.isOpportunistic() && groupUuid.equals(activeInfo.getGroupUuid())) { in shouldDisableSubGroup()
DPhoneSwitcher.java1278 if (mSubscriptionController.isOpportunistic(subId)) { in confirmSwitch()
DServiceStateTracker.java4212 if (info == null || (info.isOpportunistic() && info.getGroupUuid() != null)) { in setNotification()
5064 if (info.isOpportunistic()) { in shouldRefreshSignalStrength()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DPhoneSwitcherTest.java386 doReturn(true).when(mSubscriptionController).isOpportunistic(2); in testSetPreferredData()
449 doReturn(true).when(mSubscriptionController).isOpportunistic(2); in testSetPreferredDataModemCommand()
490 doReturn(true).when(mSubscriptionController).isOpportunistic(2); in testSetPreferredDataWithValidation()
803 doReturn(true).when(mSubscriptionController).isOpportunistic(2); in testSetPreferredDataCallback()
945 doReturn(true).when(mSubscriptionController).isOpportunistic(2); in testValidationOffSwitch_shouldSwitchOnNetworkAvailable()
981 doReturn(true).when(mSubscriptionController).isOpportunistic(2); in testValidationOffSwitch_shouldSwitchOnTimeOut()
DMultiSimSettingControllerTest.java122 doReturn(true).when(mSubControllerMock).isOpportunistic(5); in setUp()
430 doReturn(true).when(mSubControllerMock).isOpportunistic(1); in testCbrs()
469 doReturn(true).when(mSubControllerMock).isOpportunistic(1); in testGroupedCbrs()
620 doReturn(true).when(mSubControllerMock).isOpportunistic(3); in testGroupChangeOnInactiveSub_shouldNotMarkAsDefaultDataSub()
DSubscriptionInfoUpdaterTest.java704 boolean isOpportunistic, String groupUuid) { in getCarrierConfigForSubInfoUpdate() argument
706 p.putBoolean(CarrierConfigManager.KEY_IS_OPPORTUNISTIC_SUBSCRIPTION_BOOL, isOpportunistic); in getCarrierConfigForSubInfoUpdate()
743 doReturn(false).when(mSubInfo).isOpportunistic(); in testUpdateFromCarrierConfigOpportunisticSetOpportunistic()
853 doReturn(false).when(mSubInfo).isOpportunistic(); in testUpdateFromCarrierConfigCarrierCertificates()
DSubscriptionControllerTest.java183 boolean isOpportunistic = true; in testChangeSIMProperty()
201 mSubscriptionControllerUT.setOpportunistic(isOpportunistic, subID, mCallingPackage); in testChangeSIMProperty()
211 assertEquals(isOpportunistic, subInfo.isOpportunistic()); in testChangeSIMProperty()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DNetworkControllerImpl.java642 if (!info1.isOpportunistic() && !info2.isOpportunistic()) return; in filterMobileSubscriptionInSameGroup()
650 subscriptions.remove(info1.isOpportunistic() ? info1 : info2); in filterMobileSubscriptionInSameGroup()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/
DDataEnabledSettings.java459 return (info != null) && info.isOpportunistic() && info.getGroupUuid() == null; in isStandAloneOpportunistic()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/metrics/
DTelephonyMetrics.java807 activeSubscriptionInfo.isOpportunistic = info.isOpportunistic() ? 1 : 0; in updateActiveSubscriptionInfoList()
840 invalidSubscriptionInfo.isOpportunistic = -1; in makeInvalidSubscriptionInfo()
/frameworks/base/packages/SystemUI/src/com/android/keyguard/
DKeyguardUpdateMonitor.java493 if (!info1.isOpportunistic() && !info2.isOpportunistic()) return subscriptions; in getFilteredSubscriptionInfo()
501 subscriptions.remove(info1.isOpportunistic() ? info1 : info2); in getFilteredSubscriptionInfo()
/frameworks/base/core/java/android/os/
DRecoverySystem.java968 if (sub.isEmbedded() && sub.getGroupUuid() != null && sub.isOpportunistic()) { in removeEuiccInvisibleSubs()
/frameworks/base/services/core/java/com/android/server/stats/pull/
DStatsPullAtomService.java1174 .writeInt(statsExt.subInfo.isOpportunistic in addDataUsageBytesTransferAtoms()
3924 subscriberId, sub.isOpportunistic());
/frameworks/base/config/
Dboot-image-profile.txt18928 HSPLandroid/telephony/SubscriptionInfo;->isOpportunistic()Z
/frameworks/base/api/
Dcurrent.txt47995 method public boolean isOpportunistic();