History log of /packages/apps/Contacts/tests/src/com/android/contacts/tests/PhoneNumberTestService.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
84212b147edcf358746c249ac84827146389567a 10-Aug-2012 Makoto Onuki <omakoto@google.com> PhoneNumberTestService: show truncated number too.

PhoneNumberUtil.truncateTooLongNumber() will truncate a phone number
if it's too long to be valid.

Change-Id: I7d52ebda3330400d1a8d0bc984f0946b6120a801
/packages/apps/Contacts/tests/src/com/android/contacts/tests/PhoneNumberTestService.java
e0b2f1e2d01d1ac52ba207dc7ce76971d853298e 12-Jun-2012 Chiao Cheng <chiaocheng@google.com> Global import order fix.

Changed import order to be in accordance with style guide:
http://source.android.com/source/code-style.html#order-import-statements

Static imports will be placed at the top since most existing files used that
convention. It is also a style that can be handled by both eclipse and intellij.

Change-Id: Ia7013c7a2d88e5fefb8f4975d121f7fcd3fcc462
/packages/apps/Contacts/tests/src/com/android/contacts/tests/PhoneNumberTestService.java
654888562d75fe4758cb0500f73aaa11385e6f63 30-Nov-2011 Makoto Onuki <omakoto@google.com> Add phone number format tester to test apk

Usage:
adb shell am startservice -e n '6502530000' \
com.android.contacts.tests/.PhoneNumberTestService

This will output the following on logcat.

I/phonenumber(29086): Input phone number: 6502530000
I/phonenumber(29086): Input country code: null
I/phonenumber(29086): Current country code: US
I/phonenumber(29086): Result for: 6502530000 / US
I/phonenumber(29086): formatNumberToE164(6502530000, US) = +16502530000
I/phonenumber(29086): PhoneNumberUtil.format(parse(6502530000, US), E164) = +16502530000 (valid)
I/phonenumber(29086): PhoneNumberUtil.format(parse(6502530000, US), INTERNATIONAL) = +1 650-253-0000 (valid)
I/phonenumber(29086): PhoneNumberUtil.format(parse(6502530000, US), NATIONAL) = (650) 253-0000 (valid)
I/phonenumber(29086): PhoneNumberUtil.format(parse(6502530000, US), RFC3966) = +1-650-253-0000 (valid)
:
:

Also fixed the copyright header for QueryService.java.

Change-Id: If504a803e0001eeafd5928979caa1510ac989282
/packages/apps/Contacts/tests/src/com/android/contacts/tests/PhoneNumberTestService.java