From 6af2e14a28e27a38525a08c920e7453c2448689a Mon Sep 17 00:00:00 2001 From: calderwoodra Date: Fri, 3 Nov 2017 15:53:04 -0700 Subject: Implement bulk update for Cp2PhoneLookup. Test: Cp2PhoneLookupTest PiperOrigin-RevId: 174525877 Change-Id: I7888f3b6adc58416c560271166ec6bd85306d58b --- .../android/dialer/phonelookup/phone_lookup_info.proto | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) (limited to 'java/com/android/dialer/phonelookup/phone_lookup_info.proto') diff --git a/java/com/android/dialer/phonelookup/phone_lookup_info.proto b/java/com/android/dialer/phonelookup/phone_lookup_info.proto index 1027e5c22..cb89a64e3 100644 --- a/java/com/android/dialer/phonelookup/phone_lookup_info.proto +++ b/java/com/android/dialer/phonelookup/phone_lookup_info.proto @@ -17,10 +17,23 @@ message PhoneLookupInfo { // Information about a PhoneNumber retrieved from CP2. Cp2PhoneLookup is // responsible for populating the data in this message. message Cp2Info { + // android.provider.ContactsContract.CommonDataKinds.Phone.DISPLAY_NAME_PRIMARY optional string name = 1; + + // android.provider.ContactsContract.CommonDataKinds.Phone.PHOTO_THUMBNAIL_URI optional string photo_uri = 2; + + // android.provider.ContactsContract.CommonDataKinds.Phone.PHOTO_ID optional fixed64 photo_id = 3; - optional string label = 4; // "Home", "Mobile", ect. + + // android.provider.ContactsContract.CommonDataKinds.Phone.LABEL + // "Home", "Mobile", ect. + optional string label = 4; + + // android.provider.ContactsContract.CommonDataKinds.Phone.CONTACT_ID + optional fixed64 contact_id = 5; } - optional Cp2Info cp2_info = 1; + // Repeated because one phone number can be associated with multiple CP2 + // contacts. + repeated Cp2Info cp2_info = 1; } \ No newline at end of file -- cgit v1.2.3