Home
last modified time | relevance | path

Searched refs:subInfo (Results 1 – 25 of 48) sorted by relevance

12

/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/subscription/
DSubscriptionDatabaseManagerTest.java468 private void verifySubscription(@NonNull SubscriptionInfoInternal subInfo) throws Exception { in verifySubscription() argument
469 int subId = subInfo.getSubscriptionId(); in verifySubscription()
472 .that(mDatabaseManagerUT.getSubscriptionInfoInternal(subId)).isEqualTo(subInfo); in verifySubscription()
480 .that(mDatabaseManagerUT.getSubscriptionInfoInternal(subId)).isEqualTo(subInfo); in verifySubscription()
490 @NonNull SubscriptionInfoInternal subInfo) throws Exception { in insertSubscriptionAndVerify()
492 new SubscriptionInfoInternal.Builder(subInfo) in insertSubscriptionAndVerify()
497 subInfo = new SubscriptionInfoInternal.Builder(subInfo).setId(subId).build(); in insertSubscriptionAndVerify()
498 verifySubscription(subInfo); in insertSubscriptionAndVerify()
499 return subInfo; in insertSubscriptionAndVerify()
532 SubscriptionInfoInternal subInfo = new SubscriptionInfoInternal in testUpdateSubscription() local
[all …]
DSubscriptionManagerServiceTest.java291 private int insertSubscription(@NonNull SubscriptionInfoInternal subInfo) { in insertSubscription() argument
293 subInfo = new SubscriptionInfoInternal.Builder(subInfo) in insertSubscription()
295 int subId = getSubscriptionDatabaseManager().insertSubscriptionInfo(subInfo); in insertSubscription()
305 if (subInfo.getSimSlotIndex() >= 0) { in insertSubscription()
307 map.put(subInfo.getSimSlotIndex(), subId); in insertSubscription()
313 if (subInfo.getSimSlotIndex() >= 0) { in insertSubscription()
320 Array.set(array, subInfo.getSimSlotIndex(), TelephonyManager.SIM_STATE_LOADED); in insertSubscription()
354 SubscriptionInfoInternal subInfo = mSubscriptionManagerServiceUT in testAddSubInfo() local
356 assertThat(subInfo.getIccId()).isEqualTo(FAKE_ICCID1); in testAddSubInfo()
357 assertThat(subInfo.getDisplayName()).isEqualTo(FAKE_CARRIER_NAME1); in testAddSubInfo()
[all …]
DSubscriptionInfoInternalTest.java267 SubscriptionInfo subInfo = mSubInfo.toSubscriptionInfo(); in testConvertToSubscriptionInfo() local
269 assertThat(subInfo.getSubscriptionId()).isEqualTo(1); in testConvertToSubscriptionInfo()
270 assertThat(subInfo.getIccId()).isEqualTo(SubscriptionDatabaseManagerTest.FAKE_ICCID1); in testConvertToSubscriptionInfo()
271 assertThat(subInfo.getSimSlotIndex()).isEqualTo(0); in testConvertToSubscriptionInfo()
272 assertThat(subInfo.getDisplayName()).isEqualTo( in testConvertToSubscriptionInfo()
274 assertThat(subInfo.getCarrierName()).isEqualTo( in testConvertToSubscriptionInfo()
276 assertThat(subInfo.getDisplayNameSource()).isEqualTo( in testConvertToSubscriptionInfo()
278 assertThat(subInfo.getIconTint()).isEqualTo(SubscriptionDatabaseManagerTest.FAKE_COLOR1); in testConvertToSubscriptionInfo()
279 assertThat(subInfo.getNumber()).isEqualTo( in testConvertToSubscriptionInfo()
281 assertThat(subInfo.getDataRoaming()).isEqualTo(SubscriptionManager.DATA_ROAMING_ENABLE); in testConvertToSubscriptionInfo()
[all …]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/subscription/
DSubscriptionManagerService.java582 SubscriptionInfoInternal subInfo = in SubscriptionManagerService()
584 if (subInfo != null && subInfo.isOpportunistic() in SubscriptionManagerService()
659 .filter(subInfo -> subInfo.getGroupUuid().equals(groupUuid.toString())) in canPackageManageGroup()
693 SubscriptionInfoInternal subInfo = mSubscriptionDatabaseManager in checkCarrierPrivilegeOnSubList() local
695 if (subInfo == null) { in checkCarrierPrivilegeOnSubList()
700 if (subInfo.isActive()) { in checkCarrierPrivilegeOnSubList()
707 if (!mSubscriptionManager.canManageSubscription(subInfo.toSubscriptionInfo(), in checkCarrierPrivilegeOnSubList()
802 private SubscriptionInfo conditionallyRemoveIdentifiers(@NonNull SubscriptionInfo subInfo, in conditionallyRemoveIdentifiers() argument
805 int subId = subInfo.getSubscriptionId(); in conditionallyRemoveIdentifiers()
812 return subInfo; in conditionallyRemoveIdentifiers()
[all …]
DSubscriptionDatabaseManager.java699 @NonNull SubscriptionInfoInternal subInfo, @NonNull String columnName) { in getSubscriptionInfoFieldByColumnName()
701 return SUBSCRIPTION_GET_METHOD_MAP.get(columnName).apply(subInfo); in getSubscriptionInfoFieldByColumnName()
720 SubscriptionInfoInternal subInfo = getSubscriptionInfoInternal(subId); in getSubscriptionProperty() local
721 if (subInfo == null) { in getSubscriptionProperty()
726 return getSubscriptionInfoFieldByColumnName(subInfo, columnName); in getSubscriptionProperty()
851 public int insertSubscriptionInfo(@NonNull SubscriptionInfoInternal subInfo) { in insertSubscriptionInfo() argument
852 Objects.requireNonNull(subInfo); in insertSubscriptionInfo()
854 if (SubscriptionManager.isValidSubscriptionId(subInfo.getSubscriptionId())) { in insertSubscriptionInfo()
856 + "insert. subInfo=" + subInfo); in insertSubscriptionInfo()
874 subId = insertNewRecordIntoDatabaseSync(createDeltaContentValues(null, subInfo)); in insertSubscriptionInfo()
[all …]
/frameworks/base/services/core/java/com/android/server/stats/pull/netstats/
DNetworkStatsExt.java44 public final SubInfo subInfo; field in NetworkStatsExt
55 @Nullable SubInfo subInfo, int oemManaged, boolean isTypeProxy) { in NetworkStatsExt() argument
66 this.subInfo = subInfo; in NetworkStatsExt()
77 && ratType == other.ratType && Objects.equals(subInfo, other.subInfo) in hasSameSlicing()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
DOperatorNameView.java61 void updateText(OperatorNameViewController.SubInfo subInfo) { in updateText() argument
64 if (subInfo != null) { in updateText()
65 carrierName = subInfo.getCarrierName(); in updateText()
67 if (!TextUtils.isEmpty(carrierName) && subInfo.simReady()) { in updateText()
68 if (subInfo.stateInService()) { in updateText()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/security/
DCellularNetworkSecuritySafetySource.java217 SubscriptionInfoInternal subInfo = in getNullCipherIssue() local
231 subInfo.getDisplayName()), in getNullCipherIssue()
239 subInfo.getDisplayName())) in getNullCipherIssue()
247 subInfo.getDisplayName()), in getNullCipherIssue()
250 subInfo.getDisplayName()), in getNullCipherIssue()
257 subInfo.getDisplayName()), in getNullCipherIssue()
260 subInfo.getDisplayName())) in getNullCipherIssue()
301 SubscriptionInfoInternal subInfo = in getIdentifierDisclosureIssue() local
311 subInfo.getDisplayName())).build(); in getIdentifierDisclosureIssue()
319 subInfo.getDisplayName()), in getIdentifierDisclosureIssue()
DCellularIdentifierDisclosureNotifier.java146 SubscriptionInfoInternal subInfo = in runLogDisclosure()
150 if (subInfo != null) { in runLogDisclosure()
151 mcc = subInfo.getMcc(); in runLogDisclosure()
152 mnc = subInfo.getMnc(); in runLogDisclosure()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DMultiSimSettingController.java384 SubscriptionInfo subInfo = mSubscriptionManagerService.getSubscriptionInfo(subId); in onUserDataEnabled() local
388 if (defaultDataSubId != subId && subInfo != null && !subInfo.isOpportunistic() && enable in onUserDataEnabled()
389 && subInfo.isActive() && setDefaultData) { in onUserDataEnabled()
751 SubscriptionInfo subInfo = mSubscriptionManagerService.getSubscriptionInfo(subId); in updatePrimarySubListAndGetChangeType() local
753 if (subInfo == null || !subInfo.isActive()) { in updatePrimarySubListAndGetChangeType()
761 if (!subInfo.isOpportunistic()) { in updatePrimarySubListAndGetChangeType()
984 SubscriptionInfoInternal subInfo = mSubscriptionManagerService in getSimCombinationWarningParams() local
986 if (subInfo != null) { in getSimCombinationWarningParams()
987 simName = subInfo.getDisplayName(); in getSimCombinationWarningParams()
1016 SubscriptionInfoInternal subInfo = mSubscriptionManagerService in disableDataForNonDefaultNonOpportunisticSubscriptions() local
[all …]
DSimultaneousCallingTracker.java366 SubscriptionInfo subInfo = in generateVoiceCapablePhoneMapBasedOnUserAssociation() local
370 subId > SubscriptionManager.INVALID_SUBSCRIPTION_ID && subInfo != null && in generateVoiceCapablePhoneMapBasedOnUserAssociation()
371 subInfo.getServiceCapabilities() in generateVoiceCapablePhoneMapBasedOnUserAssociation()
DPhoneSubInfoController.java219 SubscriptionInfoInternal subInfo = SubscriptionManagerService.getInstance()
221 if (subInfo != null && !TextUtils.isEmpty(subInfo.getImsi())) {
222 return subInfo.getImsi();
/frameworks/opt/telephony/src/java/com/android/internal/telephony/metrics/
DDataCallSessionStats.java264 SubscriptionInfo subInfo = SubscriptionManagerService.getInstance() in endDataCallSession() local
269 && subInfo != null && !subInfo.isOpportunistic()) { in endDataCallSession()
355 SubscriptionInfoInternal subInfo = SubscriptionManagerService.getInstance() in getIsOpportunistic() local
357 return subInfo != null && subInfo.isOpportunistic(); in getIsOpportunistic()
361 SubscriptionInfoInternal subInfo = SubscriptionManagerService.getInstance() in getIsProvisioningProfile() local
364 return subInfo.getProfileClass() == SubscriptionManager.PROFILE_CLASS_PROVISIONING; in getIsProvisioningProfile()
DPerSimStatus.java204 SubscriptionInfoInternal subInfo = SubscriptionManagerService.getInstance() in getNumberIds()
206 if (subInfo != null) { in getNumberIds()
207 countryIso = subInfo.getCountryIso(); in getNumberIds()
DDataStallRecoveryStats.java371 SubscriptionInfoInternal subInfo = SubscriptionManagerService.getInstance() in getIsOpportunistic() local
373 return subInfo != null && subInfo.isOpportunistic(); in getIsOpportunistic()
/frameworks/base/services/core/java/com/android/server/vcn/
DTelephonySubscriptionTracker.java238 for (SubscriptionInfo subInfo : allSubs) { in handleSubscriptionsChanged()
239 if (subInfo.getGroupUuid() == null) { in handleSubscriptionsChanged()
244 newSubIdToInfoMap.put(subInfo.getSubscriptionId(), subInfo); in handleSubscriptionsChanged() local
253 if (subInfo.getSimSlotIndex() != INVALID_SIM_SLOT_INDEX in handleSubscriptionsChanged()
254 && mReadySubIdsBySlotId.values().contains(subInfo.getSubscriptionId())) { in handleSubscriptionsChanged()
256 mTelephonyManager.createForSubscriptionId(subInfo.getSubscriptionId()); in handleSubscriptionsChanged()
258 final ParcelUuid subGroup = subInfo.getGroupUuid(); in handleSubscriptionsChanged()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/euicc/
DEuiccController.java1281 for (SubscriptionInfo subInfo : subInfoList) { in getResolvedPortIndexForDisableSubscription()
1286 if ((cardId == TelephonyManager.UNSUPPORTED_CARD_ID || subInfo.getCardId() == cardId) in getResolvedPortIndexForDisableSubscription()
1287 && subInfo.isEmbedded() in getResolvedPortIndexForDisableSubscription()
1289 || mSubscriptionManager.canManageSubscription(subInfo, callingPackage))) { in getResolvedPortIndexForDisableSubscription()
1290 return subInfo.getPortIndex(); in getResolvedPortIndexForDisableSubscription()
2059 for (SubscriptionInfo subInfo : subInfoList) { in canManageActiveSubscriptionOnTargetSim()
2064 if ((cardId == TelephonyManager.UNSUPPORTED_CARD_ID || subInfo.getCardId() == cardId) in canManageActiveSubscriptionOnTargetSim()
2065 && subInfo.isEmbedded() in canManageActiveSubscriptionOnTargetSim()
2066 && (!usePortIndex || subInfo.getPortIndex() == targetPortIndex) in canManageActiveSubscriptionOnTargetSim()
2067 && mSubscriptionManager.canManageSubscription(subInfo, callingPackage)) { in canManageActiveSubscriptionOnTargetSim()
[all …]
/frameworks/base/services/core/java/com/android/server/location/gnss/
DGnssNetworkConnectivityHandler.java266 for (SubscriptionInfo subInfo : subscriptionInfoList) {
267 activeSubIds.add(subInfo.getSubscriptionId());
268 if (!mPhoneStateListeners.containsKey(subInfo.getSubscriptionId())) {
270 telManager.createForSubscriptionId(subInfo.getSubscriptionId());
272 if (DEBUG) Log.d(TAG, "Listener sub" + subInfo.getSubscriptionId());
274 new SubIdPhoneStateListener(subInfo.getSubscriptionId());
275 mPhoneStateListeners.put(subInfo.getSubscriptionId(),
/frameworks/opt/telephony/src/java/com/android/internal/telephony/data/
DDataSettingsManager.java444 SubscriptionInfoInternal subInfo = SubscriptionManagerService.getInstance() in isStandAloneOpportunistic() local
446 return subInfo != null && subInfo.isOpportunistic() in isStandAloneOpportunistic()
447 && TextUtils.isEmpty(subInfo.getGroupUuid()); in isStandAloneOpportunistic()
630 SubscriptionInfoInternal subInfo = SubscriptionManagerService.getInstance() in refreshEnabledMobileDataPolicy() local
632 if (subInfo != null) { in refreshEnabledMobileDataPolicy()
634 subInfo.getEnabledMobileDataPolicies()); in refreshEnabledMobileDataPolicy()
DAutoDataSwitchController.java1036 SubscriptionInfoInternal subInfo = mSubscriptionManagerService
1038 return subInfo != null && subInfo.isActive();
1101 SubscriptionInfo subInfo = mSubscriptionManagerService
1103 if (subInfo == null || subInfo.isOpportunistic()) {
1105 + phoneId + " unexpected subInfo " + subInfo);
1108 int subId = subInfo.getSubscriptionId();
1120 CharSequence activeCarrierName = subInfo.getDisplayName();
DCellularNetworkValidator.java249 SubscriptionInfoInternal subInfo = SubscriptionManagerService.getInstance()
251 if (subInfo == null || !subInfo.isActive()) {
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/dialog/
DInternetDialogController.java669 SubscriptionInfo subInfo = mSubscriptionManager.getActiveSubscriptionInfo(
671 if (subInfo != null && subInfo.getSubscriptionId() != mDefaultDataSubId
672 && !subInfo.isOpportunistic()) {
673 int subId = subInfo.getSubscriptionId();
914 private static boolean isEmbeddedSubscriptionVisible(@NonNull SubscriptionInfo subInfo) {
915 if (subInfo.isEmbedded() && subInfo.getProfileClass() == PROFILE_CLASS_PROVISIONING) {
984 for (SubscriptionInfo subInfo : subInfoList) {
986 if (subInfo.getSubscriptionId() != subId && !subInfo.isOpportunistic()) {
988 subInfo.getSubscriptionId()).setDataEnabled(false);
/frameworks/base/services/tests/servicestests/src/com/android/server/emergency/
DEmergencyAffordanceServiceTest.java452 SubscriptionInfo subInfo = new SubscriptionInfo(1, "890126042XXXXXXXXXXX", 0, "T-mobile", in getSubscriptionInfoList() local
455 subInfos.add(subInfo); in getSubscriptionInfoList()
/frameworks/base/telephony/java/android/telephony/
DSubscriptionManager.java1839 SubscriptionInfo subInfo = null; in getActiveSubscriptionInfo() local
1844 subInfo = iSub.getActiveSubscriptionInfo(subId, mContext.getOpPackageName(), in getActiveSubscriptionInfo()
1851 return subInfo; in getActiveSubscriptionInfo()
2006 activeList = activeList.stream().filter(subInfo -> isSubscriptionVisible(subInfo)) in getActiveSubscriptionInfoList()
2083 return activeList.stream().filter(subInfo -> isSubscriptionVisible(subInfo)) in getActiveSubscriptionInfoList()
3127 final SubscriptionInfo subInfo = in getResourcesForSubId() local
3131 if (subInfo != null) { in getResourcesForSubId()
3132 overrideConfig.mcc = subInfo.getMcc(); in getResourcesForSubId()
3133 overrideConfig.mnc = subInfo.getMnc(); in getResourcesForSubId()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/uicc/
DUiccProfile.java557 SubscriptionInfo subInfo = SubscriptionManagerService.getInstance() in updateCarrierNameForSubscription() local
561 if (subInfo == null) { in updateCarrierNameForSubscription()
565 CharSequence oldSubName = subInfo.getDisplayName(); in updateCarrierNameForSubscription()
1739 SubscriptionInfoInternal subInfo = SubscriptionManagerService.getInstance() in setOperatorBrandOverride() local
1741 if (subInfo == null) { in setOperatorBrandOverride()
1747 subInfos.add(subInfo.toSubscriptionInfo()); in setOperatorBrandOverride()
1748 String groupUuid = subInfo.getGroupUuid(); in setOperatorBrandOverride()

12