/packages/services/Telephony/tests/src/com/android/phone/tests/ |
CallForwardInfoTest.java | 39 assertNotNull(PhoneNumberUtils.formatNumber("+12345678900", Locale.US.getCountry())); 40 assertNotNull(PhoneNumberUtils.formatNumber("123-456-7890", Locale.US.getCountry())); 41 assertNotNull(PhoneNumberUtils.formatNumber("#123", Locale.US.getCountry())); 42 assertNotNull(PhoneNumberUtils.formatNumber("*12", Locale.US.getCountry())); 44 assertNull(PhoneNumberUtils.formatNumber("a", Locale.US.getCountry())); 45 assertNull(PhoneNumberUtils.formatNumber("a1", Locale.US.getCountry()));
|
/packages/apps/Dialer/java/com/android/contacts/common/compat/ |
PhoneNumberUtilsCompat.java | 34 public static String formatNumber( 36 return PhoneNumberUtils.formatNumber(phoneNumber, phoneNumberE164, defaultCountryIso);
|
/external/robolectric/v1/src/main/java/com/xtremelabs/robolectric/shadows/ |
ShadowPhoneNumberUtils.java | 11 public static java.lang.String formatNumber(java.lang.String source) {
|
/external/robolectric/v1/src/test/java/com/xtremelabs/robolectric/shadows/ |
PhoneNumberUtilTest.java | 15 assertThat(PhoneNumberUtils.formatNumber("12345678901"), equalTo("12345678901-formatted"));
|
/external/icu/icu4c/source/test/perf/perldriver/ |
Format.pm | 59 sub formatNumber { 107 formatNumber($sigdig, $MULT[$i], $a, $delta) . ' ' . $SUFF[$i]; 125 formatNumber($sigdig, 100, $a, $delta) . '%';
|
Output.pm | 66 print HTML formatNumber(2, $mult, $mean); 79 print HTML formatNumber(2, $mult, $error); 88 #print HTML formatNumber(2, 1, $value); 309 print HTML "<td class=\"sepvalue\">".formatNumber(4, $mult, $ds->getMean)."</td><td class=\"sepvalue\">".formatNumber(4, $mult, $ds->getError)."</td>";
|
/external/icu/icu4j/perf-tests/perldriver/ |
Format.pm | 57 sub formatNumber { 105 formatNumber($sigdig, $MULT[$i], $a, $delta) . ' ' . $SUFF[$i]; 123 formatNumber($sigdig, 100, $a, $delta) . '%';
|
Output.pm | 64 print HTML formatNumber(2, $mult, $mean); 77 print HTML formatNumber(2, $mult, $error); 86 #print HTML formatNumber(2, 1, $value); 307 print HTML "<td class=\"sepvalue\">".formatNumber(4, $mult, $ds->getMean)."</td><td class=\"sepvalue\">".formatNumber(4, $mult, $ds->getError)."</td>";
|
/packages/services/Telecomm/src/com/android/server/telecom/settings/ |
BlockedNumbersUtil.java | 46 public static String formatNumber(String number){ 47 String formattedNumber = PhoneNumberUtils.formatNumber(number, getLocaleDefaultToUS()); 59 String formattedNumber = formatNumber(number);
|
BlockedNumbersAdapter.java | 44 final String formattedNumber = BlockedNumbersUtil.formatNumber(rawNumber);
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/ |
PhoneNumberUtilsTest.java | 524 assertEquals("(650) 291-0000", PhoneNumberUtils.formatNumber("650 2910000", "US")); 525 assertEquals("223-4567", PhoneNumberUtils.formatNumber("2234567", "US")); 527 PhoneNumberUtils.formatNumber("011861088880000", "US")); 528 assertEquals("010 8888 0000", PhoneNumberUtils.formatNumber("01088880000", "CN")); 529 // formatNumber doesn't format alpha numbers, but keep them as they are. 530 assertEquals("800-GOOG-114", PhoneNumberUtils.formatNumber("800-GOOG-114", "US")); 540 assertEquals("+81 90-6657-1180", PhoneNumberUtils.formatNumber("+819066571180", "US")); 550 assertEquals("090-6657-0660", PhoneNumberUtils.formatNumber("09066570660", "JP")); 551 assertEquals("090-6657-1180", PhoneNumberUtils.formatNumber("+819066571180", "JP")); 554 assertEquals("+1 650-555-1212", PhoneNumberUtils.formatNumber("+16505551212", "JP")) [all...] |
/packages/apps/Contacts/src/com/android/contacts/compat/ |
PhoneNumberUtilsCompat.java | 73 public static String formatNumber( 76 return PhoneNumberUtils.formatNumber(phoneNumber, phoneNumberE164, defaultCountryIso); 79 return PhoneNumberUtils.formatNumber(phoneNumber);
|
/packages/apps/Contacts/src/com/android/contacts/model/dataitem/ |
PhoneDataItem.java | 81 final String formattedPhoneNumber = PhoneNumberUtilsCompat.formatNumber(phoneNumber,
|
/packages/apps/Dialer/java/com/android/contacts/common/model/dataitem/ |
PhoneDataItem.java | 57 PhoneNumberUtilsCompat.formatNumber(
|
/external/icu/icu4j/perf-tests/ |
converterperf.pl | 404 sub formatNumber { 451 formatNumber($sigdig, $MULT[$i], $a, $delta) . ' ' . $SUFF[$i]; 469 formatNumber($sigdig, 100, $a, $delta) . ' %';
|
dateformatperf.pl | 390 sub formatNumber { 437 formatNumber($sigdig, $MULT[$i], $a, $delta) . ' ' . $SUFF[$i]; 455 formatNumber($sigdig, 100, $a, $delta) . ' %';
|
decimalformatperf.pl | 385 sub formatNumber { 432 formatNumber($sigdig, $MULT[$i], $a, $delta) . ' ' . $SUFF[$i]; 450 formatNumber($sigdig, 100, $a, $delta) . ' %';
|
normperf.pl | 440 sub formatNumber { 487 formatNumber($sigdig, $MULT[$i], $a, $delta) . ' ' . $SUFF[$i]; 505 formatNumber($sigdig, 100, $a, $delta) . ' %';
|
ucharacterperf.pl | 387 sub formatNumber { 434 formatNumber($sigdig, $MULT[$i], $a, $delta) . ' ' . $SUFF[$i]; 452 formatNumber($sigdig, 100, $a, $delta) . ' %';
|
unicodesetperf.pl | 377 sub formatNumber { 424 formatNumber($sigdig, $MULT[$i], $a, $delta) . ' ' . $SUFF[$i]; 442 formatNumber($sigdig, 100, $a, $delta) . ' %';
|
/cts/tests/tests/telephony/src/android/telephony/cts/ |
PhoneNumberUtilsTest.java | 227 // Test formatNumber(String). Only numbers begin with +1 or +81 can be formatted. 228 assertEquals("+1-888-888-888", PhoneNumberUtils.formatNumber("+1888888888")); 229 // Test formatNumber(Editable, int) 231 PhoneNumberUtils.formatNumber(editNumber, PhoneNumberUtils.FORMAT_UNKNOWN); 234 PhoneNumberUtils.formatNumber(editNumber, PhoneNumberUtils.FORMAT_UNKNOWN); 237 PhoneNumberUtils.formatNumber(editNumber, PhoneNumberUtils.FORMAT_UNKNOWN); 378 assertNull(PhoneNumberUtils.formatNumber("invalid#", "US"));
|
/external/icu/icu4c/source/i18n/ |
msgfmt.cpp | 622 int32_t formatNumber = 0; 625 formatNumber < count && U_SUCCESS(status) && 627 setCustomArgStartFormat(partIndex, newFormats[formatNumber], status); 628 ++formatNumber; 631 for (; formatNumber < count; ++formatNumber) { 632 delete newFormats[formatNumber]; 656 int32_t formatNumber = 0; 658 formatNumber < count && U_SUCCESS(status) && (partIndex = nextTopLevelArgStart(partIndex)) >= 0;) { 660 if (newFormats[formatNumber] != NULL) [all...] |
/packages/apps/Dialer/java/com/android/dialer/app/filterednumber/ |
BlockedNumbersAdapter.java | 68 PhoneNumberUtils.formatNumber(number, countryIso),
|
/packages/services/Telephony/src/com/android/phone/ |
CallGatewayManager.java | 189 return PhoneNumberUtils.formatNumber(uri.getSchemeSpecificPart());
|
/external/icu/icu4c/source/i18n/unicode/ |
msgfmt.h | 540 * @param formatNumber index of the subformat. 543 virtual void adoptFormat(int32_t formatNumber, Format* formatToAdopt); 550 * @param formatNumber index of the subformat. 554 virtual void setFormat(int32_t formatNumber, const Format& format); [all...] |