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.java4986 assertEquals(10, ContactsProvider2.countPhoneNumberDigits("86 (0) 5-55-12-34")); in testCountPhoneNumberDigits()
4987 assertEquals(10, ContactsProvider2.countPhoneNumberDigits("860 555-1234")); in testCountPhoneNumberDigits()
4988 assertEquals(3, ContactsProvider2.countPhoneNumberDigits("860")); in testCountPhoneNumberDigits()
4989 assertEquals(10, ContactsProvider2.countPhoneNumberDigits("8605551234")); in testCountPhoneNumberDigits()
4990 assertEquals(6, ContactsProvider2.countPhoneNumberDigits("860555")); in testCountPhoneNumberDigits()
4991 assertEquals(6, ContactsProvider2.countPhoneNumberDigits("860 555")); in testCountPhoneNumberDigits()
4992 assertEquals(6, ContactsProvider2.countPhoneNumberDigits("860-555")); in testCountPhoneNumberDigits()
4993 assertEquals(12, ContactsProvider2.countPhoneNumberDigits("+441234098765")); in testCountPhoneNumberDigits()
4994 assertEquals(0, ContactsProvider2.countPhoneNumberDigits("44+1234098765")); in testCountPhoneNumberDigits()
4995 assertEquals(0, ContactsProvider2.countPhoneNumberDigits("+441234098foo")); in testCountPhoneNumberDigits()
/packages/providers/ContactsProvider/src/com/android/providers/contacts/
DContactsProvider2.java9354 return countPhoneNumberDigits(query) > 0; in isPhoneNumber()
9361 public static int countPhoneNumberDigits(String query) { in countPhoneNumberDigits() method in ContactsProvider2