Home
last modified time | relevance | path

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

/packages/apps/Dialer/java/com/android/dialer/app/calllog/
DCallLogGroupBuilder.java173 boolean equalNumbers(@Nullable String number1, @Nullable String number2) { in equalNumbers() argument
174 if (PhoneNumberHelper.isUriNumber(number1) || PhoneNumberHelper.isUriNumber(number2)) { in equalNumbers()
175 return compareSipAddresses(number1, number2); in equalNumbers()
177 return PhoneNumberUtils.compare(number1, number2); in equalNumbers()
186 boolean compareSipAddresses(@Nullable String number1, @Nullable String number2) { in compareSipAddresses() argument
187 if (number1 == null || number2 == null) { in compareSipAddresses()
188 return Objects.equals(number1, number2); in compareSipAddresses()
191 int index1 = number1.indexOf('@'); in compareSipAddresses()
195 userinfo1 = number1.substring(0, index1); in compareSipAddresses()
196 rest1 = number1.substring(index1); in compareSipAddresses()
[all …]
/packages/apps/Car/Dialer/src/com/android/car/dialer/
DCallLogListingTask.java220 private static boolean equalNumbers(String number1, String number2) { in equalNumbers() argument
221 if (isUriNumber(number1) || isUriNumber(number2)) { in equalNumbers()
222 return compareSipAddresses(number1, number2); in equalNumbers()
224 return PhoneNumberUtils.compare(number1, number2); in equalNumbers()
228 private static boolean compareSipAddresses(String number1, String number2) { in compareSipAddresses() argument
229 if (number1 == null || number2 == null) { in compareSipAddresses()
230 return number1 == null && number2 == null; in compareSipAddresses()
233 String[] address1 = splitSipAddress(number1); in compareSipAddresses()
/packages/apps/Dialer/java/com/android/dialer/calllog/database/
DCoalescer.java133 DialerPhoneNumber number1; in rowsShouldBeCombined() local
136 number1 = DialerPhoneNumber.parseFrom(row1.getAsByteArray(AnnotatedCallLog.NUMBER)); in rowsShouldBeCombined()
142 if (!number1.hasDialerInternalPhoneNumber() && !number2.hasDialerInternalPhoneNumber()) { in rowsShouldBeCombined()
147 if (!number1.hasDialerInternalPhoneNumber() || !number2.hasDialerInternalPhoneNumber()) { in rowsShouldBeCombined()
151 return dialerPhoneNumberUtil.isExactMatch(number1, number2); in rowsShouldBeCombined()
/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()
78 final String[] dataParts1 = number1.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()
80 final String[] dataParts1 = number1.split(WAIT_SYMBOL_AS_STRING); in shouldCollapsePhoneNumbers()
/packages/services/Telecomm/src/com/android/server/telecom/
DPhoneNumberUtilsAdapterImpl.java40 public boolean isSamePhoneNumber(String number1, String number2) { in isSamePhoneNumber() argument
41 return PhoneNumberUtils.compare(number1, number2); in isSamePhoneNumber()
DPhoneNumberUtilsAdapter.java30 boolean isSamePhoneNumber(String number1, String number2); in isSamePhoneNumber() argument
DCallsManager.java991 final String number1 = PhoneNumberUtils.normalizeNumber(handle1.getSchemeSpecificPart()); in areHandlesEqual() local
993 return TextUtils.equals(number1, number2); in areHandlesEqual()
/packages/apps/Dialer/java/com/android/dialer/calldetails/
DReportDialogFragment.java102 number1 -> cachedNumberLookupService.lookupCachedContactFromNumber(getContext(), number1); in lookupContactInfo()