History log of /frameworks/base/telephony/java/com/android/internal/telephony/CallerInfo.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
63f03dd94c43c22f2c77306059b5748e5e1e0e3c 23-Oct-2014 Wink Saville <wink@google.com> Change subId to int from long

Change-Id: Idae6335e63e7b1e4e714bc17e71b1a4705e38474
/frameworks/base/telephony/java/com/android/internal/telephony/CallerInfo.java
282f368069a27fc18845bcd6ce45f5a1044406e3 30-Aug-2014 Yorke Lee <yorkelee@google.com> Add lookup key to callerInfo

Bug: 16825519
Change-Id: I71c4b2366caa3351b1f2cedd1c341f9ac909b7ea
/frameworks/base/telephony/java/com/android/internal/telephony/CallerInfo.java
0e917336a2e7ad8191988042800f4be443b5c69a 26-Aug-2014 Makoto Onuki <omakoto@google.com> Address API review comments:

- Rename isCorpContactId() to isEnterpriseContactId().
- Update EXTRA_* constant values.
- Update javadoc on NAME_VERIFIED.

Bug 17253963

Change-Id: I1bef3adbb4125b39129c77cca29c4b8089e1f8cc
/frameworks/base/telephony/java/com/android/internal/telephony/CallerInfo.java
5692dcced506cebf2bdb214fb27159cef9f7de2c 17-Jul-2014 Makoto Onuki <omakoto@google.com> Use "current" cp2 from telephony

Now "always send to voicemail" and missed call notifications respect the
current user's contacts.

Bug 16236656

Change-Id: Iae48b4ac95550970ecae59bdd32c436efef90200
/frameworks/base/telephony/java/com/android/internal/telephony/CallerInfo.java
a2295e65dc0735beee32180ab51b9c0b198287e1 11-Jul-2014 Makoto Onuki <omakoto@google.com> Enterprise caller-id: framework/base/Telephony

It's basically equivalent to http://ag/500455 and http://ag/499160.

Now "Send to voicemail" and the missed call notification uses the enterprise
lookup; they now work with a corp contact too.

Bug 15779911

Change-Id: I8a87f45ba7299cfbc516eb44326e02258e38cf63
/frameworks/base/telephony/java/com/android/internal/telephony/CallerInfo.java
fb40dd4d00bd3361b2535bc866e6c21eadc52558 13-Jun-2014 Wink Saville <wink@google.com> Merge kwd to master

Add initial IMS and MSIM support from klp-wireless-dev-mirror

Change-Id: Idb607c0aa32f80fe4fe1539aedea7a221e9e7f04
/frameworks/base/telephony/java/com/android/internal/telephony/CallerInfo.java
282129fd3f789739c47fe5506bcf29c1a2712b3e 05-Jun-2014 Yorke Lee <yorkelee@google.com> API changes to Telephony per API review

* Make context the first argument for isLocalEmergencyNumber and
isPotentialLocalEmergencyNumber

Bug: 15432083

Change-Id: I88b5ace925e3704bd032dc9694b0c2dd871b9cf9
/frameworks/base/telephony/java/com/android/internal/telephony/CallerInfo.java
8c2d8c0c27ebd155e9e9d2c066df0297f265b5a6 06-Jun-2014 Yorke Lee <yorkelee@google.com> Revert "API changes to Telephony per API review"

The original change was submitted into lmp-preview-dev and should
not have been auto-merged to master.

This reverts commit 80327f7a31b19213ec48e1ab66e6bdc8e76cb0fe.

Change-Id: I9ff8a868ffa3135583c52ef97b15311107716899
/frameworks/base/telephony/java/com/android/internal/telephony/CallerInfo.java
d8819baf858b294bab16ea811da4acf39dc4552c 05-Jun-2014 Yorke Lee <yorkelee@google.com> API changes to Telephony per API review

* Make context the first argument for isLocalEmergencyNumber and
isPotentialLocalEmergencyNumber

* Hide DisconnectCause
Bug: 15432083

Change-Id: I88b5ace925e3704bd032dc9694b0c2dd871b9cf9
/frameworks/base/telephony/java/com/android/internal/telephony/CallerInfo.java
a2c93480e35ec06e44f4ccfa8657eacf3353be46 21-Oct-2013 Jay Shrauner <shrauner@google.com> Fix CountryDetector NPE

Fix CountryDetector NPE by calling CallerInfo.getCurrentCountryIso() which
checks for potential nulls.

Bug:11291034
Change-Id: I0a4412c432551c64ec30652d69636442653ee337
/frameworks/base/telephony/java/com/android/internal/telephony/CallerInfo.java
7f5bee01ec5d0a01bf63313dfa0798ccdb1eac99 09-Oct-2013 Jake Hamby <jhamby@google.com> Fix NPE in CallerInfo.getCurrentCountryIso().

Internal method CallerInfo.getCurrentCountryIso() can throw NPE
if the country detector's detectCountry() method returns null.
Add code to check that the Country is not null before calling
getCountryIso() on it. Change fallback logic to call
locale.getCountry() whenever countryIso was not assigned.

Bug: 10607906
Change-Id: I08fe3f4d942f67c37a2e6ff0b067fe32ad8a6fa5
/frameworks/base/telephony/java/com/android/internal/telephony/CallerInfo.java
d88eb719ace9412c7e21968628206a10ab192be7 10-Jun-2013 Jay Shrauner <shrauner@google.com> Add number presentation column to call log

Change call log so instead of overloading the phone number with special
strings "-1", "-2", etc to denote private phone numbers, payphones, etc,
put presentation type in its own column and expose in the public API these
type values.

Bug:6948882
Change-Id: I230c26aa0428d605a0e83169a635b5bbf1aa4e3f
/frameworks/base/telephony/java/com/android/internal/telephony/CallerInfo.java
599a90c2a02645a5f2d189b9065b863397a4076e 27-Nov-2012 Wink Saville <wink@google.com> Use Rlog instead of Log

Change-Id: I2332f4210ead8a6d751fc9c0505db25033641da2
/frameworks/base/telephony/java/com/android/internal/telephony/CallerInfo.java
265974803a01b6a461a94f984bb6b1e5f1f48496 16-Apr-2012 Daisuke Miyakawa <dmiyakawa@google.com> Introduce cachedPhotoIcon for notification's large icon

Bug: 6336293
Change-Id: I492384fdb819dfd6574b0dbc84a0324c917c392c
/frameworks/base/telephony/java/com/android/internal/telephony/CallerInfo.java
158f116eb7fdc23a12d6822d34a549f33605bc8c 17-Nov-2011 David Brown <dab@google.com> Fix a crash caused by SIP addresses containing "%40" instead of "@"

CallerInfo.doSecondaryLookupIfNecessary() was assuming that SIP addresses
would always contain the character '@', but that's not always true since
the username/domainname delimiter can actually be "%40" (the URI-escaped
equivalent.)

This would cause the in-call UI to crash if you ever called a SIP address
like "xyz%40example.com".

TESTED:
- Make an outgoing call to the SIP address "xyz%40example.com"
==> The call ultimately fails, but the in-call UI no longer crashes when
it first comes up.

Bug: 5637074
Change-Id: I62d15a7ccd509924d38b780b92e657b9efa26125
/frameworks/base/telephony/java/com/android/internal/telephony/CallerInfo.java
6b7c3f8a1cd8b638defc28a3249746e99b8039ae 14-Sep-2011 Shaopeng Jia <shaopengjia@google.com> Update code to use location aware isEmergencyNumber.

Bug: 5247602
Change-Id: Ieeda4a17464795b3591db754bc991759609f88c2
/frameworks/base/telephony/java/com/android/internal/telephony/CallerInfo.java
9683f990a282776ac8a588a9d5e1a73b61f43dcf 07-Sep-2011 Shaopeng Jia <shaopengjia@google.com> Adding isEmergencyNumber which also takes in a defaultCountryIso.

Also update CallerInfo and CallerInfoAsyncQuery to use the new method.

Bug: 5247602
Change-Id: I2bbb0806ad2787d53b19bc1e9bdfb0ee8be26980
/frameworks/base/telephony/java/com/android/internal/telephony/CallerInfo.java
e713576292fc72086de47066981b86ad2f27ab0f 12-Aug-2011 Shaopeng Jia <shaopengjia@google.com> Renaming com.google.i18n.phonenumbers to com.android.i18n.phonenumbers
to avoid name collision.

Bug: 5157607
Change-Id: Ic397f371e381a71f17b0b70b955e89d08f7a9867
/frameworks/base/telephony/java/com/android/internal/telephony/CallerInfo.java
bc2e82d45432f7bd546d0fcc57e1ad1816ade9a3 01-Jul-2011 Shaopeng Jia <shaopengjia@google.com> Remove explicit toUpperCase after CountryDetector is fixed to return
uppercase region code.

Change-Id: I111d5792b67eb0e16a7278a731097f305cb9a059
/frameworks/base/telephony/java/com/android/internal/telephony/CallerInfo.java
cec25c4e8afdc56451f7405f8605c1d67433e2ff 23-Jun-2011 David Brown <dab@google.com> CallerInfo query: Turn on "geo description" lookup for unknown numbers

With the latest version of the external/libphonenumber library
<https://android-git.corp.google.com/g/117190> we now have real data for
the PhoneNumberOfflineGeocoder.getDescriptionForNumber() feature.

So enable it in the CallerInfo query. This means that the incoming call
UI will now show a geo description like "California" or "Maryland" (along
with the number) for unknown incoming numbers.

I also needed to work around an issue with the latest phonenumber library:
The new library apparently requires countryIso to be uppercase (e.g. "US")
but the CountryDetector.detectCountry().getCountryIso() call currently
returns "us", which causes PhoneNumberUtil.parse() to fail. (This also
broke some ContactsProvider tests too.) So force the countryIso to
uppercase for now.

TESTED (on Crespo):
- Incoming calls from an unknown number:
==> State name is now displayed.
- Incoming calls from a number that matches a contact:
==> no change in behavior

Bug: 4595580
Change-Id: I03126e1eee99d428e76bbbad5b3856be3874f549
/frameworks/base/telephony/java/com/android/internal/telephony/CallerInfo.java
e4ae4347311dfb5529dd076ed0b30dbbe3225c86 23-Jun-2011 Shaopeng Jia <shaopengjia@google.com> Update CallerInfo to use the geocoder in the updated location.

Change-Id: I9d4507a50ae473964bf2d094b7a1072d79e61e85
/frameworks/base/telephony/java/com/android/internal/telephony/CallerInfo.java
94202fe1217b9f63e1f5c314379a9f0021e96ea8 11-Jun-2011 David Brown <dab@google.com> Add "geoDescription" to CallerInfo

As of change https://android-git.corp.google.com/g/111296 the
libphonenumber library now provides an API ("PhoneNumberOfflineGeocoder")
to look up a geographical description string for a given number.

This change adds a new CallerInfo field called "geoDescription", and
uses the PhoneNumberOfflineGeocoder to look it up (if the contact lookup
fails) during the CallerInfoAsyncQuery sequence.

See https://android-git.corp.google.com/g/114715 for the corresponding
change under apps/Phone, to display this string (along with the raw
number) in the incoming-call UI.

Also some other minor cleanup:
- fixed spelling of the "normalizedNumber" field
- tiny javadoc and code style cleanup
- slight CallManager and CallerInfo debug output cleanup

Bug: 4595580
Change-Id: I900d8f48e953d1b24983602cb5467a5c6a6c518a
/frameworks/base/telephony/java/com/android/internal/telephony/CallerInfo.java
1cc52df752eac527aa2bcd7be843d9d02d6bdbc4 01-Dec-2010 David Brown <dab@google.com> am 4c11eee7: am 04639ba0: Reduce the outrageous verbosity of CallerInfo.toString().

* commit '4c11eee7ec3dafe943af7f4222e29b550163e58c':
Reduce the outrageous verbosity of CallerInfo.toString().
a4d785688c2b5a63322cf0554c0e7f5ae046e544 01-Dec-2010 David Brown <dab@google.com> am b9c19be7: am 91abcb62: Merge "Fix bug 3121292: Contact photo not shown correctly for SIP calls" into gingerbread

* commit 'b9c19be7c198dcdac7a37ea4af901af5179933d9':
Fix bug 3121292: Contact photo not shown correctly for SIP calls
04639ba0a939988d00131e61458807dac650f9c3 01-Dec-2010 David Brown <dab@google.com> Reduce the outrageous verbosity of CallerInfo.toString().

Bug: 3121292
Change-Id: Ia8383891ef29a003acbd627b25ce87a187ef95c0
/frameworks/base/telephony/java/com/android/internal/telephony/CallerInfo.java
85e0ff8f3d6e66b0d943851f478863c7afa71e16 22-Oct-2010 David Brown <dab@google.com> Fix bug 3121292: Contact photo not shown correctly for SIP calls

The problem was that when we did a contact lookup based on a SIP address,
the resulting CallerInfo object did not have the person_id field set
correctly. That meant we had no way to look up the photo for that person.

This was because of a missing case in the logic to determine which column
(in the resulting cursor) to use for the person_id lookup. We were
handling lookups fine in the PhoneLookup and Phone tables, but were
missing a case for direct lookups in the Data table (which is how we look
up SIP addresses.)

The fix is to add a case for URIs like
"content://com.android.contacts/data" when looking up the person_id.

Also, since the person_id lookup is pretty hairy (and includes ~20 lines
of comments to explain what it's doing!) refactor it out into a helper
method.

TESTED: Both SIP and PSTN calls; verified that contact name *and* photo
are displayed correctly in all cases.

Bug: 3121292
Change-Id: I2b0083cc5394c1a49bbdc9a4e5651854aedb82f7
/frameworks/base/telephony/java/com/android/internal/telephony/CallerInfo.java
fbd21b5875285725c434fc7d0145e919d0133946 21-Oct-2010 Hung-ying Tyan <tyanh@google.com> am d691b36c: am 6fe795ec: Do another contact lookup if the first one fails and...

Merge commit 'd691b36cdea314585b6aa17556ed4c35bb65a69e'

* commit 'd691b36cdea314585b6aa17556ed4c35bb65a69e':
Do another contact lookup if the first one fails and...
6fe795ecd35c4d49822d349424fc71b660577dfc 20-Oct-2010 Hung-ying Tyan <tyanh@google.com> Do another contact lookup if the first one fails and...

it's a SIP call and the peer's username is all numeric. The all-numeric username
could be a PSTN number.

Bug: 3105116 (case #2)

Change-Id: I1de9cfac3aab1c4c89935176264d07693adb5e7d
/frameworks/base/telephony/java/com/android/internal/telephony/CallerInfo.java
1b422d8cd8ed83b79e977a3afb99969cea4a6700 14-Oct-2010 Wink Saville <wink@google.com> am 090ac9f7: am a3100314: Merge "Remove some PII." into gingerbread

Merge commit '090ac9f7dd883aa75c899745182471d409a2b762'

* commit '090ac9f7dd883aa75c899745182471d409a2b762':
Remove some PII.
a42880749b368e60caee77dd682d434e48ca96bd 12-Oct-2010 Wink Saville <wink@google.com> Remove some PII.

Change-Id: I4df27119b6bbd28bf950516fd6f44676a8e04f06
/frameworks/base/telephony/java/com/android/internal/telephony/CallerInfo.java
3201b398d1647da17cd7f00fb12cdc0805eea143 10-Oct-2010 Wink Saville <wink@google.com> am 2e99245e: am bbc80d34: Merge "Changed handling of onQueryCompelete to not use mimeType." into gingerbread

Merge commit '2e99245e0e0d64ba6ab9227154c7fad132559c01'

* commit '2e99245e0e0d64ba6ab9227154c7fad132559c01':
Changed handling of onQueryCompelete to not use mimeType.
2e27a0be78bd9510785789caa14baa029051ca20 07-Oct-2010 Wink Saville <wink@google.com> Changed handling of onQueryCompelete to not use mimeType.

Using mimeType causes an IPC request to contacts which can
be slow. This can cause an ANR of the Phone app. This change
parses the URL and to decide which column to use for the person_id
and thus should not cause an ANR.

bug: 3060704
Change-Id: I750c72746c7269e162f0338c0a3e00230a600519
/frameworks/base/telephony/java/com/android/internal/telephony/CallerInfo.java
6a3d188f18b5ae278c802c8bbd1e0a44da555cdf 31-Aug-2010 Bai Tao <michaelbai@google.com> Format the phone number with the number country's convention.

If the phone number doesn't have country code, the current country's convention will be used.

Change-Id: I3f6ea0104d1a67071bd3beadb667c7159e915eef
/frameworks/base/telephony/java/com/android/internal/telephony/CallerInfo.java
c72509b4d815e23bfa563cfe96e04f54f2a221fe 06-Jan-2010 Nicolas Catania <niko@google.com> Fix the CallerInfo lookup when a phone URL is used.

Typically the CallerInfo is looked up based on a phone number, in which case the '_id' column
contains the contact id.

However when the lookup is based on a phone row, the '_id' column is the row number we queried.
The contact id is stored somewhere else in a 'contact_id' column.

The current fix, checks the mime type of the contactRef URL to find out which column contains
the contact id.
I think the contact DB should be more consistent and always return the contact id AS contact_id even
in the phone number scenario.

Bug:2269240
/frameworks/base/telephony/java/com/android/internal/telephony/CallerInfo.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/com/android/internal/telephony/CallerInfo.java
e22415817febc8d3229d1774f3b0dfda0fda8f46 15-Sep-2009 Nicolas Catania <niko@google.com> New field in CallerInfo to cache if the call is an emergency one.

Fixed a bug in the sync call, the photo resource was not set to picture_emergency.

Added tests to check the correct emergency fields are set in the caller info instance.

Bug 2112640
/frameworks/base/telephony/java/com/android/internal/telephony/CallerInfo.java
84b4d37dd1e9269f73c2a9cacadcd88ec4256e3f 10-Sep-2009 Dmitri Plotnikov <dplotnikov@google.com> [Issue 2099206] Encoding phone number prior to sending it to the phone lookup filter

Change-Id: I80327febe7134ac1bdef958251943a9777879d53
/frameworks/base/telephony/java/com/android/internal/telephony/CallerInfo.java
3c513ed95cee2e0bcd7208cb7e46307f09c907c9 20-Aug-2009 Dmitri Plotnikov <dplotnikov@google.com> Converting CallerInfo to new Contacts API.
/frameworks/base/telephony/java/com/android/internal/telephony/CallerInfo.java
2563a3ac05dd3cf8a07203ae682c243f2e793137 09-Jun-2009 Wink Saville <wink@google.com> Cleanup whitespace.
/frameworks/base/telephony/java/com/android/internal/telephony/CallerInfo.java
dda5391d5079537e275c9f4ed2637a1484d0e4e8 29-May-2009 Wink Saville <wink@google.com> Motorola additions for CDMA support without CdmaSuppConnTracker

There are corresponding changes to hardware/ril and packages/apps/Phone
that are required to go with these changes.
/frameworks/base/telephony/java/com/android/internal/telephony/CallerInfo.java
105925376f8d0f6b318c9938c7b83ef7fef094da 19-Mar-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //branches/cupcake_rel/...@140373
/frameworks/base/telephony/java/com/android/internal/telephony/CallerInfo.java
9066cfe9886ac131c34d59ed0e2d287b0e3c0087 04-Mar-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //depot/cupcake/@135843
/frameworks/base/telephony/java/com/android/internal/telephony/CallerInfo.java
d83a98f4ce9cfa908f5c54bbd70f03eec07e7553 04-Mar-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //depot/cupcake/@135843
/frameworks/base/telephony/java/com/android/internal/telephony/CallerInfo.java
f013e1afd1e68af5e3b868c26a653bbfb39538f8 18-Dec-2008 The Android Open Source Project <initial-contribution@android.com> Code drop from //branches/cupcake/...@124589
/frameworks/base/telephony/java/com/android/internal/telephony/CallerInfo.java
54b6cfa9a9e5b861a9930af873580d6dc20f773c 21-Oct-2008 The Android Open Source Project <initial-contribution@android.com> Initial Contribution
/frameworks/base/telephony/java/com/android/internal/telephony/CallerInfo.java