diff options
author | twyen <twyen@google.com> | 2018-03-19 15:20:59 -0700 |
---|---|---|
committer | Copybara-Service <copybara-piper@google.com> | 2018-03-19 15:23:28 -0700 |
commit | cd3d49843431913c2ff042d2294a8b5201877882 (patch) | |
tree | 7bd55b5175802fe3ac8fe4c45bf27cdd583ee580 /java/com/android/dialer/calllog/database/contract/AnnotatedCallLogContract.java | |
parent | f4a48247329967ecc3f952b8604f122d0cbc2e28 (diff) |
Implement VoicemailDataSource
This data source determines if the call is to the voicemail inbox.
isVoicemail() is removed from NumberAttributes and PhoneLookup. It is yet decided how in call UI should handle voicemail calls in the future.
TAG_CHANGE_OK=proto not in prod yet. Please clear app data.
TYPE_CHANGE_OK=above
Bug: 70989587
Test: Unit tests
PiperOrigin-RevId: 189650273
Change-Id: Iafebf1abb18c74301b62a72d1d04deecd6d78d29
Diffstat (limited to 'java/com/android/dialer/calllog/database/contract/AnnotatedCallLogContract.java')
-rw-r--r-- | java/com/android/dialer/calllog/database/contract/AnnotatedCallLogContract.java | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/java/com/android/dialer/calllog/database/contract/AnnotatedCallLogContract.java b/java/com/android/dialer/calllog/database/contract/AnnotatedCallLogContract.java index c181d7573..b1cf6e495 100644 --- a/java/com/android/dialer/calllog/database/contract/AnnotatedCallLogContract.java +++ b/java/com/android/dialer/calllog/database/contract/AnnotatedCallLogContract.java @@ -133,6 +133,25 @@ public class AnnotatedCallLogContract { String NUMBER_ATTRIBUTES = "number_attributes"; /** + * Whether the call is to the voicemail inbox. + * + * <p>TYPE: INTEGER (boolean) + * + * @see android.telecom.TelecomManager#isVoiceMailNumber(android.telecom.PhoneAccountHandle, + * String) + */ + String IS_VOICEMAIL_CALL = "is_voicemail_call"; + + /** + * The "name" of the voicemail inbox. This is provided by the SIM to show as the caller ID + * + * <p>TYPE: TEXT + * + * @see android.telephony.TelephonyManager#getVoiceMailAlphaTag() + */ + String VOICEMAIL_CALL_TAG = "voicemail_call_tag"; + + /** * Copied from {@link android.provider.CallLog.Calls#TYPE}. * * <p>Type: INTEGER (int) @@ -155,6 +174,8 @@ public class AnnotatedCallLogContract { PHONE_ACCOUNT_COLOR, FEATURES, NUMBER_ATTRIBUTES, + IS_VOICEMAIL_CALL, + VOICEMAIL_CALL_TAG, CALL_TYPE }; } |