OSDN Git Service

Make account cloning API public
authorAmith Yamasani <yamasani@google.com>
Fri, 8 Mar 2013 23:29:55 +0000 (15:29 -0800)
committerAmith Yamasani <yamasani@google.com>
Fri, 8 Mar 2013 23:29:55 +0000 (15:29 -0800)
Change-Id: If48d93dab49afcaaa301a5a3aa514f3d4dd3bab8

api/current.txt
core/java/android/accounts/AbstractAccountAuthenticator.java

index 6fce7a4..5794453 100644 (file)
@@ -2134,8 +2134,10 @@ package android.accounts {
   public abstract class AbstractAccountAuthenticator {
     ctor public AbstractAccountAuthenticator(android.content.Context);
     method public abstract 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 addAccountFromCredentials(android.accounts.AccountAuthenticatorResponse, android.accounts.Account, android.os.Bundle) throws android.accounts.NetworkErrorException;
     method public abstract android.os.Bundle confirmCredentials(android.accounts.AccountAuthenticatorResponse, android.accounts.Account, android.os.Bundle) throws android.accounts.NetworkErrorException;
     method public abstract android.os.Bundle editProperties(android.accounts.AccountAuthenticatorResponse, java.lang.String);
+    method public android.os.Bundle getAccountCredentialsForCloning(android.accounts.AccountAuthenticatorResponse, android.accounts.Account) throws android.accounts.NetworkErrorException;
     method public android.os.Bundle getAccountRemovalAllowed(android.accounts.AccountAuthenticatorResponse, android.accounts.Account) throws android.accounts.NetworkErrorException;
     method public abstract android.os.Bundle getAuthToken(android.accounts.AccountAuthenticatorResponse, android.accounts.Account, java.lang.String, android.os.Bundle) throws android.accounts.NetworkErrorException;
     method public abstract java.lang.String getAuthTokenLabel(java.lang.String);
index fa46689..dbc9051 100644 (file)
@@ -505,7 +505,6 @@ public abstract class AbstractAccountAuthenticator {
     }
 
     /**
-     * @hide
      * Returns a Bundle that contains whatever is required to clone the account on a different
      * user. The Bundle is passed to the authenticator instance in the target user via
      * {@link #addAccountFromCredentials(AccountAuthenticatorResponse, Account, Bundle)}.
@@ -529,7 +528,6 @@ public abstract class AbstractAccountAuthenticator {
     }
 
     /**
-     * @hide
      * Creates an account based on credentials provided by the authenticator instance of another
      * user on the device, who has chosen to share the account with this user.
      * @param response to send the result back to the AccountManager, will never be null