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
3 files changed