use of com.android.dialer.phonenumberproto.PartitionedNumbers in project android_packages_apps_Dialer by LineageOS.
the class Cp2DefaultDirectoryPhoneLookup method findUnprocessableNumbers.
private ArraySet<DialerPhoneNumber> findUnprocessableNumbers(ImmutableMap<DialerPhoneNumber, Cp2Info> existingInfoMap) {
ArraySet<DialerPhoneNumber> unprocessableNumbers = new ArraySet<>();
PartitionedNumbers partitionedNumbers = new PartitionedNumbers(existingInfoMap.keySet());
int invalidNumberCount = partitionedNumbers.invalidNumbers().size();
Logger.get(appContext).logAnnotatedCallLogMetrics(invalidNumberCount);
if (invalidNumberCount > getMaxSupportedInvalidNumbers()) {
for (String invalidNumber : partitionedNumbers.invalidNumbers()) {
unprocessableNumbers.addAll(partitionedNumbers.dialerPhoneNumbersForInvalid(invalidNumber));
}
}
return unprocessableNumbers;
}
Aggregations