/frameworks/base/core/java/android/content/ |
D | SyncAdapterType.java | 32 public final String accountType; field in SyncAdapterType 46 public SyncAdapterType(String authority, String accountType, boolean userVisible, in SyncAdapterType() argument 51 if (TextUtils.isEmpty(accountType)) { in SyncAdapterType() 52 throw new IllegalArgumentException("the accountType must not be empty: " + accountType); in SyncAdapterType() 55 this.accountType = accountType; in SyncAdapterType() 66 public SyncAdapterType(String authority, String accountType, boolean userVisible, in SyncAdapterType() argument 75 if (TextUtils.isEmpty(accountType)) { in SyncAdapterType() 76 throw new IllegalArgumentException("the accountType must not be empty: " + accountType); in SyncAdapterType() 79 this.accountType = accountType; in SyncAdapterType() 90 private SyncAdapterType(String authority, String accountType) { in SyncAdapterType() argument [all …]
|
D | SyncAdaptersCache.java | 67 final String accountType = in parseServiceAttributes() local 69 if (TextUtils.isEmpty(authority) || TextUtils.isEmpty(accountType)) { in parseServiceAttributes() 86 return new SyncAdapterType(authority, accountType, userVisible, supportsUploading, in parseServiceAttributes() 147 out.attribute(null, "accountType", item.accountType); in writeAsXml() 153 final String accountType = parser.getAttributeValue(null, "accountType"); in createFromXml() local 154 return SyncAdapterType.newKey(authority, accountType); in createFromXml()
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/accounts/ |
D | AuthenticatorHelper.java | 79 public void preloadDrawableForType(final Context context, final String accountType) { in preloadDrawableForType() argument 83 getDrawableForType(context, accountType); in preloadDrawableForType() 95 public Drawable getDrawableForType(Context context, final String accountType) { in getDrawableForType() argument 98 if (mAccTypeIconCache.containsKey(accountType)) { in getDrawableForType() 99 return mAccTypeIconCache.get(accountType); in getDrawableForType() 102 if (mTypeToAuthDescription.containsKey(accountType)) { in getDrawableForType() 104 AuthenticatorDescription desc = mTypeToAuthDescription.get(accountType); in getDrawableForType() 110 mAccTypeIconCache.put(accountType, icon); in getDrawableForType() 127 public CharSequence getLabelForType(Context context, final String accountType) { in getLabelForType() argument 129 if (mTypeToAuthDescription.containsKey(accountType)) { in getLabelForType() [all …]
|
/frameworks/base/core/java/android/accounts/ |
D | IAccountManager.aidl | 37 Account[] getAccounts(String accountType, String opPackageName); in getAccounts() argument 40 Account[] getAccountsAsUser(String accountType, int userId, String opPackageName); in getAccountsAsUser() argument 43 void getAccountByTypeAndFeatures(in IAccountManagerResponse response, String accountType, in getAccountByTypeAndFeatures() argument 45 void getAccountsByFeatures(in IAccountManagerResponse response, String accountType, in getAccountsByFeatures() argument 55 void invalidateAuthToken(String accountType, String authToken); in invalidateAuthToken() argument 66 void addAccount(in IAccountManagerResponse response, String accountType, in addAccount() argument 69 void addAccountAsUser(in IAccountManagerResponse response, String accountType, in addAccountAsUser() argument 74 void editProperties(in IAccountManagerResponse response, String accountType, in editProperties() argument 79 void getAuthTokenLabel(in IAccountManagerResponse response, String accountType, in getAuthTokenLabel() argument 90 void startAddAccountSession(in IAccountManagerResponse response, String accountType, in startAddAccountSession() argument [all …]
|
D | AbstractAccountAuthenticator.java | 154 public void addAccount(IAccountAuthenticatorResponse response, String accountType, in addAccount() argument 158 Log.v(TAG, "addAccount: accountType " + accountType in addAccount() 166 accountType, authTokenType, features, options); in addAccount() 180 handleException(response, "addAccount", accountType, e); in addAccount() 293 String accountType) throws RemoteException { in editProperties() argument 297 new AccountAuthenticatorResponse(response), accountType); in editProperties() 302 handleException(response, "editProperties", accountType, e); in editProperties() 372 String accountType, String authTokenType, String[] features, Bundle options) in startAddAccountSession() argument 376 "startAddAccountSession: accountType " + accountType in startAddAccountSession() 383 new AccountAuthenticatorResponse(response), accountType, authTokenType, in startAddAccountSession() [all …]
|
D | IAccountAuthenticator.aidl | 32 void addAccount(in IAccountAuthenticatorResponse response, String accountType, in addAccount() argument 66 void editProperties(in IAccountAuthenticatorResponse response, String accountType); in editProperties() argument 99 void startAddAccountSession(in IAccountAuthenticatorResponse response, String accountType, in startAddAccountSession() argument 113 void finishSession(in IAccountAuthenticatorResponse response, String accountType, in finishSession() argument
|
D | AccountManager.java | 757 final String accountType, final String authTokenType, in getAuthTokenLabel() argument 759 if (accountType == null) throw new IllegalArgumentException("accountType is null"); in getAuthTokenLabel() 764 mService.getAuthTokenLabel(mResponse, accountType, authTokenType); in getAuthTokenLabel() 995 String accountType) { 999 .getAccountsAndVisibilityForPackage(packageName, accountType); 1349 public void invalidateAuthToken(final String accountType, final String authToken) { 1350 if (accountType == null) throw new IllegalArgumentException("accountType is null"); 1353 mService.invalidateAuthToken(accountType, authToken); 1844 public AccountManagerFuture<Bundle> addAccount(final String accountType, 1848 if (accountType == null) throw new IllegalArgumentException("accountType is null"); [all …]
|
D | ChooseTypeAndAccountActivity.java | 334 String accountType = data.getStringExtra(AccountManager.KEY_ACCOUNT_TYPE); in onActivityResult() local 335 if (accountType != null) { in onActivityResult() 336 runAddAccountForAuthenticator(accountType); in onActivityResult() 344 String accountType = null; in onActivityResult() local 348 accountType = data.getStringExtra(AccountManager.KEY_ACCOUNT_TYPE); in onActivityResult() 351 if (accountName == null || accountType == null) { in onActivityResult() 363 accountType = account.type; in onActivityResult() 369 if (accountName != null || accountType != null) { in onActivityResult() 370 setResultAndFinish(accountName, accountType); in onActivityResult() 441 private void setResultAndFinish(final String accountName, final String accountType) { in setResultAndFinish() argument [all …]
|
D | ChooseAccountActivity.java | 126 private Drawable getDrawableForType(String accountType) { in getDrawableForType() argument 128 if(mTypeToAuthDescription.containsKey(accountType)) { in getDrawableForType() 130 AuthenticatorDescription desc = mTypeToAuthDescription.get(accountType); in getDrawableForType() 136 Log.w(TAG, "No icon name for account type " + accountType); in getDrawableForType() 141 Log.w(TAG, "No icon resource for account type " + accountType); in getDrawableForType()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/accounts/ |
D | TestAccountType2Authenticator.java | 40 public TestAccountType2Authenticator(Context context, String accountType) { in TestAccountType2Authenticator() argument 42 mAccountType = accountType; in TestAccountType2Authenticator() 47 public Bundle editProperties(AccountAuthenticatorResponse response, String accountType) { in editProperties() argument 55 String accountType, in addAccount() argument 110 String accountType, in startAddAccountSession() argument 132 String accountType, in finishSession() argument
|
D | TestAccountType1Authenticator.java | 40 public TestAccountType1Authenticator(Context context, String accountType) { in TestAccountType1Authenticator() argument 42 mAccountType = accountType; in TestAccountType1Authenticator() 47 public Bundle editProperties(AccountAuthenticatorResponse response, String accountType) { in editProperties() argument 62 String accountType, in addAccount() argument 66 if (!mAccountType.equals(accountType)) { in addAccount() 88 eventualActivityResultData.putExtra(AccountManager.KEY_ACCOUNT_TYPE, accountType); in addAccount() 262 String accountType, in startAddAccountSession() argument 266 if (!mAccountType.equals(accountType)) { in startAddAccountSession() 373 String accountType, in finishSession() argument 376 if (!mAccountType.equals(accountType)) { in finishSession()
|
D | AccountManagerServiceTest.java | 2430 String accountType = result.getString(AccountManager.KEY_ACCOUNT_TYPE); in testGetAccountByTypeAndFeaturesWithNoFeaturesAndNoAccount() local 2432 assertEquals(null, accountType); in testGetAccountByTypeAndFeaturesWithNoFeaturesAndNoAccount() 2448 String accountType = result.getString(AccountManager.KEY_ACCOUNT_TYPE); in testGetAccountByTypeAndFeaturesWithNoFeaturesAndOneVisibleAccount() local 2450 assertEquals(AccountManagerServiceTestFixtures.ACCOUNT_TYPE_1, accountType); in testGetAccountByTypeAndFeaturesWithNoFeaturesAndOneVisibleAccount() 2511 String accountType = result.getString(AccountManager.KEY_ACCOUNT_TYPE); in testGetAccountByTypeAndFeaturesWithFeaturesAndNoAccount() local 2513 assertEquals(null, accountType); in testGetAccountByTypeAndFeaturesWithFeaturesAndNoAccount() 2531 String accountType = result.getString(AccountManager.KEY_ACCOUNT_TYPE); in testGetAccountByTypeAndFeaturesWithFeaturesAndNoQualifiedAccount() local 2533 assertEquals(null, accountType); in testGetAccountByTypeAndFeaturesWithFeaturesAndNoQualifiedAccount() 2552 String accountType = result.getString(AccountManager.KEY_ACCOUNT_TYPE); in testGetAccountByTypeAndFeaturesWithFeaturesAndOneQualifiedAccount() local 2554 assertEquals(AccountManagerServiceTestFixtures.ACCOUNT_TYPE_1, accountType); in testGetAccountByTypeAndFeaturesWithFeaturesAndOneQualifiedAccount()
|
/frameworks/base/services/core/java/com/android/server/accounts/ |
D | AccountManagerService.java | 491 String accountType) { in getAccountsAndVisibilityForPackage() argument 497 if ((accountType != null && !managedTypes.contains(accountType)) in getAccountsAndVisibilityForPackage() 498 || (accountType == null && !isSystemUid)) { in getAccountsAndVisibilityForPackage() 503 if (accountType != null) { in getAccountsAndVisibilityForPackage() 505 managedTypes.add(accountType); in getAccountsAndVisibilityForPackage() 529 for (String accountType : accountTypes) { in getAccountsAndVisibilityForPackage() 532 final Account[] accountsOfType = accounts.accountCache.get(accountType); in getAccountsAndVisibilityForPackage() 1234 final String accountType = cur.getKey(); in validateAccountsInternal() local 1238 accountsForType[i] = new Account(accountNames.get(i), accountType, in validateAccountsInternal() 1241 accounts.accountCache.put(accountType, accountsForType); in validateAccountsInternal() [all …]
|
D | AccountAuthenticatorCache.java | 62 final String accountType = in parseServiceAttributes() local 74 if (TextUtils.isEmpty(accountType)) { in parseServiceAttributes() 77 return new AuthenticatorDescription(accountType, packageName, labelId, iconId, in parseServiceAttributes()
|
D | TokenCache.java | 157 public void evict(String accountType, String token) { in evict() argument 158 Evictor evictor = mTokenEvictors.get(new Pair<>(accountType, token)); in evict() 209 public void remove(String accountType, String token) { in remove() argument 210 mCachedTokens.evict(accountType, token); in remove()
|
D | AccountsDb.java | 332 Cursor findAuthtokenForAllAccounts(String accountType, String authToken) { in findAuthtokenForAllAccounts() argument 344 new String[]{authToken, accountType}); in findAuthtokenForAllAccounts() 825 final String accountType = cursor.getString(1); in findAllDeAccounts() local 828 final Account account = new Account(accountName, accountType); in findAllDeAccounts() 1014 String accountType = cursor.getString(3); in findAllVisibilityValues() local 1015 Account account = new Account(accountName, accountType); in findAllVisibilityValues() 1258 String accountType = cursor.getString(1); in findCeAccountsNotInDe() local 1259 accounts.add(new Account(accountName, accountType)); in findCeAccountsNotInDe()
|
/frameworks/base/core/java/com/android/server/backup/ |
D | AccountSyncSettingsBackupHelper.java | 143 if (!accountTypeToAuthorities.containsKey(syncAdapter.accountType)) { in serializeAccountSyncSettingsToJSON() 144 accountTypeToAuthorities.put(syncAdapter.accountType, new ArrayList<String>()); in serializeAccountSyncSettingsToJSON() 146 accountTypeToAuthorities.get(syncAdapter.accountType).add(syncAdapter.authority); in serializeAccountSyncSettingsToJSON() 288 String accountType = accountJSON.getString(KEY_ACCOUNT_TYPE); in restoreFromJsonArray() local 292 account = new Account(accountName, accountType); in restoreFromJsonArray() 408 String accountType = accountJSON.getString(KEY_ACCOUNT_TYPE); in restoreExistingAccountSyncSettingsFromJSON() local 410 final Account account = new Account(accountName, accountType); in restoreExistingAccountSyncSettingsFromJSON()
|
/frameworks/ex/common/java/com/android/common/content/ |
D | SyncStateContentProviderHelper.java | 118 final String accountType = c.getString(1); in onAccountsChanged() local 119 Account account = new Account(accountName, accountType); in onAccountsChanged() 122 new String[]{accountName, accountType}); in onAccountsChanged()
|
/frameworks/base/core/java/android/os/ |
D | IUserManager.aidl | 88 in String accountType, in PersistableBundle accountOptions, boolean persist); in setSeedAccountData() argument 93 boolean someUserHasSeedAccount(in String accountName, in String accountType); in someUserHasSeedAccount() argument
|
D | UserManager.java | 2221 @Nullable String accountType, @Nullable PersistableBundle accountOptions) { in createUserCreationIntent() argument 2226 if (accountName != null && accountType == null) { in createUserCreationIntent() 2233 if (accountType != null) { in createUserCreationIntent() 2234 intent.putExtra(EXTRA_USER_ACCOUNT_TYPE, accountType); in createUserCreationIntent() 2299 public void setSeedAccountData(int userId, String accountName, String accountType, in setSeedAccountData() argument 2302 mService.setSeedAccountData(userId, accountName, accountType, accountOptions, in setSeedAccountData() 3199 public boolean someUserHasSeedAccount(String accountName, String accountType) { in someUserHasSeedAccount() argument 3201 return mService.someUserHasSeedAccount(accountName, accountType); in someUserHasSeedAccount()
|
/frameworks/ex/common/java/com/android/common/contacts/ |
D | BaseEmailAddressAdapter.java | 103 public String accountType; field in BaseEmailAddressAdapter.DirectoryPartition 385 partition.accountType = directoryCursor.getString(DirectoryListQuery.ACCOUNT_TYPE); in onDirectoryLoadFinished() 407 mAccount.type.equals(partition.accountType)) { in onDirectoryLoadFinished()
|
/frameworks/base/services/core/java/com/android/server/content/ |
D | SyncOperation.java | 251 String accountName, accountType; in maybeCreateFromJobExtras() local 267 accountType = jobExtras.getString("accountType"); in maybeCreateFromJobExtras() 298 Account account = new Account(accountName, accountType); in maybeCreateFromJobExtras()
|
D | SyncStorageEngine.java | 1817 String accountType = parser.getAttributeValue(null, "type"); in parseAuthority() local 1822 if (accountType == null && packageName == null) { in parseAuthority() 1823 accountType = "com.google"; in parseAuthority() 1830 + " accountType=" + accountType in parseAuthority() 1844 new Account(accountName, accountType), in parseAuthority()
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/ |
D | RestrictedLockUtilsInternal.java | 365 String accountType, int userId) { in checkIfAccountManagementDisabled() argument 366 if (accountType == null) { in checkIfAccountManagementDisabled() 378 if (accountType.equals(type)) { in checkIfAccountManagementDisabled()
|
/frameworks/opt/chips/src/com/android/ex/chips/ |
D | BaseRecipientAdapter.java | 112 public String accountType; field in BaseRecipientAdapter.DirectorySearchParams 730 params.accountType = directoryCursor.getString(DirectoryListQuery.ACCOUNT_TYPE); in setupOtherDirectories() 751 && account.type.equals(params.accountType)) { in setupOtherDirectories()
|