Home
last modified time | relevance | path

Searched refs:number2 (Results 1 – 9 of 9) sorted by relevance

/packages/apps/Dialer/java/com/android/dialer/app/calllog/
DCallLogGroupBuilder.java199 boolean equalNumbers(@Nullable String number1, @Nullable String number2) { in equalNumbers() argument
200 if (PhoneNumberHelper.isUriNumber(number1) || PhoneNumberHelper.isUriNumber(number2)) { in equalNumbers()
201 return compareSipAddresses(number1, number2); in equalNumbers()
209 || PhoneNumberHelper.numberHasSpecialChars(number2)) { in equalNumbers()
210 return PhoneNumberHelper.sameRawNumbers(number1, number2); in equalNumbers()
213 return PhoneNumberUtils.compare(number1, number2); in equalNumbers()
221 boolean compareSipAddresses(@Nullable String number1, @Nullable String number2) { in compareSipAddresses() argument
222 if (number1 == null || number2 == null) { in compareSipAddresses()
223 return Objects.equals(number1, number2); in compareSipAddresses()
237 int index2 = number2.indexOf('@'); in compareSipAddresses()
[all …]
/packages/apps/Dialer/java/com/android/contacts/common/
DMoreContactUtils.java67 private static boolean shouldCollapsePhoneNumbers(String number1, String number2) { in shouldCollapsePhoneNumbers() argument
71 if (number1.contains("#") != number2.contains("#") in shouldCollapsePhoneNumbers()
72 || number1.contains("*") != number2.contains("*")) { in shouldCollapsePhoneNumbers()
79 final String[] dataParts2 = number2.split(WAIT_SYMBOL_AS_STRING); in shouldCollapsePhoneNumbers()
/packages/apps/Contacts/src/com/android/contacts/
DMoreContactUtils.java69 private static boolean shouldCollapsePhoneNumbers(String number1, String number2) { in shouldCollapsePhoneNumbers() argument
73 if (number1.contains("#") != number2.contains("#") in shouldCollapsePhoneNumbers()
74 || number1.contains("*") != number2.contains("*")) { in shouldCollapsePhoneNumbers()
81 final String[] dataParts2 = number2.split(WAIT_SYMBOL_AS_STRING); in shouldCollapsePhoneNumbers()
/packages/services/Telecomm/src/com/android/server/telecom/
DPhoneNumberUtilsAdapterImpl.java31 public boolean isSamePhoneNumber(String number1, String number2) { in isSamePhoneNumber() argument
32 return PhoneNumberUtils.compare(number1, number2); in isSamePhoneNumber()
DPhoneNumberUtilsAdapter.java28 boolean isSamePhoneNumber(String number1, String number2); in isSamePhoneNumber() argument
DCallsManager.java1810 final String number2 = PhoneNumberUtils.normalizeNumber(handle2.getSchemeSpecificPart()); in areHandlesEqual() local
1811 return TextUtils.equals(number1, number2); in areHandlesEqual()
/packages/apps/Dialer/java/com/android/dialer/phonenumberutil/
DPhoneNumberHelper.java135 public static boolean sameRawNumbers(String number1, String number2) { in sameRawNumbers() argument
139 PhoneNumberUtils.stripSeparators(PhoneNumberUtils.convertKeypadLettersToDigits(number2)); in sameRawNumbers()
/packages/modules/AppSearch/testing/contactsindexertests/src/com/android/server/appsearch/contactsindexer/
DContactDataHandlerTest.java599 String number2 = "+12025550116"; in testTwoPhoneNumber_generatesAllVariantsInOrder_withoutE164FormatInCP2() local
600 values.put(CommonDataKinds.Phone.NUMBER, number2); in testTwoPhoneNumber_generatesAllVariantsInOrder_withoutE164FormatInCP2()
610 assertThat(phoneNumbers).containsExactly(number1, number2, "(202) 555-0111", in testTwoPhoneNumber_generatesAllVariantsInOrder_withoutE164FormatInCP2()
614 assertThat(phoneNumbers.get(1)).isEqualTo(number2); in testTwoPhoneNumber_generatesAllVariantsInOrder_withoutE164FormatInCP2()
/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/
DCallLogManagerTest.java302 String number2 = "80000"; in testDontLogUnloggableNumbers() local
313 .thenReturn(new String[] {number2}); in testDontLogUnloggableNumbers()
335 Uri.parse("tel:" + number2), in testDontLogUnloggableNumbers()