Merge "Add @UnsupportedAppUsage annotations"
This commit is contained in:
@@ -1,23 +1,5 @@
|
||||
Landroid/accessibilityservice/IAccessibilityServiceConnection$Stub;-><init>()V
|
||||
Landroid/accessibilityservice/IAccessibilityServiceConnection$Stub;->asInterface(Landroid/os/IBinder;)Landroid/accessibilityservice/IAccessibilityServiceConnection;
|
||||
Landroid/accounts/Account;->accessId:Ljava/lang/String;
|
||||
Landroid/accounts/Account;->TAG:Ljava/lang/String;
|
||||
Landroid/accounts/AccountAndUser;-><init>(Landroid/accounts/Account;I)V
|
||||
Landroid/accounts/AccountAndUser;->account:Landroid/accounts/Account;
|
||||
Landroid/accounts/AccountAndUser;->userId:I
|
||||
Landroid/accounts/AccountAuthenticatorResponse;-><init>(Landroid/accounts/IAccountAuthenticatorResponse;)V
|
||||
Landroid/accounts/AccountManager$AmsTask;->mActivity:Landroid/app/Activity;
|
||||
Landroid/accounts/AccountManager$AmsTask;->mHandler:Landroid/os/Handler;
|
||||
Landroid/accounts/AccountManager$AmsTask;->mResponse:Landroid/accounts/IAccountManagerResponse;
|
||||
Landroid/accounts/AccountManager$GetAuthTokenByTypeAndFeaturesTask;->mAuthTokenType:Ljava/lang/String;
|
||||
Landroid/accounts/AccountManager$GetAuthTokenByTypeAndFeaturesTask;->mLoginOptions:Landroid/os/Bundle;
|
||||
Landroid/accounts/AccountManager$GetAuthTokenByTypeAndFeaturesTask;->mMyCallback:Landroid/accounts/AccountManagerCallback;
|
||||
Landroid/accounts/AccountManager;-><init>(Landroid/content/Context;Landroid/accounts/IAccountManager;)V
|
||||
Landroid/accounts/AccountManager;->confirmCredentialsAsUser(Landroid/accounts/Account;Landroid/os/Bundle;Landroid/app/Activity;Landroid/accounts/AccountManagerCallback;Landroid/os/Handler;Landroid/os/UserHandle;)Landroid/accounts/AccountManagerFuture;
|
||||
Landroid/accounts/AccountManager;->getAccountsByTypeAsUser(Ljava/lang/String;Landroid/os/UserHandle;)[Landroid/accounts/Account;
|
||||
Landroid/accounts/AccountManager;->mContext:Landroid/content/Context;
|
||||
Landroid/accounts/AuthenticatorDescription;-><init>(Landroid/os/Parcel;)V
|
||||
Landroid/accounts/AuthenticatorDescription;-><init>(Ljava/lang/String;)V
|
||||
Landroid/accounts/IAccountAuthenticator$Stub$Proxy;-><init>(Landroid/os/IBinder;)V
|
||||
Landroid/accounts/IAccountAuthenticator$Stub$Proxy;->mRemote:Landroid/os/IBinder;
|
||||
Landroid/accounts/IAccountAuthenticator$Stub;-><init>()V
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
Landroid/accounts/AccountManager;-><init>(Landroid/content/Context;Landroid/accounts/IAccountManager;Landroid/os/Handler;)V
|
||||
Landroid/app/Activity;->managedQuery(Landroid/net/Uri;[Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Landroid/database/Cursor;
|
||||
Landroid/app/Activity;->registerRemoteAnimations(Landroid/view/RemoteAnimationDefinition;)V
|
||||
Landroid/app/ActivityManager$RecentTaskInfo;->configuration:Landroid/content/res/Configuration;
|
||||
|
||||
@@ -18,6 +18,7 @@ package android.accounts;
|
||||
|
||||
import android.annotation.NonNull;
|
||||
import android.annotation.Nullable;
|
||||
import android.annotation.UnsupportedAppUsage;
|
||||
import android.content.Context;
|
||||
import android.os.Parcelable;
|
||||
import android.os.Parcel;
|
||||
@@ -36,6 +37,7 @@ import java.util.Set;
|
||||
* suitable for use as the key of a {@link java.util.Map}
|
||||
*/
|
||||
public class Account implements Parcelable {
|
||||
@UnsupportedAppUsage
|
||||
private static final String TAG = "Account";
|
||||
|
||||
@GuardedBy("sAccessedAccounts")
|
||||
@@ -43,6 +45,7 @@ public class Account implements Parcelable {
|
||||
|
||||
public final String name;
|
||||
public final String type;
|
||||
@UnsupportedAppUsage
|
||||
private final @Nullable String accessId;
|
||||
|
||||
public boolean equals(Object o) {
|
||||
|
||||
@@ -16,15 +16,20 @@
|
||||
|
||||
package android.accounts;
|
||||
|
||||
import android.annotation.UnsupportedAppUsage;
|
||||
|
||||
/**
|
||||
* Used to store the Account and the UserId this account is associated with.
|
||||
*
|
||||
* @hide
|
||||
*/
|
||||
public class AccountAndUser {
|
||||
@UnsupportedAppUsage
|
||||
public Account account;
|
||||
@UnsupportedAppUsage
|
||||
public int userId;
|
||||
|
||||
@UnsupportedAppUsage
|
||||
public AccountAndUser(Account account, int userId) {
|
||||
this.account = account;
|
||||
this.userId = userId;
|
||||
|
||||
@@ -16,6 +16,7 @@
|
||||
|
||||
package android.accounts;
|
||||
|
||||
import android.annotation.UnsupportedAppUsage;
|
||||
import android.os.Bundle;
|
||||
import android.os.Parcelable;
|
||||
import android.os.Parcel;
|
||||
@@ -33,6 +34,7 @@ public class AccountAuthenticatorResponse implements Parcelable {
|
||||
/**
|
||||
* @hide
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
public AccountAuthenticatorResponse(IAccountAuthenticatorResponse response) {
|
||||
mAccountAuthenticatorResponse = response;
|
||||
}
|
||||
|
||||
@@ -27,6 +27,7 @@ import android.annotation.SystemApi;
|
||||
import android.annotation.SystemService;
|
||||
import android.annotation.SdkConstant.SdkConstantType;
|
||||
import android.annotation.BroadcastBehavior;
|
||||
import android.annotation.UnsupportedAppUsage;
|
||||
import android.app.Activity;
|
||||
import android.content.BroadcastReceiver;
|
||||
import android.content.ComponentName;
|
||||
@@ -336,6 +337,7 @@ public class AccountManager {
|
||||
public static final String ACCOUNT_ACCESS_TOKEN_TYPE =
|
||||
"com.android.AccountManager.ACCOUNT_ACCESS_TOKEN_TYPE";
|
||||
|
||||
@UnsupportedAppUsage
|
||||
private final Context mContext;
|
||||
private final IAccountManager mService;
|
||||
private final Handler mMainHandler;
|
||||
@@ -409,6 +411,7 @@ public class AccountManager {
|
||||
/**
|
||||
* @hide
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
public AccountManager(Context context, IAccountManager service) {
|
||||
mContext = context;
|
||||
mService = service;
|
||||
@@ -418,6 +421,7 @@ public class AccountManager {
|
||||
/**
|
||||
* @hide used for testing only
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
public AccountManager(Context context, IAccountManager service, Handler handler) {
|
||||
mContext = context;
|
||||
mService = service;
|
||||
@@ -685,6 +689,7 @@ public class AccountManager {
|
||||
|
||||
/** @hide Same as {@link #getAccountsByType(String)} but for a specific user. */
|
||||
@NonNull
|
||||
@UnsupportedAppUsage
|
||||
public Account[] getAccountsByTypeAsUser(String type, UserHandle userHandle) {
|
||||
try {
|
||||
return mService.getAccountsAsUser(type, userHandle.getIdentifier(),
|
||||
@@ -2014,6 +2019,7 @@ public class AccountManager {
|
||||
* Same as {@link #confirmCredentials(Account, Bundle, Activity, AccountManagerCallback, Handler)}
|
||||
* but for the specified user.
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
public AccountManagerFuture<Bundle> confirmCredentialsAsUser(final Account account,
|
||||
final Bundle options,
|
||||
final Activity activity,
|
||||
@@ -2225,9 +2231,12 @@ public class AccountManager {
|
||||
}
|
||||
|
||||
private abstract class AmsTask extends FutureTask<Bundle> implements AccountManagerFuture<Bundle> {
|
||||
@UnsupportedAppUsage
|
||||
final IAccountManagerResponse mResponse;
|
||||
@UnsupportedAppUsage
|
||||
final Handler mHandler;
|
||||
final AccountManagerCallback<Bundle> mCallback;
|
||||
@UnsupportedAppUsage
|
||||
final Activity mActivity;
|
||||
public AmsTask(Activity activity, Handler handler, AccountManagerCallback<Bundle> callback) {
|
||||
super(new Callable<Bundle>() {
|
||||
@@ -2552,10 +2561,13 @@ public class AccountManager {
|
||||
}
|
||||
volatile AccountManagerFuture<Bundle> mFuture = null;
|
||||
final String mAccountType;
|
||||
@UnsupportedAppUsage
|
||||
final String mAuthTokenType;
|
||||
final String[] mFeatures;
|
||||
final Bundle mAddAccountOptions;
|
||||
@UnsupportedAppUsage
|
||||
final Bundle mLoginOptions;
|
||||
@UnsupportedAppUsage
|
||||
final AccountManagerCallback<Bundle> mMyCallback;
|
||||
private volatile int mNumAccounts = 0;
|
||||
|
||||
|
||||
@@ -16,6 +16,7 @@
|
||||
|
||||
package android.accounts;
|
||||
|
||||
import android.annotation.UnsupportedAppUsage;
|
||||
import android.os.Parcelable;
|
||||
import android.os.Parcel;
|
||||
|
||||
@@ -76,6 +77,7 @@ public class AuthenticatorDescription implements Parcelable {
|
||||
return new AuthenticatorDescription(type);
|
||||
}
|
||||
|
||||
@UnsupportedAppUsage
|
||||
private AuthenticatorDescription(String type) {
|
||||
this.type = type;
|
||||
this.packageName = null;
|
||||
@@ -86,6 +88,7 @@ public class AuthenticatorDescription implements Parcelable {
|
||||
this.customTokens = false;
|
||||
}
|
||||
|
||||
@UnsupportedAppUsage
|
||||
private AuthenticatorDescription(Parcel source) {
|
||||
this.type = source.readString();
|
||||
this.packageName = source.readString();
|
||||
|
||||
Reference in New Issue
Block a user