History log of /frameworks/base/telephony/java/android/telephony/PhoneNumberUtils.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
db1f4993989bb03cae2f3e008d4db3e49577aa73 29-Sep-2009 Evan Millar <emillar@google.com> Add PhoneNumberUtils.compare() method that uses a resource to determine strictness.

Change-Id: I49fbfc683f7089f052671b567ad3e19203a568f0
/frameworks/base/telephony/java/android/telephony/PhoneNumberUtils.java
694bd8bf733aee372705e00d13964a20e5b16209 24-Sep-2009 Peng Zhu <w46254@motorola.com> Add null check at isEmergencyNumber().

Change-Id: I7eca1ba1ce42e02c7506a7d969e4865778bb49cc
/frameworks/base/telephony/java/android/telephony/PhoneNumberUtils.java
02b5948a4375dba5d287a59ba023eaf1e02b45dc 21-Sep-2009 Wei Huang <weih@google.com> make PhoneNumberUtils.compareLoosely use MIN_MATCH of 7 instead of 5.

Change-Id: Id4a08c3834b727e253ab189293d5715ffbbe8f35
/frameworks/base/telephony/java/android/telephony/PhoneNumberUtils.java
9a24bc563f28d8489c7178b93ff05f02e8b8a893 19-Sep-2009 Daisuke Miyakawa <dmiyakawa@google.com> Implement compareStrictly() using phone_number_compare() written in C.

As per several discussions, we stick to the default behavior now.
In stead, we provide compareStrictly() as a hidden method, so that some
internal components are able to use the method if needed.

Since these are static methods, they cannot refer to the configuration files,
whose values can be obtained only via Resources object.

Please make callers' side if you want to use strict version of compare().

Internal issue number: 1892808
/frameworks/base/telephony/java/android/telephony/PhoneNumberUtils.java
60d45f0f0320801a16db2ad038453c098e98966c 16-Sep-2009 Nicolas Catania <niko@google.com> Added a field to track if the call is to a voicemail instance.

Refactored common code between CallerInfo and CallerInfoAsyncQuery that deal
with voicemail number comparison.

In CallerInfo.java added a new field mIsVoiceMail to indicate this is a
voicemail call.
Added a new method to convert the CallerInfo into a VM instance.
Added a new method to generate a debug string from an instance.

PhoneNumberUtils has a new method "isVoiceMailNumber" to check if a number
is a VM one. I left the method as hidden. Previously any security exception
failure was cached in a static variable. I removed that and
privilege the optmistic scenario. I am not sure if the security exception
is only for the 'regular' telephony layer and if it applies if a 3rd party
VM app is installed (e.g googlevoice), hence i removed the cashing to make
sure we can pick up new voicemail providers when installed/enabled/disabled.

Bug:2112640
/frameworks/base/telephony/java/android/telephony/PhoneNumberUtils.java
7850cdde66705152b859aafda875833acdda9653 18-Aug-2009 Libin Tang <Libin.Tang@motorola.com> Fix +NANP issue and cleanup plus code conversion.

This patch includes the plus code conversion clean up.
1. change the plus code conversion based on the current and default
number systems retrieved from MCC.
2. for format such as +NANP, replace the '+' with the current IDP (011).
3. comments changes.
/frameworks/base/telephony/java/android/telephony/PhoneNumberUtils.java
18e7b98c1c7e3cf340e39e93be67b777e7036cc4 04-Aug-2009 Tang@Motorola.com <Tang@Motorola.com> Fix the issue of incorrect conversion of the plus sign in a dial string.

The issue is that the plus sign in a dial string is always converted
to the IDP (International Dial Prefix).

This fix implements a plus sign conversion mechanism based on the default
telephone numbering system that the phone is activated and the current telephone
number system that the phone is camped on. Currently, we only support the cases
where the default and current telephone numbering system are NANP.
/frameworks/base/telephony/java/android/telephony/PhoneNumberUtils.java
f28ca902ad07ca3cf9c2f2e5d2d20dd58c0f13e5 09-Aug-2009 Jeff Sharkey <jsharkey@android.com> Update getNumberFromIntent() to read from both providers.

This method is used by the Phone app to decode ACTION_CALL
Intents, resolving to a real phone number. Because the
columns are changing with the new provider, I added logic
to query using the correct columns for the authority of the
requested Uri.
/frameworks/base/telephony/java/android/telephony/PhoneNumberUtils.java
4a301cb49527dfe941a8f6ac3c65a14ee42e01d1 01-Jul-2009 Android (Google) Code Review <android-gerrit@google.com> am 8aadf7ae: Merge change 5359 into donut

Merge commit '8aadf7ae278961926de5452a46863503303735cf'

* commit '8aadf7ae278961926de5452a46863503303735cf':
fix potential string index problems in PhoneNumberUtils.numberToCalledPartyBCDHelper
3a08cec99e104f74f28ba2463f00c8d4e6d1967e 25-Jun-2009 Tammo Spalink <tammo@google.com> fix potential string index problems in PhoneNumberUtils.numberToCalledPartyBCDHelper

addresses http://buganizer/issue?id=1489784
/frameworks/base/telephony/java/android/telephony/PhoneNumberUtils.java
5214376d2b1ce082765f766be1c7d56b50df74a7 27-May-2009 Ficus Kirkpatrick <ficus@android.com> Stop the NANP number formatter from putting dashes in shortcodes.

This changes the result of PhoneNumberUtils.formatNumber("46645") from
"466-45" to "46645".
/frameworks/base/telephony/java/android/telephony/PhoneNumberUtils.java
9066cfe9886ac131c34d59ed0e2d287b0e3c0087 04-Mar-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //depot/cupcake/@135843
/frameworks/base/telephony/java/android/telephony/PhoneNumberUtils.java
d83a98f4ce9cfa908f5c54bbd70f03eec07e7553 04-Mar-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //depot/cupcake/@135843
/frameworks/base/telephony/java/android/telephony/PhoneNumberUtils.java
f013e1afd1e68af5e3b868c26a653bbfb39538f8 18-Dec-2008 The Android Open Source Project <initial-contribution@android.com> Code drop from //branches/cupcake/...@124589
/frameworks/base/telephony/java/android/telephony/PhoneNumberUtils.java
54b6cfa9a9e5b861a9930af873580d6dc20f773c 21-Oct-2008 The Android Open Source Project <initial-contribution@android.com> Initial Contribution
/frameworks/base/telephony/java/android/telephony/PhoneNumberUtils.java