From d8046e520a866b9948ee9ba47cf642b441ca8e23 Mon Sep 17 00:00:00 2001 From: Eric Erfanian Date: Thu, 6 Apr 2017 09:41:50 -0700 Subject: Update AOSP Dialer source from internal google3 repository at cl/152373142. Test: make, treehugger This CL updates the AOSP Dialer source with all the changes that have gone into the private google3 repository. This includes all the changes from cl/151342913 (3/27/2017) to cl/152373142 (4/06/2017). This goal of these drops is to keep the AOSP source in sync with the internal google3 repository. Currently these sync are done by hand with very minor modifications to the internal source code. See the Android.mk file for list of modifications. Our current goal is to do frequent drops (daily if possible) and eventually switched to an automated process. Change-Id: I2fbc88cf6867b90ac8b65f75e5e34468988c7217 --- java/com/android/voicemail/VoicemailClient.java | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'java/com/android/voicemail/VoicemailClient.java') diff --git a/java/com/android/voicemail/VoicemailClient.java b/java/com/android/voicemail/VoicemailClient.java index 6aff164a0..74823384c 100644 --- a/java/com/android/voicemail/VoicemailClient.java +++ b/java/com/android/voicemail/VoicemailClient.java @@ -17,6 +17,7 @@ package com.android.voicemail; import android.content.Context; +import android.content.Intent; import android.provider.VoicemailContract.Voicemails; import android.support.annotation.Nullable; import android.telecom.PhoneAccountHandle; @@ -40,6 +41,9 @@ public interface VoicemailClient { */ String ACTION_UPLOAD = "com.android.voicemailomtp.VoicemailClient.ACTION_UPLOAD"; + /** Common key for passing {@link PhoneAccountHandle} in bundles. */ + String PARAM_PHONE_ACCOUNT_HANDLE = "phone_account_handle"; + /** * Appends the selection to ignore voicemails from non-active OMTP voicemail package. In OC there * can be multiple packages handling OMTP voicemails which represents the same source of truth. @@ -73,6 +77,19 @@ public interface VoicemailClient { boolean isVoicemailArchiveEnabled(Context context, PhoneAccountHandle phoneAccountHandle); + /** + * @return if the voicemail archive feature is available on the current device. This depends on + * whether the server side flag is turned on for the feature, and if the OS meets the + * requirement for this feature. + */ + boolean isVoicemailArchiveAvailable(Context context); + void setVoicemailArchiveEnabled( Context context, PhoneAccountHandle phoneAccountHandle, boolean value); + + /** + * @return an intent that will launch the activity to change the voicemail PIN. The PIN is used + * when calling into the mailbox. + */ + Intent getSetPinIntent(Context context, PhoneAccountHandle phoneAccountHandle); } -- cgit v1.2.3