Home
last modified time | relevance | path

Searched refs:getPhoneNumber (Results 1 – 25 of 45) sorted by relevance

12

/packages/services/Mms/tests/unittests/src/com/android/mms/service/
DMmsHttpClientTest.java92 verify(mSubscriptionManager, never()).getPhoneNumber(subId); in getPhoneNumberForMacroLine1()
96 when(mSubscriptionManager.getPhoneNumber(subId)).thenReturn(subscriberPhoneNumber); in getPhoneNumberForMacroLine1()
99 verify(mSubscriptionManager).getPhoneNumber(subId); in getPhoneNumberForMacroLine1()
103 when(mSubscriptionManager.getPhoneNumber(subId)).thenReturn(subscriberPhoneNumber); in getPhoneNumberForMacroLine1()
107 verify(mSubscriptionManager).getPhoneNumber(subId); in getPhoneNumberForMacroLine1()
124 verify(mSubscriptionManager, never()).getPhoneNumber(subId); in getPhoneNumberForMacroLine1CountryCode()
128 when(mSubscriptionManager.getPhoneNumber(subId)).thenReturn(subscriberPhoneNumber); in getPhoneNumberForMacroLine1CountryCode()
131 verify(mSubscriptionManager).getPhoneNumber(subId); in getPhoneNumberForMacroLine1CountryCode()
135 when(mSubscriptionManager.getPhoneNumber(subId)).thenReturn(subscriberPhoneNumber); in getPhoneNumberForMacroLine1CountryCode()
139 verify(mSubscriptionManager).getPhoneNumber(subId); in getPhoneNumberForMacroLine1CountryCode()
/packages/apps/Settings/tests/unit/src/com/android/settings/network/
DSubscriptionUtilTest.java217 when(mSubMgr.getPhoneNumber(SUBID_1)).thenReturn("1112223333"); in getUniqueDisplayNames_uniqueCarriers_originalUsed()
218 when(mSubMgr.getPhoneNumber(SUBID_2)).thenReturn("2223334444"); in getUniqueDisplayNames_uniqueCarriers_originalUsed()
247 when(mSubMgr.getPhoneNumber(SUBID_1)).thenReturn("1112223333"); in getUniqueDisplayNames_identicalCarriers_fourDigitsUsed()
248 when(mSubMgr.getPhoneNumber(SUBID_2)).thenReturn("2223334444"); in getUniqueDisplayNames_identicalCarriers_fourDigitsUsed()
277 when(mSubMgr.getPhoneNumber(SUBID_1)).thenReturn("1112223333"); in getUniqueDisplayNames_identicalCarriersAfterTrim_fourDigitsUsed()
278 when(mSubMgr.getPhoneNumber(SUBID_2)).thenReturn("2223334444"); in getUniqueDisplayNames_identicalCarriersAfterTrim_fourDigitsUsed()
306 when(mSubMgr.getPhoneNumber(SUBID_1)).thenReturn(""); in getUniqueDisplayNames_phoneNumberBlocked_subscriptionIdFallback()
307 when(mSubMgr.getPhoneNumber(SUBID_2)).thenReturn(""); in getUniqueDisplayNames_phoneNumberBlocked_subscriptionIdFallback()
342 when(mSubMgr.getPhoneNumber(SUBID_1)).thenReturn("1112223333"); in getUniqueDisplayNames_phoneNumberIdentical_subscriptionIdFallback()
343 when(mSubMgr.getPhoneNumber(SUBID_2)).thenReturn("2223334444"); in getUniqueDisplayNames_phoneNumberIdentical_subscriptionIdFallback()
[all …]
/packages/apps/Settings/src/com/android/settings/sim/smartForwarding/
DMDNHandlerHeaderFragment.java19 import static com.android.settings.sim.smartForwarding.SmartForwardingUtils.getPhoneNumber;
50 String slot0PhoneNumber = getPhoneNumber(getContext(), 0); in onCreatePreferences()
57 String slot1PhoneNumber = getPhoneNumber(getContext(), 1); in onCreatePreferences()
DSmartForwardingFragment.java20 import static com.android.settings.sim.smartForwarding.SmartForwardingUtils.getPhoneNumber;
68 String slot0PhoneNumber = getPhoneNumber(getContext(), 0); in onPreferenceChange()
69 String slot1PhoneNumber = getPhoneNumber(getContext(), 1); in onPreferenceChange()
DSmartForwardingUtils.java133 public static String getPhoneNumber(Context context, int slotId) { in getPhoneNumber() method in SmartForwardingUtils
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/map/
DSmsMmsContactsTest.java101 assertThat(mContacts.getPhoneNumber(mResolver, TEST_ID)).isEqualTo(TEST_PHONE_NUMBER); in fillPhoneCache()
113 assertThat(mContacts.getPhoneNumber(mResolver, TEST_ID)).isEqualTo(TEST_PHONE_NUMBER); in fillPhoneCache_withNonNullPhoneNumbers()
119 assertThat(mContacts.getPhoneNumber(mResolver, TEST_ID)).isNull(); in fillPhoneCache_withNonNullPhoneNumbers()
133 assertThat(mContacts.getPhoneNumber(mResolver, TEST_ID)).isEqualTo(TEST_PHONE_NUMBER); in clearCache()
140 assertThat(mContacts.getPhoneNumber(mResolver, TEST_ID)).isEqualTo(null); in clearCache()
/packages/apps/Dialer/java/com/android/dialer/postcall/
DPostCall.java75 String number = Assert.isNotNull(getPhoneNumber(activity)); in promptUserToSendMessage()
123 String number = Assert.isNotNull(getPhoneNumber(activity)); in promptUserToViewSentMessage()
228 && getPhoneNumber(context) != null in shouldPromptUserToSendMessage()
239 private static String getPhoneNumber(Context context) { in getPhoneNumber() method in PostCall
/packages/services/Telecomm/src/com/android/server/telecom/
DMissedCallNotifier.java78 public String getPhoneNumber() { in getPhoneNumber() method in MissedCallNotifier.CallInfo
79 return mCallerInfo == null ? null : mCallerInfo.getPhoneNumber(); in getPhoneNumber()
/packages/services/Telephony/testapps/SmsManagerTestApp/src/com/android/phone/testapps/smsmanagertestapp/
DSmsManagerTestApp.java96 mPhoneNumber.setText(getPhoneNumber(), TextView.BufferType.NORMAL); in onResume()
123 mPhoneNumber.setText(getPhoneNumber(), TextView.BufferType.NORMAL); in onRequestPermissionsResult()
228 private String getPhoneNumber() { in getPhoneNumber() method in SmsManagerTestApp
/packages/apps/Contacts/src/com/android/contacts/list/
DPhoneNumberPickerFragment.java159 final String number = getPhoneNumber(position); in callNumber()
175 protected String getPhoneNumber(int position) { in getPhoneNumber() method in PhoneNumberPickerFragment
177 return adapter.getPhoneNumber(position); in getPhoneNumber()
/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/
DMissedCallNotifierTest.java75 assertEquals(phoneNumber, callInfo.getPhoneNumber()); in testCallInfoFactory()
90 assertNull(callInfo.getPhoneNumber()); in testCallInfoFactoryNullParam()
/packages/apps/EmergencyInfo/tests/robolectric/src/com/android/emergency/preferences/
DEmergencyContactsPreferenceTest.java97 when(contact.getPhoneNumber()).thenReturn(phoneNumber); in testAddAndRemoveEmergencyContact()
126 when(contactJane.getPhoneNumber()).thenReturn(phoneNumberJane); in testReloadFromPreference()
135 when(contactJohn.getPhoneNumber()).thenReturn(phoneNumberJohn); in testReloadFromPreference()
DContactPreferenceTest.java61 when(mContact.getPhoneNumber()).thenReturn(PHONE_NUMBER); in setUp()
72 assertThat(mPreference.getContact().getPhoneNumber()).isEqualTo(PHONE_NUMBER); in testContactPreference()
/packages/apps/Car/Cluster/DirectRenderingCluster/src/android/car/cluster/
DPhoneFragmentViewModel.java123 mNumber = info.getPhoneNumber(); in ContactInfo()
125 mContact = InMemoryPhoneBook.get().lookupContactEntry(info.getPhoneNumber()); in ContactInfo()
/packages/apps/Contacts/src/com/android/contacts/
DNonPhoneActivity.java49 final String phoneNumber = getPhoneNumber(); in onCreate()
62 private String getPhoneNumber() { in getPhoneNumber() method in NonPhoneActivity
/packages/apps/Settings/tests/spa_unit/src/com/android/settings/spa/network/
DSimOnboardingSelectSimTest.kt58 on { getPhoneNumber(SUB_ID_1) } doReturn NUMBER_1 in <lambda>()
59 on { getPhoneNumber(SUB_ID_2) } doReturn NUMBER_2 in <lambda>()
60 on { getPhoneNumber(SUB_ID_3) } doReturn NUMBER_3 in <lambda>()
DSimOnboardingLabelSimTest.kt69 on { getPhoneNumber(SUB_ID_1) } doReturn NUMBER_1 in <lambda>()
70 on { getPhoneNumber(SUB_ID_2) } doReturn NUMBER_2 in <lambda>()
71 on { getPhoneNumber(SUB_ID_3) } doReturn NUMBER_3 in <lambda>()
/packages/apps/Settings/src/com/android/settings/deviceinfo/
DPhoneNumberPreferenceController.java87 simStatusPreference.setSummary(getPhoneNumber(simSlotNumber)); in updateState()
107 private CharSequence getPhoneNumber(int simSlot) { in getPhoneNumber() method in PhoneNumberPreferenceController
/packages/apps/EmergencyInfo/src/com/android/emergency/preferences/
DContactPreference.java133 mContact.getPhoneNumber() : in setPhoneUri()
137 BidiFormatter.getInstance().unicodeWrap(mContact.getPhoneNumber(), in setPhoneUri()
227 tm.placeCall(Uri.parse("tel:" + mContact.getPhoneNumber()), null); in callContact()
/packages/apps/Dialer/java/com/android/dialer/simulator/impl/
DSimulatorConnectionService.java131 getPhoneNumber(request), in onCreateIncomingConnection()
171 private static Uri getPhoneNumber(ConnectionRequest request) { in getPhoneNumber() method in SimulatorConnectionService
/packages/apps/Dialer/java/com/android/dialer/databasepopulator/
DVoicemailPopulator.java136 public abstract String getPhoneNumber(); in getPhoneNumber() method in VoicemailPopulator.Voicemail
156 values.put(Voicemails.NUMBER, getPhoneNumber()); in getAsContentValues()
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
DCallerInfoIntegrationTest.java53 assertEquals("800-466-4411", callerInfo.getPhoneNumber()); in testCallerInfo()
/packages/services/Telephony/src/com/android/phone/
DEditPhoneNumberPreference.java380 public String getPhoneNumber() { in getPhoneNumber() method in EditPhoneNumberPreference
506 return ((isToggled() ? VALUE_ON : VALUE_OFF) + VALUE_SEPARATOR + getPhoneNumber()); in getStringValue()
/packages/services/Telephony/testapps/TestRcsApp/TestApp/src/com/google/android/sample/rcsclient/
DContactListActivity.java169 String phoneNumber = getPhoneNumber(cursor); in querySummaryData()
266 private String getPhoneNumber(Cursor cursor) { in getPhoneNumber() method in ContactListActivity
/packages/apps/EmergencyInfo/src/com/android/emergency/
DEmergencyContactManager.java174 public String getPhoneNumber() { in getPhoneNumber() method in EmergencyContactManager.Contact

12