summaryrefslogtreecommitdiff
path: root/InCallUI
diff options
context:
space:
mode:
authorChiao Cheng <chiaocheng@google.com>2013-11-13 15:15:07 -0800
committerChiao Cheng <chiaocheng@google.com>2013-11-14 02:04:25 +0000
commitdbeaf709e4473b9978c76e2a15cd7cadcff5bdd6 (patch)
treeb79a36f39d0a09169fed45bfed5a281e13f689e9 /InCallUI
parent76d46fa98f1a2363165b7e5534f6dbdf23908351 (diff)
Add callState parameter to reverse lookup requests.
This will provide contextual information to the server so that reverse lookup can be turned off for outgoing calls. Also add Gservices parameter so that additional query parameters can be added in the future. Bug: 11630566 Change-Id: I2186d73712e64e242e0f953f5d77125879c83148 (cherry picked from commit 96e77cd102b25ec30955d1da80be2df703eeda5a)
Diffstat (limited to 'InCallUI')
-rw-r--r--InCallUI/src/com/android/incallui/ContactInfoCache.java3
-rw-r--r--InCallUI/src/com/android/incallui/service/PhoneNumberService.java2
2 files changed, 3 insertions, 2 deletions
diff --git a/InCallUI/src/com/android/incallui/ContactInfoCache.java b/InCallUI/src/com/android/incallui/ContactInfoCache.java
index c950ed417..54de7057d 100644
--- a/InCallUI/src/com/android/incallui/ContactInfoCache.java
+++ b/InCallUI/src/com/android/incallui/ContactInfoCache.java
@@ -173,7 +173,8 @@ public class ContactInfoCache implements ContactsAsyncHelper.OnImageLoadComplete
mPhoneNumberService != null) {
Log.d(TAG, "Contact lookup. Local contacts miss, checking remote");
final PhoneNumberServiceListener listener = new PhoneNumberServiceListener(callId);
- mPhoneNumberService.getPhoneNumberInfo(cacheEntry.number, listener, listener);
+ mPhoneNumberService.getPhoneNumberInfo(cacheEntry.number, listener, listener,
+ isIncoming);
} else if (cacheEntry.personUri != null) {
Log.d(TAG, "Contact lookup. Local contact found, starting image load");
// Load the image with a callback to update the image state.
diff --git a/InCallUI/src/com/android/incallui/service/PhoneNumberService.java b/InCallUI/src/com/android/incallui/service/PhoneNumberService.java
index d5f809c3a..3ce84b9a2 100644
--- a/InCallUI/src/com/android/incallui/service/PhoneNumberService.java
+++ b/InCallUI/src/com/android/incallui/service/PhoneNumberService.java
@@ -31,7 +31,7 @@ public interface PhoneNumberService {
* @param imageListener The listener to notify when the image lookup is complete.
*/
public void getPhoneNumberInfo(String phoneNumber, NumberLookupListener listener,
- ImageLookupListener imageListener);
+ ImageLookupListener imageListener, boolean isIncoming);
public interface NumberLookupListener {