From 109dabdba1c0dc2d56b9555d92530f5d38925509 Mon Sep 17 00:00:00 2001 From: Nancy Chen Date: Mon, 2 Feb 2015 14:37:24 -0800 Subject: [PATCH] Add multi-SIM fields to VoicemailContract.Status. In order to support multi-SIM visual voicemail, we need to record the appropriate phone account in the VoicemailContract.Status table. Bug: 19236241 Change-Id: I89742ab0aa7780de5cd525731685279ff5024c5e --- api/current.txt | 2 ++ .../android/provider/VoicemailContract.java | 19 ++++++++++++++++++- 2 files changed, 20 insertions(+), 1 deletion(-) diff --git a/api/current.txt b/api/current.txt index 91b2b7b136aa4..0dc9ba7e51c27 100644 --- a/api/current.txt +++ b/api/current.txt @@ -25876,6 +25876,8 @@ package android.provider { field public static final int NOTIFICATION_CHANNEL_STATE_MESSAGE_WAITING = 2; // 0x2 field public static final int NOTIFICATION_CHANNEL_STATE_NO_CONNECTION = 1; // 0x1 field public static final int NOTIFICATION_CHANNEL_STATE_OK = 0; // 0x0 + field public static final java.lang.String PHONE_ACCOUNT_COMPONENT_NAME = "phone_account_component_name"; + field public static final java.lang.String PHONE_ACCOUNT_ID = "phone_account_id"; field public static final java.lang.String SETTINGS_URI = "settings_uri"; field public static final java.lang.String SOURCE_PACKAGE = "source_package"; field public static final java.lang.String VOICEMAIL_ACCESS_URI = "voicemail_access_uri"; diff --git a/core/java/android/provider/VoicemailContract.java b/core/java/android/provider/VoicemailContract.java index d71ad03b64569..d707f35dadc41 100644 --- a/core/java/android/provider/VoicemailContract.java +++ b/core/java/android/provider/VoicemailContract.java @@ -222,10 +222,27 @@ public class VoicemailContract { private Status() { } /** - * The package name of the voicemail source. There can only be a one entry per source. + * The package name of the voicemail source. There can only be a one entry per account + * per source. *

Type: TEXT

*/ public static final String SOURCE_PACKAGE = SOURCE_PACKAGE_FIELD; + + // Note: Multiple entries may exist for a single source if they are differentiated by the + // PHONE_ACCOUNT_* fields. + + /** + * The component name of the account in string form. + *

Type: TEXT

+ */ + public static final String PHONE_ACCOUNT_COMPONENT_NAME = "phone_account_component_name"; + + /** + * The identifier of a account that is unique to a specified component. + *

Type: TEXT

+ */ + public static final String PHONE_ACCOUNT_ID = "phone_account_id"; + /** * The URI to call to invoke source specific voicemail settings screen. On a user request * to setup voicemail an intent with action VIEW with this URI will be fired by the system.