Home
last modified time | relevance | path

Searched refs:countPhoneNumberDigits (Results 1 – 2 of 2) sorted by relevance

/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
DContactsProvider2Test.java5034 assertEquals(10, ContactsProvider2.countPhoneNumberDigits("86 (0) 5-55-12-34")); in testCountPhoneNumberDigits()
5035 assertEquals(10, ContactsProvider2.countPhoneNumberDigits("860 555-1234")); in testCountPhoneNumberDigits()
5036 assertEquals(3, ContactsProvider2.countPhoneNumberDigits("860")); in testCountPhoneNumberDigits()
5037 assertEquals(10, ContactsProvider2.countPhoneNumberDigits("8605551234")); in testCountPhoneNumberDigits()
5038 assertEquals(6, ContactsProvider2.countPhoneNumberDigits("860555")); in testCountPhoneNumberDigits()
5039 assertEquals(6, ContactsProvider2.countPhoneNumberDigits("860 555")); in testCountPhoneNumberDigits()
5040 assertEquals(6, ContactsProvider2.countPhoneNumberDigits("860-555")); in testCountPhoneNumberDigits()
5041 assertEquals(12, ContactsProvider2.countPhoneNumberDigits("+441234098765")); in testCountPhoneNumberDigits()
5042 assertEquals(0, ContactsProvider2.countPhoneNumberDigits("44+1234098765")); in testCountPhoneNumberDigits()
5043 assertEquals(0, ContactsProvider2.countPhoneNumberDigits("+441234098foo")); in testCountPhoneNumberDigits()
/packages/providers/ContactsProvider/src/com/android/providers/contacts/
DContactsProvider2.java9876 return countPhoneNumberDigits(query) > 0; in isPhoneNumber()
9883 public static int countPhoneNumberDigits(String query) { in countPhoneNumberDigits() method in ContactsProvider2