diff options
author | Nancy Chen <nancychen@google.com> | 2015-02-12 09:44:41 -0800 |
---|---|---|
committer | Etan Cohen <etancohen@google.com> | 2015-03-02 20:43:58 +0000 |
commit | 7c07dfa5529dd8049a526de227cae8abc2f72226 (patch) | |
tree | dd1c58bf53f0fe91b13b130ba403023327526fac /api | |
parent | 204f80e0aac4fed8e4e29406b3a9eb689b9b5287 (diff) | |
download | frameworks_base-7c07dfa5529dd8049a526de227cae8abc2f72226.zip frameworks_base-7c07dfa5529dd8049a526de227cae8abc2f72226.tar.gz frameworks_base-7c07dfa5529dd8049a526de227cae8abc2f72226.tar.bz2 |
Add frameworks classes and methods necessary for VVM syncadapter structure.
+ VvmSyncService is the base class for all visual voicemail sync
services that run the visual voicemail sync adapter. This class handles
writing to the voicemail provider and receiving changes from the
voicemail provider.
+ AuthenticatorService is a stub class for visual voicemail sync
adapters that do not use an Account (all sync adapters must have an
account associated with them, so a stub account is necessary).
+ Voicemail parcelable object to pass voicemail data around easier. This
is mostly copied from VoicemailProviderDemo
+ Extra helper methods in VoicemailContract to help insert and delete
from the voicemail provider.
+ Add multi-sim fields to VoicemailContract.Voicemails
Bug: 19236241
Change-Id: I603e3e5908704cd043e46221680d8bb600ed2cf4
Diffstat (limited to 'api')
-rw-r--r-- | api/current.txt | 68 |
1 files changed, 68 insertions, 0 deletions
diff --git a/api/current.txt b/api/current.txt index 0dc9ba7..a79b6e4 100644 --- a/api/current.txt +++ b/api/current.txt @@ -25885,8 +25885,13 @@ package android.provider { public static final class VoicemailContract.Voicemails implements android.provider.BaseColumns android.provider.OpenableColumns { method public static android.net.Uri buildSourceUri(java.lang.String); + method public static int deleteAll(android.content.Context); + method public static android.net.Uri insert(android.content.Context, android.telecom.Voicemail); + method public static int insert(android.content.Context, java.util.List<android.telecom.Voicemail>); field public static final android.net.Uri CONTENT_URI; field public static final java.lang.String DATE = "date"; + field public static final java.lang.String DELETED = "deleted"; + field public static final java.lang.String DIRTY = "dirty"; field public static final java.lang.String DIR_TYPE = "vnd.android.cursor.dir/voicemails"; field public static final java.lang.String DURATION = "duration"; field public static final java.lang.String HAS_CONTENT = "has_content"; @@ -25894,6 +25899,8 @@ package android.provider { field public static final java.lang.String ITEM_TYPE = "vnd.android.cursor.item/voicemail"; field public static final java.lang.String MIME_TYPE = "mime_type"; field public static final java.lang.String NUMBER = "number"; + field public static final java.lang.String PHONE_ACCOUNT_COMPONENT_NAME = "subscription_component_name"; + field public static final java.lang.String PHONE_ACCOUNT_ID = "subscription_id"; field public static final java.lang.String SOURCE_DATA = "source_data"; field public static final java.lang.String SOURCE_PACKAGE = "source_package"; field public static final java.lang.String TRANSCRIPTION = "transcription"; @@ -28168,6 +28175,22 @@ package android.system { package android.telecom { + public class AuthenticatorService extends android.app.Service { + ctor public AuthenticatorService(); + method public android.os.IBinder onBind(android.content.Intent); + } + + public class AuthenticatorService.Authenticator extends android.accounts.AbstractAccountAuthenticator { + ctor public AuthenticatorService.Authenticator(android.content.Context); + method public android.os.Bundle addAccount(android.accounts.AccountAuthenticatorResponse, java.lang.String, java.lang.String, java.lang.String[], android.os.Bundle) throws android.accounts.NetworkErrorException; + method public android.os.Bundle confirmCredentials(android.accounts.AccountAuthenticatorResponse, android.accounts.Account, android.os.Bundle) throws android.accounts.NetworkErrorException; + method public android.os.Bundle editProperties(android.accounts.AccountAuthenticatorResponse, java.lang.String); + method public android.os.Bundle getAuthToken(android.accounts.AccountAuthenticatorResponse, android.accounts.Account, java.lang.String, android.os.Bundle) throws android.accounts.NetworkErrorException; + method public java.lang.String getAuthTokenLabel(java.lang.String); + method public android.os.Bundle hasFeatures(android.accounts.AccountAuthenticatorResponse, android.accounts.Account, java.lang.String[]) throws android.accounts.NetworkErrorException; + method public android.os.Bundle updateCredentials(android.accounts.AccountAuthenticatorResponse, android.accounts.Account, java.lang.String, android.os.Bundle) throws android.accounts.NetworkErrorException; + } + public class PhoneAccount implements android.os.Parcelable { method public static android.telecom.PhoneAccount.Builder builder(android.telecom.PhoneAccountHandle, java.lang.CharSequence); method public android.graphics.drawable.Drawable createIconDrawable(android.content.Context); @@ -28275,6 +28298,51 @@ package android.telecom { field public static final int TX_ENABLED = 1; // 0x1 } + public class Voicemail implements android.os.Parcelable { + method public static android.telecom.Voicemail.Builder createForInsertion(long, java.lang.String); + method public int describeContents(); + method public long getDuration(); + method public long getId(); + method public java.lang.String getNumber(); + method public java.lang.String getSourceData(); + method public java.lang.String getSourcePackage(); + method public long getTimestampMillis(); + method public android.net.Uri getUri(); + method public boolean hasContent(); + method public boolean isRead(); + method public void writeToParcel(android.os.Parcel, int); + field public static final android.os.Parcelable.Creator<android.telecom.Voicemail> CREATOR; + } + + public static class Voicemail.Builder { + method public android.telecom.Voicemail build(); + method public android.telecom.Voicemail.Builder setDuration(long); + method public android.telecom.Voicemail.Builder setHasContent(boolean); + method public android.telecom.Voicemail.Builder setId(long); + method public android.telecom.Voicemail.Builder setIsRead(boolean); + method public android.telecom.Voicemail.Builder setNumber(java.lang.String); + method public android.telecom.Voicemail.Builder setSourceData(java.lang.String); + method public android.telecom.Voicemail.Builder setSourcePackage(java.lang.String); + method public android.telecom.Voicemail.Builder setTimestamp(long); + method public android.telecom.Voicemail.Builder setUri(android.net.Uri); + } + + public class VvmSyncService extends android.app.Service { + ctor public VvmSyncService(); + method public android.os.IBinder onBind(android.content.Intent); + } + + public class VvmSyncService.VvmSyncAdapter extends android.content.AbstractThreadedSyncAdapter { + ctor public VvmSyncService.VvmSyncAdapter(android.content.Context, boolean); + method protected java.util.List<android.telecom.Voicemail> downloadVoicemails(); + method public void onPerformSync(android.accounts.Account, android.os.Bundle, java.lang.String, android.content.ContentProviderClient, android.content.SyncResult); + method protected void syncToServer(); + field public static final java.lang.String NEW_VOICEMAIL_DATA = "extra_new_voicemail_data"; + field public static final java.lang.String SYNC_EXTRA_CODE = "sync_extra_code"; + field public static final int SYNC_EXTRA_MAILBOX_UPDATE = 2; // 0x2 + field public static final int SYNC_EXTRA_NEW_VOICEMAIL = 1; // 0x1 + } + } package android.telephony { |