Home
last modified time | relevance | path

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

/packages/services/Telephony/src/com/android/phone/
DCarrierConfigLoader.java190 final int phoneId = msg.arg1; in handleMessage() local
191 logdWithLocalLog("mHandler: " + msg.what + " phoneId: " + phoneId); in handleMessage()
192 if (!SubscriptionManager.isValidPhoneId(phoneId) in handleMessage()
198 clearConfigForPhone(phoneId, true); in handleMessage()
236 mPlatformCarrierConfigPackage, OVERRIDE_PACKAGE_ADDITION, phoneId); in handleMessage()
240 + " phoneId=" + phoneId); in handleMessage()
241 mPersistentOverrideConfigs[phoneId] = config; in handleMessage()
244 config = restoreConfigFromXml(mPlatformCarrierConfigPackage, "", phoneId); in handleMessage()
250 + phoneId); in handleMessage()
251 mConfigFromDefaultApp[phoneId] = config; in handleMessage()
[all …]
DImsUtil.java61 public static boolean isWfcEnabled(Context context, int phoneId) { in isWfcEnabled() argument
62 ImsManager imsManager = ImsManager.getInstance(context, phoneId); in isWfcEnabled()
66 + " phoneId=" + phoneId); in isWfcEnabled()
68 + " phoneId=" + phoneId); in isWfcEnabled()
84 public static boolean isWfcModeWifiOnly(Context context, int phoneId) { in isWfcModeWifiOnly() argument
85 ImsManager imsManager = ImsManager.getInstance(context, phoneId); in isWfcModeWifiOnly()
89 + " phoneId=" + phoneId); in isWfcModeWifiOnly()
90 return isWfcEnabled(context, phoneId) && isWifiOnlyMode; in isWfcModeWifiOnly()
113 public static boolean shouldPromoteWfc(Context context, int phoneId) { in shouldPromoteWfc() argument
116 if (cfgManager == null || !cfgManager.getConfigForSubId(getSubId(phoneId)) in shouldPromoteWfc()
[all …]
DIccNetworkDepersonalizationPanel.java94 int phoneId = phone == null ? 0: phone.getPhoneId(); in showDialog() local
95 if (phoneId >= sShowingDialog.length) { in showDialog()
96 Log.e(TAG, "[IccNetworkDepersonalizationPanel] showDialog; invalid phoneId" + phoneId); in showDialog()
99 if (sShowingDialog[phoneId]) { in showDialog()
104 sShowingDialog[phoneId] = true; in showDialog()
105 sNdpPanel[phoneId] = new IccNetworkDepersonalizationPanel(PhoneGlobals.getInstance(), in showDialog()
107 sNdpPanel[phoneId].show(); in showDialog()
110 public static void dialogDismiss(int phoneId) { in dialogDismiss() argument
111 if (phoneId >= sShowingDialog.length) { in dialogDismiss()
112 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.java212 EventSimStateChangedBag(int phoneId, String iccStatus) { in EventSimStateChangedBag() argument
213 mPhoneId = phoneId; in EventSimStateChangedBag()
666 int phoneId = intent.getIntExtra(PhoneConstants.PHONE_KEY, in onReceive() local
668 if (SubscriptionManager.isValidPhoneId(phoneId)) { in onReceive()
669 PhoneUtils.unregisterIccStatus(mHandler, phoneId); in onReceive()
670 PhoneUtils.registerIccStatus(mHandler, EVENT_SIM_NETWORK_LOCKED, phoneId); in onReceive()
674 new EventSimStateChangedBag(phoneId, iccStatus))); in onReceive()
682 int phoneId = intent.getIntExtra(PhoneConstants.PHONE_KEY, 0); in onReceive() local
683 phoneInEcm = PhoneFactory.getPhone(phoneId); in onReceive()
684 Log.d(LOG_TAG, "Emergency Callback Mode. phoneId:" + phoneId); in onReceive()
DPhoneInterfaceManager.java1344 int phoneId = request.phone.getPhoneId(); in handleMessage() local
1347 mPhoneConfigurationManager.addToPhoneStatusCache(phoneId, msg.arg1 == 1); in handleMessage()
2086 private void shutdownRadioUsingPhoneId(int phoneId) { in shutdownRadioUsingPhoneId() argument
2087 Phone phone = PhoneFactory.getPhone(phoneId); in shutdownRadioUsingPhoneId()
2308 public String getNetworkCountryIsoForPhone(int phoneId) { in getNetworkCountryIsoForPhone() argument
2313 if (phoneId == SubscriptionManager.INVALID_PHONE_INDEX) { in getNetworkCountryIsoForPhone()
2315 phoneId = SubscriptionManager.DEFAULT_PHONE_INDEX; in getNetworkCountryIsoForPhone()
2317 final int subId = mSubscriptionController.getSubIdUsingPhoneId(phoneId); in getNetworkCountryIsoForPhone()
2318 Phone phone = PhoneFactory.getPhone(phoneId); in getNetworkCountryIsoForPhone()
4440 int phoneId = UiccController.getInstance().getPhoneIdFromSlotId(slotIndex); in getPhoneFromSlotIdOrThrowException() local
[all …]
DNotificationMgr.java805 int phoneId = SubscriptionManager.getPhoneId(subId); in updateNetworkSelection() local
806 Phone phone = SubscriptionManager.isValidPhoneId(phoneId) ? in updateNetworkSelection()
807 PhoneFactory.getPhone(phoneId) : PhoneFactory.getDefaultPhone(); in updateNetworkSelection()
/packages/modules/CellBroadcastService/tests/src/com/android/cellbroadcastservice/tests/
DCellBroadcastHandlerTest.java218 int phoneId = 0; in testPutPhoneIdAndSubIdExtra() local
219 CellBroadcastHandler.putPhoneIdAndSubIdExtra(mMockedContext, intent, phoneId); in testPutPhoneIdAndSubIdExtra()
224 assertTrue(intent.getIntExtra(SubscriptionManager.EXTRA_SLOT_INDEX, phoneId + 1) in testPutPhoneIdAndSubIdExtra()
225 == phoneId); in testPutPhoneIdAndSubIdExtra()
226 assertTrue(intent.getIntExtra("phone", phoneId + 1) in testPutPhoneIdAndSubIdExtra()
227 == phoneId); in testPutPhoneIdAndSubIdExtra()
232 CellBroadcastHandler.putPhoneIdAndSubIdExtra(mMockedContext, intentNoSubId, phoneId); in testPutPhoneIdAndSubIdExtra()
237 assertTrue(intentNoSubId.getIntExtra(SubscriptionManager.EXTRA_SLOT_INDEX, phoneId + 1) in testPutPhoneIdAndSubIdExtra()
238 == phoneId); in testPutPhoneIdAndSubIdExtra()
239 assertTrue(intentNoSubId.getIntExtra("phone", phoneId + 1) in testPutPhoneIdAndSubIdExtra()
[all …]
/packages/services/Telephony/src/com/android/services/telephony/
DDisconnectCauseUtil.java85 String reason, int phoneId) { in toTelecomDisconnectCause() argument
87 reason, phoneId); in toTelecomDisconnectCause()
102 int phoneId) { in toTelecomDisconnectCause() argument
108 toTelecomDisconnectCauseDescription(context, telephonyDisconnectCause, phoneId), in toTelecomDisconnectCause()
109 toTelecomDisconnectReason(context,telephonyDisconnectCause, reason, phoneId), in toTelecomDisconnectCause()
110 toTelecomDisconnectCauseTone(telephonyDisconnectCause, phoneId)); in toTelecomDisconnectCause()
577 Context context, int telephonyDisconnectCause, int phoneId) { in toTelecomDisconnectCauseDescription() argument
662 if (ImsUtil.shouldPromoteWfc(context, phoneId)) { in toTelecomDisconnectCauseDescription()
664 } else if (ImsUtil.isWfcModeWifiOnly(context, phoneId)) { in toTelecomDisconnectCauseDescription()
666 } else if (ImsUtil.isWfcEnabled(context, phoneId)) { in toTelecomDisconnectCauseDescription()
[all …]
DTelephonyConnectionService.java382 String reason, int phoneId); in toTelecomDisconnectCause() argument
394 int phoneId) {
396 phoneId);
1618 int phoneId = (c.getPhone() == null) ? -1 : c.getPhone().getPhoneId(); in retryOutgoingOriginalConnection() local
1628 if (phoneId != newPhoneToUse.getPhoneId()) updatePhoneAccount(c, newPhoneToUse); in retryOutgoingOriginalConnection()
1874 int phoneId = mSubscriptionManagerProxy.getPhoneId(subId); in getPhoneForAccount() local
1875 chosenPhone = mPhoneFactoryProxy.getPhone(phoneId); in getPhoneForAccount()
2070 int phoneId = mSubscriptionManagerProxy.getDefaultVoicePhoneId(); in getFirstPhoneForEmergencyCall() local
2071 if (phoneId != SubscriptionManager.INVALID_PHONE_INDEX) { in getFirstPhoneForEmergencyCall()
2072 Phone defaultPhone = mPhoneFactoryProxy.getPhone(phoneId); in getFirstPhoneForEmergencyCall()
/packages/modules/CellBroadcastService/src/com/android/cellbroadcastservice/
DCellBroadcastHandler.java567 protected static int getSubIdForPhone(Context context, int phoneId) { in getSubIdForPhone() argument
571 int[] subIds = subMan.getSubscriptionIds(phoneId); in getSubIdForPhone()
582 public static void putPhoneIdAndSubIdExtra(Context context, Intent intent, int phoneId) { in putPhoneIdAndSubIdExtra() argument
583 int subId = getSubIdForPhone(context, phoneId); in putPhoneIdAndSubIdExtra()
588 intent.putExtra("phone", phoneId); in putPhoneIdAndSubIdExtra()
589 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/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/sim/
DSimSettings.java240 private PhoneStateListener getPhoneStateListener(int phoneId) { in getPhoneStateListener() argument
245 final int i = phoneId; in getPhoneStateListener()
246 mPhoneStateListener[phoneId] = new PhoneStateListener() { in getPhoneStateListener()
254 return mPhoneStateListener[phoneId]; in getPhoneStateListener()
/packages/apps/Contacts/tests/src/com/android/contacts/model/
DRawContactDeltaListTests.java140 static ContentValues buildPhone(long phoneId) { in buildPhone() argument
141 return buildPhone(phoneId, Long.toString(phoneId)); in buildPhone()
144 static ContentValues buildPhone(long phoneId, String value) { in buildPhone() argument
146 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.java184 int phoneId = SubscriptionController.getInstance().getPhoneId(subId); in onPreferenceTreeClick() local
185 ImsManager imsManager = ImsManager.getInstance(getContext(), phoneId); in onPreferenceTreeClick()
/packages/apps/PermissionController/src/com/android/permissioncontroller/permission/utils/
DUtils.java1092 for (int phoneId = 0; phoneId < numPhones; phoneId++) { in getForegroundCapableType()
1094 new Intent(CarrierService.CARRIER_SERVICE_INTERFACE), phoneId); in getForegroundCapableType()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/network/telephony/
DMobileNetworkUtils.java98 public static boolean isWifiCallingEnabled(Context context, int phoneId) { in isWifiCallingEnabled() argument
109 ImsManager imsMgr = ImsManager.getInstance(context, phoneId); in isWifiCallingEnabled()
/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/apps/Settings/src/com/android/settings/network/telephony/
DWifiCallingPreferenceController.java226 final int phoneId = SubscriptionManager.getSlotIndex(subId); in isWifiCallingEnabled() local
/packages/services/Telephony/tests/src/com/android/services/telephony/
DTelephonyConnectionServiceTest.java1265 private Phone makeTestPhone(int phoneId, int serviceState, boolean isEmergencyOnly) { in makeTestPhone() argument
1272 when(phone.getPhoneId()).thenReturn(phoneId); in makeTestPhone()
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
DContactsProvider2Test.java1351 long phoneId = ContentUris.parseId(uri); in testPhonesQuery() local
1356 values.put(Data._ID, phoneId); in testPhonesQuery()
1370 assertStoredValues(ContentUris.withAppendedId(Phone.CONTENT_URI, phoneId), values); in testPhonesQuery()