Searched refs:countPhoneNumberDigits (Results 1 – 2 of 2) sorted by relevance
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ |
D | ContactsProvider2Test.java | 5108 assertEquals(10, ContactsProvider2.countPhoneNumberDigits("86 (0) 5-55-12-34")); in testCountPhoneNumberDigits() 5109 assertEquals(10, ContactsProvider2.countPhoneNumberDigits("860 555-1234")); in testCountPhoneNumberDigits() 5110 assertEquals(3, ContactsProvider2.countPhoneNumberDigits("860")); in testCountPhoneNumberDigits() 5111 assertEquals(10, ContactsProvider2.countPhoneNumberDigits("8605551234")); in testCountPhoneNumberDigits() 5112 assertEquals(6, ContactsProvider2.countPhoneNumberDigits("860555")); in testCountPhoneNumberDigits() 5113 assertEquals(6, ContactsProvider2.countPhoneNumberDigits("860 555")); in testCountPhoneNumberDigits() 5114 assertEquals(6, ContactsProvider2.countPhoneNumberDigits("860-555")); in testCountPhoneNumberDigits() 5115 assertEquals(12, ContactsProvider2.countPhoneNumberDigits("+441234098765")); in testCountPhoneNumberDigits() 5116 assertEquals(0, ContactsProvider2.countPhoneNumberDigits("44+1234098765")); in testCountPhoneNumberDigits() 5117 assertEquals(0, ContactsProvider2.countPhoneNumberDigits("+441234098foo")); in testCountPhoneNumberDigits()
|
/packages/providers/ContactsProvider/src/com/android/providers/contacts/ |
D | ContactsProvider2.java | 9498 return countPhoneNumberDigits(query) > 0; in isPhoneNumber() 9505 public static int countPhoneNumberDigits(String query) { in countPhoneNumberDigits() method in ContactsProvider2
|