/frameworks/opt/telephony/src/java/com/android/internal/telephony/ |
D | DefaultPhoneNotifier.java | 69 int subId = sender.getSubId(); in notifyPhoneState() 83 int subId = sender.getSubId(); in notifyServiceState() 97 int subId = sender.getSubId(); in notifySignalStrength() 110 int subId = sender.getSubId(); in notifyMessageWaitingChanged() 117 int subId = sender.getSubId(); in notifyCallForwardingChanged() 127 int subId = sender.getSubId(); in notifyDataActivity() 138 int subId = sender.getSubId(); in notifyDataConnection() 147 int subId = sender.getSubId(); in notifyCellLocation() 153 int subId = sender.getSubId(); in notifyCellInfo() 162 mTelephonyRegistryMgr.notifyPreciseCallState(sender.getSubId(), sender.getPhoneId(), in notifyPreciseCallState() [all …]
|
D | CarrierServiceStateTracker.java | 82 int subId = mPhone.getSubId(); in CarrierServiceStateTracker() 110 int subId = mPhone.getSubId(); in registerPrefNetworkModeObserver() 203 + mPhone.getSubId(), Phone.PREFERRED_NT_MODE); in isGlobalMode() 281 PersistableBundle b = carrierConfigManager.getConfigForSubId(mPhone.getSubId()); 405 return mPhone.getSubId(); in getNotificationId() 435 Resources res = SubscriptionManager.getResourcesForSubId(context, mPhone.getSubId()); in getNotificationBuilder() 484 return mPhone.getSubId(); in getNotificationId() 509 Resources res = SubscriptionManager.getResourcesForSubId(context, mPhone.getSubId()); in getNotificationBuilder()
|
D | SmsPermissions.java | 103 mContext, mPhone.getSubId(), message); in enforceCallerIsImsAppOrCarrierApp() 148 mContext, mPhone.getSubId(), message); in checkCallingOrSelfCanGetSmscAddress() 167 mContext, mPhone.getSubId(), message); in checkCallingOrSelfCanSetSmscAddress()
|
D | CarrierSmsUtils.java | 85 PersistableBundle config = cm.getConfigForSubId(phone.getSubId()); in getCarrierImsPackage() 87 if (VDBG) Rlog.v(TAG, "No CarrierConfig for subId:" + phone.getSubId()); in getCarrierImsPackage()
|
D | CallManager.java | 215 if (phone.getSubId() == subId && in getPhone() 255 if (phone.getSubId() == subId) { in getState() 308 if (phone.getSubId() == subId) { in getServiceState() 731 int subId = heldCall.getPhone().getSubId(); in conference() 770 int subId = phone.getSubId(); in dial() 863 if (phone.getSubId() == subId) { in clearDisconnected() 881 int subId = phone.getSubId(); in canDial() 1773 if ((call.getPhone().getSubId() == subId) || in getFirstNonIdleCall() 1986 if ((!call.isIdle()) && ((call.getPhone().getSubId() == subId) || in getFirstActiveCall() 2013 ((call.getPhone().getSubId() == subId) || in getFirstCallOfState() [all …]
|
D | CarrierResolver.java | 346 + mPhone.getSubId()), /* projection */ new String[]{Telephony.Carriers.APN}, in getPreferApn() 373 "preferapn/subId/" + mPhone.getSubId()), in isPreferApnUserEdited() argument 420 intent.putExtra(TelephonyManager.EXTRA_SUBSCRIPTION_ID, mPhone.getSubId()); in updateCarrierIdAndName() 428 Telephony.CarrierId.getSpecificCarrierIdUriForSubscriptionId(mPhone.getSubId()), in updateCarrierIdAndName() 455 intent.putExtra(TelephonyManager.EXTRA_SUBSCRIPTION_ID, mPhone.getSubId()); in updateCarrierIdAndName() 463 Telephony.CarrierId.getUriForSubscriptionId(mPhone.getSubId()), cv, null, null); in updateCarrierIdAndName() 468 if (SubscriptionManager.isValidSubscriptionId(mPhone.getSubId())) { in updateCarrierIdAndName() 470 SubscriptionController.getInstance().setCarrierId(mCarrierId, mPhone.getSubId()); in updateCarrierIdAndName() 724 accessRules = mTelephonyMgr.createForSubscriptionId(mPhone.getSubId()) in getSubscriptionMatchingRule() 750 if (!SubscriptionManager.isValidSubscriptionId(mPhone.getSubId())) { in matchSubscriptionCarrier()
|
D | Phone.java | 628 PersistableBundle b = configManager.getConfigForSubId(getSubId()); in supportsConversionOfCdmaCallerIdMmiCodesWhileRoaming() 650 PersistableBundle b = configManager.getConfigForSubId(getSubId()); in isClirActivationAndDeactivationPrevented() 977 PersistableBundle b = configManager.getConfigForSubId(getSubId()); in isInEmergencySmsMode() 1455 int subId = getSubId(); in updateSavedNetworkOperator() 1502 String numeric = sp.getString(NETWORK_SELECTION_KEY + getSubId(), ""); in getSavedNetworkSelection() 1503 String name = sp.getString(NETWORK_SELECTION_NAME_KEY + getSubId(), ""); in getSavedNetworkSelection() 1504 String shrt = sp.getString(NETWORK_SELECTION_SHORT_KEY + getSubId(), ""); in getSavedNetworkSelection() 1514 remove(NETWORK_SELECTION_KEY + getSubId()). in clearSavedNetworkSelection() 1515 remove(NETWORK_SELECTION_NAME_KEY + getSubId()). in clearSavedNetworkSelection() 1516 remove(NETWORK_SELECTION_SHORT_KEY + getSubId()).commit(); in clearSavedNetworkSelection() [all …]
|
D | MultiSimSettingController.java | 353 int[] subIds = mSubController.getSubId(phoneId); in onCarrierConfigChanged() 696 if (phone.getSubId() != defaultDataSub in disableDataForNonDefaultNonOpportunisticSubscriptions() 697 && SubscriptionManager.isValidSubscriptionId(phone.getSubId()) in disableDataForNonDefaultNonOpportunisticSubscriptions() 698 && !mSubController.isOpportunistic(phone.getSubId()) in disableDataForNonDefaultNonOpportunisticSubscriptions() 700 && !areSubscriptionsInSameGroup(defaultDataSub, phone.getSubId())) { in disableDataForNonDefaultNonOpportunisticSubscriptions() 701 log("setting data to false on " + phone.getSubId()); in disableDataForNonDefaultNonOpportunisticSubscriptions()
|
D | GsmCdmaPhone.java | 444 SubscriptionController.getInstance().setMccMnc(operatorNumeric, getSubId()); in initRatSpecific() 456 SubscriptionController.getInstance().setCountryIso(iso, getSubId()); in initRatSpecific() 612 + " subId " + getSubId()); in updateVoiceMail() 1304 boolean isEmergency = PhoneNumberUtils.isEmergencyNumber(getSubId(), dialString); in dial() 1310 boolean alwaysTryImsForEmergencyCarrierConfig = configManager.getConfigForSubId(getSubId()) in dial() 1315 boolean allowWpsOverIms = configManager.getConfigForSubId(getSubId()) in dial() 1433 PersistableBundle config = configManager.getConfigForSubId(getSubId()); in isNotificationOfWfcCallRequired() 1447 boolean isEmergency = PhoneNumberUtils.isEmergencyNumber(getSubId(), dialString); in isNotificationOfWfcCallRequired() 1675 PersistableBundle b = configManager.getConfigForSubId(getSubId()); in getVoiceMailNumber() 1703 PersistableBundle b = configManager.getConfigForSubId(getSubId()); in getVoiceMailNumber() [all …]
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/ |
D | SmsNumberUtilsTest.java | 140 assertEquals("123", SmsNumberUtils.filterDestAddr(mContext, mPhone.getSubId(), "123")); in testInvalidNumberConversion() 148 assertEquals("18583420022", SmsNumberUtils.filterDestAddr(mContext, mPhone.getSubId(), in testNaPcCountryCodeAreaLocalNumberConversion() 156 assertEquals("01188671234567", SmsNumberUtils.filterDestAddr(mContext, mPhone.getSubId(), in testPcCountryCodeAreaLocalNumberConversion() 165 assertEquals("0119172345678", SmsNumberUtils.filterDestAddr(mContext, mPhone.getSubId(), in testIndiaPcCountryCodeAreaLocalNumberConversion() 173 assertEquals("01188671234567", SmsNumberUtils.filterDestAddr(mContext, mPhone.getSubId(), in testPcHomeIddCountryCodeAreaLocalNumberConversion() 181 assertEquals("01188671234567", SmsNumberUtils.filterDestAddr(mContext, mPhone.getSubId(), in testHomeIddCountryCodeAreaLocalNumberConversion() 190 assertEquals("01118581234567", SmsNumberUtils.filterDestAddr(mContext, mPhone.getSubId(), in testLocalIddCountryCodeAreaLocalNumberConversion() 199 assertEquals("01118581234567", SmsNumberUtils.filterDestAddr(mContext, mPhone.getSubId(), in testIndiaLocalIddCountryCodeAreaLocalNumberConversion() 208 assertEquals("01118581234567", SmsNumberUtils.filterDestAddr(mContext, mPhone.getSubId(), in testJapanLocalIddCountryCodeAreaLocalNumberConversion() 216 assertEquals("011886286281234", SmsNumberUtils.filterDestAddr(mContext, mPhone.getSubId(), in testCountryCodeAreaLocalNumberConversion() [all …]
|
D | DefaultPhoneNotifierTest.java | 78 doReturn(1).when(mPhone).getSubId(); in testNotifyCallForwarding() 91 doReturn(1).when(mPhone).getSubId(); in testNotifyDataActivity() 111 doReturn(1).when(mPhone).getSubId(); in testNotifySignalStrength() 143 doReturn(1).when(mPhone).getSubId(); in testNotifyMessageWaiting() 155 doReturn(0).when(mPhone).getSubId(); in testNotifyDisconnectCause() 179 doReturn(1).when(mPhone).getSubId(); in testNotifyDataConnectionFailed() 212 mPhone.getSubId(), in testNotifyPreciseCallState() 221 mPhone.getSubId(), in testNotifyPreciseCallState() 230 mPhone.getSubId(), in testNotifyPreciseCallState() 239 mPhone.getSubId(), in testNotifyPreciseCallState() [all …]
|
D | MultiSimSettingControllerTest.java | 121 doReturn(1).when(mPhoneMock1).getSubId(); in setUp() 122 doReturn(2).when(mPhoneMock2).getSubId(); in setUp() 165 doReturn(SubscriptionManager.INVALID_SUBSCRIPTION_ID).when(mPhoneMock2).getSubId(); in testTestSubInfoChangeBeforeAllSubReady() 203 doReturn(SubscriptionManager.INVALID_SUBSCRIPTION_ID).when(mPhoneMock2).getSubId(); in testSingleActiveDsds() 219 doReturn(2).when(mPhoneMock1).getSubId(); in testSingleActiveDsds() 243 doReturn(SubscriptionManager.INVALID_SUBSCRIPTION_ID).when(mPhoneMock2).getSubId(); in testActivatingSecondSub() 264 doReturn(2).when(mPhoneMock2).getSubId(); in testActivatingSecondSub() 287 doReturn(3).when(mPhoneMock2).getSubId(); in testActivatingSecondSub() 566 doReturn(3).when(mPhoneMock2).getSubId(); in testCarrierConfigLoading()
|
D | CarrierServiceStateTrackerTest.java | 71 when(mPhone.getSubId()).thenReturn(SUB_ID); in setUp() 153 String prefNetworkMode = Settings.Global.PREFERRED_NETWORK_MODE + mPhone.getSubId(); in testSendPrefNetworkNotification()
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/ |
D | DataEnabledSettings.java | 139 if (mSubId != mPhone.getSubId()) { 141 + mPhone.getSubId()); 142 mSubId = mPhone.getSubId(); 193 .getDataEnabledOverrideRules(mPhone.getSubId())); in getDataEnabledOverride() 221 if (isStandAloneOpportunistic(mPhone.getSubId(), mPhone.getContext()) && !enabled) return; in setUserDataEnabled() 224 Settings.Global.MOBILE_DATA, mPhone.getSubId(), (enabled ? 1 : 0)); in setUserDataEnabled() 231 mPhone.getSubId(), enabled); in setUserDataEnabled() 238 if (isStandAloneOpportunistic(mPhone.getSubId(), mPhone.getContext())) return true; in isUserDataEnabled() 243 Settings.Global.MOBILE_DATA, mPhone.getSubId(), defaultVal); in isUserDataEnabled() 257 .setDataEnabledOverrideRules(mPhone.getSubId(), mDataEnabledOverride.getRules()); in setAlwaysAllowMmsData() [all …]
|
D | DcTracker.java | 412 if (mPhone == null || mPhone.getSubId() != subId) return; 421 if (mPhone == null || mPhone.getSubId() != subId) return; 434 simSuffix = Integer.toString(mPhone.getSubId()); in registerSettingsObserver() 489 int phoneSubId = mPhone.getSubId(); in onDataReconnect() 530 if (!SubscriptionManager.isValidSubscriptionId(subId) || (subId != mPhone.getSubId())) { in onActionIntentDataStallAlarm() 673 .createForSubscriptionId(phone.getSubId()); in DcTracker() 879 public long getSubId() { in getSubId() method in DcTracker 880 return mPhone.getSubId(); in getSubId() 984 carrierConfig = configManager.getConfigForSubId(mPhone.getSubId()); in initApnContexts() 1028 carrierConfig = configManager.getConfigForSubId(mPhone.getSubId()); in sortApnContextByPriority() [all …]
|
/frameworks/base/telephony/java/android/telephony/ |
D | TelephonyManager.java | 2099 return getNaiBySubscriberId(getSubId()); in getNai() 2125 int[] subId = SubscriptionManager.getSubId(slotIndex); in getNai() 2248 return getCurrentPhoneType(getSubId()); in getCurrentPhoneType() 2421 return getNetworkOperatorName(getSubId()); in getNetworkOperatorName() 2496 return String.valueOf(getSubId()); in getNetworkSpecifier() 2520 return carrierConfigManager.getConfigForSubId(getSubId()); in getCarrierConfig() 2530 return isNetworkRoaming(getSubId()); in isNetworkRoaming() 2695 return getNetworkType(getSubId(SubscriptionManager.getActiveDataSubscriptionId())); in getNetworkType() 2779 return getDataNetworkType(getSubId(SubscriptionManager.getActiveDataSubscriptionId())); in getDataNetworkType() 2820 return getVoiceNetworkType(getSubId()); in getVoiceNetworkType() [all …]
|
D | VisualVoicemailService.java | 253 int subId = getSubId(context, phoneAccountHandle); in setSmsFilterSettings() 285 telephonyManager.sendVisualVoicemailSmsForSubscriber(getSubId(context, phoneAccountHandle), in sendVisualVoicemailSms() 289 private static int getSubId(Context context, PhoneAccountHandle phoneAccountHandle) { in getSubId() method in VisualVoicemailService
|
D | AvailableNetworkInfo.java | 91 public int getSubId() { in getSubId() method in AvailableNetworkInfo
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/dataconnection/ |
D | DataFailCauseTest.java | 145 mPersistableBundle = configManager.getConfigForSubId(mPhone.getSubId()); in setUp() 165 data.mCause), mPhone.getSubId())); in testPermanentFailDefault() 168 DataFailCause.getFailCause(123456), mPhone.getSubId())); in testPermanentFailDefault() 175 doReturn(2).when(mPhone).getSubId(); in testPermanentFailConfigured() 190 DataFailCause.getFailCause(data.mCause), mPhone.getSubId())); in testPermanentFailConfigured() 194 DataFailCause.getFailCause(data.mCause), mPhone.getSubId())); in testPermanentFailConfigured() 223 DataFailCause.getFailCause(DataFailCause.REGULAR_DEACTIVATION), mPhone.getSubId())); in testIsRadioRestartFailureRegularDeactivation() 227 DataFailCause.getFailCause(DataFailCause.REGULAR_DEACTIVATION), mPhone.getSubId())); in testIsRadioRestartFailureRegularDeactivation() 238 assertFalse(DataFailCause.isRadioRestartFailure(mContext, randomCause, mPhone.getSubId())); in testIsRadioRestartFailureNotRegularDeactivation() 242 assertTrue(DataFailCause.isRadioRestartFailure(mContext, randomCause, mPhone.getSubId())); in testIsRadioRestartFailureNotRegularDeactivation()
|
D | DataEnabledOverrideTest.java | 66 doReturn(1).when(mPhone).getSubId(); in testOverrideEnabled() 96 doReturn(1).when(mPhone).getSubId(); in testUpdateRules() 209 doReturn(1).when(mPhone).getSubId(); in testSetDataAllowedInVoiceCall()
|
D | ApnSettingTest.java | 331 doReturn(1).when(mPhone).getSubId(); in testIsMetered() 378 doReturn(1).when(mPhone).getSubId(); in testIsRoamingMetered() 418 doReturn(1).when(mPhone).getSubId(); in testIsMeteredAnother() 448 doReturn(2).when(mPhone).getSubId(); in testIsRoamingMeteredAnother() 488 doReturn(3).when(mPhone).getSubId(); in testIsMeteredNothingCharged() 508 doReturn(3).when(mPhone).getSubId(); in testIsRoamingMeteredNothingCharged()
|
/frameworks/opt/net/ims/src/java/com/android/ims/ |
D | ImsManager.java | 328 getSubId(), SubscriptionManager.ENHANCED_4G_MODE_ENABLED, in isEnhanced4gLteModeSettingEnabledByUser() 371 int subId = getSubId(); in setEnhanced4gLteModeSetting() 703 getSubId(), SubscriptionManager.VT_IMS_ENABLED, in isVtEnabledByUser() 734 int subId = getSubId(); in setVtSetting() 821 getSubId(), SubscriptionManager.WFC_IMS_ENABLED, in isWfcEnabledByUser() 856 int subId = getSubId(); in setWfcSetting() 1014 result = SubscriptionManager.getIntegerSubscriptionProperty(getSubId(), subSetting, in getSettingFromSubscriptionManager() 1047 int subId = getSubId(); in setWfcMode() 1068 if (roaming == tm.isNetworkRoaming(getSubId())) { in setWfcMode() 1073 private int getSubId() { in getSubId() method in ImsManager [all …]
|
D | RcsFeatureManager.java | 482 int subId = sSubscriptionManagerProxy.getSubId(slotId); in isCapabilityTypeSupported() 523 int getSubId(int slotId); in getSubId() method 528 int[] subIds = SubscriptionManager.getSubId(slotId);
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/vendor/ |
D | VendorServiceStateTracker.java | 56 + mPhone.getSubId()); in handlePollStateResultMessage() 64 mPhone.getSubId()); in handlePollStateResultMessage()
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/emergency/ |
D | EmergencyNumberTracker.java | 178 PersistableBundle b = configMgr.getConfigForSubId(mPhone.getSubId()); in EmergencyNumberTracker() 321 PersistableBundle b = configMgr.getConfigForSubId(mPhone.getSubId()); in onCarrierConfigChanged() 831 int slotId = SubscriptionController.getInstance().getSlotIndex(mPhone.getSubId()); in getEmergencyNumberListFromEccList() 948 int slotId = SubscriptionController.getInstance().getSlotIndex(mPhone.getSubId()); in isEmergencyNumberFromEccList() 1192 int slotId = SubscriptionController.getInstance().getSlotIndex(mPhone.getSubId()); in dump()
|