summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorNancy Chen <nancychen@google.com>2015-02-02 14:37:24 -0800
committerEtan Cohen <etancohen@google.com>2015-03-02 11:17:20 -0800
commit109dabdba1c0dc2d56b9555d92530f5d38925509 (patch)
tree8a26ae332eb135d6621594107c0050534d906dc7 /core
parent9b09c15c35879838458d690e18fc67b0167485a2 (diff)
downloadframeworks_base-109dabdba1c0dc2d56b9555d92530f5d38925509.zip
frameworks_base-109dabdba1c0dc2d56b9555d92530f5d38925509.tar.gz
frameworks_base-109dabdba1c0dc2d56b9555d92530f5d38925509.tar.bz2
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
Diffstat (limited to 'core')
-rw-r--r--core/java/android/provider/VoicemailContract.java19
1 files changed, 18 insertions, 1 deletions
diff --git a/core/java/android/provider/VoicemailContract.java b/core/java/android/provider/VoicemailContract.java
index d71ad03..d707f35 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.
* <P>Type: TEXT</P>
*/
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.
+ * <P>Type: TEXT</P>
+ */
+ public static final String PHONE_ACCOUNT_COMPONENT_NAME = "phone_account_component_name";
+
+ /**
+ * The identifier of a account that is unique to a specified component.
+ * <P>Type: TEXT</P>
+ */
+ 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.