/frameworks/opt/telephony/src/java/com/android/internal/telephony/ |
D | SubscriptionMonitor.java | 88 for (int phoneId = 0; phoneId < numPhones; phoneId++) { in SubscriptionMonitor() 89 mSubscriptionsChangedRegistrants[phoneId] = new RegistrantList(); in SubscriptionMonitor() 90 mDefaultDataSubChangedRegistrants[phoneId] = new RegistrantList(); in SubscriptionMonitor() 91 mPhoneSubId[phoneId] = mSubscriptionController.getSubIdUsingPhoneId(phoneId); in SubscriptionMonitor() 113 for (int phoneId = 0; phoneId < mPhoneSubId.length; phoneId++) { 114 final int newSubId = mSubscriptionController.getSubIdUsingPhoneId(phoneId); 115 final int oldSubId = mPhoneSubId[phoneId]; 117 log("Phone[" + phoneId + "] subId changed " + oldSubId + "->" + 119 mSubscriptionsChangedRegistrants[phoneId].size() + " registrants"); 120 mPhoneSubId[phoneId] = newSubId; [all …]
|
D | ProxyController.java | 161 int phoneId = SubscriptionController.getInstance().getPhoneId(subId); in registerForAllDataDisconnected() local 163 if (phoneId >= 0 && phoneId < TelephonyManager.getDefault().getPhoneCount()) { in registerForAllDataDisconnected() 164 mPhones[phoneId].registerForAllDataDisconnected(h, what); in registerForAllDataDisconnected() 169 int phoneId = SubscriptionController.getInstance().getPhoneId(subId); in unregisterForAllDataDisconnected() local 171 if (phoneId >= 0 && phoneId < TelephonyManager.getDefault().getPhoneCount()) { in unregisterForAllDataDisconnected() 172 mPhones[phoneId].unregisterForAllDataDisconnected(h); in unregisterForAllDataDisconnected() 178 int phoneId = SubscriptionController.getInstance().getPhoneId(subId); in areAllDataDisconnected() local 180 if (phoneId >= 0 && phoneId < TelephonyManager.getDefault().getPhoneCount()) { in areAllDataDisconnected() 181 return mPhones[phoneId].areAllDataDisconnected(); in areAllDataDisconnected() 194 public int getRadioAccessFamily(int phoneId) { in getRadioAccessFamily() argument [all …]
|
D | CarrierServiceBindHelper.java | 75 for (int phoneId = 0; phoneId < mBindings.length; phoneId++) { 76 mBindings[phoneId].rebind(); 113 for (int phoneId = 0; phoneId < numPhones; phoneId++) { in CarrierServiceBindHelper() 114 mBindings[phoneId] = new AppBinding(phoneId); in CarrierServiceBindHelper() 124 void updateForPhoneId(int phoneId, String simState) { in updateForPhoneId() argument 125 log("update binding for phoneId: " + phoneId + " simState: " + simState); in updateForPhoneId() 126 if (!SubscriptionManager.isValidPhoneId(phoneId)) { in updateForPhoneId() 129 if (TextUtils.isEmpty(simState) || phoneId >= mLastSimState.length) return; in updateForPhoneId() 130 if (simState.equals(mLastSimState[phoneId])) { in updateForPhoneId() 134 mLastSimState[phoneId] = simState; in updateForPhoneId() [all …]
|
D | PhoneSwitcher.java | 478 final int phoneId = msg.arg1; in handleMessage() local 479 sendRilCommands(phoneId); in handleMessage() 543 int phoneId = (int) ar.userObj; in handleMessage() local 546 phoneId), MODEM_COMMAND_RETRY_PERIOD_MS); in handleMessage() 551 int phoneId = (int) msg.obj; in handleMessage() local 552 log("Resend modem command on phone " + phoneId); in handleMessage() 553 sendRilCommands(phoneId); in handleMessage() 798 for (int phoneId = 0; phoneId < mNumPhones; phoneId++) { in onEvaluate() 799 mPhoneStates[phoneId].active = true; in onEvaluate() 840 for (int phoneId = 0; phoneId < mNumPhones; phoneId++) { in onEvaluate() [all …]
|
D | PhoneConfigurationManager.java | 157 int phoneId = msg.arg1; in handleMessage() local 160 addToPhoneStatusCache(phoneId, enabled); in handleMessage() 205 int phoneId = phone.getPhoneId(); in getPhoneStatus() local 209 return getPhoneStatusFromCache(phoneId); in getPhoneStatus() 241 public boolean getPhoneStatusFromCache(int phoneId) throws NoSuchElementException { in getPhoneStatusFromCache() argument 242 if (mPhoneStatusMap.containsKey(phoneId)) { in getPhoneStatusFromCache() 243 return mPhoneStatusMap.get(phoneId); in getPhoneStatusFromCache() 245 throw new NoSuchElementException("phoneId not found: " + phoneId); in getPhoneStatusFromCache() 263 public void addToPhoneStatusCache(int phoneId, boolean status) { in addToPhoneStatusCache() argument 264 mPhoneStatusMap.put(phoneId, status); in addToPhoneStatusCache()
|
D | DefaultPhoneNotifier.java | 61 int phoneId = sender.getPhoneId(); in notifyPhoneState() local 68 mRegistry.notifyCallStateForPhoneId(phoneId, subId, in notifyPhoneState() 80 int phoneId = sender.getPhoneId(); in notifyServiceState() local 84 + " sender=" + sender + " phondId=" + phoneId + " subId=" + subId); in notifyServiceState() 91 mRegistry.notifyServiceStateForPhoneId(phoneId, subId, ss); in notifyServiceState() 100 int phoneId = sender.getPhoneId(); in notifySignalStrength() local 109 mRegistry.notifySignalStrengthForPhoneId(phoneId, subId, in notifySignalStrength() 119 int phoneId = sender.getPhoneId(); in notifyMessageWaitingChanged() local 124 mRegistry.notifyMessageWaitingChangedForPhoneId(phoneId, subId, in notifyMessageWaitingChanged() 170 int phoneId = sender.getPhoneId(); in doNotifyDataConnection() local [all …]
|
D | SubscriptionInfoUpdater.java | 341 private int getCardIdFromPhoneId(int phoneId) { in getCardIdFromPhoneId() argument 343 UiccCard card = uiccController.getUiccCardForPhone(phoneId); in getCardIdFromPhoneId() 898 public void updateSubscriptionByCarrierConfigAndNotifyComplete(int phoneId, in updateSubscriptionByCarrierConfigAndNotifyComplete() argument 901 updateSubscriptionByCarrierConfig(phoneId, configPackageName, config); in updateSubscriptionByCarrierConfigAndNotifyComplete() 912 private boolean isCarrierServicePackage(int phoneId, String pkgName) { in isCarrierServicePackage() argument 917 new Intent(CarrierService.CARRIER_SERVICE_INTERFACE), phoneId); in isCarrierServicePackage() 927 int phoneId, String configPackageName, PersistableBundle config) { in updateSubscriptionByCarrierConfig() argument 928 if (!SubscriptionManager.isValidPhoneId(phoneId) in updateSubscriptionByCarrierConfig() 931 logd("In updateSubscriptionByCarrierConfig(): phoneId=" + phoneId in updateSubscriptionByCarrierConfig() 944 int currentSubId = sc.getSubIdUsingPhoneId(phoneId); in updateSubscriptionByCarrierConfig() [all …]
|
D | PhoneFactory.java | 302 public static Phone getPhone(int phoneId) { in getPhone() argument 310 } else if (phoneId == SubscriptionManager.DEFAULT_PHONE_INDEX) { in getPhone() 319 phone = (phoneId >= 0 && phoneId < sPhones.length) in getPhone() 320 ? sPhones[phoneId] : null; in getPhone() 323 Rlog.d(LOG_TAG, "getPhone:- " + dbgInfo + " phoneId=" + phoneId + in getPhone() 357 public static TelephonyNetworkFactory getNetworkFactory(int phoneId) { in getNetworkFactory() argument 363 if (phoneId == SubscriptionManager.DEFAULT_PHONE_INDEX) { in getNetworkFactory() 365 phoneId = sPhone.getSubId(); in getNetworkFactory() 372 && (phoneId >= 0 && phoneId < sTelephonyNetworkFactories.length)) in getNetworkFactory() 373 ? sTelephonyNetworkFactories[phoneId] : null; in getNetworkFactory() [all …]
|
D | PhoneSubInfoController.java | 65 public String getDeviceIdForPhone(int phoneId, String callingPackage) { in getDeviceIdForPhone() argument 66 return callPhoneMethodForPhoneIdWithReadDeviceIdentifiersCheck(phoneId, callingPackage, in getDeviceIdForPhone() 221 int phoneId = SubscriptionManager.getPhoneId(subId); in getPhone() local 222 if (!SubscriptionManager.isValidPhoneId(phoneId)) { in getPhone() 223 phoneId = 0; in getPhone() 225 return mPhone[phoneId]; in getPhone() 464 private <T> T callPhoneMethodForPhoneIdWithReadDeviceIdentifiersCheck(int phoneId, 467 if (!SubscriptionManager.isValidPhoneId(phoneId)) { 468 phoneId = 0; 470 final Phone phone = mPhone[phoneId];
|
D | SmsBroadcastUndelivered.java | 208 int phoneId = getPhoneId(gsmInboundSmsHandler, cdmaInboundSmsHandler); in scanRawTable() local 224 metrics.writeDroppedIncomingMultipartSms(phoneId, message.mFormat, rows, in scanRawTable() 244 int phoneId = SubscriptionManager.INVALID_PHONE_INDEX; in getPhoneId() local 246 phoneId = gsmInboundSmsHandler.getPhone().getPhoneId(); in getPhoneId() 248 phoneId = cdmaInboundSmsHandler.getPhone().getPhoneId(); in getPhoneId() 250 return phoneId; in getPhoneId()
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/mocks/ |
D | SubscriptionMonitorMock.java | 44 public void registerForSubscriptionChanged(int phoneId, Handler h, int what, Object o) { in registerForSubscriptionChanged() argument 45 validatePhoneId(phoneId); in registerForSubscriptionChanged() 47 mSubscriptionsChangedRegistrants[phoneId].add(r); in registerForSubscriptionChanged() 52 public void unregisterForSubscriptionChanged(int phoneId, Handler h) { in unregisterForSubscriptionChanged() argument 53 validatePhoneId(phoneId); in unregisterForSubscriptionChanged() 54 mSubscriptionsChangedRegistrants[phoneId].remove(h); in unregisterForSubscriptionChanged() 58 public void registerForDefaultDataSubscriptionChanged(int phoneId, Handler h, int what, in registerForDefaultDataSubscriptionChanged() argument 60 validatePhoneId(phoneId); in registerForDefaultDataSubscriptionChanged() 62 mDefaultSubscriptionRegistrants[phoneId].add(r); in registerForDefaultDataSubscriptionChanged() 67 public void unregisterForDefaultDataSubscriptionChanged(int phoneId, Handler h) { in unregisterForDefaultDataSubscriptionChanged() argument [all …]
|
D | PhoneSwitcherMock.java | 54 public void onRadioCapChanged(int phoneId) { in onRadioCapChanged() argument 59 protected boolean isPhoneActive(int phoneId) { in isPhoneActive() argument 60 return mIsActive[phoneId].get(); in isPhoneActive() 76 public void setPhoneActive(int phoneId, boolean active) { in setPhoneActive() argument 77 validatePhoneId(phoneId); in setPhoneActive() 78 if (mIsActive[phoneId].getAndSet(active) != active) { in setPhoneActive() 79 notifyActivePhoneChange(phoneId); in setPhoneActive() 87 public void notifyActivePhoneChange(int phoneId) { in notifyActivePhoneChange() argument
|
D | TelephonyRegistryMock.java | 59 int phoneId = SubscriptionManager.INVALID_PHONE_INDEX; field in TelephonyRegistryMock.Record 84 + " callerUserId=" + callerUserId + " subId=" + subId + " phoneId=" + phoneId in toString() 269 public void notifyCallStateForPhoneId(int phoneId, int subId, int state, in notifyCallStateForPhoneId() argument 275 public void notifyServiceStateForPhoneId(int phoneId, int subId, ServiceState state) { in notifyServiceStateForPhoneId() argument 280 public void notifySignalStrengthForPhoneId(int phoneId, int subId, in notifySignalStrengthForPhoneId() argument 286 public void notifyMessageWaitingChangedForPhoneId(int phoneId, int subId, boolean mwi) { in notifyMessageWaitingChangedForPhoneId() argument 318 public void notifyDataConnectionForSubscriber(int phoneId, int subId, int state, in notifyDataConnectionForSubscriber() argument 331 public void notifyDataConnectionFailedForSubscriber(int phoneId, int subId, String apnType) { in notifyDataConnectionFailedForSubscriber() argument 367 public void notifyEmergencyNumberList(int phoneId, int subId) { in notifyEmergencyNumberList() argument 372 public void notifyCallQualityChanged(CallQuality callQuality, int phoneId, int subId, in notifyCallQualityChanged() argument [all …]
|
/frameworks/base/services/core/java/com/android/server/ |
D | TelephonyRegistry.java | 125 int phoneId = SubscriptionManager.INVALID_PHONE_INDEX; field in TelephonyRegistry.Record 156 + " callerUid=" + callerUid + " subId=" + subId + " phoneId=" + phoneId in toString() 642 int phoneId = SubscriptionManager.getPhoneId(subId); in listen() local 664 r.phoneId = phoneId; in listen() 667 log("listen: Register r=" + r + " r.subId=" + r.subId + " phoneId=" + phoneId); in listen() 669 if (notifyNow && validatePhoneId(phoneId)) { in listen() 672 if (VDBG) log("listen: call onSSC state=" + mServiceState[phoneId]); in listen() 673 ServiceState rawSs = new ServiceState(mServiceState[phoneId]); in listen() 687 int gsmSignalStrength = mSignalStrength[phoneId] in listen() 698 mMessageWaiting[phoneId]); in listen() [all …]
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/metrics/ |
D | TelephonyMetrics.java | 427 pw.print(event.phoneId); in printAllMetrics() 450 pw.print(", phone: " + callSession.phoneId); in printAllMetrics() 495 pw.print(", phone: " + smsSession.phoneId); in printAllMetrics() 736 public void updateSimState(int phoneId, int simState) { in updateSimState() argument 738 Integer lastSimState = mLastSimState.get(phoneId); in updateSimState() 740 mLastSimState.put(phoneId, state); in updateSimState() 753 int phoneId = info.getSimSlotIndex(); in updateActiveSubscriptionInfoList() local 754 inActivePhoneList.removeIf(value -> value.equals(phoneId)); in updateActiveSubscriptionInfoList() 756 activeSubscriptionInfo.slotIndex = phoneId; in updateActiveSubscriptionInfoList() 760 mLastActiveSubscriptionInfos.get(phoneId), activeSubscriptionInfo)) { in updateActiveSubscriptionInfoList() [all …]
|
D | InProgressCallSession.java | 33 public final int phoneId; field in InProgressCallSession 61 public InProgressCallSession(int phoneId) { in InProgressCallSession() argument 62 this.phoneId = phoneId; in InProgressCallSession()
|
D | InProgressSmsSession.java | 34 public final int phoneId; field in InProgressSmsSession 77 public InProgressSmsSession(int phoneId) { in InProgressSmsSession() argument 78 this.phoneId = phoneId; in InProgressSmsSession()
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/dataconnection/ |
D | TelephonyNetworkFactoryTest.java | 179 final int phoneId = 0; in testActive() local 184 mPhoneSwitcherMock.setPreferredDataPhoneId(phoneId); in testActive() 186 mSubscriptionControllerMock.setSlotSubId(phoneId, subId); in testActive() 187 mSubscriptionMonitorMock.notifySubscriptionChanged(phoneId); in testActive() 194 log("setPhoneActive true: phoneId = " + phoneId); in testActive() 195 mPhoneSwitcherMock.setPhoneActive(phoneId, true); in testActive() 204 log("setPhoneActive false: phoneId = " + phoneId); in testActive() 205 mPhoneSwitcherMock.setPhoneActive(phoneId, false); in testActive() 214 log("setPhoneActive true: phoneId = " + phoneId); in testActive() 215 mPhoneSwitcherMock.setPhoneActive(phoneId, true); in testActive() [all …]
|
/frameworks/base/telephony/java/com/android/internal/telephony/ |
D | ITelephonyRegistry.aidl | 47 void notifyCallStateForPhoneId(in int phoneId, in int subId, int state, String incomingNumber); in notifyCallStateForPhoneId() argument 48 void notifyServiceStateForPhoneId(in int phoneId, in int subId, in ServiceState state); in notifyServiceStateForPhoneId() argument 49 void notifySignalStrengthForPhoneId(in int phoneId, in int subId, in notifySignalStrengthForPhoneId() argument 51 void notifyMessageWaitingChangedForPhoneId(in int phoneId, in int subId, in boolean mwi); in notifyMessageWaitingChangedForPhoneId() argument 59 void notifyDataConnectionForSubscriber(int phoneId, int subId, int state, in notifyDataConnectionForSubscriber() argument 65 void notifyDataConnectionFailedForSubscriber(int phoneId, int subId, String apnType); in notifyDataConnectionFailedForSubscriber() argument 74 void notifyPreciseCallState(int phoneId, int subId, int ringingCallState, in notifyPreciseCallState() argument 76 void notifyDisconnectCause(int phoneId, int subId, int disconnectCause, in notifyDisconnectCause() argument 78 void notifyPreciseDataConnectionFailed(int phoneId, int subId, String apnType, String apn, in notifyPreciseDataConnectionFailed() argument 82 void notifySimActivationStateChangedForPhoneId(in int phoneId, in int subId, in notifySimActivationStateChangedForPhoneId() argument [all …]
|
/frameworks/opt/net/ims/src/java/com/android/ims/ |
D | ImsServiceBase.java | 44 public int open(int phoneId, int serviceClass, PendingIntent incomingCallIntent, in open() argument 46 return onOpen(phoneId, serviceClass, incomingCallIntent, listener); in open() 97 public IImsConfig getConfigInterface(int phoneId) { in getConfigInterface() argument 98 return onGetConfigInterface(phoneId); in getConfigInterface() 102 public void turnOnIms(int phoneId) { in turnOnIms() argument 103 onTurnOnIms(phoneId); in turnOnIms() 107 public void turnOffIms(int phoneId) { in turnOffIms() argument 108 onTurnOffIms(phoneId); in turnOffIms() 137 protected int onOpen(int phoneId, int serviceClass, PendingIntent incomingCallIntent, in onOpen() argument 193 protected IImsConfig onGetConfigInterface(int phoneId) { in onGetConfigInterface() argument [all …]
|
/frameworks/base/telephony/java/com/android/ims/internal/uce/uceservice/ |
D | ImsUceManager.java | 91 public static ImsUceManager getInstance(Context context, int phoneId) { in getInstance() argument 94 if (sUceManagerInstances.containsKey(phoneId)) { in getInstance() 95 return sUceManagerInstances.get(phoneId); in getInstance() 97 ImsUceManager uceMgr = new ImsUceManager(context, phoneId); in getInstance() 98 sUceManagerInstances.put(phoneId, uceMgr); in getInstance() 108 private ImsUceManager(Context context, int phoneId) { in ImsUceManager() argument 111 mPhoneId = phoneId; in ImsUceManager() 132 private String getUceServiceName(int phoneId) { in getUceServiceName() argument
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/uicc/ |
D | UiccController.java | 255 public int getSlotIdFromPhoneId(int phoneId) { in getSlotIdFromPhoneId() argument 257 return mPhoneIdToSlotId[phoneId]; in getSlotIdFromPhoneId() 275 public UiccCard getUiccCard(int phoneId) { in getUiccCard() argument 277 return getUiccCardForPhone(phoneId); in getUiccCard() 302 public UiccCard getUiccCardForPhone(int phoneId) { in getUiccCardForPhone() argument 304 if (isValidPhoneIndex(phoneId)) { in getUiccCardForPhone() 305 UiccSlot uiccSlot = getUiccSlotForPhone(phoneId); in getUiccCardForPhone() 319 public UiccProfile getUiccProfileForPhone(int phoneId) { in getUiccProfileForPhone() argument 321 if (isValidPhoneIndex(phoneId)) { in getUiccProfileForPhone() 322 UiccCard uiccCard = getUiccCardForPhone(phoneId); in getUiccProfileForPhone() [all …]
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/uicc/ |
D | UiccSlotTest.java | 141 int phoneId = 0; in testUpdateActiveSlotStatus() local 143 iss.logicalSlotIndex = phoneId; in testUpdateActiveSlotStatus() 157 IccCardConstants.INTENT_VALUE_ICC_ABSENT, null, phoneId, false); in testUpdateActiveSlotStatus() 239 int phoneId = 0; in testUpdateAbsentState() local 243 mUiccSlot.update(mSimulatedCommands, mIccCardStatus, phoneId, slotIndex); in testUpdateAbsentState() 245 IccCardConstants.INTENT_VALUE_ICC_ABSENT, null, phoneId, false); in testUpdateAbsentState() 282 int phoneId = 0; in testUiccSlotCreateAndDispose() local 286 mUiccSlot.update(mSimulatedCommands, mIccCardStatus, phoneId, slotIndex); in testUiccSlotCreateAndDispose() 296 mUiccSlot.update(mSimulatedCommands, mIccCardStatus, phoneId, slotIndex); in testUiccSlotCreateAndDispose() 298 IccCardConstants.INTENT_VALUE_ICC_ABSENT, null, phoneId, false); in testUiccSlotCreateAndDispose() [all …]
|
/frameworks/base/telephony/java/com/android/ims/internal/ |
D | IImsService.aidl | 36 int open(int phoneId, int serviceClass, in PendingIntent incomingCallIntent, in open() argument 51 void addRegistrationListener(int phoneId, int serviceClass, in addRegistrationListener() argument 68 IImsConfig getConfigInterface(int phoneId); in getConfigInterface() argument 73 void turnOnIms(int phoneId); in turnOnIms() argument 79 void turnOffIms(int phoneId); in turnOffIms() argument
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/ |
D | CarrierResolverTest.java | 131 int phoneId = mPhone.getPhoneId(); in testCarrierMatch() local 132 doReturn(MCCMNC).when(mTelephonyManager).getSimOperatorNumericForPhone(eq(phoneId)); in testCarrierMatch() 149 int phoneId = mPhone.getPhoneId(); in testMnoCarrierId() local 150 doReturn(MCCMNC).when(mTelephonyManager).getSimOperatorNumericForPhone(eq(phoneId)); in testMnoCarrierId() 161 .getSimOperatorNumericForPhone(eq(phoneId)); in testMnoCarrierId() 173 int phoneId = mPhone.getPhoneId(); in testPreciseCarrierId() local 175 .getSimOperatorNumericForPhone(eq(phoneId)); in testPreciseCarrierId() 189 .getSimOperatorNumericForPhone(eq(phoneId)); in testPreciseCarrierId() 196 .getSimOperatorNumericForPhone(eq(phoneId)); in testPreciseCarrierId() 203 .getSimOperatorNumericForPhone(eq(phoneId)); in testPreciseCarrierId() [all …]
|