Home
last modified time | relevance | path

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

1234

/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DSubscriptionInfoUpdater.java180 public void updateInternalIccState(String simStatus, String reason, int phoneId) { in updateInternalIccState() argument
182 + " phoneId " + phoneId); in updateInternalIccState()
185 sendMessage(obtainMessage(message, phoneId, 0, reason)); in updateInternalIccState()
340 for (int phoneId = activeModemCount; phoneId < SUPPORTED_MODEM_COUNT; phoneId++) { in onMultiSimConfigChanged()
341 sIccId[phoneId] = null; in onMultiSimConfigChanged()
342 sSimCardState[phoneId] = TelephonyManager.SIM_STATE_UNKNOWN; in onMultiSimConfigChanged()
343 sSimApplicationState[phoneId] = TelephonyManager.SIM_STATE_UNKNOWN; in onMultiSimConfigChanged()
347 protected int getCardIdFromPhoneId(int phoneId) { in getCardIdFromPhoneId() argument
349 UiccCard card = uiccController.getUiccCardForPhone(phoneId); in getCardIdFromPhoneId()
361 protected void handleSimLocked(int phoneId, String reason) { in handleSimLocked() argument
[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.java159 int phoneId = SubscriptionController.getInstance().getPhoneId(subId); in registerForAllDataDisconnected() local
161 if (SubscriptionManager.isValidPhoneId(phoneId)) { in registerForAllDataDisconnected()
162 mPhones[phoneId].registerForAllDataDisconnected(h, what); in registerForAllDataDisconnected()
167 int phoneId = SubscriptionController.getInstance().getPhoneId(subId); in unregisterForAllDataDisconnected() local
169 if (SubscriptionManager.isValidPhoneId(phoneId)) { in unregisterForAllDataDisconnected()
170 mPhones[phoneId].unregisterForAllDataDisconnected(h); in unregisterForAllDataDisconnected()
176 int phoneId = SubscriptionController.getInstance().getPhoneId(subId); in areAllDataDisconnected() local
178 if (SubscriptionManager.isValidPhoneId(phoneId)) { in areAllDataDisconnected()
179 return mPhones[phoneId].areAllDataDisconnected(); in areAllDataDisconnected()
192 public int getRadioAccessFamily(int phoneId) { in getRadioAccessFamily() argument
[all …]
DPhoneSwitcher.java359 @ImsRegistrationImplBase.ImsRegistrationTech int get(Context context, int phoneId); in get() argument
364 (context, phoneId) -> ImsManager.getInstance(context, phoneId).getRegistrationTech();
393 int phoneId = phone.getPhoneId(); in isImsOnOriginalNetwork() local
394 if (!SubscriptionManager.isValidPhoneId(phoneId)) return false; in isImsOnOriginalNetwork()
396 int imsRegTech = mImsRegTechProvider.get(mContext, phoneId); in isImsOnOriginalNetwork()
429 private void registerForImsRadioTechChange(Context context, int phoneId) { in registerForImsRadioTechChange() argument
431 ImsManager.getInstance(context, phoneId).addRegistrationCallback( in registerForImsRadioTechChange()
638 final int phoneId = msg.arg1; in handleMessage() local
639 sendRilCommands(phoneId); in handleMessage()
730 int phoneId = (int) msg.obj; in handleMessage() local
[all …]
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()
260 public boolean getPhoneStatusFromCache(int phoneId) throws NoSuchElementException { in getPhoneStatusFromCache() argument
261 if (mPhoneStatusMap.containsKey(phoneId)) { in getPhoneStatusFromCache()
262 return mPhoneStatusMap.get(phoneId); in getPhoneStatusFromCache()
264 throw new NoSuchElementException("phoneId not found: " + phoneId); in getPhoneStatusFromCache()
282 public void addToPhoneStatusCache(int phoneId, boolean status) { in addToPhoneStatusCache() argument
283 mPhoneStatusMap.put(phoneId, status); in addToPhoneStatusCache()
[all …]
DPhoneFactory.java316 private static Phone createPhone(Context context, int phoneId) { in createPhone() argument
318 Rlog.i(LOG_TAG, "Creating Phone with type = " + phoneType + " phoneId = " + phoneId); in createPhone()
326 sCommandsInterfaces[phoneId], sPhoneNotifier, phoneId, phoneType, in createPhone()
341 public static Phone getPhone(int phoneId) { in getPhone() argument
349 } else if (phoneId == SubscriptionManager.DEFAULT_PHONE_INDEX) { in getPhone()
358 phone = (phoneId >= 0 && phoneId < sPhones.length) in getPhone()
359 ? sPhones[phoneId] : null; in getPhone()
362 Rlog.d(LOG_TAG, "getPhone:- " + dbgInfo + " phoneId=" + phoneId + in getPhone()
388 public static TelephonyNetworkFactory getNetworkFactory(int phoneId) { in getNetworkFactory() argument
394 if (phoneId == SubscriptionManager.DEFAULT_PHONE_INDEX) { in getNetworkFactory()
[all …]
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()
DMultiSimSettingController.java159 int phoneId = intent.getIntExtra(CarrierConfigManager.EXTRA_SLOT_INDEX,
163 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
389 obtainMessage(EVENT_CARRIER_CONFIG_CHANGED, phoneId, subId).sendToTarget(); in notifyCarrierConfigChanged()
392 private void onCarrierConfigChanged(int phoneId, int subId) { in onCarrierConfigChanged() argument
393 log("onCarrierConfigChanged phoneId " + phoneId + " subId " + subId); in onCarrierConfigChanged()
394 if (!SubscriptionManager.isValidPhoneId(phoneId)) { in onCarrierConfigChanged()
395 loge("Carrier config change with invalid phoneId " + phoneId); in onCarrierConfigChanged()
[all …]
DIntentBroadcaster.java88 public void broadcastStickyIntent(Context context, Intent intent, int phoneId) { in broadcastStickyIntent() argument
91 + " for phoneId " + phoneId); in broadcastStickyIntent()
94 mRebroadcastIntents.put(phoneId, intent); in broadcastStickyIntent()
DSmsBroadcastUndelivered.java222 int phoneId = 0; in scanRawTable() local
238 metrics.writeDroppedIncomingMultipartSms(phoneId, message.mFormat, rows, in scanRawTable()
264 int phoneId = SubscriptionController.getInstance().getPhoneId(subId); in broadcastSms() local
265 if (!SubscriptionManager.isValidPhoneId(phoneId)) { in broadcastSms()
269 Phone phone = PhoneFactory.getPhone(phoneId); in broadcastSms()
272 + " phoneId " + phoneId); in broadcastSms()
/frameworks/base/services/core/java/com/android/server/
DTelephonyRegistry.java159 int phoneId = SubscriptionManager.INVALID_SIM_SLOT_INDEX; field in TelephonyRegistry.Record
190 + " phoneId=" + phoneId + " events=" + eventList + "}"; in toString()
537 for (int phoneId = 0; phoneId < numPhones; phoneId++) {
538 int[] subIds = SubscriptionManager.getSubId(phoneId);
544 subId, mCellIdentity[phoneId], true /* hasUserSwitched */);
1028 int phoneId = getPhoneIdFromSubId(subId); in listen() local
1055 r.phoneId = phoneId; in listen()
1059 log("listen: Register r=" + r + " r.subId=" + r.subId + " phoneId=" + phoneId); in listen()
1061 if (notifyNow && validatePhoneId(phoneId)) { in listen()
1064 if (VDBG) log("listen: call onSSC state=" + mServiceState[phoneId]); in listen()
[all …]
/frameworks/base/core/java/com/android/internal/telephony/
DITelephonyRegistry.aidl50 void notifyCallState(in int phoneId, in int subId, int state, String incomingNumber); in notifyCallState() argument
51 void notifyServiceStateForPhoneId(in int phoneId, in int subId, in ServiceState state); in notifyServiceStateForPhoneId() argument
52 void notifySignalStrengthForPhoneId(in int phoneId, in int subId, in notifySignalStrengthForPhoneId() argument
54 void notifyMessageWaitingChangedForPhoneId(in int phoneId, in int subId, in boolean mwi); in notifyMessageWaitingChangedForPhoneId() 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
75 void notifyOemHookRawEventForSubscriber(in int phoneId, in int subId, in byte[] rawData); in notifyOemHookRawEventForSubscriber() argument
79 void notifyUserMobileDataStateChangedForPhoneId(in int phoneId, in int subId, in boolean state); in notifyUserMobileDataStateChangedForPhoneId() argument
[all …]
/frameworks/opt/net/ims/src/java/com/android/ims/
DImsFeatureBinderRepository.java134 public final int phoneId; field in ImsFeatureBinderRepository.UpdateMapper
142 phoneId = pId; in UpdateMapper()
250 return "UpdateMapper{" + "phoneId=" + phoneId + ", type=" in toString()
277 int phoneId, @ImsFeature.FeatureType int type) { in getIfExists() argument
282 m = getUpdateMapper(phoneId, type); in getIfExists()
284 logVerboseLineLocked(phoneId, "getIfExists, type= " + ImsFeature.FEATURE_LOG_MAP.get(type) in getIfExists()
300 public void registerForConnectionUpdates(int phoneId, in registerForConnectionUpdates() argument
307 logInfoLineLocked(phoneId, "registerForConnectionUpdates, type= " in registerForConnectionUpdates()
309 UpdateMapper m = getUpdateMapper(phoneId, type); in registerForConnectionUpdates()
340 public void addConnection(int phoneId, @ImsFeature.FeatureType int type, in addConnection() argument
[all …]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/metrics/
DTelephonyMetrics.java461 pw.print(event.phoneId); in printAllMetrics()
491 pw.print(", phone: " + callSession.phoneId); in printAllMetrics()
540 pw.print(", phone: " + smsSession.phoneId); in printAllMetrics()
826 public void updateSimState(int phoneId, int simState) { in updateSimState() argument
828 Integer lastSimState = mLastSimState.get(phoneId); in updateSimState()
830 mLastSimState.put(phoneId, state); in updateSimState()
832 new TelephonyEventBuilder(phoneId).setSimStateChange(mLastSimState).build()); in updateSimState()
844 int phoneId = info.getSimSlotIndex(); in updateActiveSubscriptionInfoList() local
845 inActivePhoneList.removeIf(value -> value.equals(phoneId)); in updateActiveSubscriptionInfoList()
847 activeSubscriptionInfo.slotIndex = phoneId; 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()
DSimSlotState.java70 public static boolean isEsim(int phoneId) { in isEsim() argument
71 UiccSlot slot = UiccController.getInstance().getUiccSlotForPhone(phoneId); in isEsim()
76 Rlog.e(TAG, "isEsim: slot=null for phone " + phoneId); in isEsim()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/dataconnection/
DTelephonyNetworkFactoryTest.java145 private void activatePhoneInPhoneSwitcher(int phoneId, boolean active) { in activatePhoneInPhoneSwitcher() argument
146 doReturn(active).when(mPhoneSwitcher).shouldApplyNetworkRequest(any(), eq(phoneId)); in activatePhoneInPhoneSwitcher()
150 private void activatePhoneInPhoneSwitcher(int phoneId, NetworkRequest nr, boolean active) { in activatePhoneInPhoneSwitcher() argument
151 doReturn(active).when(mPhoneSwitcher).shouldApplyNetworkRequest(eq(nr), eq(phoneId)); in activatePhoneInPhoneSwitcher()
232 final int phoneId = 0; in testActive() local
238 doReturn(subId).when(mSubscriptionController).getSubIdUsingPhoneId(phoneId); in testActive()
248 log("setPhoneActive true: phoneId = " + phoneId); in testActive()
250 activatePhoneInPhoneSwitcher(phoneId, true); in testActive()
259 log("setPhoneActive false: phoneId = " + phoneId); in testActive()
260 activatePhoneInPhoneSwitcher(phoneId, false); in testActive()
[all …]
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/uicc/
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
244 mUiccSlot.update(mSimulatedCommands, mIccCardStatus, phoneId, slotIndex); in testUpdateAbsentState()
246 IccCardConstants.INTENT_VALUE_ICC_ABSENT, null, phoneId); 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); in testUiccSlotCreateAndDispose()
[all …]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/uicc/
DUiccController.java283 public int getSlotIdFromPhoneId(int phoneId) { in getSlotIdFromPhoneId() argument
285 return mPhoneIdToSlotId[phoneId]; in getSlotIdFromPhoneId()
303 public UiccCard getUiccCard(int phoneId) { in getUiccCard() argument
305 return getUiccCardForPhone(phoneId); in getUiccCard()
330 public UiccCard getUiccCardForPhone(int phoneId) { in getUiccCardForPhone() argument
332 if (isValidPhoneIndex(phoneId)) { in getUiccCardForPhone()
333 UiccSlot uiccSlot = getUiccSlotForPhone(phoneId); in getUiccCardForPhone()
347 public UiccProfile getUiccProfileForPhone(int phoneId) { in getUiccProfileForPhone() argument
349 if (isValidPhoneIndex(phoneId)) { in getUiccProfileForPhone()
350 UiccCard uiccCard = getUiccCardForPhone(phoneId); in getUiccProfileForPhone()
[all …]
/frameworks/base/core/java/android/telephony/
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()
/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.java117 int phoneId = mPhone.getPhoneId(); in testCarrierMatch() local
118 doReturn(MCCMNC).when(mTelephonyManager).getSimOperatorNumericForPhone(eq(phoneId)); in testCarrierMatch()
135 int phoneId = mPhone.getPhoneId(); in testMnoCarrierId() local
136 doReturn(MCCMNC).when(mTelephonyManager).getSimOperatorNumericForPhone(eq(phoneId)); in testMnoCarrierId()
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()
[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
/frameworks/base/telephony/java/android/telephony/
DTelephonyManager.java2450 int phoneId; in getCurrentPhoneType() local
2454 phoneId = 0; in getCurrentPhoneType()
2456 phoneId = SubscriptionManager.getPhoneId(subId); in getCurrentPhoneType()
2459 return getCurrentPhoneTypeForSlot(phoneId); in getCurrentPhoneType()
2509 private int getPhoneTypeFromProperty(int phoneId) { in getPhoneTypeFromProperty() argument
2511 phoneId, TelephonyProperties.current_active_phone(), null); in getPhoneTypeFromProperty()
2513 return getPhoneTypeFromNetworkType(phoneId); in getPhoneTypeFromProperty()
2521 private int getPhoneTypeFromNetworkType(int phoneId) { in getPhoneTypeFromNetworkType() argument
2525 Integer mode = getTelephonyProperty(phoneId, TelephonyProperties.default_network(), null); in getPhoneTypeFromNetworkType()
2623 int phoneId = SubscriptionManager.getPhoneId(subId); in getNetworkOperatorName() local
[all …]

1234