Home
last modified time | relevance | path

Searched refs:accountType (Results 1 – 25 of 42) sorted by relevance

12

/frameworks/base/core/java/android/content/
DSyncAdapterType.java29 public final String accountType; field in SyncAdapterType
37 public SyncAdapterType(String authority, String accountType, boolean userVisible, in SyncAdapterType() argument
42 if (TextUtils.isEmpty(accountType)) { in SyncAdapterType()
43 throw new IllegalArgumentException("the accountType must not be empty: " + accountType); in SyncAdapterType()
46 this.accountType = accountType; in SyncAdapterType()
56 public SyncAdapterType(String authority, String accountType, boolean userVisible, in SyncAdapterType() argument
64 if (TextUtils.isEmpty(accountType)) { in SyncAdapterType()
65 throw new IllegalArgumentException("the accountType must not be empty: " + accountType); in SyncAdapterType()
68 this.accountType = accountType; in SyncAdapterType()
77 private SyncAdapterType(String authority, String accountType) { in SyncAdapterType() argument
[all …]
DSyncAdaptersCache.java64 final String accountType = in parseServiceAttributes() local
66 if (authority == null || accountType == null) { in parseServiceAttributes()
83 return new SyncAdapterType(authority, accountType, userVisible, supportsUploading, in parseServiceAttributes()
144 out.attribute(null, "accountType", item.accountType); in writeAsXml()
150 final String accountType = parser.getAttributeValue(null, "accountType"); in createFromXml() local
151 return SyncAdapterType.newKey(authority, accountType); in createFromXml()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/accounts/
DAuthenticatorHelper.java79 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/
DIAccountManager.aidl33 Account[] getAccounts(String accountType, String opPackageName); in getAccounts() argument
36 Account[] getAccountsAsUser(String accountType, int userId, String opPackageName); in getAccountsAsUser() argument
39 void getAccountsByFeatures(in IAccountManagerResponse response, String accountType, in getAccountsByFeatures() argument
49 void invalidateAuthToken(String accountType, String authToken); in invalidateAuthToken() argument
60 void addAccount(in IAccountManagerResponse response, String accountType, in addAccount() argument
63 void addAccountAsUser(in IAccountManagerResponse response, String accountType, in addAccountAsUser() argument
68 void editProperties(in IAccountManagerResponse response, String accountType, in editProperties() argument
73 void getAuthTokenLabel(in IAccountManagerResponse response, String accountType, in getAuthTokenLabel() argument
87 void startAddAccountSession(in IAccountManagerResponse response, String accountType, in startAddAccountSession() argument
DAbstractAccountAuthenticator.java157 public void addAccount(IAccountAuthenticatorResponse response, String accountType, in addAccount() argument
161 Log.v(TAG, "addAccount: accountType " + accountType in addAccount()
169 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 …]
DIAccountAuthenticator.aidl31 void addAccount(in IAccountAuthenticatorResponse response, String accountType, in addAccount() argument
60 void editProperties(in IAccountAuthenticatorResponse response, String accountType); in editProperties() argument
91 void startAddAccountSession(in IAccountAuthenticatorResponse response, String accountType, in startAddAccountSession() argument
105 void finishSession(in IAccountAuthenticatorResponse response, String accountType, in finishSession() argument
DChooseTypeAndAccountActivity.java306 String accountType = data.getStringExtra(AccountManager.KEY_ACCOUNT_TYPE); in onActivityResult() local
307 if (accountType != null) { in onActivityResult()
308 runAddAccountForAuthenticator(accountType); in onActivityResult()
316 String accountType = null; in onActivityResult() local
320 accountType = data.getStringExtra(AccountManager.KEY_ACCOUNT_TYPE); in onActivityResult()
323 if (accountName == null || accountType == null) { in onActivityResult()
333 accountType = account.type; in onActivityResult()
339 if (accountName != null || accountType != null) { in onActivityResult()
340 setResultAndFinish(accountName, accountType); in onActivityResult()
411 private void setResultAndFinish(final String accountName, final String accountType) { in setResultAndFinish() argument
[all …]
DAccountManager.java580 final String accountType, final String authTokenType, in getAuthTokenLabel() argument
582 if (accountType == null) throw new IllegalArgumentException("accountType is null"); in getAuthTokenLabel()
587 mService.getAuthTokenLabel(mResponse, accountType, authTokenType); in getAuthTokenLabel()
1019 public void invalidateAuthToken(final String accountType, final String authToken) {
1020 if (accountType == null) throw new IllegalArgumentException("accountType is null");
1023 mService.invalidateAuthToken(accountType, authToken);
1512 public AccountManagerFuture<Bundle> addAccount(final String accountType,
1516 if (accountType == null) throw new IllegalArgumentException("accountType is null");
1526 mService.addAccount(mResponse, accountType, authTokenType,
1536 public AccountManagerFuture<Bundle> addAccountAsUser(final String accountType,
[all …]
DChooseAccountActivity.java97 private Drawable getDrawableForType(String accountType) { in getDrawableForType() argument
99 if(mTypeToAuthDescription.containsKey(accountType)) { in getDrawableForType()
101 AuthenticatorDescription desc = mTypeToAuthDescription.get(accountType); in getDrawableForType()
107 Log.w(TAG, "No icon name for account type " + accountType); in getDrawableForType()
112 Log.w(TAG, "No icon resource for account type " + accountType); in getDrawableForType()
/frameworks/base/services/core/java/com/android/server/accounts/
DAccountManagerService.java528 final String accountType = cursor.getString(1); in validateAccountsInternal() local
531 if (obsoleteAuthType.contains(accountType)) { in validateAccountsInternal()
533 + accountType + "'s registered authenticator no longer exist."); in validateAccountsInternal()
551 final Account account = new Account(accountName, accountType); in validateAccountsInternal()
556 ArrayList<String> accountNames = accountNamesByType.get(accountType); in validateAccountsInternal()
559 accountNamesByType.put(accountType, accountNames); in validateAccountsInternal()
565 final String accountType = cur.getKey(); in validateAccountsInternal() local
569 accountsForType[i] = new Account(accountNames.get(i), accountType); in validateAccountsInternal()
571 accounts.accountCache.put(accountType, accountsForType); in validateAccountsInternal()
1705 public void invalidateAuthToken(String accountType, String authToken) { in invalidateAuthToken() argument
[all …]
DAccountAuthenticatorCache.java61 final String accountType = in parseServiceAttributes() local
73 if (TextUtils.isEmpty(accountType)) { in parseServiceAttributes()
76 return new AuthenticatorDescription(accountType, packageName, labelId, iconId, in parseServiceAttributes()
DTokenCache.java156 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()
/frameworks/base/core/java/com/android/server/backup/
DAccountSyncSettingsBackupHelper.java140 if (!accountTypeToAuthorities.containsKey(syncAdapter.accountType)) { in serializeAccountSyncSettingsToJSON()
141 accountTypeToAuthorities.put(syncAdapter.accountType, new ArrayList<String>()); in serializeAccountSyncSettingsToJSON()
143 accountTypeToAuthorities.get(syncAdapter.accountType).add(syncAdapter.authority); in serializeAccountSyncSettingsToJSON()
282 String accountType = accountJSON.getString(KEY_ACCOUNT_TYPE); in restoreFromJsonArray() local
286 account = new Account(accountName, accountType); in restoreFromJsonArray()
399 String accountType = accountJSON.getString(KEY_ACCOUNT_TYPE); in restoreExistingAccountSyncSettingsFromJSON() local
401 final Account account = new Account(accountName, accountType); in restoreExistingAccountSyncSettingsFromJSON()
/frameworks/ex/common/java/com/android/common/content/
DSyncStateContentProviderHelper.java118 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/
DUserManager.java1356 @Nullable String accountType, @Nullable PersistableBundle accountOptions) { in createUserCreationIntent() argument
1361 if (accountName != null && accountType == null) { in createUserCreationIntent()
1368 if (accountType != null) { in createUserCreationIntent()
1369 intent.putExtra(EXTRA_USER_ACCOUNT_TYPE, accountType); in createUserCreationIntent()
1432 public void setSeedAccountData(int userId, String accountName, String accountType, in setSeedAccountData() argument
1435 mService.setSeedAccountData(userId, accountName, accountType, accountOptions, in setSeedAccountData()
2133 public boolean someUserHasSeedAccount(String accountName, String accountType) { in someUserHasSeedAccount() argument
2135 return mService.someUserHasSeedAccount(accountName, accountType); in someUserHasSeedAccount()
DIUserManager.aidl77 in String accountType, in PersistableBundle accountOptions, boolean persist); in setSeedAccountData() argument
82 boolean someUserHasSeedAccount(in String accountName, in String accountType); in someUserHasSeedAccount() argument
/frameworks/base/services/core/java/com/android/server/content/
DSyncOperation.java239 String accountName, accountType; in maybeCreateFromJobExtras() local
254 accountType = jobExtras.getString("accountType"); in maybeCreateFromJobExtras()
283 Account account = new Account(accountName, accountType); in maybeCreateFromJobExtras()
DSyncStorageEngine.java1631 String accountType = parser.getAttributeValue(null, "type"); in parseAuthority() local
1636 if (accountType == null && packageName == null) { in parseAuthority()
1637 accountType = "com.google"; in parseAuthority()
1644 + " accountType=" + accountType in parseAuthority()
1659 new Account(accountName, accountType), in parseAuthority()
1886 String accountType = hasType in readAndDeleteLegacyAccountInfoLocked() local
1888 if (accountType == null) { in readAndDeleteLegacyAccountInfoLocked()
1889 accountType = "com.google"; in readAndDeleteLegacyAccountInfoLocked()
1894 new EndPoint(new Account(accountName, accountType), in readAndDeleteLegacyAccountInfoLocked()
/frameworks/ex/common/java/com/android/common/contacts/
DBaseEmailAddressAdapter.java103 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/packages/SettingsLib/src/com/android/settingslib/
DRestrictedLockUtils.java336 String accountType, int userId) { in checkIfAccountManagementDisabled() argument
337 if (accountType == null) { in checkIfAccountManagementDisabled()
348 if (accountType.equals(type)) { in checkIfAccountManagementDisabled()
/frameworks/base/tests/AppLaunch/src/com/android/tests/applaunch/
DAppLaunch.java177 for (String accountType : requiredAccounts.split(",")) { in parseArgs()
178 mRequiredAccounts.add(accountType); in parseArgs()
/frameworks/opt/chips/src/com/android/ex/chips/
DBaseRecipientAdapter.java112 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()
/frameworks/base/docs/html/training/sync-adapters/
Dcreating-authenticator.jd192 <code>android:accountType</code>
242 android:accountType="example.com"
/frameworks/base/core/java/android/app/admin/
DIDevicePolicyManager.aidl200 …void setAccountManagementDisabled(in ComponentName who, in String accountType, in boolean disabled… in setAccountManagementDisabled() argument
/frameworks/base/services/core/java/com/android/server/pm/
DUserManagerService.java2979 public void setSeedAccountData(int userId, String accountName, String accountType, in setSeedAccountData() argument
2991 userData.seedAccountType = accountType; in setSeedAccountData()
3043 public boolean someUserHasSeedAccount(String accountName, String accountType) in someUserHasSeedAccount() argument
3054 if (data.seedAccountType == null || !data.seedAccountType.equals(accountType)) { in someUserHasSeedAccount()

12