diff options
author | Daisuke Miyakawa <dmiyakawa@google.com> | 2012-05-09 12:04:49 -0700 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2012-05-09 12:04:49 -0700 |
commit | 01028b6fa4d56808f3cced408d9d55ae1a710fa8 (patch) | |
tree | 78ec5a741867c6d68cbb5d87869cfb335b501f11 | |
parent | 12ff149265ba599627896f6c1a0e3ea9721b54c1 (diff) | |
parent | e69ec2253cd2e151a6a98e87d1bbf5d5cfa05bed (diff) | |
download | frameworks_base-01028b6fa4d56808f3cced408d9d55ae1a710fa8.zip frameworks_base-01028b6fa4d56808f3cced408d9d55ae1a710fa8.tar.gz frameworks_base-01028b6fa4d56808f3cced408d9d55ae1a710fa8.tar.bz2 |
Merge "Remove STOPSHIP part of the logging in telephony" into jb-dev
-rw-r--r-- | telephony/java/android/telephony/PhoneNumberUtils.java | 21 |
1 files changed, 1 insertions, 20 deletions
diff --git a/telephony/java/android/telephony/PhoneNumberUtils.java b/telephony/java/android/telephony/PhoneNumberUtils.java index 5afe56c..f740718 100644 --- a/telephony/java/android/telephony/PhoneNumberUtils.java +++ b/telephony/java/android/telephony/PhoneNumberUtils.java @@ -1711,12 +1711,8 @@ public class PhoneNumberUtils return false; } - // STOPSHIP: remove this after figuring out issue 5914560, 6383850. Log.d(LOG_TAG, "System property doesn't provide any emergency numbers." - + " Use embedded logic for determining emergency numbers." - + " number: " + toLogSafePhoneNumber(number) - + ", Iso: " + defaultCountryIso - + ", useExactMatch: " + useExactMatch); + + " Use embedded logic for determining ones."); // No ecclist system property, so use our own list. if (defaultCountryIso != null) { @@ -1735,21 +1731,6 @@ public class PhoneNumberUtils } } - private static String toLogSafePhoneNumber(String number) { - // Do exactly same thing as Uri#toSafeString() does, which will enable us to compare - // sanitized phone numbers. - StringBuilder builder = new StringBuilder(); - for (int i = 0; i < number.length(); i++) { - char c = number.charAt(i); - if (c == '-' || c == '@' || c == '.') { - builder.append(c); - } else { - builder.append('x'); - } - } - return builder.toString(); - } - /** * Checks if a given number is an emergency number for the country that the user is in. The * current country is determined using the CountryDetector. |