/frameworks/base/core/java/android/content/ |
D | SyncAdapterType.java | 33 public final String accountType; field in SyncAdapterType 47 public SyncAdapterType(String authority, String accountType, boolean userVisible, in SyncAdapterType() argument 52 if (TextUtils.isEmpty(accountType)) { in SyncAdapterType() 53 throw new IllegalArgumentException("the accountType must not be empty: " + accountType); in SyncAdapterType() 56 this.accountType = accountType; in SyncAdapterType() 67 public SyncAdapterType(String authority, String accountType, boolean userVisible, in SyncAdapterType() argument 76 if (TextUtils.isEmpty(accountType)) { in SyncAdapterType() 77 throw new IllegalArgumentException("the accountType must not be empty: " + accountType); in SyncAdapterType() 80 this.accountType = accountType; in SyncAdapterType() 91 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()
|
D | IContentService.aidl | 153 String getSyncAdapterPackageAsUser(String accountType, String authority, int userId); in getSyncAdapterPackageAsUser() argument
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/accounts/ |
D | AuthenticatorHelper.java | 81 public void preloadDrawableForType(final Context context, final String accountType) { in preloadDrawableForType() argument 85 getDrawableForType(context, accountType); in preloadDrawableForType() 97 public Drawable getDrawableForType(Context context, final String accountType) { in getDrawableForType() argument 100 if (mAccTypeIconCache.containsKey(accountType)) { in getDrawableForType() 101 return mAccTypeIconCache.get(accountType); in getDrawableForType() 104 if (mTypeToAuthDescription.containsKey(accountType)) { in getDrawableForType() 106 AuthenticatorDescription desc = mTypeToAuthDescription.get(accountType); in getDrawableForType() 111 mAccTypeIconCache.put(accountType, icon); in getDrawableForType() 128 public CharSequence getLabelForType(Context context, final String accountType) { in getLabelForType() argument 130 if (mTypeToAuthDescription.containsKey(accountType)) { in getLabelForType() [all …]
|
/frameworks/base/core/java/android/accounts/ |
D | IAccountManager.aidl | 39 Account[] getAccountsAsUser(String accountType, int userId, String opPackageName); in getAccountsAsUser() argument 42 void getAccountByTypeAndFeatures(in IAccountManagerResponse response, String accountType, in getAccountByTypeAndFeatures() argument 44 void getAccountsByFeatures(in IAccountManagerResponse response, String accountType, in getAccountsByFeatures() argument 52 void invalidateAuthToken(String accountType, String authToken); in invalidateAuthToken() argument 63 void addAccount(in IAccountManagerResponse response, String accountType, in addAccount() argument 66 void addAccountAsUser(in IAccountManagerResponse response, String accountType, in addAccountAsUser() argument 71 void editProperties(in IAccountManagerResponse response, String accountType, in editProperties() argument 76 void getAuthTokenLabel(in IAccountManagerResponse response, String accountType, in getAuthTokenLabel() argument 87 void startAddAccountSession(in IAccountManagerResponse response, String accountType, in startAddAccountSession() argument 117 Map getAccountsAndVisibilityForPackage(in String packageName, in String accountType); in getAccountsAndVisibilityForPackage() argument
|
D | AbstractAccountAuthenticator.java | 151 public void addAccount(IAccountAuthenticatorResponse response, String accountType, in addAccount() argument 157 Log.v(TAG, "addAccount: accountType " + accountType in addAccount() 164 accountType, authTokenType, features, options); in addAccount() 178 handleException(response, "addAccount", accountType, e); in addAccount() 300 String accountType) throws RemoteException { in editProperties() argument 305 new AccountAuthenticatorResponse(response), accountType); in editProperties() 310 handleException(response, "editProperties", accountType, e); in editProperties() 389 String accountType, String authTokenType, String[] features, Bundle options) in startAddAccountSession() argument 395 "startAddAccountSession: accountType " + accountType in startAddAccountSession() 401 new AccountAuthenticatorResponse(response), accountType, authTokenType, in startAddAccountSession() [all …]
|
D | IAccountAuthenticator.aidl | 33 void addAccount(in IAccountAuthenticatorResponse response, String accountType, in addAccount() argument 72 void editProperties(in IAccountAuthenticatorResponse response, String accountType); in editProperties() argument 110 void startAddAccountSession(in IAccountAuthenticatorResponse response, String accountType, in startAddAccountSession() argument 126 void finishSession(in IAccountAuthenticatorResponse response, String accountType, in finishSession() argument
|
D | AccountManager.java | 853 final String accountType, final String authTokenType, in getAuthTokenLabel() argument 855 if (accountType == null) throw new IllegalArgumentException("accountType is null"); in getAuthTokenLabel() 860 mService.getAuthTokenLabel(mResponse, accountType, authTokenType); in getAuthTokenLabel() 1103 String accountType) { 1107 .getAccountsAndVisibilityForPackage(packageName, accountType); 1444 public void invalidateAuthToken(final String accountType, final String authToken) { 1445 if (accountType == null) throw new IllegalArgumentException("accountType is null"); 1448 mService.invalidateAuthToken(accountType, authToken); 1940 public AccountManagerFuture<Bundle> addAccount(final String accountType, 1945 if (accountType == null) throw new IllegalArgumentException("accountType is null"); [all …]
|
D | ChooseTypeAndAccountActivity.java | 330 String accountType = data.getStringExtra(AccountManager.KEY_ACCOUNT_TYPE); in onActivityResult() local 331 if (accountType != null) { in onActivityResult() 332 runAddAccountForAuthenticator(accountType); in onActivityResult() 340 String accountType = null; in onActivityResult() local 344 accountType = data.getStringExtra(AccountManager.KEY_ACCOUNT_TYPE); in onActivityResult() 347 if (accountName == null || accountType == null) { in onActivityResult() 359 accountType = account.type; in onActivityResult() 365 if (accountName != null || accountType != null) { in onActivityResult() 366 setResultAndFinish(accountName, accountType); in onActivityResult() 437 private void setResultAndFinish(final String accountName, final String accountType) { in setResultAndFinish() argument [all …]
|
D | ChooseAccountActivity.java | 119 private Drawable getDrawableForType(String accountType) { in getDrawableForType() argument 121 if(mTypeToAuthDescription.containsKey(accountType)) { in getDrawableForType() 123 AuthenticatorDescription desc = mTypeToAuthDescription.get(accountType); in getDrawableForType() 129 Log.w(TAG, "No icon name for account type " + accountType); in getDrawableForType() 134 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 | 38 public TestAccountType1Authenticator(Context context, String accountType) { in TestAccountType1Authenticator() argument 40 mAccountType = accountType; in TestAccountType1Authenticator() 45 public Bundle editProperties(AccountAuthenticatorResponse response, String accountType) { in editProperties() argument 60 String accountType, in addAccount() argument 64 if (!mAccountType.equals(accountType)) { in addAccount() 86 eventualActivityResultData.putExtra(AccountManager.KEY_ACCOUNT_TYPE, accountType); in addAccount() 260 String accountType, in startAddAccountSession() argument 264 if (!mAccountType.equals(accountType)) { in startAddAccountSession() 374 String accountType, in finishSession() argument 377 if (!mAccountType.equals(accountType)) { in finishSession()
|
/frameworks/base/core/java/android/app/admin/ |
D | AccountTypePolicyKey.java | 55 public AccountTypePolicyKey(@NonNull String key, @NonNull String accountType) { in AccountTypePolicyKey() argument 58 PolicySizeVerifier.enforceMaxStringLength(accountType, "accountType"); in AccountTypePolicyKey() 60 mAccountType = Objects.requireNonNull((accountType)); in AccountTypePolicyKey() 101 String accountType = parser.getAttributeValue(/* namespace= */ null, ATTR_ACCOUNT_TYPE); in readFromXml() local 102 return new AccountTypePolicyKey(policyKey, accountType); in readFromXml()
|
/frameworks/base/services/core/java/com/android/server/accounts/ |
D | AccountManagerService.java | 540 String accountType) { in getAccountsAndVisibilityForPackage() argument 546 if ((accountType != null && !managedTypes.contains(accountType)) in getAccountsAndVisibilityForPackage() 547 || (accountType == null && !isSystemUid)) { in getAccountsAndVisibilityForPackage() 552 if (accountType != null) { in getAccountsAndVisibilityForPackage() 554 managedTypes.add(accountType); in getAccountsAndVisibilityForPackage() 578 for (String accountType : accountTypes) { in getAccountsAndVisibilityForPackage() 581 final Account[] accountsOfType = accounts.accountCache.get(accountType); in getAccountsAndVisibilityForPackage() 1116 int userId, String accountType, @NonNull String useCase) { in sendAccountsChangedBroadcast() argument 1118 Log.i(TAG, "the accountType= " + (accountType == null ? "" : accountType) in sendAccountsChangedBroadcast() 1311 final String accountType = cur.getKey(); in validateAccountsInternal() local [all …]
|
D | AccountAuthenticatorCache.java | 63 final String accountType = in parseServiceAttributes() local 75 if (TextUtils.isEmpty(accountType)) { in parseServiceAttributes() 78 return new AuthenticatorDescription(accountType, packageName, labelId, iconId, in parseServiceAttributes()
|
D | TokenCache.java | 156 public void evict(String accountType, String token) { in evict() argument 157 Evictor evictor = mTokenEvictors.get(new Pair<>(accountType, token)); in evict() 208 public void remove(String accountType, String token) { in remove() argument 209 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 | 144 if (!accountTypeToAuthorities.containsKey(syncAdapter.accountType)) { in serializeAccountSyncSettingsToJSON() 145 accountTypeToAuthorities.put(syncAdapter.accountType, new ArrayList<String>()); in serializeAccountSyncSettingsToJSON() 147 accountTypeToAuthorities.get(syncAdapter.accountType).add(syncAdapter.authority); in serializeAccountSyncSettingsToJSON() 289 String accountType = accountJSON.getString(KEY_ACCOUNT_TYPE); in restoreFromJsonArray() local 293 account = new Account(accountName, accountType); in restoreFromJsonArray() 409 String accountType = accountJSON.getString(KEY_ACCOUNT_TYPE); in restoreExistingAccountSyncSettingsFromJSON() local 411 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 | 111 in String accountName, in String accountType, in PersistableBundle accountOptions); in createUserWithAttributes() argument 113 in String accountType, in PersistableBundle accountOptions, boolean persist); in setSeedAccountData() argument 118 boolean someUserHasSeedAccount(in String accountName, in String accountType); in someUserHasSeedAccount() argument 119 boolean someUserHasAccount(in String accountName, in String accountType); in someUserHasAccount() argument
|
D | NewUserRequest.java | 247 public Builder setAccountType(@Nullable String accountType) { in setAccountType() argument 248 mAccountType = accountType; in setAccountType()
|
D | UserManager.java | 4638 @Nullable String accountType, @Nullable PersistableBundle accountOptions) { in createUserCreationIntent() argument 4643 if (accountName != null && accountType == null) { in createUserCreationIntent() 4650 if (accountType != null) { in createUserCreationIntent() 4651 intent.putExtra(EXTRA_USER_ACCOUNT_TYPE, accountType); in createUserCreationIntent() 4747 public void setSeedAccountData(int userId, String accountName, String accountType, in setSeedAccountData() argument 4750 mService.setSeedAccountData(userId, accountName, accountType, accountOptions, in setSeedAccountData() 6540 public boolean someUserHasSeedAccount(String accountName, String accountType) { in someUserHasSeedAccount() argument 6542 return mService.someUserHasSeedAccount(accountName, accountType); in someUserHasSeedAccount() 6560 @NonNull String accountName, @NonNull String accountType) { in someUserHasAccount() argument 6562 Objects.requireNonNull(accountType, "accountType must not be null"); in someUserHasAccount() [all …]
|
/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 | 273 String accountName, accountType; in maybeCreateFromJobExtras() local 289 accountType = jobExtras.getString("accountType"); in maybeCreateFromJobExtras() 320 Account account = new Account(accountName, accountType); in maybeCreateFromJobExtras()
|
/frameworks/base/services/devicepolicy/java/com/android/server/devicepolicy/ |
D | PolicyDefinition.java | 322 static PolicyDefinition<Boolean> ACCOUNT_MANAGEMENT_DISABLED(String accountType) { in ACCOUNT_MANAGEMENT_DISABLED() argument 323 if (accountType == null) { in ACCOUNT_MANAGEMENT_DISABLED() 328 DevicePolicyIdentifiers.ACCOUNT_MANAGEMENT_DISABLED_POLICY, accountType)); in ACCOUNT_MANAGEMENT_DISABLED()
|