/frameworks/base/services/tests/servicestests/src/com/android/server/accounts/ |
D | AccountsDbTest.java | 108 Account account = new Account("name", "example.com"); in testCeNotAvailableInitially() local 109 long id = mAccountsDb.insertCeAccount(account, ""); in testCeNotAvailableInitially() 115 Account account = new Account("name", "example.com"); in testDeAccountInsertFindDelete() local 117 mAccountsDb.insertDeAccount(account, accId); in testDeAccountInsertFindDelete() 118 long actualId = mAccountsDb.findDeAccountId(account); in testDeAccountInsertFindDelete() 122 actualId = mAccountsDb.findDeAccountId(account); in testDeAccountInsertFindDelete() 129 Account account = new Account("name", "example.com"); in testCeAccountInsertFindDelete() local 130 long accId = mAccountsDb.insertCeAccount(account, "password"); in testCeAccountInsertFindDelete() 131 long actualId = mAccountsDb.findCeAccountId(account); in testCeAccountInsertFindDelete() 135 actualId = mAccountsDb.findCeAccountId(account); in testCeAccountInsertFindDelete() [all …]
|
D | TestAccountType1Authenticator.java | 107 Account account, in confirmCredentials() argument 109 if (!mAccountType.equals(account.type)) { in confirmCredentials() 114 if (account.name.equals(AccountManagerServiceTestFixtures.ACCOUNT_NAME_SUCCESS)) { in confirmCredentials() 117 result.putString(AccountManager.KEY_ACCOUNT_NAME, account.name); in confirmCredentials() 118 result.putString(AccountManager.KEY_ACCOUNT_TYPE, account.type); in confirmCredentials() 119 } else if (account.name.equals(AccountManagerServiceTestFixtures.ACCOUNT_NAME_INTERVENE)) { in confirmCredentials() 123 eventualActivityResultData.putExtra(AccountManager.KEY_ACCOUNT_NAME, account.name); in confirmCredentials() 124 eventualActivityResultData.putExtra(AccountManager.KEY_ACCOUNT_TYPE, account.type); in confirmCredentials() 146 Account account, in getAuthToken() argument 149 if (!mAccountType.equals(account.type)) { in getAuthToken() [all …]
|
D | TestAccountType2Authenticator.java | 66 Account account, in confirmCredentials() argument 75 Account account, in getAuthToken() argument 91 Account account, in updateCredentials() argument 101 Account account, in hasFeatures() argument 121 Account account, in startUpdateCredentialsSession() argument 141 Account account, in isCredentialsUpdateSuggested() argument
|
/frameworks/base/core/java/android/accounts/ |
D | IAccountManager.aidl | 34 String getPassword(in Account account); in getPassword() argument 35 String getUserData(in Account account, String key); in getUserData() argument 41 void hasFeatures(in IAccountManagerResponse response, in Account account, in String[] features, in hasFeatures() argument 47 boolean addAccountExplicitly(in Account account, String password, in Bundle extras); in addAccountExplicitly() argument 48 void removeAccount(in IAccountManagerResponse response, in Account account, in removeAccount() argument 50 void removeAccountAsUser(in IAccountManagerResponse response, in Account account, in removeAccountAsUser() argument 52 boolean removeAccountExplicitly(in Account account); in removeAccountExplicitly() argument 53 void copyAccountToUser(in IAccountManagerResponse response, in Account account, in copyAccountToUser() argument 56 String peekAuthToken(in Account account, String authTokenType); in peekAuthToken() argument 57 void setAuthToken(in Account account, String authTokenType, String authToken); in setAuthToken() argument [all …]
|
D | AccountManager.java | 480 public String getPassword(final Account account) { in getPassword() argument 481 if (account == null) throw new IllegalArgumentException("account is null"); in getPassword() 483 return mService.getPassword(account); in getPassword() 510 public String getUserData(final Account account, final String key) { in getUserData() argument 511 if (account == null) throw new IllegalArgumentException("account is null"); in getUserData() 514 return mService.getUserData(account, key); in getUserData() 708 public void updateAppPermission(Account account, String authTokenType, int uid, boolean value) { in updateAppPermission() argument 710 mService.updateAppPermission(account, authTokenType, uid, value); in updateAppPermission() 769 public AccountManagerFuture<Boolean> hasFeatures(final Account account, 772 if (account == null) throw new IllegalArgumentException("account is null"); [all …]
|
D | AbstractAccountAuthenticator.java | 188 Account account, Bundle options) throws RemoteException { in confirmCredentials() argument 190 Log.v(TAG, "confirmCredentials: " + account); in confirmCredentials() 195 new AccountAuthenticatorResponse(response), account, options); in confirmCredentials() 207 handleException(response, "confirmCredentials", account.toString(), e); in confirmCredentials() 238 Account account, String authTokenType, Bundle loginOptions) in getAuthToken() argument 241 Log.v(TAG, "getAuthToken: " + account in getAuthToken() 247 new AccountAuthenticatorResponse(response), account, in getAuthToken() 260 account.toString() + "," + authTokenType, e); in getAuthToken() 265 public void updateCredentials(IAccountAuthenticatorResponse response, Account account, in updateCredentials() argument 268 Log.v(TAG, "updateCredentials: " + account in updateCredentials() [all …]
|
D | AccountAndUser.java | 28 public Account account; field in AccountAndUser 33 public AccountAndUser(Account account, int userId) { in AccountAndUser() argument 34 this.account = account; in AccountAndUser() 42 return this.account.equals(other.account) in equals() 48 return account.hashCode() + userId; in hashCode() 52 return account.toString() + " u" + userId; in toString()
|
D | IAccountAuthenticator.aidl | 39 void confirmCredentials(in IAccountAuthenticatorResponse response, in Account account, in confirmCredentials() argument 46 void getAuthToken(in IAccountAuthenticatorResponse response, in Account account, in getAuthToken() argument 59 void updateCredentials(in IAccountAuthenticatorResponse response, in Account account, in updateCredentials() argument 73 void hasFeatures(in IAccountAuthenticatorResponse response, in Account account, in hasFeatures() argument 80 void getAccountRemovalAllowed(in IAccountAuthenticatorResponse response, in Account account); in getAccountRemovalAllowed() argument 86 in Account account); in getAccountCredentialsForCloning() argument 92 void addAccountFromCredentials(in IAccountAuthenticatorResponse response, in Account account, in addAccountFromCredentials() argument 105 … void startUpdateCredentialsSession(in IAccountAuthenticatorResponse response, in Account account, in startUpdateCredentialsSession() argument 119 void isCredentialsUpdateSuggested(in IAccountAuthenticatorResponse response, in Account account, in isCredentialsUpdateSuggested() argument
|
D | ChooseTypeAndAccountActivity.java | 359 for (Account account : currentAccounts) { in onActivityResult() 361 if (!preExistingAccounts.contains(account)) { in onActivityResult() 362 accountName = account.name; in onActivityResult() 363 accountType = account.type; in onActivityResult() 436 private void onAccountSelected(Account account) { in onAccountSelected() argument 437 Log.d(TAG, "selected account " + account); in onAccountSelected() 438 setResultAndFinish(account.name, account.type); in onAccountSelected() 443 Account account = new Account(accountName, accountType); in setResultAndFinish() local 445 AccountManager.get(this).getAccountVisibility(account, mCallingPackage); in setResultAndFinish() 448 AccountManager.get(this).setAccountVisibility(account, mCallingPackage, in setResultAndFinish() [all …]
|
/frameworks/base/packages/Shell/tests/src/com/android/shell/ |
D | BugreportProgressServiceTest.java | 101 private Account account(String email) { in account() method in BugreportProgressServiceTest 109 assertEquals(account(expectedEmail), actual.second); in checkFindSendToAccount() 128 array(account("abc@gmail.com"))); in findSendToAccount_noWorkProfile() 139 array(account("abc@gmail.com"), account("def@gmail.com"))); in findSendToAccount_noWorkProfile() 150 array(account("abc@gmail.com"), account("def@android.com"))); in findSendToAccount_noWorkProfile() 161 array(account("notemail"), account("abc@gmail.com"), account("def@android.com"))); in findSendToAccount_noWorkProfile() 195 array(account("abc@gmail.com"))); in findSendToAccount_withWorkProfile_noAccounts() 206 array(account("abc@gmail.com"), account("def@gmail.com"))); in findSendToAccount_withWorkProfile_noAccounts() 217 array(account("abc@gmail.com"), account("def@android.com"))); in findSendToAccount_withWorkProfile_noAccounts() 228 array(account("notemail"), account("abc@gmail.com"), account("def@android.com"))); in findSendToAccount_withWorkProfile_noAccounts() [all …]
|
/frameworks/base/core/java/android/content/ |
D | IContentService.aidl | 58 void requestSync(in Account account, String authority, in Bundle extras, String callingPackage); in requestSync() argument 65 void cancelSync(in Account account, String authority, in ComponentName cname); in cancelSync() argument 66 void cancelSyncAsUser(in Account account, String authority, in ComponentName cname, int userId); in cancelSyncAsUser() argument 76 boolean getSyncAutomatically(in Account account, String providerName); in getSyncAutomatically() argument 77 boolean getSyncAutomaticallyAsUser(in Account account, String providerName, int userId); in getSyncAutomaticallyAsUser() argument 85 void setSyncAutomatically(in Account account, String providerName, boolean sync); in setSyncAutomatically() argument 86 void setSyncAutomaticallyAsUser(in Account account, String providerName, boolean sync, in setSyncAutomaticallyAsUser() argument 96 List<PeriodicSync> getPeriodicSyncs(in Account account, String providerName, in getPeriodicSyncs() argument 106 void addPeriodicSync(in Account account, String providerName, in Bundle extras, in addPeriodicSync() argument 116 void removePeriodicSync(in Account account, String providerName, in Bundle extras); in removePeriodicSync() argument [all …]
|
D | PeriodicSync.java | 31 public final Account account; field in PeriodicSync 47 public PeriodicSync(Account account, String authority, Bundle extras, long periodInSeconds) { in PeriodicSync() argument 48 this.account = account; in PeriodicSync() 65 this.account = other.account; in PeriodicSync() 76 public PeriodicSync(Account account, String authority, Bundle extras, in PeriodicSync() argument 78 this.account = account; in PeriodicSync() 86 this.account = in.readParcelable(null); in PeriodicSync() 100 dest.writeParcelable(account, flags); in writeToParcel() 128 return account.equals(other.account) in equals() 160 return "account: " + account + in toString()
|
D | SyncInfo.java | 43 public final Account account; field in SyncInfo 70 public SyncInfo(int authorityId, Account account, String authority, long startTime) { in SyncInfo() argument 72 this.account = account; in SyncInfo() 80 this.account = new Account(other.account.name, other.account.type); in SyncInfo() 93 parcel.writeParcelable(account, flags); in writeToParcel() 102 account = parcel.readParcelable(Account.class.getClassLoader()); in SyncInfo()
|
D | AbstractThreadedSyncAdapter.java | 165 private Account toSyncKey(Account account) { in toSyncKey() argument 167 return account; in toSyncKey() 182 public void startSync(ISyncContext syncContext, String authority, Account account, in startSync() argument 188 Log.d(TAG, "startSync() start " + authority + " " + account + " " + extras); in startSync() 196 final Account threadsKey = toSyncKey(account); in startSync() 204 if (ContentResolver.getIsSyncable(account, authority) < 0) { in startSync() 205 ContentResolver.setIsSyncable(account, authority, 1); in startSync() 214 syncContextClient, authority, account, extras); in startSync() 297 Account account, Bundle extras) { in SyncThread() argument 301 mAccount = account; in SyncThread() [all …]
|
/frameworks/base/services/core/java/com/android/server/accounts/ |
D | TokenCache.java | 49 public final Account account; field in TokenCache.Key 54 public Key(Account account, String tokenType, String packageName, byte[] sigDigest) { in Key() argument 55 this.account = account; in Key() 65 return Objects.equals(account, cacheKey.account) in equals() 76 return account.hashCode() in hashCode() 128 Evictor evictor = mTokenEvictors.remove(new Pair<>(k.account.type, oldVal.token)); in entryRemoved() 137 Pair<String, String> mapKey = new Pair<>(k.account.type, v.token); in putToken() 146 Evictor accountEvictor = mAccountEvictors.get(k.account); in putToken() 151 mAccountEvictors.put(k.account, tokenEvictor); in putToken() 165 public void evict(Account account) { in evict() argument [all …]
|
D | AccountManagerService.java | 398 for (Account account : accounts) { in AccountManagerService() 400 account, uid, packageName, true); in AccountManagerService() 422 for (Account account : accounts) { in cancelAccountAccessRequestNotificationIfNeeded() 423 cancelAccountAccessRequestNotificationIfNeeded(account, uid, checkAccess); in cancelAccountAccessRequestNotificationIfNeeded() 430 for (Account account : accounts) { in cancelAccountAccessRequestNotificationIfNeeded() 431 cancelAccountAccessRequestNotificationIfNeeded(account, uid, packageName, checkAccess); in cancelAccountAccessRequestNotificationIfNeeded() 435 private void cancelAccountAccessRequestNotificationIfNeeded(Account account, int uid, in cancelAccountAccessRequestNotificationIfNeeded() argument 440 cancelAccountAccessRequestNotificationIfNeeded(account, uid, in cancelAccountAccessRequestNotificationIfNeeded() 446 private void cancelAccountAccessRequestNotificationIfNeeded(Account account, in cancelAccountAccessRequestNotificationIfNeeded() argument 448 if (!checkAccess || hasAccountAccess(account, packageName, in cancelAccountAccessRequestNotificationIfNeeded() [all …]
|
D | AccountsDb.java | 347 Map<String, String> findAuthTokensByAccount(Account account) { in findAuthTokensByAccount() argument 353 new String[] {account.name, account.type}, in findAuthTokensByAccount() 450 Map<String, String> findUserExtrasForAccount(Account account) { in findUserExtrasForAccount() argument 453 String[] selectionArgs = {account.name, account.type}; in findUserExtrasForAccount() 468 long findCeAccountId(Account account) { in findCeAccountId() argument 472 String[] selectionArgs = {account.name, account.type}; in findCeAccountId() 496 long insertCeAccount(Account account, String password) { in insertCeAccount() argument 499 values.put(ACCOUNTS_NAME, account.name); in insertCeAccount() 500 values.put(ACCOUNTS_TYPE, account.type); in insertCeAccount() 702 long insertSharedAccount(Account account) { in insertSharedAccount() argument [all …]
|
/frameworks/base/core/java/android/provider/ |
D | SyncStateContract.java | 74 Account account) throws RemoteException { in get() argument 76 new String[]{account.name, account.type}, null); in get() 104 Account account, byte[] data) throws RemoteException { in set() argument 107 values.put(Columns.ACCOUNT_NAME, account.name); in set() 108 values.put(Columns.ACCOUNT_TYPE, account.type); in set() 113 Account account, byte[] data) throws RemoteException { in insert() argument 116 values.put(Columns.ACCOUNT_NAME, account.name); in insert() 117 values.put(Columns.ACCOUNT_TYPE, account.type); in insert() 129 Account account) throws RemoteException { in getWithUri() argument 131 new String[]{account.name, account.type}, null); in getWithUri() [all …]
|
D | BrowserContract.java | 531 public static byte[] get(ContentProviderClient provider, Account account) in get() argument 533 return SyncStateContract.Helpers.get(provider, CONTENT_URI, account); in get() 539 public static Pair<Uri, byte[]> getWithUri(ContentProviderClient provider, Account account) in getWithUri() argument 541 return SyncStateContract.Helpers.getWithUri(provider, CONTENT_URI, account); in getWithUri() 547 public static void set(ContentProviderClient provider, Account account, byte[] data) in set() argument 549 SyncStateContract.Helpers.set(provider, CONTENT_URI, account, data); in set() 555 public static ContentProviderOperation newSetOperation(Account account, byte[] data) { in newSetOperation() argument 556 return SyncStateContract.Helpers.newSetOperation(CONTENT_URI, account, data); in newSetOperation()
|
/frameworks/base/services/core/java/com/android/server/content/ |
D | SyncOperation.java | 105 public SyncOperation(Account account, int userId, int owningUid, String owningPackage, in SyncOperation() argument 108 this(new SyncStorageEngine.EndPoint(account, provider, userId), owningUid, owningPackage, in SyncOperation() 194 Account account = (Account) value; in toJobInfoExtras() local 196 accountBundle.putString("accountName", account.name); in toJobInfoExtras() 197 accountBundle.putString("accountType", account.type); in toJobInfoExtras() 224 jobInfoExtras.putString("accountName", target.account.name); in toJobInfoExtras() 225 jobInfoExtras.putString("accountType", target.account.type); in toJobInfoExtras() 292 Account account = new Account(accountsBundle.getString("accountName"), in maybeCreateFromJobExtras() local 294 extras.putParcelable(newKey, account); in maybeCreateFromJobExtras() 298 Account account = new Account(accountName, accountType); in maybeCreateFromJobExtras() local [all …]
|
D | ContentService.java | 514 public void requestSync(Account account, String authority, Bundle extras, in requestSync() argument 531 syncManager.scheduleSync(account, userId, callingUid, authority, extras, in requestSync() 622 public void cancelSync(Account account, String authority, ComponentName cname) { in cancelSync() argument 623 cancelSyncAsUser(account, authority, cname, UserHandle.getCallingUserId()); in cancelSync() 640 public void cancelSyncAsUser(Account account, String authority, ComponentName cname, in cancelSyncAsUser() argument 658 info = new SyncStorageEngine.EndPoint(account, authority, userId); in cancelSyncAsUser() 686 Account account = request.getAccount(); in cancelRequest() local 688 info = new SyncStorageEngine.EndPoint(account, provider, userId); in cancelRequest() 750 public boolean getSyncAutomatically(Account account, String providerName) { in getSyncAutomatically() argument 751 return getSyncAutomaticallyAsUser(account, providerName, UserHandle.getCallingUserId()); in getSyncAutomatically() [all …]
|
D | SyncManager.java | 344 private boolean containsAccountAndUser(AccountAndUser[] accounts, Account account, int userId) { in containsAccountAndUser() argument 348 && accounts[i].account.equals(account)) { in containsAccountAndUser() 590 scheduleSync(info.account, info.userId, reason, info.provider, extras, in SyncManager() 666 mAccountManagerInternal.addOnAppPermissionChangeListener((Account account, int uid) -> { in SyncManager() argument 668 if (mAccountManagerInternal.hasAccountAccess(account, uid)) { in SyncManager() 669 scheduleSync(account, UserHandle.getUserId(uid), in SyncManager() 784 for (Account account : mAccountManager.getAccountsByTypeAsUser( in whiteListExistingSyncAdaptersIfNeeded() 786 if (!canAccessAccount(account, packageName, userId)) { in whiteListExistingSyncAdaptersIfNeeded() 787 mAccountManager.updateAppPermission(account, in whiteListExistingSyncAdaptersIfNeeded() 817 private int getIsSyncable(Account account, int userId, String providerName) { in getIsSyncable() argument [all …]
|
D | SyncStorageEngine.java | 187 final Account account; field in SyncStorageEngine.EndPoint 191 public EndPoint(Account account, String provider, int userId) { in EndPoint() argument 192 this.account = account; in EndPoint() 210 if (spec.account == null) { in matchesSpec() 213 accountsMatch = account.equals(spec.account); in matchesSpec() 226 sb.append(account == null ? "ALL ACCS" : account.name) in toString() 235 sb.append(account == null ? "ALL ACCS" : logSafe(account)) in toSafeString() 405 boolean isAccountValid(Account account, int userId) { in isAccountValid() argument 411 return ArrayUtils.contains(accountsForUser, account); in isAccountValid() 665 public boolean getSyncAutomatically(Account account, int userId, String providerName) { in getSyncAutomatically() argument [all …]
|
/frameworks/base/core/java/com/android/server/backup/ |
D | AccountSyncSettingsBackupHelper.java | 156 for (Account account : accounts) { in serializeAccountSyncSettingsToJSON() 157 List<String> authorities = accountTypeToAuthorities.get(account.type); in serializeAccountSyncSettingsToJSON() 166 accountJSON.put(KEY_ACCOUNT_NAME, account.name); in serializeAccountSyncSettingsToJSON() 167 accountJSON.put(KEY_ACCOUNT_TYPE, account.type); in serializeAccountSyncSettingsToJSON() 172 int syncState = ContentResolver.getIsSyncableAsUser(account, authority, userId); in serializeAccountSyncSettingsToJSON() 173 boolean syncEnabled = ContentResolver.getSyncAutomaticallyAsUser(account, authority, in serializeAccountSyncSettingsToJSON() 290 Account account = null; in restoreFromJsonArray() local 292 account = new Account(accountName, accountType); in restoreFromJsonArray() 299 if (currentAccounts.contains(account)) { in restoreFromJsonArray() 368 for (Account account : accounts) { in getAccounts() [all …]
|
/frameworks/base/telecomm/java/android/telecom/ |
D | AuthenticatorService.java | 70 Account account, Bundle bundle) in confirmCredentials() argument 77 Account account, String s, Bundle bundle) in getAuthToken() argument 89 Account account, String s, Bundle bundle) in updateCredentials() argument 96 Account account, String[] strings) in hasFeatures() argument
|