History log of /packages/apps/Mms/src/com/android/mms/util/AddressUtils.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
6cb0e9bb8faa8c00294bd35ebebc010979c6669a 06-Sep-2012 Tom Taylor <tomtaylor@google.com> ANR in messaging after launch and clicking on an existing thread

Bug 6772676

The UI thread was calling PhoneNumberUtil.isPossibleNumber which ends up
calling PhoneNumberUtil.getMetadataForRegion which is blocked on a sync
while a data file is loaded. In this case, our loading the contacts in a non-UI
thread associated with all the conversations happened to get there first.
Loading the file was slow enough to cause the blocked UI thread to ANR.
We can never call a file loading function on the UI thread. Since this
call is simply coming from context menu code, deciding whether to show an Add contact
menu item for the number, I'm now using Telephony.Mms.isPhoneNumber which doesn't result in a file getting
loaded on the UI thread.

Change-Id: I4bc1db22c6e20fd78e988fa7e56b7cb37a5cc62e
/packages/apps/Mms/src/com/android/mms/util/AddressUtils.java
d64419030e1fec1e751695dab3bd7236e2fb0214 02-Aug-2012 Roger Chen <cxr514033970@gmail.com> Clean and format all imported packages

Change-Id: I2e45f5ba1d56b9b17314a8b0f4c0fc1a5d8fc4d9
Signed-off-by: Roger Chen <cxr514033970@gmail.com>
/packages/apps/Mms/src/com/android/mms/util/AddressUtils.java
c0b938e899f202ba9f4ac9bd2b5736b7f96c5b57 11-Jan-2012 Tom Taylor <tomtaylor@google.com> Use libphonenumber for testing whether an address is a phone number

Bug 5855222
"Add to contacts" wasn't showing up in the ComposeMessageActivity menu
for German numbers containing slashes. The phone number checker in
Telephony.Mms.isPhoneNumber() is too simplistic. The code is now using
the sophisticated libphonenumber for testing phone numbers.

Change-Id: I6ea8c463e6bc7496e8c483c465b16ef860f2c9fc
/packages/apps/Mms/src/com/android/mms/util/AddressUtils.java
f7e8281a223af6228e6399055a6197a1edd9bc3a 09-Mar-2010 Tom Taylor <tomtaylor@google.com> Remove mms-common

Get rid of the mms-common library and move the mms files back into the
framework where they originally came from.

Change-Id: I8ce2b0a2a3cfc6b7da13ce0e791173c09dd8f0f5
/packages/apps/Mms/src/com/android/mms/util/AddressUtils.java
fd644551e8506266aad2b76463b51b44154ed62f 29-Jan-2010 Tom Taylor <tomtaylor@google.com> Update refs now that MMS is removed

Move MMS to mms-common library. Update imports.

Change-Id: I28fa24a68c27977eba58cb62f2667596d3abe2c4
/packages/apps/Mms/src/com/android/mms/util/AddressUtils.java
6be18bedb5b87dbbcdb54f37d5a0945bd0f71377 17-Dec-2009 Tom Taylor <tomtaylor@google.com> Unbundling work

This is the first step in unbundling the Mms app. Some of the changes include:
- moving some of the Mms code from the framework into the app itself.
- same with emoticons
- remove dependency on internal drawables and add local copy to mms
- some dependencies on various internal classes now moved to android-common library
/packages/apps/Mms/src/com/android/mms/util/AddressUtils.java
d2f67de2dfb6c2e5b659c0018cd47015e0aefe7c 21-Sep-2009 Wei Huang <weih@google.com> fixing bug 1892808: use PhoneNumberUtils.compare() now it handles sms short code better.

Change-Id: I2207dad5a03ed46a563ab919b3fc0a7ab405bcf5
/packages/apps/Mms/src/com/android/mms/util/AddressUtils.java
32a1dcecca6ed0881431555a4218d0282814326c 27-Aug-2009 Wink Saville <wink@google.com> temporary fix for bug 1892808. If the SMS address is a short code addr, don't feed it to PhoneNumberUtils.compare() as that doesn't handle short phone numbers.

- if the SMS address is shorter than 6 digits, just do a straight string comparison now. SMS short codes don't usually have the separater characters like "(.- ", or the prefix '+'.
- when updating the contact cache, don't spin up one thread per contact. Do all the contacts update in a single thread.
- add a unit test for comparing SMS phone numbers and short codes. Disabled ConversationaListTest, it seems to get stuck for a long long time.

Change-Id: I9fca4734c235466671ff72d144842bbbb0d7dda9
/packages/apps/Mms/src/com/android/mms/util/AddressUtils.java
e995b84b783c4a430bf3899372a337cc9c896b38 17-Apr-2009 Ficus Kirkpatrick <ficus@android.com> Scrub the MMS app for dead code.
/packages/apps/Mms/src/com/android/mms/util/AddressUtils.java
72735c62aba8fd2a9420a0f9f83d22543e3c164f 04-Mar-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //depot/cupcake/@135843
/packages/apps/Mms/src/com/android/mms/util/AddressUtils.java
892f2c5bf965b1431ae107b602444a93f4aad4a3 04-Mar-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //depot/cupcake/@135843
/packages/apps/Mms/src/com/android/mms/util/AddressUtils.java
8eed706474910ccb978acda03e85d3261037da6e 21-Oct-2008 The Android Open Source Project <initial-contribution@android.com> Initial Contribution
/packages/apps/Mms/src/com/android/mms/util/AddressUtils.java