/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/subscription/ |
D | SubscriptionDatabaseManagerTest.java | 468 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 …]
|
D | SubscriptionManagerServiceTest.java | 291 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 …]
|
D | SubscriptionInfoInternalTest.java | 267 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/ |
D | SubscriptionManagerService.java | 582 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 …]
|
D | SubscriptionDatabaseManager.java | 699 @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/ |
D | NetworkStatsExt.java | 44 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/ |
D | OperatorNameView.java | 61 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/ |
D | CellularNetworkSecuritySafetySource.java | 217 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()
|
D | CellularIdentifierDisclosureNotifier.java | 146 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/ |
D | MultiSimSettingController.java | 384 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 …]
|
D | SimultaneousCallingTracker.java | 366 SubscriptionInfo subInfo = in generateVoiceCapablePhoneMapBasedOnUserAssociation() local 370 subId > SubscriptionManager.INVALID_SUBSCRIPTION_ID && subInfo != null && in generateVoiceCapablePhoneMapBasedOnUserAssociation() 371 subInfo.getServiceCapabilities() in generateVoiceCapablePhoneMapBasedOnUserAssociation()
|
D | PhoneSubInfoController.java | 219 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/ |
D | DataCallSessionStats.java | 264 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()
|
D | PerSimStatus.java | 204 SubscriptionInfoInternal subInfo = SubscriptionManagerService.getInstance() in getNumberIds() 206 if (subInfo != null) { in getNumberIds() 207 countryIso = subInfo.getCountryIso(); in getNumberIds()
|
D | DataStallRecoveryStats.java | 371 SubscriptionInfoInternal subInfo = SubscriptionManagerService.getInstance() in getIsOpportunistic() local 373 return subInfo != null && subInfo.isOpportunistic(); in getIsOpportunistic()
|
/frameworks/base/services/core/java/com/android/server/vcn/ |
D | TelephonySubscriptionTracker.java | 238 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/ |
D | EuiccController.java | 1281 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/ |
D | GnssNetworkConnectivityHandler.java | 266 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/ |
D | DataSettingsManager.java | 444 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()
|
D | AutoDataSwitchController.java | 1036 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();
|
D | CellularNetworkValidator.java | 249 SubscriptionInfoInternal subInfo = SubscriptionManagerService.getInstance() 251 if (subInfo == null || !subInfo.isActive()) {
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/dialog/ |
D | InternetDialogController.java | 669 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/ |
D | EmergencyAffordanceServiceTest.java | 452 SubscriptionInfo subInfo = new SubscriptionInfo(1, "890126042XXXXXXXXXXX", 0, "T-mobile", in getSubscriptionInfoList() local 455 subInfos.add(subInfo); in getSubscriptionInfoList()
|
/frameworks/base/telephony/java/android/telephony/ |
D | SubscriptionManager.java | 1839 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/ |
D | UiccProfile.java | 557 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()
|