Home
last modified time | relevance | path

Searched refs:phoneId (Results 1 – 25 of 68) 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 …]
DVendorGsmCdmaPhone.java42 CommandsInterface ci, PhoneNotifier notifier, int phoneId, in VendorGsmCdmaPhone() argument
44 this(context, ci, notifier, false, phoneId, precisePhoneType, in VendorGsmCdmaPhone()
49 CommandsInterface ci, PhoneNotifier notifier, boolean unitTestMode, int phoneId, in VendorGsmCdmaPhone() argument
51 super(context, ci, notifier, unitTestMode, phoneId, precisePhoneType, in VendorGsmCdmaPhone()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DSubscriptionInfoUpdater.java182 public void updateInternalIccState(String simStatus, String reason, int phoneId) { in updateInternalIccState() argument
184 + " phoneId " + phoneId); in updateInternalIccState()
187 sendMessage(obtainMessage(message, phoneId, 0, reason)); in updateInternalIccState()
342 for (int phoneId = activeModemCount; phoneId < SUPPORTED_MODEM_COUNT; phoneId++) { in onMultiSimConfigChanged()
343 SubscriptionController.getInstance().clearSubInfoRecord(phoneId); in onMultiSimConfigChanged()
344 sIccId[phoneId] = null; in onMultiSimConfigChanged()
345 sSimCardState[phoneId] = TelephonyManager.SIM_STATE_UNKNOWN; in onMultiSimConfigChanged()
346 sSimApplicationState[phoneId] = TelephonyManager.SIM_STATE_UNKNOWN; in onMultiSimConfigChanged()
350 protected int getCardIdFromPhoneId(int phoneId) { in getCardIdFromPhoneId() argument
352 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.java487 final int phoneId = msg.arg1; in handleMessage() local
488 sendRilCommands(phoneId); in handleMessage()
559 int phoneId = (int) ar.userObj; in handleMessage() local
562 phoneId), MODEM_COMMAND_RETRY_PERIOD_MS); in handleMessage()
567 int phoneId = (int) msg.obj; in handleMessage() local
568 log("Resend modem command on phone " + phoneId); in handleMessage()
569 sendRilCommands(phoneId); in handleMessage()
640 for (int phoneId = oldActiveModemCount; phoneId < mActiveModemCount; phoneId++) { in onMultiSimConfigChanged()
641 mPhoneStates[phoneId] = new PhoneState(); in onMultiSimConfigChanged()
642 Phone phone = PhoneFactory.getPhone(phoneId); in onMultiSimConfigChanged()
[all …]
DDefaultPhoneNotifier.java64 int phoneId = sender.getPhoneId(); in notifyPhoneState() local
69 mTelephonyRegistryMgr.notifyCallStateChanged(subId, phoneId, in notifyPhoneState()
76 int phoneId = sender.getPhoneId(); in notifyServiceState() local
80 + ss + " sender=" + sender + " phondId=" + phoneId + " subId=" + subId); in notifyServiceState()
85 mTelephonyRegistryMgr.notifyServiceStateChanged(subId, phoneId, ss); in notifyServiceState()
90 int phoneId = sender.getPhoneId(); in notifySignalStrength() local
97 mTelephonyRegistryMgr.notifySignalStrengthChanged(subId, phoneId, in notifySignalStrength()
103 int phoneId = sender.getPhoneId(); in notifyMessageWaitingChanged() local
105 mTelephonyRegistryMgr.notifyMessageWaitingChanged(subId, phoneId, in notifyMessageWaitingChanged()
131 int phoneId = sender.getPhoneId(); in notifyDataConnection() local
[all …]
DPhoneFactory.java298 private static Phone createPhone(Context context, int phoneId) { in createPhone() argument
300 Rlog.i(LOG_TAG, "Creating Phone with type = " + phoneType + " phoneId = " + phoneId); in createPhone()
308 sCommandsInterfaces[phoneId], sPhoneNotifier, phoneId, phoneType, in createPhone()
323 public static Phone getPhone(int phoneId) { in getPhone() argument
331 } else if (phoneId == SubscriptionManager.DEFAULT_PHONE_INDEX) { in getPhone()
340 phone = (phoneId >= 0 && phoneId < sPhones.length) in getPhone()
341 ? sPhones[phoneId] : null; in getPhone()
344 Rlog.d(LOG_TAG, "getPhone:- " + dbgInfo + " phoneId=" + phoneId + in getPhone()
370 public static TelephonyNetworkFactory getNetworkFactory(int phoneId) { in getNetworkFactory() argument
376 if (phoneId == SubscriptionManager.DEFAULT_PHONE_INDEX) { in getNetworkFactory()
[all …]
DPhoneConfigurationManager.java169 int phoneId = msg.arg1; in handleMessage() local
172 addToPhoneStatusCache(phoneId, enabled); in handleMessage()
217 int phoneId = phone.getPhoneId(); in getPhoneStatus() local
221 return getPhoneStatusFromCache(phoneId); in getPhoneStatus()
255 public boolean getPhoneStatusFromCache(int phoneId) throws NoSuchElementException { in getPhoneStatusFromCache() argument
256 if (mPhoneStatusMap.containsKey(phoneId)) { in getPhoneStatusFromCache()
257 return mPhoneStatusMap.get(phoneId); in getPhoneStatusFromCache()
259 throw new NoSuchElementException("phoneId not found: " + phoneId); in getPhoneStatusFromCache()
277 public void addToPhoneStatusCache(int phoneId, boolean status) { in addToPhoneStatusCache() argument
278 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 …]
/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()
826 int phoneId = getPhoneIdFromSubId(subId); in listen() local
853 r.phoneId = phoneId; in listen()
856 log("listen: Register r=" + r + " r.subId=" + r.subId + " phoneId=" + phoneId); in listen()
858 if (notifyNow && validatePhoneId(phoneId)) { in listen()
861 if (VDBG) log("listen: call onSSC state=" + mServiceState[phoneId]); in listen()
862 ServiceState rawSs = new ServiceState(mServiceState[phoneId]); in listen()
878 if (mSignalStrength[phoneId] != null) { in listen()
879 int gsmSignalStrength = mSignalStrength[phoneId] in listen()
[all …]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/metrics/
DTelephonyMetrics.java455 pw.print(event.phoneId); in printAllMetrics()
485 pw.print(", phone: " + callSession.phoneId); in printAllMetrics()
532 pw.print(", phone: " + smsSession.phoneId); in printAllMetrics()
786 public void updateSimState(int phoneId, int simState) { in updateSimState() argument
788 Integer lastSimState = mLastSimState.get(phoneId); in updateSimState()
790 mLastSimState.put(phoneId, state); in updateSimState()
803 int phoneId = info.getSimSlotIndex(); in updateActiveSubscriptionInfoList() local
804 inActivePhoneList.removeIf(value -> value.equals(phoneId)); in updateActiveSubscriptionInfoList()
806 activeSubscriptionInfo.slotIndex = phoneId; in updateActiveSubscriptionInfoList()
813 mLastActiveSubscriptionInfos.get(phoneId), activeSubscriptionInfo)) { in updateActiveSubscriptionInfoList()
[all …]
DInProgressCallSession.java33 public final int phoneId; field in InProgressCallSession
61 public InProgressCallSession(int phoneId) { in InProgressCallSession() argument
62 this.phoneId = phoneId; in InProgressCallSession()
DInProgressSmsSession.java34 public final int phoneId; field in InProgressSmsSession
77 public InProgressSmsSession(int phoneId) { in InProgressSmsSession() argument
78 this.phoneId = phoneId; in InProgressSmsSession()
/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, int apnType, in PreciseDataConnectionState preciseState); in notifyDataConnectionForSubscriber() argument
76 void notifyPreciseCallState(int phoneId, int subId, int ringingCallState, in notifyPreciseCallState() argument
78 void notifyDisconnectCause(int phoneId, int subId, int disconnectCause, in notifyDisconnectCause() argument
80 void notifyPreciseDataConnectionFailed(int phoneId, int subId, int apnType, String apn, in notifyPreciseDataConnectionFailed() argument
84 void notifySimActivationStateChangedForPhoneId(in int phoneId, in int subId, in notifySimActivationStateChangedForPhoneId() argument
86 void notifyOemHookRawEventForSubscriber(in int phoneId, in int subId, in byte[] rawData); in notifyOemHookRawEventForSubscriber() argument
[all …]
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/dataconnection/
DTelephonyNetworkFactoryTest.java134 private void activatePhoneInPhoneSwitcher(int phoneId, boolean active) { in activatePhoneInPhoneSwitcher() argument
135 doReturn(active).when(mPhoneSwitcher).shouldApplyNetworkRequest(any(), eq(phoneId)); in activatePhoneInPhoneSwitcher()
139 private void activatePhoneInPhoneSwitcher(int phoneId, NetworkRequest nr, boolean active) { in activatePhoneInPhoneSwitcher() argument
140 doReturn(active).when(mPhoneSwitcher).shouldApplyNetworkRequest(eq(nr), eq(phoneId)); in activatePhoneInPhoneSwitcher()
189 final int phoneId = 0; in testActive() local
195 doReturn(subId).when(mSubscriptionController).getSubIdUsingPhoneId(phoneId); in testActive()
205 log("setPhoneActive true: phoneId = " + phoneId); in testActive()
207 activatePhoneInPhoneSwitcher(phoneId, true); in testActive()
216 log("setPhoneActive false: phoneId = " + phoneId); in testActive()
217 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.java277 public int getSlotIdFromPhoneId(int phoneId) { in getSlotIdFromPhoneId() argument
279 return mPhoneIdToSlotId[phoneId]; in getSlotIdFromPhoneId()
297 public UiccCard getUiccCard(int phoneId) { in getUiccCard() argument
299 return getUiccCardForPhone(phoneId); in getUiccCard()
324 public UiccCard getUiccCardForPhone(int phoneId) { in getUiccCardForPhone() argument
326 if (isValidPhoneIndex(phoneId)) { in getUiccCardForPhone()
327 UiccSlot uiccSlot = getUiccSlotForPhone(phoneId); in getUiccCardForPhone()
341 public UiccProfile getUiccProfileForPhone(int phoneId) { in getUiccProfileForPhone() argument
343 if (isValidPhoneIndex(phoneId)) { in getUiccProfileForPhone()
344 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.java2471 int phoneId; in getCurrentPhoneType() local
2475 phoneId = 0; in getCurrentPhoneType()
2477 phoneId = SubscriptionManager.getPhoneId(subId); in getCurrentPhoneType()
2480 return getCurrentPhoneTypeForSlot(phoneId); in getCurrentPhoneType()
2530 private int getPhoneTypeFromProperty(int phoneId) { in getPhoneTypeFromProperty() argument
2532 phoneId, TelephonyProperties.current_active_phone(), null); in getPhoneTypeFromProperty()
2534 return getPhoneTypeFromNetworkType(phoneId); in getPhoneTypeFromProperty()
2542 private int getPhoneTypeFromNetworkType(int phoneId) { in getPhoneTypeFromNetworkType() argument
2546 Integer mode = getTelephonyProperty(phoneId, TelephonyProperties.default_network(), null); in getPhoneTypeFromNetworkType()
2722 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