Home
last modified time | relevance | path

Searched refs:phoneId (Results 1 – 25 of 99) sorted by relevance

1234

/aosp12/packages/services/Telephony/src/com/android/phone/
H A DCarrierConfigLoader.java379 unbindIfBound(mContext, mServiceConnection[phoneId], phoneId); in handleMessage()
519 unbindIfBound(mContext, mServiceConnection[phoneId], phoneId); in handleMessage()
614 mServiceConnectionForNoSimConfig[phoneId], phoneId); in handleMessage()
1140 int phoneId) { in restoreConfigFromXml() argument
1292 phoneId, in overrideConfig()
1399 int phoneId) { in unbindIfBound() argument
1400 if (mServiceBound[phoneId]) { in unbindIfBound()
1407 int phoneId) { in unbindIfBoundForNoSimConfig() argument
1419 if (phoneId < -128 || phoneId > 127) { in getMessageToken()
1630 final int phoneId; field in CarrierConfigLoader.CarrierServiceConnection
[all …]
H A DImsUtil.java63 public static boolean isWfcEnabled(Context context, int phoneId) { in isWfcEnabled() argument
64 ImsManager imsManager = ImsManager.getInstance(context, phoneId); in isWfcEnabled()
68 + " phoneId=" + phoneId); in isWfcEnabled()
70 + " phoneId=" + phoneId); in isWfcEnabled()
87 ImsManager imsManager = ImsManager.getInstance(context, phoneId); in isWfcModeWifiOnly()
91 + " phoneId=" + phoneId); in isWfcModeWifiOnly()
92 return isWfcEnabled(context, phoneId) && isWifiOnlyMode; in isWfcModeWifiOnly()
146 phoneId); in shouldPromoteWfc()
156 private static int getSubId(int phoneId) { in getSubId() argument
157 final int[] subIds = SubscriptionManager.getSubId(phoneId); in getSubId()
[all …]
H A DIccNetworkDepersonalizationPanel.java98 int phoneId = phone == null ? 0: phone.getPhoneId(); in showDialog() local
99 if (phoneId >= sShowingDialog.length) { in showDialog()
103 if (sShowingDialog[phoneId]) { in showDialog()
108 sShowingDialog[phoneId] = true; in showDialog()
111 sNdpPanel[phoneId].show(); in showDialog()
114 public static void dialogDismiss(int phoneId) { in dialogDismiss() argument
115 if (phoneId >= sShowingDialog.length) { in dialogDismiss()
119 if (sNdpPanel[phoneId] != null && sShowingDialog[phoneId]) { in dialogDismiss()
120 sNdpPanel[phoneId].dismiss(); in dialogDismiss()
240 if (phoneId >= sShowingDialog.length) { in onStop()
[all …]
/aosp12/frameworks/opt/telephony/src/java/com/android/internal/telephony/
H A DSubscriptionInfoUpdater.java340 for (int phoneId = activeModemCount; phoneId < SUPPORTED_MODEM_COUNT; phoneId++) { in onMultiSimConfigChanged()
362 if (sIccId[phoneId] != null && sIccId[phoneId].equals(ICCID_STRING_FOR_NO_SIM)) { in handleSimLocked()
412 if (sIccId[phoneId] != null && sIccId[phoneId].equals(ICCID_STRING_FOR_NO_SIM)) { in handleSimReady()
645 if (sInactiveIccIds[phoneId] != null || (isSimAbsent && sIccId[phoneId] != null in cleanSubscriptionInPhone()
661 ? sInactiveIccIds[phoneId] : sIccId[phoneId]; in cleanSubscriptionInPhone()
677 if (sIccId[phoneId] != null && !sIccId[phoneId].equals(ICCID_STRING_FOR_NO_SIM)) { in handleSimAbsent()
690 if (sIccId[phoneId] != null && !sIccId[phoneId].equals(ICCID_STRING_FOR_NO_SIM)) { in handleSimError()
711 + phoneId); in updateSubscriptionInfoByIccId()
718 if (!ICCID_STRING_FOR_NO_SIM.equals(sIccId[phoneId]) && sIccId[phoneId] != null) { in updateSubscriptionInfoByIccId()
720 + sIccId[phoneId] + ", phoneId:" + phoneId); in updateSubscriptionInfoByIccId()
[all …]
H A DCarrierServiceBindHelper.java84 for (int phoneId = 0; phoneId < mBindings.size(); phoneId++) {
102 int phoneId;
155 for (int phoneId = prevLen; phoneId < newLen; phoneId++) { in updateBindingsAndSimStates()
156 mBindings.put(phoneId, new AppBinding(phoneId)); in updateBindingsAndSimStates()
161 for (int phoneId = newLen; phoneId < prevLen; phoneId++) { in updateBindingsAndSimStates()
163 mBindings.delete(phoneId); in updateBindingsAndSimStates()
164 mLastSimState.delete(phoneId); in updateBindingsAndSimStates()
184 private int phoneId; field in CarrierServiceBindHelper.AppBinding
194 public AppBinding(int phoneId) { in AppBinding() argument
195 this.phoneId = phoneId; in AppBinding()
[all …]
H A DPhoneSwitcher.java364 (context, phoneId) -> ImsManager.getInstance(context, phoneId).getRegistrationTech();
823 for (int phoneId = oldActiveModemCount - 1; phoneId >= mActiveModemCount; phoneId--) { in onMultiSimConfigChanged()
828 for (int phoneId = oldActiveModemCount; phoneId < mActiveModemCount; phoneId++) { in onMultiSimConfigChanged()
1052 for (int phoneId = 0; phoneId < mActiveModemCount; phoneId++) { in onEvaluate()
1101 for (int phoneId = 0; phoneId < mActiveModemCount; phoneId++) { in onEvaluate()
1123 switchPhone(phoneId, true); in activate()
1137 sendRilCommands(phoneId); in switchPhone()
1147 msg.arg1 = phoneId; in onRadioCapChanged()
1190 PhoneFactory.getPhone(phoneId).mCi.setDataAllowed(isPhoneActive(phoneId), message); in sendRilCommands()
1236 phoneId = i; in phoneIdForRequest()
[all …]
H A DProxyController.java193 public int getRadioAccessFamily(int phoneId) { in getRadioAccessFamily() argument
194 if (phoneId >= mPhones.length) { in getRadioAccessFamily()
269 int phoneId = rafs[i].getPhoneId(); in doSetRadioCapabilities() local
272 mOldRadioAccessFamily[phoneId] = mPhones[phoneId].getRadioAccessFamily(); in doSetRadioCapabilities()
279 mCurrentLogicalModemIds[phoneId] = mPhones[phoneId].getModemUuId(); in doSetRadioCapabilities()
288 phoneId, in doSetRadioCapabilities()
291 mOldRadioAccessFamily[phoneId], in doSetRadioCapabilities()
610 for (int phoneId = 0; phoneId < mPhones.length; phoneId++) { in completeRadioCapabilityTransaction()
611 rafs[phoneId] = new RadioAccessFamily(phoneId, mOldRadioAccessFamily[phoneId]); in completeRadioCapabilityTransaction()
659 mPhones[phoneId].setRadioCapability( in sendRadioCapabilityRequest()
[all …]
H A DPhoneConfigurationManager.java173 int phoneId = msg.arg1; in handleMessage() local
176 addToPhoneStatusCache(phoneId, enabled); in handleMessage()
222 int phoneId = phone.getPhoneId(); in getPhoneStatus() local
226 return getPhoneStatusFromCache(phoneId); in getPhoneStatus()
261 if (mPhoneStatusMap.containsKey(phoneId)) { in getPhoneStatusFromCache()
262 return mPhoneStatusMap.get(phoneId); in getPhoneStatusFromCache()
283 mPhoneStatusMap.put(phoneId, status); in addToPhoneStatusCache()
370 for (int phoneId = numOfActiveModems; phoneId < oldNumOfActiveModems; phoneId++) { in onMultiSimConfigChanged()
373 mPhones[phoneId].mCi.onSlotActiveStatusChange( in onMultiSimConfigChanged()
391 for (int phoneId = oldNumOfActiveModems; phoneId < numOfActiveModems; phoneId++) { in onMultiSimConfigChanged()
[all …]
H A DPhoneFactory.java316 private static Phone createPhone(Context context, int phoneId) { in createPhone() argument
326 sCommandsInterfaces[phoneId], sPhoneNotifier, phoneId, phoneType, in createPhone()
341 public static Phone getPhone(int phoneId) { in getPhone() argument
358 phone = (phoneId >= 0 && phoneId < sPhones.length) in getPhone()
359 ? sPhones[phoneId] : null; in getPhone()
394 if (phoneId == SubscriptionManager.DEFAULT_PHONE_INDEX) { in getNetworkFactory()
396 phoneId = sPhone.getSubId(); in getNetworkFactory()
403 && (phoneId >= 0 && phoneId < sTelephonyNetworkFactories.length)) in getNetworkFactory()
404 ? sTelephonyNetworkFactories[phoneId] : null; in getNetworkFactory()
430 public static int calculatePreferredNetworkType(int phoneId) { in calculatePreferredNetworkType() argument
[all …]
H A DDefaultPhoneNotifier.java65 int phoneId = sender.getPhoneId(); in notifyPhoneState() local
70 mTelephonyRegistryMgr.notifyCallStateChanged(phoneId, subId, in notifyPhoneState()
81 int phoneId = sender.getPhoneId(); in notifyServiceStateForSubId() local
84 + ss + " sender=" + sender + " phondId=" + phoneId + " subId=" + subId); in notifyServiceStateForSubId()
89 mTelephonyRegistryMgr.notifyServiceStateChanged(phoneId, subId, ss); in notifyServiceStateForSubId()
94 int phoneId = sender.getPhoneId(); in notifySignalStrength() local
101 mTelephonyRegistryMgr.notifySignalStrengthChanged(phoneId, subId, in notifySignalStrength()
107 int phoneId = sender.getPhoneId(); in notifyMessageWaitingChanged() local
109 mTelephonyRegistryMgr.notifyMessageWaitingChanged(phoneId, subId, in notifyMessageWaitingChanged()
H A DMultiSimSettingController.java163 notifyCarrierConfigChanged(phoneId, subId);
292 int phoneId = msg.arg1; in handleMessage() local
294 onCarrierConfigChanged(phoneId, subId); in handleMessage()
388 public void notifyCarrierConfigChanged(int phoneId, int subId) { in notifyCarrierConfigChanged() argument
392 private void onCarrierConfigChanged(int phoneId, int subId) { in onCarrierConfigChanged() argument
394 if (!SubscriptionManager.isValidPhoneId(phoneId)) { in onCarrierConfigChanged()
395 loge("Carrier config change with invalid phoneId " + phoneId); in onCarrierConfigChanged()
403 int[] subIds = mSubController.getSubId(phoneId); in onCarrierConfigChanged()
415 mCarrierConfigLoadedSubIds[phoneId] = subId; in onCarrierConfigChanged()
441 for (int phoneId = activeModems; phoneId < mCarrierConfigLoadedSubIds.length; phoneId++) { in onMultiSimConfigChanged()
[all …]
/aosp12/frameworks/base/services/core/java/com/android/server/
H A DTelephonyRegistry.java538 for (int phoneId = 0; phoneId < numPhones; phoneId++) {
1333 mIsDataEnabled[r.phoneId], mDataEnabledReason[r.phoneId]); in listen()
2174 mCallAttributes[phoneId] = new CallAttributes(mPreciseCallState[phoneId], in notifyPreciseCallState()
2175 mCallNetworkType[phoneId], mCallQuality[phoneId]); in notifyPreciseCallState()
2491 mCallAttributes[phoneId] = new CallAttributes(mPreciseCallState[phoneId], in notifyCallQualityChanged()
3214 boolean valid = (phoneId >= 0) && (phoneId < mNumPhones); in validatePhoneId()
3240 return (r.phoneId == phoneId); in idMatch()
3389 + phoneId + " umds=" + mUserMobileDataState[phoneId]);
3401 + phoneId + " dpi=" + mTelephonyDisplayInfos[phoneId]);
3415 + phoneId + " mwi=" + mMessageWaiting[phoneId]);
[all …]
/aosp12/frameworks/opt/telephony/src/java/com/android/internal/telephony/metrics/
H A DTelephonyMetrics.java463 pw.print(event.phoneId); in printAllMetrics()
836 mLastSimState.put(phoneId, state); in updateSimState()
868 for (int phoneId : inActivePhoneList) { in updateActiveSubscriptionInfoList()
1157 callSession.phoneId = inProgressCallSession.phoneId; in finishCallSession()
1186 smsSession.phoneId = inProgressSmsSession.phoneId; in finishSmsSession()
1314 mLastSettings.put(phoneId, s); in writeImsSetFeatureValue()
1345 mLastSettings.put(phoneId, s); in writeSetPreferredNetworkType()
1435 mLastImsCapabilities.put(phoneId, cap); in writeOnImsCapabilities()
2441 writeIncomingSmsWithType(phoneId, in writeIncomingSMSPP()
2454 writeIncomingSmsWithType(phoneId, in writeIncomingVoiceMailSms()
[all …]
H A DInProgressCallSession.java33 public final int phoneId; field in InProgressCallSession
61 public InProgressCallSession(int phoneId) { in InProgressCallSession() argument
62 this.phoneId = phoneId; in InProgressCallSession()
H A DInProgressSmsSession.java34 public final int phoneId; field in InProgressSmsSession
77 public InProgressSmsSession(int phoneId) { in InProgressSmsSession() argument
78 this.phoneId = phoneId; in InProgressSmsSession()
/aosp12/frameworks/opt/net/ims/src/java/com/android/ims/
H A DImsFeatureBinderRepository.java134 public final int phoneId; field in ImsFeatureBinderRepository.UpdateMapper
142 phoneId = pId; in UpdateMapper()
282 m = getUpdateMapper(phoneId, type); in getIfExists()
300 public void registerForConnectionUpdates(int phoneId, in registerForConnectionUpdates() argument
309 UpdateMapper m = getUpdateMapper(phoneId, type); in registerForConnectionUpdates()
347 UpdateMapper m = getUpdateMapper(phoneId, type); in addConnection()
363 UpdateMapper m = getUpdateMapper(phoneId, type); in removeConnection()
379 UpdateMapper m = getUpdateMapper(phoneId, type); in notifyFeatureStateChanged()
396 UpdateMapper m = getUpdateMapper(phoneId, type); in notifyFeatureCapabilitiesChanged()
412 .filter((c) -> ((c.phoneId == phoneId) && (c.imsFeatureType == type))) in getUpdateMapper()
[all …]
/aosp12/frameworks/base/core/java/com/android/internal/telephony/
H A DITelephonyRegistry.aidl52 void notifySignalStrengthForPhoneId(in int phoneId, in int subId, in notifySignalStrengthForPhoneId() argument
62 int phoneId, int subId, in PreciseDataConnectionState preciseState); in notifyDataConnectionForSubscriber() argument
67 void notifyPreciseCallState(int phoneId, int subId, int ringingCallState, in notifyPreciseCallState() argument
69 void notifyDisconnectCause(int phoneId, int subId, int disconnectCause, in notifyDisconnectCause() argument
73 void notifySimActivationStateChangedForPhoneId(in int phoneId, in int subId, in notifySimActivationStateChangedForPhoneId() argument
83 void notifyRadioPowerStateChanged(in int phoneId, in int subId, in int state); in notifyRadioPowerStateChanged() argument
84 void notifyEmergencyNumberList(in int phoneId, in int subId); in notifyEmergencyNumberList() argument
85 void notifyOutgoingEmergencyCall(in int phoneId, in int subId, in notifyOutgoingEmergencyCall() argument
87 void notifyOutgoingEmergencySms(in int phoneId, in int subId, in notifyOutgoingEmergencySms() argument
95 void notifyPhysicalChannelConfigForSubscriber(in int phoneId, in int subId, in notifyPhysicalChannelConfigForSubscriber() argument
[all …]
/aosp12/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/dataconnection/
H A DTelephonyNetworkFactoryTest.java232 final int phoneId = 0; in testActive() local
248 log("setPhoneActive true: phoneId = " + phoneId); in testActive()
250 activatePhoneInPhoneSwitcher(phoneId, true); in testActive()
260 activatePhoneInPhoneSwitcher(phoneId, false); in testActive()
270 activatePhoneInPhoneSwitcher(phoneId, true); in testActive()
280 activatePhoneInPhoneSwitcher(phoneId, false); in testActive()
290 activatePhoneInPhoneSwitcher(phoneId, true); in testActive()
303 final int phoneId = 0; in testRequests() local
317 activatePhoneInPhoneSwitcher(phoneId, true); in testRequests()
329 activatePhoneInPhoneSwitcher(phoneId, false); in testRequests()
[all …]
/aosp12/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/uicc/
H A DUiccSlotTest.java142 int phoneId = 0; in testUpdateActiveSlotStatus() local
144 iss.logicalSlotIndex = phoneId; in testUpdateActiveSlotStatus()
158 IccCardConstants.INTENT_VALUE_ICC_ABSENT, null, phoneId); in testUpdateActiveSlotStatus()
240 int phoneId = 0; in testUpdateAbsentState() local
246 IccCardConstants.INTENT_VALUE_ICC_ABSENT, null, phoneId); in testUpdateAbsentState()
282 int phoneId = 0; in testUiccSlotCreateAndDispose() local
298 IccCardConstants.INTENT_VALUE_ICC_ABSENT, null, phoneId); in testUiccSlotCreateAndDispose()
307 int phoneId = 0; in testUiccSlotBroadcastAbsent() local
333 IccCardConstants.INTENT_VALUE_ICC_ABSENT, null, phoneId); in testUiccSlotBroadcastAbsent()
340 int phoneId = 0; in testNotRemovable() local
[all …]
/aosp12/frameworks/opt/telephony/src/java/com/android/internal/telephony/uicc/
H A DUiccController.java285 return mPhoneIdToSlotId[phoneId]; in getSlotIdFromPhoneId()
332 if (isValidPhoneIndex(phoneId)) { in getUiccCardForPhone()
349 if (isValidPhoneIndex(phoneId)) { in getUiccProfileForPhone()
392 if (isValidPhoneIndex(phoneId)) { in getUiccSlotForPhone()
477 if (phoneId < 0 || phoneId >= mCis.length) { in handleMessage()
490 phoneId)); in handleMessage()
499 phoneId)); in handleMessage()
501 if (phoneId == 0) { in handleMessage()
507 phoneId)); in handleMessage()
535 onEidReady(ar, phoneId); in handleMessage()
[all …]
/aosp12/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
H A DCarrierResolverTest.java117 int phoneId = mPhone.getPhoneId(); in testCarrierMatch() local
135 int phoneId = mPhone.getPhoneId(); in testMnoCarrierId() local
147 .getSimOperatorNumericForPhone(eq(phoneId)); in testMnoCarrierId()
159 int phoneId = mPhone.getPhoneId(); in testPreciseCarrierId() local
161 .getSimOperatorNumericForPhone(eq(phoneId)); in testPreciseCarrierId()
175 .getSimOperatorNumericForPhone(eq(phoneId)); in testPreciseCarrierId()
182 .getSimOperatorNumericForPhone(eq(phoneId)); in testPreciseCarrierId()
189 .getSimOperatorNumericForPhone(eq(phoneId)); in testPreciseCarrierId()
200 int phoneId = mPhone.getPhoneId(); in testCarrierMatchSimAbsent() local
219 int phoneId = mPhone.getPhoneId(); in testCarrierNoMatch() local
[all …]
/aosp12/frameworks/base/core/java/android/telephony/
H A DCellBroadcastIntents.java106 private static void putPhoneIdAndSubIdExtra(Context context, Intent intent, int phoneId) { in putPhoneIdAndSubIdExtra() argument
107 int subId = getSubIdForPhone(context, phoneId); in putPhoneIdAndSubIdExtra()
112 intent.putExtra("phone", phoneId); in putPhoneIdAndSubIdExtra()
113 intent.putExtra(SubscriptionManager.EXTRA_SLOT_INDEX, phoneId); in putPhoneIdAndSubIdExtra()
122 private static int getSubIdForPhone(Context context, int phoneId) { in getSubIdForPhone() argument
126 int[] subIds = subMan.getSubscriptionIds(phoneId); in getSubIdForPhone()
/aosp12/packages/modules/CellBroadcastService/tests/src/com/android/cellbroadcastservice/tests/
H A DCellBroadcastHandlerTest.java243 int phoneId = 0; in testPutPhoneIdAndSubIdExtra() local
244 CellBroadcastHandler.putPhoneIdAndSubIdExtra(mMockedContext, intent, phoneId); in testPutPhoneIdAndSubIdExtra()
249 assertTrue(intent.getIntExtra(SubscriptionManager.EXTRA_SLOT_INDEX, phoneId + 1) in testPutPhoneIdAndSubIdExtra()
250 == phoneId); in testPutPhoneIdAndSubIdExtra()
251 assertTrue(intent.getIntExtra("phone", phoneId + 1) in testPutPhoneIdAndSubIdExtra()
252 == phoneId); in testPutPhoneIdAndSubIdExtra()
257 CellBroadcastHandler.putPhoneIdAndSubIdExtra(mMockedContext, intentNoSubId, phoneId); in testPutPhoneIdAndSubIdExtra()
262 assertTrue(intentNoSubId.getIntExtra(SubscriptionManager.EXTRA_SLOT_INDEX, phoneId + 1) in testPutPhoneIdAndSubIdExtra()
263 == phoneId); in testPutPhoneIdAndSubIdExtra()
264 assertTrue(intentNoSubId.getIntExtra("phone", phoneId + 1) in testPutPhoneIdAndSubIdExtra()
[all …]
/aosp12/frameworks/base/telephony/java/com/android/ims/internal/
H A DIImsService.aidl36 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
/aosp12/packages/services/Telephony/src/com/android/services/telephony/
H A DDisconnectCauseUtil.java86 String reason, int phoneId) { in toTelecomDisconnectCause() argument
88 reason, phoneId, null); in toTelecomDisconnectCause()
103 int phoneId, ImsReasonInfo imsReasonInfo) { in toTelecomDisconnectCause() argument
666 if (isRadioOffForThermalMitigation(phoneId)) { in toTelecomDisconnectCauseDescription()
672 } else if (ImsUtil.isWfcEnabled(context, phoneId)) { in toTelecomDisconnectCauseDescription()
700 if (ImsUtil.shouldPromoteWfc(context, phoneId)) { in toTelecomDisconnectCauseDescription()
704 } else if (ImsUtil.isWfcEnabled(context, phoneId)) { in toTelecomDisconnectCauseDescription()
794 Phone phone = PhoneFactory.getPhone(phoneId); in isRadioOffForThermalMitigation()
809 String reason, int phoneId) { in toTelecomDisconnectReason() argument
821 if (ImsUtil.shouldPromoteWfc(context, phoneId)) { in toTelecomDisconnectReason()
[all …]

1234