Home
last modified time | relevance | path

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

123

/frameworks/opt/telephony/src/java/com/android/internal/telephony/vendor/
DVendorPhoneSwitcher.java147 int phoneId = intent.getIntExtra(PhoneConstants.PHONE_KEY,
149 log("mSimStateIntentReceiver: phoneId = " + phoneId + " value = " + value);
150 if (SubscriptionManager.isValidPhoneId(phoneId)) {
151 mSimStates[phoneId] = value;
156 mDdsRequestSent[phoneId] = false;
160 if (isSimReady(phoneId) && (getConnectFailureCount(phoneId) > 0)) {
161 sendRilCommands(phoneId);
206 for (int phoneId : mNewActivePhones) { in handleMessage()
207 activate(phoneId); in handleMessage()
229 private boolean isSimReady(int phoneId) { in isSimReady() argument
[all …]
DVendorSubscriptionInfoUpdater.java82 protected void handleSimReady(int phoneId) { in handleSimReady() argument
84 Rlog.d(LOG_TAG, "handleSimReady: phoneId: " + phoneId); in handleSimReady()
86 if (sIccId[phoneId] != null && sIccId[phoneId].equals(ICCID_STRING_FOR_NO_SIM)) { in handleSimReady()
87 Rlog.d(LOG_TAG, " SIM" + (phoneId + 1) + " hot plug in"); in handleSimReady()
88 sIccId[phoneId] = null; in handleSimReady()
90 UiccSlot uiccSlot = UiccController.getInstance().getUiccSlotForPhone(phoneId); in handleSimReady()
101 sIccId[phoneId] = IccUtils.stripTrailingFs(iccId); in handleSimReady()
103 updateSubscriptionInfoByIccId(phoneId, true /* updateEmbeddedSubs */); in handleSimReady()
105 cardIds.add(getCardIdFromPhoneId(phoneId)); in handleSimReady()
111 broadcastSimStateChanged(phoneId, IccCardConstants.INTENT_VALUE_ICC_READY, null); in handleSimReady()
[all …]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DSubscriptionInfoUpdater.java203 public void updateInternalIccState(String simStatus, String reason, int phoneId) { in updateInternalIccState() argument
205 + " phoneId " + phoneId); in updateInternalIccState()
208 sendMessage(obtainMessage(message, phoneId, 0, reason)); in updateInternalIccState()
363 for (int phoneId = activeModemCount; phoneId < SUPPORTED_MODEM_COUNT; phoneId++) { in onMultiSimConfigChanged()
364 SubscriptionController.getInstance().clearSubInfoRecord(phoneId); in onMultiSimConfigChanged()
365 sIccId[phoneId] = null; in onMultiSimConfigChanged()
366 sSimCardState[phoneId] = TelephonyManager.SIM_STATE_UNKNOWN; in onMultiSimConfigChanged()
367 sSimApplicationState[phoneId] = TelephonyManager.SIM_STATE_UNKNOWN; in onMultiSimConfigChanged()
371 protected int getCardIdFromPhoneId(int phoneId) { in getCardIdFromPhoneId() argument
373 UiccCard card = uiccController.getUiccCardForPhone(phoneId); in getCardIdFromPhoneId()
[all …]
DCarrierServiceBindHelper.java84 for (int phoneId = 0; phoneId < mBindings.size(); phoneId++) {
85 mBindings.get(phoneId).rebind();
102 int phoneId;
108 phoneId = (int) msg.obj;
109 binding = mBindings.get(phoneId);
115 phoneId = (int) msg.obj;
116 binding = mBindings.get(phoneId);
155 for (int phoneId = prevLen; phoneId < newLen; phoneId++) { in updateBindingsAndSimStates()
156 mBindings.put(phoneId, new AppBinding(phoneId)); in updateBindingsAndSimStates()
157 mLastSimState.put(phoneId, new String()); in updateBindingsAndSimStates()
[all …]
DProxyController.java158 int phoneId = SubscriptionController.getInstance().getPhoneId(subId); in registerForAllDataDisconnected() local
160 if (SubscriptionManager.isValidPhoneId(phoneId)) { in registerForAllDataDisconnected()
161 mPhones[phoneId].registerForAllDataDisconnected(h, what); in registerForAllDataDisconnected()
166 int phoneId = SubscriptionController.getInstance().getPhoneId(subId); in unregisterForAllDataDisconnected() local
168 if (SubscriptionManager.isValidPhoneId(phoneId)) { in unregisterForAllDataDisconnected()
169 mPhones[phoneId].unregisterForAllDataDisconnected(h); in unregisterForAllDataDisconnected()
175 int phoneId = SubscriptionController.getInstance().getPhoneId(subId); in areAllDataDisconnected() local
177 if (SubscriptionManager.isValidPhoneId(phoneId)) { in areAllDataDisconnected()
178 return mPhones[phoneId].areAllDataDisconnected(); in areAllDataDisconnected()
191 public int getRadioAccessFamily(int phoneId) { in getRadioAccessFamily() argument
[all …]
DPhoneSwitcher.java478 final int phoneId = msg.arg1; in handleMessage() local
479 sendRilCommands(phoneId); in handleMessage()
550 int phoneId = (int) ar.userObj; in handleMessage() local
553 phoneId), MODEM_COMMAND_RETRY_PERIOD_MS); in handleMessage()
558 int phoneId = (int) msg.obj; in handleMessage() local
559 log("Resend modem command on phone " + phoneId); in handleMessage()
560 sendRilCommands(phoneId); in handleMessage()
631 for (int phoneId = oldActiveModemCount; phoneId < mActiveModemCount; phoneId++) { in onMultiSimConfigChanged()
632 mPhoneStates[phoneId] = new PhoneState(); in onMultiSimConfigChanged()
633 Phone phone = PhoneFactory.getPhone(phoneId); in onMultiSimConfigChanged()
[all …]
DPhoneFactory.java294 private static Phone createPhone(Context context, int phoneId) { in createPhone() argument
296 Rlog.i(LOG_TAG, "Creating Phone with type = " + phoneType + " phoneId = " + phoneId); in createPhone()
304 sCommandsInterfaces[phoneId], sPhoneNotifier, phoneId, phoneType, in createPhone()
319 public static Phone getPhone(int phoneId) { in getPhone() argument
327 } else if (phoneId == SubscriptionManager.DEFAULT_PHONE_INDEX) { in getPhone()
336 phone = (phoneId >= 0 && phoneId < sPhones.length) in getPhone()
337 ? sPhones[phoneId] : null; in getPhone()
340 Rlog.d(LOG_TAG, "getPhone:- " + dbgInfo + " phoneId=" + phoneId + in getPhone()
366 public static TelephonyNetworkFactory getNetworkFactory(int phoneId) { in getNetworkFactory() argument
372 if (phoneId == SubscriptionManager.DEFAULT_PHONE_INDEX) { in getNetworkFactory()
[all …]
DDefaultPhoneNotifier.java70 int phoneId = sender.getPhoneId(); in notifyPhoneState() local
75 mTelephonyRegistryMgr.notifyCallStateChanged(subId, phoneId, in notifyPhoneState()
82 int phoneId = sender.getPhoneId(); in notifyServiceState() local
86 + " sender=" + sender + " phondId=" + phoneId + " subId=" + subId); in notifyServiceState()
91 mTelephonyRegistryMgr.notifyServiceStateChanged(subId, phoneId, ss); in notifyServiceState()
96 int phoneId = sender.getPhoneId(); in notifySignalStrength() local
103 mTelephonyRegistryMgr.notifySignalStrengthChanged(subId, phoneId, in notifySignalStrength()
109 int phoneId = sender.getPhoneId(); in notifyMessageWaitingChanged() local
111 mTelephonyRegistryMgr.notifyMessageWaitingChanged(subId, phoneId, in notifyMessageWaitingChanged()
139 int phoneId = sender.getPhoneId(); in notifyDataConnection() local
[all …]
DPhoneConfigurationManager.java168 int phoneId = msg.arg1; in handleMessage() local
171 addToPhoneStatusCache(phoneId, enabled); in handleMessage()
216 int phoneId = phone.getPhoneId(); in getPhoneStatus() local
220 return getPhoneStatusFromCache(phoneId); in getPhoneStatus()
254 public boolean getPhoneStatusFromCache(int phoneId) throws NoSuchElementException { in getPhoneStatusFromCache() argument
255 if (mPhoneStatusMap.containsKey(phoneId)) { in getPhoneStatusFromCache()
256 return mPhoneStatusMap.get(phoneId); in getPhoneStatusFromCache()
258 throw new NoSuchElementException("phoneId not found: " + phoneId); in getPhoneStatusFromCache()
276 public void addToPhoneStatusCache(int phoneId, boolean status) { in addToPhoneStatusCache() argument
277 mPhoneStatusMap.put(phoneId, status); in addToPhoneStatusCache()
DMultiSimSettingController.java145 int phoneId = intent.getIntExtra(CarrierConfigManager.EXTRA_SLOT_INDEX,
149 notifyCarrierConfigChanged(phoneId, subId);
275 int phoneId = msg.arg1; in handleMessage() local
277 onCarrierConfigChanged(phoneId, subId); in handleMessage()
338 public void notifyCarrierConfigChanged(int phoneId, int subId) { in notifyCarrierConfigChanged() argument
339 obtainMessage(EVENT_CARRIER_CONFIG_CHANGED, phoneId, subId).sendToTarget(); in notifyCarrierConfigChanged()
342 private void onCarrierConfigChanged(int phoneId, int subId) { in onCarrierConfigChanged() argument
343 log("onCarrierConfigChanged phoneId " + phoneId + " subId " + subId); in onCarrierConfigChanged()
344 if (!SubscriptionManager.isValidPhoneId(phoneId)) { in onCarrierConfigChanged()
345 loge("Carrier config change with invalid phoneId " + phoneId); in onCarrierConfigChanged()
[all …]
DPhoneSubInfoController.java69 public String getDeviceIdForPhone(int phoneId, String callingPackage, in getDeviceIdForPhone() argument
71 return callPhoneMethodForPhoneIdWithReadDeviceIdentifiersCheck(phoneId, callingPackage, in getDeviceIdForPhone()
255 int phoneId = SubscriptionManager.getPhoneId(subId); in getPhone() local
256 if (!SubscriptionManager.isValidPhoneId(phoneId)) { in getPhone()
257 phoneId = 0; in getPhone()
259 return PhoneFactory.getPhone(phoneId); in getPhone()
509 private <T> T callPhoneMethodForPhoneIdWithReadDeviceIdentifiersCheck(int phoneId,
513 if (!SubscriptionManager.isValidPhoneId(phoneId)) {
514 phoneId = 0;
516 final Phone phone = PhoneFactory.getPhone(phoneId);
/frameworks/base/services/core/java/com/android/server/
DTelephonyRegistry.java149 int phoneId = SubscriptionManager.INVALID_SIM_SLOT_INDEX; field in TelephonyRegistry.Record
180 + " phoneId=" + phoneId + " events=" + Integer.toHexString(events) + "}"; in toString()
822 int phoneId = getPhoneIdFromSubId(subId); in listen() local
849 r.phoneId = phoneId; in listen()
852 log("listen: Register r=" + r + " r.subId=" + r.subId + " phoneId=" + phoneId); in listen()
854 if (notifyNow && validatePhoneId(phoneId)) { in listen()
857 if (VDBG) log("listen: call onSSC state=" + mServiceState[phoneId]); in listen()
858 ServiceState rawSs = new ServiceState(mServiceState[phoneId]); in listen()
874 if (mSignalStrength[phoneId] != null) { in listen()
875 int gsmSignalStrength = mSignalStrength[phoneId] in listen()
[all …]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/metrics/
DTelephonyMetrics.java441 pw.print(event.phoneId); in printAllMetrics()
471 pw.print(", phone: " + callSession.phoneId); in printAllMetrics()
518 pw.print(", phone: " + smsSession.phoneId); in printAllMetrics()
766 public void updateSimState(int phoneId, int simState) { in updateSimState() argument
768 Integer lastSimState = mLastSimState.get(phoneId); in updateSimState()
770 mLastSimState.put(phoneId, state); in updateSimState()
783 int phoneId = info.getSimSlotIndex(); in updateActiveSubscriptionInfoList() local
784 inActivePhoneList.removeIf(value -> value.equals(phoneId)); in updateActiveSubscriptionInfoList()
786 activeSubscriptionInfo.slotIndex = phoneId; in updateActiveSubscriptionInfoList()
793 mLastActiveSubscriptionInfos.get(phoneId), activeSubscriptionInfo)) { in updateActiveSubscriptionInfoList()
[all …]
DInProgressSmsSession.java34 public final int phoneId; field in InProgressSmsSession
77 public InProgressSmsSession(int phoneId) { in InProgressSmsSession() argument
78 this.phoneId = phoneId; in InProgressSmsSession()
DInProgressCallSession.java33 public final int phoneId; field in InProgressCallSession
61 public InProgressCallSession(int phoneId) { in InProgressCallSession() argument
62 this.phoneId = phoneId; in InProgressCallSession()
/frameworks/base/core/java/com/android/internal/telephony/
DITelephonyRegistry.aidl56 void notifyCallState(in int phoneId, in int subId, int state, String incomingNumber); in notifyCallState() argument
57 void notifyServiceStateForPhoneId(in int phoneId, in int subId, in ServiceState state); in notifyServiceStateForPhoneId() argument
58 void notifySignalStrengthForPhoneId(in int phoneId, in int subId, in notifySignalStrengthForPhoneId() argument
60 void notifyMessageWaitingChangedForPhoneId(in int phoneId, in int subId, in boolean mwi); in notifyMessageWaitingChangedForPhoneId() argument
68 int phoneId, int subId, String apnType, in PreciseDataConnectionState preciseState); in notifyDataConnectionForSubscriber() argument
71 void notifyDataConnectionFailedForSubscriber(int phoneId, int subId, String apnType); in notifyDataConnectionFailedForSubscriber() argument
77 void notifyPreciseCallState(int phoneId, int subId, int ringingCallState, in notifyPreciseCallState() argument
79 void notifyDisconnectCause(int phoneId, int subId, int disconnectCause, in notifyDisconnectCause() argument
81 void notifyPreciseDataConnectionFailed(int phoneId, int subId, String apnType, String apn, in notifyPreciseDataConnectionFailed() argument
85 void notifySimActivationStateChangedForPhoneId(in int phoneId, in int subId, in notifySimActivationStateChangedForPhoneId() argument
[all …]
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/dataconnection/
DTelephonyNetworkFactoryTest.java129 private void activatePhoneInPhoneSwitcher(int phoneId, boolean active) { in activatePhoneInPhoneSwitcher() argument
130 doReturn(active).when(mPhoneSwitcher).shouldApplyNetworkRequest(any(), eq(phoneId)); in activatePhoneInPhoneSwitcher()
134 private void activatePhoneInPhoneSwitcher(int phoneId, NetworkRequest nr, boolean active) { in activatePhoneInPhoneSwitcher() argument
135 doReturn(active).when(mPhoneSwitcher).shouldApplyNetworkRequest(eq(nr), eq(phoneId)); in activatePhoneInPhoneSwitcher()
184 final int phoneId = 0; in testActive() local
190 doReturn(subId).when(mSubscriptionController).getSubIdUsingPhoneId(phoneId); in testActive()
200 log("setPhoneActive true: phoneId = " + phoneId); in testActive()
202 activatePhoneInPhoneSwitcher(phoneId, true); in testActive()
211 log("setPhoneActive false: phoneId = " + phoneId); in testActive()
212 activatePhoneInPhoneSwitcher(phoneId, false); in testActive()
[all …]
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/uicc/
DUiccSlotTest.java141 int phoneId = 0; in testUpdateActiveSlotStatus() local
143 iss.logicalSlotIndex = phoneId; in testUpdateActiveSlotStatus()
157 IccCardConstants.INTENT_VALUE_ICC_ABSENT, null, phoneId); 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); in testUpdateAbsentState()
281 int phoneId = 0; in testUiccSlotCreateAndDispose() local
285 mUiccSlot.update(mSimulatedCommands, mIccCardStatus, phoneId, slotIndex); in testUiccSlotCreateAndDispose()
295 mUiccSlot.update(mSimulatedCommands, mIccCardStatus, phoneId, slotIndex); in testUiccSlotCreateAndDispose()
297 IccCardConstants.INTENT_VALUE_ICC_ABSENT, null, phoneId); in testUiccSlotCreateAndDispose()
[all …]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/uicc/
DUiccController.java281 public int getSlotIdFromPhoneId(int phoneId) { in getSlotIdFromPhoneId() argument
283 return mPhoneIdToSlotId[phoneId]; in getSlotIdFromPhoneId()
301 public UiccCard getUiccCard(int phoneId) { in getUiccCard() argument
303 return getUiccCardForPhone(phoneId); in getUiccCard()
328 public UiccCard getUiccCardForPhone(int phoneId) { in getUiccCardForPhone() argument
330 if (isValidPhoneIndex(phoneId)) { in getUiccCardForPhone()
331 UiccSlot uiccSlot = getUiccSlotForPhone(phoneId); in getUiccCardForPhone()
345 public UiccProfile getUiccProfileForPhone(int phoneId) { in getUiccProfileForPhone() argument
347 if (isValidPhoneIndex(phoneId)) { in getUiccProfileForPhone()
348 UiccCard uiccCard = getUiccCardForPhone(phoneId); in getUiccProfileForPhone()
[all …]
/frameworks/base/core/java/android/telephony/
DCellBroadcastIntents.java105 private static void putPhoneIdAndSubIdExtra(Context context, Intent intent, int phoneId) { in putPhoneIdAndSubIdExtra() argument
106 int subId = getSubIdForPhone(context, phoneId); in putPhoneIdAndSubIdExtra()
111 intent.putExtra("phone", phoneId); in putPhoneIdAndSubIdExtra()
112 intent.putExtra(SubscriptionManager.EXTRA_SLOT_INDEX, phoneId); in putPhoneIdAndSubIdExtra()
121 private static int getSubIdForPhone(Context context, int phoneId) { in getSubIdForPhone() argument
125 int[] subIds = subMan.getSubscriptionIds(phoneId); in getSubIdForPhone()
/frameworks/base/telephony/java/com/android/ims/internal/
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
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DCarrierResolverTest.java116 int phoneId = mPhone.getPhoneId(); in testCarrierMatch() local
117 doReturn(MCCMNC).when(mTelephonyManager).getSimOperatorNumericForPhone(eq(phoneId)); in testCarrierMatch()
134 int phoneId = mPhone.getPhoneId(); in testMnoCarrierId() local
135 doReturn(MCCMNC).when(mTelephonyManager).getSimOperatorNumericForPhone(eq(phoneId)); in testMnoCarrierId()
146 .getSimOperatorNumericForPhone(eq(phoneId)); in testMnoCarrierId()
158 int phoneId = mPhone.getPhoneId(); in testPreciseCarrierId() local
160 .getSimOperatorNumericForPhone(eq(phoneId)); in testPreciseCarrierId()
174 .getSimOperatorNumericForPhone(eq(phoneId)); in testPreciseCarrierId()
181 .getSimOperatorNumericForPhone(eq(phoneId)); in testPreciseCarrierId()
188 .getSimOperatorNumericForPhone(eq(phoneId)); in testPreciseCarrierId()
[all …]
/frameworks/opt/net/ims/src/java/com/android/ims/
DFeatureConnector.java94 public FeatureConnector(Context context, int phoneId, Listener<T> listener, in FeatureConnector() argument
97 mPhoneId = phoneId; in FeatureConnector()
104 public FeatureConnector(Context context, int phoneId, Listener<T> listener, in FeatureConnector() argument
107 mPhoneId = phoneId; in FeatureConnector()
114 public FeatureConnector(Context context, int phoneId, Listener<T> listener, in FeatureConnector() argument
118 mPhoneId = phoneId; in FeatureConnector()
/frameworks/base/telephony/java/android/telephony/
DTelephonyManager.java2263 int phoneId; in getCurrentPhoneType() local
2267 phoneId = 0; in getCurrentPhoneType()
2269 phoneId = SubscriptionManager.getPhoneId(subId); in getCurrentPhoneType()
2272 return getCurrentPhoneTypeForSlot(phoneId); in getCurrentPhoneType()
2322 private int getPhoneTypeFromProperty(int phoneId) { in getPhoneTypeFromProperty() argument
2324 phoneId, TelephonyProperties.current_active_phone(), null); in getPhoneTypeFromProperty()
2326 return getPhoneTypeFromNetworkType(phoneId); in getPhoneTypeFromProperty()
2334 private int getPhoneTypeFromNetworkType(int phoneId) { in getPhoneTypeFromNetworkType() argument
2338 Integer mode = getTelephonyProperty(phoneId, TelephonyProperties.default_network(), null); in getPhoneTypeFromNetworkType()
2436 int phoneId = SubscriptionManager.getPhoneId(subId); in getNetworkOperatorName() local
[all …]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/imsphone/
DImsRcsStatusListener.java28 void onRcsConnected(int phoneId, RcsFeatureManager rcsFeatureManager); in onRcsConnected() argument
33 void onRcsDisconnected(int phoneId); in onRcsDisconnected() argument

123