Home
last modified time | relevance | path

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

12345

/frameworks/base/services/core/java/com/android/server/
DTelephonyRegistry.java174 int phoneId = SubscriptionManager.INVALID_SIM_SLOT_INDEX; field in TelephonyRegistry.Record
215 + " subId=" + subId + " phoneId=" + phoneId + " events=" + eventList + "}"; in toString()
586 for (int phoneId = 0; phoneId < numPhones; phoneId++) {
587 int subId = SubscriptionManager.getSubscriptionId(phoneId);
592 subId, mCellIdentity[phoneId], true /* hasUserSwitched */);
1145 int phoneId = getPhoneIdFromSubId(subscriptionId); in listen() local
1167 r.phoneId = phoneId; in listen()
1171 log("listen: Register r=" + r + " r.subId=" + r.subId + " r.phoneId=" + r.phoneId); in listen()
1173 if (notifyNow && validatePhoneId(r.phoneId)) { in listen()
1176 if (VDBG) log("listen: call onSSC state=" + mServiceState[r.phoneId]); in listen()
[all …]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/data/
DAutoDataSwitchController.java363 for (int phoneId = 0; phoneId < numActiveModems; phoneId++) {
364 registerAllEventsForPhone(phoneId);
376 for (int phoneId = numActiveModems; phoneId < oldActiveModems; phoneId++) {
377 unregisterAllEventsForPhone(phoneId);
381 for (int phoneId = oldActiveModems; phoneId < numActiveModems; phoneId++) {
382 registerAllEventsForPhone(phoneId);
405 for (int phoneId = 0; phoneId < mPhonesSignalStatus.length; phoneId++) {
406 if (activePhoneIds.contains(phoneId)
407 && !mPhonesSignalStatus[phoneId].mListeningForEvents) {
408 registerAllEventsForPhone(phoneId);
[all …]
DPhoneSwitcher.java389 @ImsRegistrationImplBase.ImsRegistrationTech int get(Context context, int phoneId); in get() argument
394 (context, phoneId) -> ImsManager.getInstance(context, phoneId).getRegistrationTech();
402 void setCallback(Context context, int phoneId, RegistrationManager.RegistrationCallback cb, in setCallback() argument
408 (context, phoneId, cb, executor)-> ImsManager.getInstance(context, phoneId)
452 private void registerForImsRadioTechChange(Context context, int phoneId) { in registerForImsRadioTechChange() argument
454 mImsRegisterCallback.setCallback(context, phoneId, mRegistrationCallback, this::post); in registerForImsRadioTechChange()
503 for (int phoneId = 0; phoneId < mActiveModemCount; phoneId++) { in PhoneSwitcher()
504 mPhoneStates[phoneId] = new PhoneState(); in PhoneSwitcher()
505 Phone phone = PhoneFactory.getPhone(phoneId); in PhoneSwitcher()
517 mImsRegistrationRadioTechMap.put(phoneId, REGISTRATION_TECH_NONE); in PhoneSwitcher()
[all …]
/frameworks/base/core/java/com/android/internal/telephony/
DITelephonyRegistry.aidl55 void notifyCallState(in int phoneId, in int subId, int state, String incomingNumber); in notifyCallState() argument
56 void notifyServiceStateForPhoneId(in int phoneId, in int subId, in ServiceState state); in notifyServiceStateForPhoneId() argument
57 void notifySignalStrengthForPhoneId(in int phoneId, in int subId, in notifySignalStrengthForPhoneId() argument
59 void notifyMessageWaitingChangedForPhoneId(in int phoneId, in int subId, in boolean mwi); in notifyMessageWaitingChangedForPhoneId() argument
64 void notifyDataActivityForSubscriberWithSlot(int phoneId, int subId, int state); in notifyDataActivityForSubscriberWithSlot() argument
66 int phoneId, int subId, in PreciseDataConnectionState preciseState); in notifyDataConnectionForSubscriber() argument
71 void notifyPreciseCallState(int phoneId, int subId, in int[] callStates, in String[] imsCallIds, in notifyPreciseCallState() argument
73 void notifyDisconnectCause(int phoneId, int subId, int disconnectCause, in notifyDisconnectCause() argument
77 void notifySimActivationStateChangedForPhoneId(in int phoneId, in int subId, in notifySimActivationStateChangedForPhoneId() argument
79 void notifyOemHookRawEventForSubscriber(in int phoneId, in int subId, in byte[] rawData); in notifyOemHookRawEventForSubscriber() argument
[all …]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DCarrierServiceBindHelper.java92 for (int phoneId = 0; phoneId < mBindings.size(); phoneId++) {
93 mBindings.get(phoneId).rebind();
103 CarrierServiceChangeCallback(int phoneId) { in CarrierServiceChangeCallback() argument
104 this.mPhoneId = phoneId; in CarrierServiceChangeCallback()
134 int phoneId;
140 phoneId = (int) msg.obj;
141 binding = mBindings.get(phoneId);
147 phoneId = (int) msg.obj;
148 binding = mBindings.get(phoneId);
190 for (int phoneId = prevLen; phoneId < newLen; phoneId++) { in updateBindingsAndSimStates()
[all …]
DProxyController.java177 public int getRadioAccessFamily(int phoneId) { in getRadioAccessFamily() argument
178 if (phoneId >= mPhones.length) { in getRadioAccessFamily()
181 return mPhones[phoneId].getRadioAccessFamily(); in getRadioAccessFamily()
254 int phoneId = rafs[i].getPhoneId(); in doSetRadioCapabilities() local
255 logd("setRadioCapability: phoneId=" + phoneId + " status=STARTING"); in doSetRadioCapabilities()
256 mSetRadioAccessFamilyStatus[phoneId] = SET_RC_STATUS_STARTING; in doSetRadioCapabilities()
257 mOldRadioAccessFamily[phoneId] = mPhones[phoneId].getRadioAccessFamily(); in doSetRadioCapabilities()
262 mNewRadioAccessFamily[phoneId] = requestedRaf; in doSetRadioCapabilities()
264 mCurrentLogicalModemIds[phoneId] = mPhones[phoneId].getModemUuId(); in doSetRadioCapabilities()
267 mNewLogicalModemIds[phoneId] = getLogicalModemIdFromRaf(requestedRaf); in doSetRadioCapabilities()
[all …]
DFdnUtils.java54 public static boolean isNumberBlockedByFDN(int phoneId, String dialStr, in isNumberBlockedByFDN() argument
56 if (!isFdnEnabled(phoneId)) { in isNumberBlockedByFDN()
60 ArrayList<AdnRecord> fdnList = getFdnList(phoneId); in isNumberBlockedByFDN()
69 public static boolean isFdnEnabled(int phoneId) { in isFdnEnabled() argument
70 UiccCardApplication app = getUiccCardApplication(phoneId); in isFdnEnabled()
86 public static boolean isSuppServiceRequestBlockedByFdn(int phoneId, in isSuppServiceRequestBlockedByFdn() argument
88 if (!isFdnEnabled(phoneId)) { in isSuppServiceRequestBlockedByFdn()
92 ArrayList<AdnRecord> fdnList = getFdnList(phoneId); in isSuppServiceRequestBlockedByFdn()
164 private static ArrayList<AdnRecord> getFdnList(int phoneId) { in getFdnList() argument
165 UiccCardApplication app = getUiccCardApplication(phoneId); in getFdnList()
[all …]
DPhoneFactory.java327 private static Phone createPhone(Context context, int phoneId) { in createPhone() argument
329 Rlog.i(LOG_TAG, "Creating Phone with type = " + phoneType + " phoneId = " + phoneId); in createPhone()
337 sCommandsInterfaces[phoneId], sPhoneNotifier, phoneId, phoneType, in createPhone()
352 public static Phone getPhone(int phoneId) { in getPhone() argument
360 } else if (phoneId == SubscriptionManager.DEFAULT_PHONE_INDEX) { in getPhone()
369 phone = (phoneId >= 0 && phoneId < sPhones.length) in getPhone()
370 ? sPhones[phoneId] : null; in getPhone()
373 Rlog.d(LOG_TAG, "getPhone:- " + dbgInfo + " phoneId=" + phoneId + in getPhone()
395 public static TelephonyNetworkFactory getNetworkFactory(int phoneId) { in getNetworkFactory() argument
401 if (phoneId == SubscriptionManager.DEFAULT_PHONE_INDEX) { in getNetworkFactory()
[all …]
DPhoneConfigurationManager.java337 int phoneId = msg.arg1; in handleMessage() local
340 addToPhoneStatusCache(phoneId, enabled); in handleMessage()
443 int phoneId = phone.getPhoneId(); in getPhoneStatus() local
447 return getPhoneStatusFromCache(phoneId); in getPhoneStatus()
481 public boolean getPhoneStatusFromCache(int phoneId) throws NoSuchElementException { in getPhoneStatusFromCache() argument
482 if (mPhoneStatusMap.containsKey(phoneId)) { in getPhoneStatusFromCache()
483 return mPhoneStatusMap.get(phoneId); in getPhoneStatusFromCache()
485 throw new NoSuchElementException("phoneId not found: " + phoneId); in getPhoneStatusFromCache()
503 public void addToPhoneStatusCache(int phoneId, boolean status) { in addToPhoneStatusCache() argument
504 mPhoneStatusMap.put(phoneId, status); in addToPhoneStatusCache()
[all …]
DDefaultPhoneNotifier.java75 int phoneId = sender.getPhoneId(); in notifyPhoneState() local
80 mTelephonyRegistryMgr.notifyCallStateChanged(phoneId, subId, in notifyPhoneState()
91 int phoneId = sender.getPhoneId(); in notifyServiceStateForSubId() local
94 + ss + " sender=" + sender + " phondId=" + phoneId + " subId=" + subId); in notifyServiceStateForSubId()
99 mTelephonyRegistryMgr.notifyServiceStateChanged(phoneId, subId, ss); in notifyServiceStateForSubId()
104 int phoneId = sender.getPhoneId(); in notifySignalStrength() local
111 mTelephonyRegistryMgr.notifySignalStrengthChanged(phoneId, subId, in notifySignalStrength()
117 int phoneId = sender.getPhoneId(); in notifyMessageWaitingChanged() local
119 mTelephonyRegistryMgr.notifyMessageWaitingChanged(phoneId, subId, in notifyMessageWaitingChanged()
139 int phoneId = sender.getPhoneId(); in notifyDataActivity() local
[all …]
/frameworks/opt/net/ims/src/java/com/android/ims/
DImsFeatureBinderRepository.java134 public final int phoneId; field in ImsFeatureBinderRepository.UpdateMapper
143 phoneId = pId; in UpdateMapper()
255 return "UpdateMapper{" + "phoneId=" + phoneId + ", type=" in toString()
282 int phoneId, @ImsFeature.FeatureType int type) { in getIfExists() argument
287 m = getUpdateMapper(phoneId, type); in getIfExists()
289 logVerboseLineLocked(phoneId, "getIfExists, type= " + ImsFeature.FEATURE_LOG_MAP.get(type) in getIfExists()
305 public void registerForConnectionUpdates(int phoneId, in registerForConnectionUpdates() argument
312 logInfoLineLocked(phoneId, "registerForConnectionUpdates, type= " in registerForConnectionUpdates()
314 UpdateMapper m = getUpdateMapper(phoneId, type); in registerForConnectionUpdates()
345 public void addConnection(int phoneId, int subId, @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()
828 public void updateSimState(int phoneId, int simState) { in updateSimState() argument
830 Integer lastSimState = mLastSimState.get(phoneId); in updateSimState()
832 mLastSimState.put(phoneId, state); in updateSimState()
834 new TelephonyEventBuilder(phoneId).setSimStateChange(mLastSimState).build()); in updateSimState()
846 int phoneId = info.getSimSlotIndex(); in updateActiveSubscriptionInfoList() local
847 inActivePhoneList.removeIf(value -> value.equals(phoneId)); in updateActiveSubscriptionInfoList()
849 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()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/uicc/
DUiccController.java331 public int getSlotIdFromPhoneId(int phoneId) { in getSlotIdFromPhoneId() argument
333 return mPhoneIdToSlotId[phoneId]; in getSlotIdFromPhoneId()
349 public UiccCard getUiccCard(int phoneId) { in getUiccCard() argument
351 return getUiccCardForPhone(phoneId); in getUiccCard()
359 public UiccPort getUiccPort(int phoneId) { in getUiccPort() argument
361 return getUiccPortForPhone(phoneId); in getUiccPort()
406 public UiccCard getUiccCardForPhone(int phoneId) { in getUiccCardForPhone() argument
408 if (isValidPhoneIndex(phoneId)) { in getUiccCardForPhone()
409 UiccSlot uiccSlot = getUiccSlotForPhone(phoneId); in getUiccCardForPhone()
424 public UiccPort getUiccPortForPhone(int phoneId) { in getUiccPortForPhone() argument
[all …]
DUiccSlot.java118 public void update(CommandsInterface ci, IccCardStatus ics, int phoneId, int slotIndex) { in update() argument
120 mPortIdxToPhoneId.put(ics.mSlotPortMapping.mPortIndex, phoneId); in update()
137 updateCardStateAbsent(ci.getRadioState(), phoneId, in update() local
165 mUiccCard = new UiccCard(mContext, ci, ics, phoneId, mLock, in update()
175 mUiccCard = new EuiccCard(mContext, ci, ics, phoneId, mLock, in update()
180 mUiccCard.update(mContext, ci, ics, phoneId); in update()
185 mUiccCard.update(mContext, ci, ics, phoneId); in update()
203 int phoneId = iss.mSimPortInfos[i].mLogicalSlotIndex; in update() local
220 int radioState = SubscriptionManager.isValidPhoneId(phoneId) ? in update()
221 ci[phoneId].getRadioState() : in update()
[all …]
DUiccCard.java61 public UiccCard(Context c, CommandsInterface ci, IccCardStatus ics, int phoneId, Object lock, in UiccCard() argument
67 update(c, ci, ics, phoneId); in UiccCard()
106 public void update(Context c, CommandsInterface ci, IccCardStatus ics, int phoneId) { in update() argument
115 port = new EuiccPort(c, ci, ics, phoneId, mLock, this, in update()
118 port = new UiccPort(c, ci, ics, phoneId, mLock, this); // pSim in update()
124 mPhoneIdToPortIdx.put(phoneId, portIdx); in update()
195 public UiccPort getUiccPortForPhone(int phoneId) { in getUiccPortForPhone() argument
197 return mUiccPorts.get(mPhoneIdToPortIdx.get(phoneId)); in getUiccPortForPhone()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/data/
DTelephonyNetworkFactoryTest.java131 private void activatePhoneInPhoneSwitcher(int phoneId, boolean active) { in activatePhoneInPhoneSwitcher() argument
132 doReturn(active).when(mPhoneSwitcher).shouldApplyNetworkRequest(any(), eq(phoneId)); in activatePhoneInPhoneSwitcher()
137 private void activatePhoneInPhoneSwitcher(int phoneId, NetworkRequest nr, boolean active) { in activatePhoneInPhoneSwitcher() argument
141 eq(networkRequest), eq(phoneId)); in activatePhoneInPhoneSwitcher()
236 final int phoneId = 0; in testActive() local
242 doReturn(subId).when(mMockedIsub).getSubId(phoneId); in testActive()
252 log("setPhoneActive true: phoneId = " + phoneId); in testActive()
254 activatePhoneInPhoneSwitcher(phoneId, true); in testActive()
263 log("setPhoneActive false: phoneId = " + phoneId); in testActive()
264 activatePhoneInPhoneSwitcher(phoneId, false); in testActive()
[all …]
/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/uicc/
DUiccSlotTest.java144 int phoneId = 0; in testUpdateActiveSlotStatus() local
148 simPortInfo.mLogicalSlotIndex = phoneId; in testUpdateActiveSlotStatus()
160 verify(mUiccController).updateSimState(phoneId, IccCardConstants.State.ABSENT, null); in testUpdateActiveSlotStatus()
376 int phoneId = 0; in testUpdateAbsentState() local
380 mUiccSlot.update(mSimulatedCommands, mIccCardStatus, phoneId, slotIndex); in testUpdateAbsentState()
381 verify(mUiccController).updateSimState(phoneId, IccCardConstants.State.ABSENT, null); in testUpdateAbsentState()
422 int phoneId = 0; in testUiccSlotCreateAndDispose() local
428 mUiccSlot.update(mSimulatedCommands, mIccCardStatus, phoneId, slotIndex); in testUiccSlotCreateAndDispose()
437 mUiccSlot.update(mSimulatedCommands, mIccCardStatus, phoneId, slotIndex); in testUiccSlotCreateAndDispose()
438 verify(mUiccController).updateSimState(phoneId, IccCardConstants.State.ABSENT, null); in testUiccSlotCreateAndDispose()
[all …]
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DCarrierResolverTest.java118 int phoneId = mPhone.getPhoneId(); in testCarrierMatch() local
119 doReturn(MCCMNC).when(mTelephonyManager).getSimOperatorNumericForPhone(eq(phoneId)); in testCarrierMatch()
136 int phoneId = mPhone.getPhoneId(); in testMnoCarrierId() local
137 doReturn(MCCMNC).when(mTelephonyManager).getSimOperatorNumericForPhone(eq(phoneId)); in testMnoCarrierId()
148 .getSimOperatorNumericForPhone(eq(phoneId)); in testMnoCarrierId()
160 int phoneId = mPhone.getPhoneId(); in testPreciseCarrierId() local
162 .getSimOperatorNumericForPhone(eq(phoneId)); in testPreciseCarrierId()
176 .getSimOperatorNumericForPhone(eq(phoneId)); in testPreciseCarrierId()
183 .getSimOperatorNumericForPhone(eq(phoneId)); in testPreciseCarrierId()
190 .getSimOperatorNumericForPhone(eq(phoneId)); in testPreciseCarrierId()
[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 = SubscriptionManager.getSubscriptionId(phoneId); in putPhoneIdAndSubIdExtra()
112 intent.putExtra("phone", phoneId); in putPhoneIdAndSubIdExtra()
113 intent.putExtra(SubscriptionManager.EXTRA_SLOT_INDEX, phoneId); in putPhoneIdAndSubIdExtra()
/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/opt/telephony/src/java/com/android/internal/telephony/security/
DNullCipherNotifier.java94 Context context, int phoneId, int subId, SecurityAlgorithmUpdate update) { in onSecurityAlgorithmUpdate() argument
109 maybeUpdateSubscriptionMapping(context, phoneId, subId); in onSecurityAlgorithmUpdate()
132 public void setSubscriptionMapping(Context context, int phoneId, int subId) { in setSubscriptionMapping() argument
141 maybeUpdateSubscriptionMapping(context, phoneId, subId); in setSubscriptionMapping()
143 Rlog.e(TAG, "Failed to update subId mapping. phoneId: " + phoneId + " subId: " in setSubscriptionMapping()
153 private void maybeUpdateSubscriptionMapping(Context context, int phoneId, int subId) { in maybeUpdateSubscriptionMapping() argument
154 final Integer oldSubId = mActiveSubscriptions.put(phoneId, subId); in maybeUpdateSubscriptionMapping()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/subscription/
DSubscriptionManagerService.java555 for (int phoneId = 0; phoneId < mTelephonyManager.getSupportedModemCount() in SubscriptionManagerService()
556 ; phoneId++) { in SubscriptionManagerService()
557 markSubscriptionsInactive(phoneId); in SubscriptionManagerService()
1341 public boolean areUiccAppsEnabledOnCard(int phoneId) { in areUiccAppsEnabledOnCard() argument
1345 UiccSlot slot = mUiccController.getUiccSlotForPhone(phoneId); in areUiccAppsEnabledOnCard()
1347 UiccPort port = mUiccController.getUiccPort(phoneId); in areUiccAppsEnabledOnCard()
1366 private String getIccId(int phoneId) { in getIccId() argument
1367 UiccPort port = mUiccController.getUiccPort(phoneId); in getIccId()
1377 for (int phoneId = 0; phoneId < mTelephonyManager.getActiveModemCount(); phoneId++) { in areAllSubscriptionsLoaded()
1378 UiccSlot slot = mUiccController.getUiccSlotForPhone(phoneId); in areAllSubscriptionsLoaded()
[all …]

12345