Home
last modified time | relevance | path

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

/packages/services/Telephony/src/com/android/phone/
DCarrierConfigLoader.java213 final int phoneId = msg.arg1; in handleMessage() local
214 logdWithLocalLog("mHandler: " + eventToString(msg.what) + " phoneId: " + phoneId); in handleMessage()
215 if (!SubscriptionManager.isValidPhoneId(phoneId) in handleMessage()
221 clearConfigForPhone(phoneId, true); in handleMessage()
259 if (mConfigFromCarrierApp[phoneId] != null in handleMessage()
260 && getCarrierPackageForPhoneId(phoneId) == null) { in handleMessage()
261 mConfigFromCarrierApp[phoneId] = null; in handleMessage()
265 mPlatformCarrierConfigPackage, OVERRIDE_PACKAGE_ADDITION, phoneId); in handleMessage()
269 + " phoneId=" + phoneId); in handleMessage()
270 mPersistentOverrideConfigs[phoneId] = config; in handleMessage()
[all …]
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()
86 public static boolean isWfcModeWifiOnly(Context context, int phoneId) { in isWfcModeWifiOnly() argument
87 ImsManager imsManager = ImsManager.getInstance(context, phoneId); in isWfcModeWifiOnly()
91 + " phoneId=" + phoneId); in isWfcModeWifiOnly()
92 return isWfcEnabled(context, phoneId) && isWifiOnlyMode; in isWfcModeWifiOnly()
115 public static boolean shouldPromoteWfc(Context context, int phoneId) { in shouldPromoteWfc() argument
119 ImsManager imsManager = ImsManager.getInstance(context, phoneId); in shouldPromoteWfc()
[all …]
DIccNetworkDepersonalizationPanel.java98 int phoneId = phone == null ? 0: phone.getPhoneId(); in showDialog() local
99 if (phoneId >= sShowingDialog.length) { in showDialog()
100 Log.e(TAG, "[IccNetworkDepersonalizationPanel] showDialog; invalid phoneId" + phoneId); in showDialog()
103 if (sShowingDialog[phoneId]) { in showDialog()
108 sShowingDialog[phoneId] = true; in showDialog()
109 sNdpPanel[phoneId] = new IccNetworkDepersonalizationPanel(PhoneGlobals.getInstance(), 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()
116 Log.e(TAG, "[IccNetworkDepersonalizationPanel] - dismiss; invalid phoneId " + phoneId); in dialogDismiss()
[all …]
DPhoneUtils.java705 public static PhoneAccountHandle makePstnPhoneAccountHandle(int phoneId) { in makePstnPhoneAccountHandle() argument
706 return makePstnPhoneAccountHandle(PhoneFactory.getPhone(phoneId)); in makePstnPhoneAccountHandle()
796 static final void registerIccStatus(Handler handler, int event, int phoneId) { in registerIccStatus() argument
798 IccCard sim = phones[phoneId].getIccCard(); in registerIccStatus()
801 Log.v(LOG_TAG, "register for ICC status, phone " + phones[phoneId].getPhoneId()); in registerIccStatus()
803 sim.registerForNetworkLocked(handler, event, phones[phoneId]); in registerIccStatus()
810 static final void unregisterIccStatus(Handler handler, int phoneId) { in unregisterIccStatus() argument
812 IccCard sim = phones[phoneId].getIccCard(); in unregisterIccStatus()
815 Log.v(LOG_TAG, "unregister for ICC status, phone " + phones[phoneId].getPhoneId()); in unregisterIccStatus()
DPhoneGlobals.java220 EventSimStateChangedBag(int phoneId, String iccStatus) { in EventSimStateChangedBag() argument
221 mPhoneId = phoneId; in EventSimStateChangedBag()
747 int phoneId = intent.getIntExtra(PhoneConstants.PHONE_KEY, in onReceive() local
749 if (SubscriptionManager.isValidPhoneId(phoneId)) { in onReceive()
750 PhoneUtils.unregisterIccStatus(mHandler, phoneId); in onReceive()
751 PhoneUtils.registerIccStatus(mHandler, EVENT_SIM_NETWORK_LOCKED, phoneId); in onReceive()
755 new EventSimStateChangedBag(phoneId, iccStatus))); in onReceive()
763 int phoneId = intent.getIntExtra(PhoneConstants.PHONE_KEY, 0); in onReceive() local
764 phoneInEcm = PhoneFactory.getPhone(phoneId); in onReceive()
765 Log.d(LOG_TAG, "Emergency Callback Mode. phoneId:" + phoneId); in onReceive()
DPhoneInterfaceManager.java1576 int phoneId = request.phone.getPhoneId(); in handleMessage() local
1579 mPhoneConfigurationManager.addToPhoneStatusCache(phoneId, msg.arg1 == 1); in handleMessage()
1734 int phoneId = getPhoneFromRequest(request).getPhoneId(); in handleMessage() local
1736 .storePin(passwords.second, phoneId); in handleMessage()
1758 int phoneId = getPhoneFromRequest(request).getPhoneId(); in handleMessage() local
1761 .storePin(enabled.second, phoneId); in handleMessage()
1763 UiccController.getInstance().getPinStorage().clearPin(phoneId); in handleMessage()
2375 UnlockSim(int phoneId, IccCard simCard) { in UnlockSim() argument
2376 mPhoneId = phoneId; in UnlockSim()
2642 private void shutdownRadioUsingPhoneId(int phoneId) { in shutdownRadioUsingPhoneId() argument
[all …]
DNotificationMgr.java820 int phoneId = SubscriptionManager.getPhoneId(subId); in updateNetworkSelection() local
821 Phone phone = SubscriptionManager.isValidPhoneId(phoneId) ? in updateNetworkSelection()
822 PhoneFactory.getPhone(phoneId) : PhoneFactory.getDefaultPhone(); in updateNetworkSelection()
/packages/modules/CellBroadcastService/tests/src/com/android/cellbroadcastservice/tests/
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 …]
/packages/services/Telephony/src/com/android/services/telephony/
DDisconnectCauseUtil.java86 String reason, int phoneId) { in toTelecomDisconnectCause() argument
88 reason, phoneId, null); in toTelecomDisconnectCause()
103 int phoneId, ImsReasonInfo imsReasonInfo) { in toTelecomDisconnectCause() argument
109 toTelecomDisconnectCauseDescription(context, telephonyDisconnectCause, phoneId), in toTelecomDisconnectCause()
110 toTelecomDisconnectReason(context,telephonyDisconnectCause, reason, phoneId), in toTelecomDisconnectCause()
111 toTelecomDisconnectCauseTone(telephonyDisconnectCause, phoneId), in toTelecomDisconnectCause()
581 Context context, int telephonyDisconnectCause, int phoneId) { in toTelecomDisconnectCauseDescription() argument
666 if (isRadioOffForThermalMitigation(phoneId)) { in toTelecomDisconnectCauseDescription()
668 } else if (ImsUtil.shouldPromoteWfc(context, phoneId)) { in toTelecomDisconnectCauseDescription()
670 } else if (ImsUtil.isWfcModeWifiOnly(context, phoneId)) { in toTelecomDisconnectCauseDescription()
[all …]
DTelephonyConnectionService.java369 String reason, int phoneId); in toTelecomDisconnectCause() argument
381 int phoneId) {
383 phoneId);
1627 int phoneId = (c.getPhone() == null) ? -1 : c.getPhone().getPhoneId(); in retryOutgoingOriginalConnection() local
1637 if (phoneId != newPhoneToUse.getPhoneId()) updatePhoneAccount(c, newPhoneToUse); in retryOutgoingOriginalConnection()
1921 int phoneId = mSubscriptionManagerProxy.getPhoneId(subId); in getPhoneForAccount() local
1922 chosenPhone = mPhoneFactoryProxy.getPhone(phoneId); in getPhoneForAccount()
2131 int phoneId = mSubscriptionManagerProxy.getDefaultVoicePhoneId(); in getFirstPhoneForEmergencyCall() local
2132 if (phoneId != SubscriptionManager.INVALID_PHONE_INDEX) { in getFirstPhoneForEmergencyCall()
2133 Phone defaultPhone = mPhoneFactoryProxy.getPhone(phoneId); in getFirstPhoneForEmergencyCall()
/packages/services/Mms/src/com/android/mms/service/
DMmsNetworkManager.java107 final int phoneId =
112 + ", state=" + simStateString(simState) + ", phoneId=" + phoneId);
114 if (mPhoneId == phoneId && simState == TelephonyManager.SIM_STATE_ABSENT) {
/packages/modules/CellBroadcastService/src/com/android/cellbroadcastservice/
DCellBroadcastHandler.java695 protected static int getSubIdForPhone(Context context, int phoneId) { in getSubIdForPhone() argument
699 int[] subIds = subMan.getSubscriptionIds(phoneId); in getSubIdForPhone()
710 public static void putPhoneIdAndSubIdExtra(Context context, Intent intent, int phoneId) { in putPhoneIdAndSubIdExtra() argument
711 int subId = getSubIdForPhone(context, phoneId); in putPhoneIdAndSubIdExtra()
716 intent.putExtra("phone", phoneId); in putPhoneIdAndSubIdExtra()
717 intent.putExtra(SubscriptionManager.EXTRA_SLOT_INDEX, phoneId); in putPhoneIdAndSubIdExtra()
DCdmaServiceCategoryProgramHandler.java136 String originatingAddress, int phoneId, Consumer<Bundle> callback) { in handleServiceCategoryProgramData() argument
150 CellBroadcastHandler.putPhoneIdAndSubIdExtra(mContext, intent, phoneId); in handleServiceCategoryProgramData()
/packages/apps/Contacts/tests/src/com/android/contacts/model/
DRawContactDeltaListTests.java144 static ContentValues buildPhone(long phoneId) { in buildPhone() argument
145 return buildPhone(phoneId, Long.toString(phoneId)); in buildPhone()
148 static ContentValues buildPhone(long phoneId, String value) { in buildPhone() argument
150 values.put(Data._ID, phoneId); in buildPhone()
DRawContactDeltaTests.java62 public static RawContact getRawContact(Context context, long contactId, long phoneId) { in getRawContact() argument
69 phone.put(Data._ID, phoneId); in getRawContact()
/packages/apps/Dialer/java/com/android/dialer/searchfragment/cp2/
DCp2Contact.java28 public abstract long phoneId(); in phoneId() method in Cp2Contact
115 row[Projections.ID] = phoneId(); in toCursorRow()
/packages/services/Telephony/src/com/android/phone/settings/
DAccessibilitySettingsFragment.java189 int phoneId = SubscriptionController.getInstance().getPhoneId(subId); in onPreferenceTreeClick() local
190 ImsManager imsManager = ImsManager.getInstance(getContext(), phoneId); in onPreferenceTreeClick()
/packages/apps/Contacts/src/com/android/contacts/list/
DPhoneNumberListAdapter.java357 final long phoneId = cursor.getLong(PhoneQuery.PHONE_ID); in getDataUri() local
358 return ContentUris.withAppendedId(Data.CONTENT_URI, phoneId); in getDataUri()
/packages/services/AlternativeNetworkAccess/src/com/android/ons/
DONSProfileSelector.java687 int phoneId = info.getSimSlotIndex(); in enableModem() local
695 return mSubscriptionBoundTelephonyManager.enableModemForSlot(phoneId, enable); in enableModem()
/packages/services/Telephony/tests/src/com/android/services/telephony/
DTelephonyConnectionServiceTest.java1467 private Phone makeTestPhone(int phoneId, int serviceState, boolean isEmergencyOnly) { in makeTestPhone() argument
1474 when(phone.getPhoneId()).thenReturn(phoneId); in makeTestPhone()
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
DContactsProvider2Test.java1344 long phoneId = ContentUris.parseId(uri); in testPhonesQuery() local
1349 values.put(Data._ID, phoneId); in testPhonesQuery()
1363 assertStoredValues(ContentUris.withAppendedId(Phone.CONTENT_URI, phoneId), values); in testPhonesQuery()