/frameworks/base/core/java/android/content/ |
H A D | SyncAdapterType.java | 30 public final String accountType; field in class:SyncAdapterType 39 public SyncAdapterType(String authority, String accountType, boolean userVisible, argument 44 if (TextUtils.isEmpty(accountType)) { 45 throw new IllegalArgumentException("the accountType must not be empty: " + accountType); 48 this.accountType = accountType; 59 public SyncAdapterType(String authority, String accountType, boolean userVisible, argument 68 if (TextUtils.isEmpty(accountType)) { 69 throw new IllegalArgumentException("the accountType mus 82 SyncAdapterType(String authority, String accountType) argument 167 newKey(String authority, String accountType) argument [all...] |
H A D | SyncAdaptersCache.java | 65 final String accountType = 67 if (TextUtils.isEmpty(authority) || TextUtils.isEmpty(accountType)) { 84 return new SyncAdapterType(authority, accountType, userVisible, supportsUploading, 145 out.attribute(null, "accountType", item.accountType); 151 final String accountType = parser.getAttributeValue(null, "accountType"); 152 return SyncAdapterType.newKey(authority, accountType);
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/accounts/ |
H A D | AuthenticatorHelper.java | 79 public void preloadDrawableForType(final Context context, final String accountType) { argument 83 getDrawableForType(context, accountType); 91 * @param accountType the type of account 95 public Drawable getDrawableForType(Context context, final String accountType) { argument 98 if (mAccTypeIconCache.containsKey(accountType)) { 99 return mAccTypeIconCache.get(accountType); 102 if (mTypeToAuthDescription.containsKey(accountType)) { 104 AuthenticatorDescription desc = mTypeToAuthDescription.get(accountType); 110 mAccTypeIconCache.put(accountType, icon); 124 * @param accountType th 127 getLabelForType(Context context, final String accountType) argument 149 getPackageForType(final String accountType) argument 163 getLabelIdForType(final String accountType) argument 183 containsAccountType(String accountType) argument 187 getAccountTypeDescription(String accountType) argument 191 hasAccountPreferences(final String accountType) argument [all...] |
/frameworks/base/services/tests/servicestests/src/com/android/server/accounts/ |
H A D | TestAccountType2Authenticator.java | 40 public TestAccountType2Authenticator(Context context, String accountType) { argument 42 mAccountType = accountType; 47 public Bundle editProperties(AccountAuthenticatorResponse response, String accountType) { argument 55 String accountType, 110 String accountType, 132 String accountType, 53 addAccount( AccountAuthenticatorResponse response, String accountType, String authTokenType, String[] requiredFeatures, Bundle options) argument 108 startAddAccountSession( AccountAuthenticatorResponse response, String accountType, String authTokenType, String[] requiredFeatures, Bundle options) argument 131 finishSession(AccountAuthenticatorResponse response, String accountType, Bundle sessionBundle) argument
|
H A D | TestAccountType1Authenticator.java | 40 public TestAccountType1Authenticator(Context context, String accountType) { argument 42 mAccountType = accountType; 47 public Bundle editProperties(AccountAuthenticatorResponse response, String accountType) { argument 62 String accountType, 66 if (!mAccountType.equals(accountType)) { 88 eventualActivityResultData.putExtra(AccountManager.KEY_ACCOUNT_TYPE, accountType); 262 String accountType, 266 if (!mAccountType.equals(accountType)) { 373 String accountType, 376 if (!mAccountType.equals(accountType)) { 60 addAccount( AccountAuthenticatorResponse response, String accountType, String authTokenType, String[] requiredFeatures, Bundle options) argument 260 startAddAccountSession( AccountAuthenticatorResponse response, String accountType, String authTokenType, String[] requiredFeatures, Bundle options) argument 372 finishSession(AccountAuthenticatorResponse response, String accountType, Bundle sessionBundle) argument [all...] |
H A D | AccountManagerServiceTest.java | 416 null, // accountType 437 AccountManagerServiceTestFixtures.ACCOUNT_TYPE_1, // accountType 469 AccountManagerServiceTestFixtures.ACCOUNT_TYPE_1, // accountType 491 AccountManagerServiceTestFixtures.ACCOUNT_TYPE_1, // accountType 526 AccountManagerServiceTestFixtures.ACCOUNT_TYPE_1, // accountType 551 AccountManagerServiceTestFixtures.ACCOUNT_TYPE_1, // accountType 582 AccountManagerServiceTestFixtures.ACCOUNT_TYPE_1, // accountType 621 AccountManagerServiceTestFixtures.ACCOUNT_TYPE_1, // accountType 650 AccountManagerServiceTestFixtures.ACCOUNT_TYPE_1, // accountType 678 AccountManagerServiceTestFixtures.ACCOUNT_TYPE_1, // accountType [all...] |
/frameworks/base/core/java/android/accounts/ |
H A D | IAccountAuthenticator.aidl | 31 void addAccount(in IAccountAuthenticatorResponse response, String accountType, 60 void editProperties(in IAccountAuthenticatorResponse response, String accountType); 91 void startAddAccountSession(in IAccountAuthenticatorResponse response, String accountType, 105 void finishSession(in IAccountAuthenticatorResponse response, String accountType,
|
H A D | IAccountManager.aidl | 37 Account[] getAccounts(String accountType, String opPackageName); 40 Account[] getAccountsAsUser(String accountType, int userId, String opPackageName); 43 void getAccountByTypeAndFeatures(in IAccountManagerResponse response, String accountType, 45 void getAccountsByFeatures(in IAccountManagerResponse response, String accountType, 55 void invalidateAuthToken(String accountType, String authToken); 66 void addAccount(in IAccountManagerResponse response, String accountType, 69 void addAccountAsUser(in IAccountManagerResponse response, String accountType, 74 void editProperties(in IAccountManagerResponse response, String accountType, 79 void getAuthTokenLabel(in IAccountManagerResponse response, String accountType, 93 void startAddAccountSession(in IAccountManagerResponse response, String accountType, [all...] |
H A D | AbstractAccountAuthenticator.java | 50 * android:accountType="typeOfAuthenticator" 57 * Replace the icons and labels with your own resources. The <code>android:accountType</code> 157 public void addAccount(IAccountAuthenticatorResponse response, String accountType, argument 161 Log.v(TAG, "addAccount: accountType " + accountType 169 accountType, authTokenType, features, options); 183 handleException(response, "addAccount", accountType, e); 296 String accountType) throws RemoteException { 300 new AccountAuthenticatorResponse(response), accountType); 305 handleException(response, "editProperties", accountType, 295 editProperties(IAccountAuthenticatorResponse response, String accountType) argument 374 startAddAccountSession(IAccountAuthenticatorResponse response, String accountType, String authTokenType, String[] features, Bundle options) argument 443 finishSession( IAccountAuthenticatorResponse response, String accountType, Bundle sessionBundle) argument 543 editProperties(AccountAuthenticatorResponse response, String accountType) argument 568 addAccount(AccountAuthenticatorResponse response, String accountType, String authTokenType, String[] requiredFeatures, Bundle options) argument 794 startAddAccountSession( final AccountAuthenticatorResponse response, final String accountType, final String authTokenType, final String[] requiredFeatures, final Bundle options) argument 905 finishSession( final AccountAuthenticatorResponse response, final String accountType, final Bundle sessionBundle) argument [all...] |
H A D | ChooseTypeAndAccountActivity.java | 333 String accountType = data.getStringExtra(AccountManager.KEY_ACCOUNT_TYPE); 334 if (accountType != null) { 335 runAddAccountForAuthenticator(accountType); 343 String accountType = null; 347 accountType = data.getStringExtra(AccountManager.KEY_ACCOUNT_TYPE); 350 if (accountName == null || accountType == null) { 362 accountType = account.type; 368 if (accountName != null || accountType != null) { 369 setResultAndFinish(accountName, accountType); 440 private void setResultAndFinish(final String accountName, final String accountType) { argument [all...] |
H A D | ChooseAccountActivity.java | 125 private Drawable getDrawableForType(String accountType) { argument 127 if(mTypeToAuthDescription.containsKey(accountType)) { 129 AuthenticatorDescription desc = mTypeToAuthDescription.get(accountType); 135 Log.w(TAG, "No icon name for account type " + accountType); 140 Log.w(TAG, "No icon resource for account type " + accountType);
|
H A D | AccountManager.java | 194 public static final String KEY_ACCOUNT_TYPE = "accountType"; 718 * @param accountType the type of the authenticator. must not be null. 726 final String accountType, final String authTokenType, 728 if (accountType == null) throw new IllegalArgumentException("accountType is null"); 733 mService.getAuthTokenLabel(mResponse, accountType, authTokenType); 952 * accountType. It is a helper method which combines calls to {@link #getAccountsByType} by 958 * @param accountType {@link Account} type 964 String accountType) { 968 .getAccountsAndVisibilityForPackage(packageName, accountType); 725 getAuthTokenLabel( final String accountType, final String authTokenType, AccountManagerCallback<String> callback, Handler handler) argument 963 getAccountsAndVisibilityForPackage(String packageName, String accountType) argument 1318 invalidateAuthToken(final String accountType, final String authToken) argument 1813 addAccount(final String accountType, final String authTokenType, final String[] requiredFeatures, final Bundle addAccountOptions, final Activity activity, AccountManagerCallback<Bundle> callback, Handler handler) argument 1837 addAccountAsUser(final String accountType, final String authTokenType, final String[] requiredFeatures, final Bundle addAccountOptions, final Activity activity, AccountManagerCallback<Bundle> callback, Handler handler, final UserHandle userHandle) argument 2137 editProperties(final String accountType, final Activity activity, final AccountManagerCallback<Bundle> callback, final Handler handler) argument 2526 getAccountByTypeAndFeatures(String accountType, String[] features, AccountManagerCallback<Bundle> callback, Handler handler) argument 2540 GetAuthTokenByTypeAndFeaturesTask(final String accountType, final String authTokenType, final String[] features, Activity activityForPrompting, final Bundle addAccountOptions, final Bundle loginOptions, AccountManagerCallback<Bundle> callback, Handler handler) argument 2702 getAuthTokenByFeatures( final String accountType, final String authTokenType, final String[] features, final Activity activity, final Bundle addAccountOptions, final Bundle getAuthTokenOptions, final AccountManagerCallback<Bundle> callback, final Handler handler) argument 3043 startAddAccountSession( final String accountType, final String authTokenType, final String[] requiredFeatures, final Bundle options, final Activity activity, AccountManagerCallback<Bundle> callback, Handler handler) argument [all...] |
/frameworks/base/services/core/java/com/android/server/accounts/ |
H A D | AccountAuthenticatorCache.java | 62 final String accountType = 74 if (TextUtils.isEmpty(accountType)) { 77 return new AuthenticatorDescription(accountType, packageName, labelId, iconId,
|
H A D | TokenCache.java | 156 public void evict(String accountType, String token) { argument 157 Evictor evictor = mTokenEvictors.get(new Pair<>(accountType, token)); 208 public void remove(String accountType, String token) { argument 209 mCachedTokens.evict(accountType, token);
|
H A D | AccountManagerService.java | 494 String accountType) { 500 if ((accountType != null && !managedTypes.contains(accountType)) 501 || (accountType == null && !isSystemUid)) { 506 if (accountType != null) { 508 managedTypes.add(accountType); 532 for (String accountType : accountTypes) { 535 final Account[] accountsOfType = accounts.accountCache.get(accountType); 1237 final String accountType = cur.getKey(); 1241 accountsForType[i] = new Account(accountNames.get(i), accountType, 493 getAccountsAndVisibilityForPackage(String packageName, String accountType) argument 2371 invalidateAuthToken(String accountType, String authToken) argument 2408 invalidateAuthTokenLocked(UserAccounts accounts, String accountType, String authToken) argument 2726 getAuthTokenLabel(IAccountManagerResponse response, final String accountType, final String authTokenType) argument 3116 addAccount(final IAccountManagerResponse response, final String accountType, final String authTokenType, final String[] requiredFeatures, final boolean expectActivityLaunch, final Bundle optionsIn) argument 3189 addAccountAsUser(final IAccountManagerResponse response, final String accountType, final String authTokenType, final String[] requiredFeatures, final boolean expectActivityLaunch, final Bundle optionsIn, int userId) argument 3273 startAddAccountSession( final IAccountManagerResponse response, final String accountType, final String authTokenType, final String[] requiredFeatures, final boolean expectActivityLaunch, final Bundle optionsIn) argument 3363 StartAccountSession( UserAccounts accounts, IAccountManagerResponse response, String accountType, boolean expectActivityLaunch, String accountName, boolean authDetailsRequired, boolean updateLastAuthenticationTime, boolean isPasswordForwardingAllowed) argument 3870 editProperties(IAccountManagerResponse response, final String accountType, final boolean expectActivityLaunch) argument 4514 getAccountByTypeAndFeatures( IAccountManagerResponse response, String accountType, String[] features, String opPackageName) argument 4693 Session(UserAccounts accounts, IAccountManagerResponse response, String accountType, boolean expectActivityLaunch, boolean stripAuthTokenFromResult, String accountName, boolean authDetailsRequired) argument 4700 Session(UserAccounts accounts, IAccountManagerResponse response, String accountType, boolean expectActivityLaunch, boolean stripAuthTokenFromResult, String accountName, boolean authDetailsRequired, boolean updateLastAuthenticatedTime) argument 5441 isAccountVisibleToCaller(String accountType, int callingUid, int userId, String opPackageName) argument 5465 accountTypeManagesContacts(String accountType, int userId) argument 5493 checkPackageSignature(String accountType, int callingUid, int userId) argument 5524 isAccountManagedByCaller(String accountType, int callingUid, int userId) argument 5564 isAccountPresentForCaller(String accountName, String accountType) argument 5653 checkReadAccountsPermitted( int callingUid, String accountType, int userId, String opPackageName) argument 5680 canUserModifyAccountsForType(int userId, String accountType, int callingUid) argument 5950 getAccountsFromCache(UserAccounts userAccounts, String accountType, int callingUid, @Nullable String callingPackage, boolean includeManagedNotVisible) argument [all...] |
H A D | AccountsDb.java | 320 Cursor findAuthtokenForAllAccounts(String accountType, String authToken) { argument 332 new String[]{authToken, accountType}); 806 final String accountType = cursor.getString(1); 809 final Account account = new Account(accountName, accountType); 995 String accountType = cursor.getString(3); 996 Account account = new Account(accountName, accountType); 1239 String accountType = cursor.getString(1); 1240 accounts.add(new Account(accountName, accountType));
|
/frameworks/base/core/java/com/android/server/backup/ |
H A D | AccountSyncSettingsBackupHelper.java | 140 if (!accountTypeToAuthorities.containsKey(syncAdapter.accountType)) { 141 accountTypeToAuthorities.put(syncAdapter.accountType, new ArrayList<String>()); 143 accountTypeToAuthorities.get(syncAdapter.accountType).add(syncAdapter.authority); 282 String accountType = accountJSON.getString(KEY_ACCOUNT_TYPE); 286 account = new Account(accountName, accountType); 399 String accountType = accountJSON.getString(KEY_ACCOUNT_TYPE); 401 final Account account = new Account(accountName, accountType);
|
/frameworks/ex/common/java/com/android/common/content/ |
H A D | SyncStateContentProviderHelper.java | 118 final String accountType = c.getString(1); 119 Account account = new Account(accountName, accountType); 122 new String[]{accountName, accountType});
|
/frameworks/base/core/java/android/os/ |
H A D | IUserManager.aidl | 86 in String accountType, in PersistableBundle accountOptions, boolean persist); 91 boolean someUserHasSeedAccount(in String accountName, in String accountType);
|
H A D | UserManager.java | 1951 * @param accountType Optional account type for the account to be created. This is required 1964 @Nullable String accountType, @Nullable PersistableBundle accountOptions) { 1969 if (accountName != null && accountType == null) { 1970 throw new IllegalArgumentException("accountType must be specified if accountName is " 1976 if (accountType != null) { 1977 intent.putExtra(EXTRA_USER_ACCOUNT_TYPE, accountType); 2038 * @param accountType 2042 public void setSeedAccountData(int userId, String accountName, String accountType, argument 2045 mService.setSeedAccountData(userId, accountName, accountType, accountOptions, 2832 * @param accountType Th 1962 createUserCreationIntent(@ullable String userName, @Nullable String accountName, @Nullable String accountType, @Nullable PersistableBundle accountOptions) argument 2835 someUserHasSeedAccount(String accountName, String accountType) argument [all...] |
/frameworks/base/services/core/java/com/android/server/content/ |
H A D | SyncOperation.java | 197 accountBundle.putString("accountType", account.type); 225 jobInfoExtras.putString("accountType", target.account.type); 251 String accountName, accountType; 267 accountType = jobExtras.getString("accountType"); 293 accountsBundle.getString("accountType")); 298 Account account = new Account(accountName, accountType);
|
H A D | SyncStorageEngine.java | 1801 String accountType = parser.getAttributeValue(null, "type"); 1806 if (accountType == null && packageName == null) { 1807 accountType = "com.google"; 1814 + " accountType=" + accountType 1828 new Account(accountName, accountType), 2060 String accountType = hasType 2062 if (accountType == null) { 2063 accountType = "com.google"; 2068 new EndPoint(new Account(accountName, accountType), [all...] |
/frameworks/ex/common/java/com/android/common/contacts/ |
H A D | BaseEmailAddressAdapter.java | 103 public String accountType; field in class:BaseEmailAddressAdapter.DirectoryPartition 131 private static final String DIRECTORY_ACCOUNT_TYPE = "accountType"; 385 partition.accountType = directoryCursor.getString(DirectoryListQuery.ACCOUNT_TYPE); 407 mAccount.type.equals(partition.accountType)) {
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/ |
H A D | RestrictedLockUtils.java | 342 String accountType, int userId) { 343 if (accountType == null) { 355 if (accountType.equals(type)) { 341 checkIfAccountManagementDisabled(Context context, String accountType, int userId) argument
|
/frameworks/opt/chips/src/com/android/ex/chips/ |
H A D | BaseRecipientAdapter.java | 112 public String accountType; field in class:BaseRecipientAdapter.DirectorySearchParams 730 params.accountType = directoryCursor.getString(DirectoryListQuery.ACCOUNT_TYPE); 751 && account.type.equals(params.accountType)) {
|