/frameworks/base/services/tests/servicestests/src/com/android/server/accounts/ |
D | AccountsDbTest.java | 88 Account account = new Account("name", "example.com"); in testCeNotAvailableInitially() local 89 long id = mAccountsDb.insertCeAccount(account, ""); in testCeNotAvailableInitially() 95 Account account = new Account("name", "example.com"); in testDeAccountInsertFindDelete() local 97 mAccountsDb.insertDeAccount(account, accId); in testDeAccountInsertFindDelete() 98 long actualId = mAccountsDb.findDeAccountId(account); in testDeAccountInsertFindDelete() 102 actualId = mAccountsDb.findDeAccountId(account); in testDeAccountInsertFindDelete() 109 Account account = new Account("name", "example.com"); in testCeAccountInsertFindDelete() local 110 long accId = mAccountsDb.insertCeAccount(account, "password"); in testCeAccountInsertFindDelete() 111 long actualId = mAccountsDb.findCeAccountId(account); in testCeAccountInsertFindDelete() 115 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 | 476 public String getPassword(final Account account) { in getPassword() argument 477 if (account == null) throw new IllegalArgumentException("account is null"); in getPassword() 479 return mService.getPassword(account); in getPassword() 506 public String getUserData(final Account account, final String key) { in getUserData() argument 507 if (account == null) throw new IllegalArgumentException("account is null"); in getUserData() 510 return mService.getUserData(account, key); in getUserData() 703 public void updateAppPermission(Account account, String authTokenType, int uid, boolean value) { in updateAppPermission() argument 705 mService.updateAppPermission(account, authTokenType, uid, value); in updateAppPermission() 764 public AccountManagerFuture<Boolean> hasFeatures(final Account account, 767 if (account == null) throw new IllegalArgumentException("account is null"); [all …]
|
D | AbstractAccountAuthenticator.java | 186 Account account, Bundle options) throws RemoteException { in confirmCredentials() argument 188 Log.v(TAG, "confirmCredentials: " + account); in confirmCredentials() 193 new AccountAuthenticatorResponse(response), account, options); in confirmCredentials() 205 handleException(response, "confirmCredentials", account.toString(), e); in confirmCredentials() 236 Account account, String authTokenType, Bundle loginOptions) in getAuthToken() argument 239 Log.v(TAG, "getAuthToken: " + account in getAuthToken() 245 new AccountAuthenticatorResponse(response), account, in getAuthToken() 258 account.toString() + "," + authTokenType, e); in getAuthToken() 263 public void updateCredentials(IAccountAuthenticatorResponse response, Account account, in updateCredentials() argument 266 Log.v(TAG, "updateCredentials: " + account in updateCredentials() [all …]
|
D | AccountAndUser.java | 25 public Account account; field in AccountAndUser 28 public AccountAndUser(Account account, int userId) { in AccountAndUser() argument 29 this.account = account; in AccountAndUser() 37 return this.account.equals(other.account) in equals() 43 return account.hashCode() + userId; in hashCode() 47 return account.toString() + " u" + userId; in toString()
|
D | IAccountAuthenticator.aidl | 37 void confirmCredentials(in IAccountAuthenticatorResponse response, in Account account, in confirmCredentials() argument 43 void getAuthToken(in IAccountAuthenticatorResponse response, in Account account, in getAuthToken() argument 54 void updateCredentials(in IAccountAuthenticatorResponse response, in Account account, in updateCredentials() argument 66 void hasFeatures(in IAccountAuthenticatorResponse response, in Account account, in hasFeatures() argument 72 void getAccountRemovalAllowed(in IAccountAuthenticatorResponse response, in Account account); in getAccountRemovalAllowed() argument 78 in Account account); in getAccountCredentialsForCloning() argument 84 void addAccountFromCredentials(in IAccountAuthenticatorResponse response, in Account account, in addAccountFromCredentials() argument 97 … void startUpdateCredentialsSession(in IAccountAuthenticatorResponse response, in Account account, in startUpdateCredentialsSession() argument 111 void isCredentialsUpdateSuggested(in IAccountAuthenticatorResponse response, in Account account, in isCredentialsUpdateSuggested() argument
|
D | ChooseTypeAndAccountActivity.java | 358 for (Account account : currentAccounts) { in onActivityResult() 360 if (!preExistingAccounts.contains(account)) { in onActivityResult() 361 accountName = account.name; in onActivityResult() 362 accountType = account.type; in onActivityResult() 435 private void onAccountSelected(Account account) { in onAccountSelected() argument 436 Log.d(TAG, "selected account " + account); in onAccountSelected() 437 setResultAndFinish(account.name, account.type); in onAccountSelected() 442 Account account = new Account(accountName, accountType); in setResultAndFinish() local 444 AccountManager.get(this).getAccountVisibility(account, mCallingPackage); in setResultAndFinish() 447 AccountManager.get(this).setAccountVisibility(account, mCallingPackage, in setResultAndFinish() [all …]
|
/frameworks/base/packages/Shell/tests/src/com/android/shell/ |
D | BugreportProgressServiceTest.java | 102 private Account account(String email) { in account() method in BugreportProgressServiceTest 110 assertEquals(account(expectedEmail), actual.second); in checkFindSendToAccount() 129 array(account("abc@gmail.com"))); in findSendToAccount_noWorkProfile() 140 array(account("abc@gmail.com"), account("def@gmail.com"))); in findSendToAccount_noWorkProfile() 151 array(account("abc@gmail.com"), account("def@android.com"))); in findSendToAccount_noWorkProfile() 162 array(account("notemail"), account("abc@gmail.com"), account("def@android.com"))); in findSendToAccount_noWorkProfile() 196 array(account("abc@gmail.com"))); in findSendToAccount_withWorkProfile_noAccounts() 207 array(account("abc@gmail.com"), account("def@gmail.com"))); in findSendToAccount_withWorkProfile_noAccounts() 218 array(account("abc@gmail.com"), account("def@android.com"))); in findSendToAccount_withWorkProfile_noAccounts() 229 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); in requestSync() argument 64 void cancelSync(in Account account, String authority, in ComponentName cname); in cancelSync() argument 65 void cancelSyncAsUser(in Account account, String authority, in ComponentName cname, int userId); in cancelSyncAsUser() argument 75 boolean getSyncAutomatically(in Account account, String providerName); in getSyncAutomatically() argument 76 boolean getSyncAutomaticallyAsUser(in Account account, String providerName, int userId); in getSyncAutomaticallyAsUser() argument 84 void setSyncAutomatically(in Account account, String providerName, boolean sync); in setSyncAutomatically() argument 85 void setSyncAutomaticallyAsUser(in Account account, String providerName, boolean sync, in setSyncAutomaticallyAsUser() argument 95 List<PeriodicSync> getPeriodicSyncs(in Account account, String providerName, in getPeriodicSyncs() argument 105 void addPeriodicSync(in Account account, String providerName, in Bundle extras, in addPeriodicSync() argument 115 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 | 40 public final Account account; field in SyncInfo 66 public SyncInfo(int authorityId, Account account, String authority, long startTime) { in SyncInfo() argument 68 this.account = account; in SyncInfo() 76 this.account = new Account(other.account.name, other.account.type); in SyncInfo() 89 parcel.writeParcelable(account, flags); in writeToParcel() 97 account = parcel.readParcelable(Account.class.getClassLoader()); in SyncInfo()
|
D | AbstractThreadedSyncAdapter.java | 159 private Account toSyncKey(Account account) { in toSyncKey() argument 161 return account; in toSyncKey() 169 public void startSync(ISyncContext syncContext, String authority, Account account, in startSync() argument 175 Log.d(TAG, "startSync() start " + authority + " " + account + " " + extras); in startSync() 183 final Account threadsKey = toSyncKey(account); in startSync() 191 if (ContentResolver.getIsSyncable(account, authority) < 0) { in startSync() 192 ContentResolver.setIsSyncable(account, authority, 1); in startSync() 201 syncContextClient, authority, account, extras); in startSync() 284 Account account, Bundle extras) { in SyncThread() argument 288 mAccount = account; in SyncThread() [all …]
|
D | ContentResolver.java | 2166 Account account = null; in startSync() local 2171 account = new Account(accountName, "com.google"); in startSync() 2175 requestSync(account, uri != null ? uri.getAuthority() : null, extras); in startSync() 2197 public static void requestSync(Account account, String authority, Bundle extras) { in requestSync() argument 2198 requestSyncAsUser(account, authority, UserHandle.myUserId(), extras); in requestSync() 2205 public static void requestSyncAsUser(Account account, String authority, @UserIdInt int userId, in requestSyncAsUser() argument 2212 .setSyncAdapter(account, authority) in requestSyncAsUser() 2291 public static void cancelSync(Account account, String authority) { in cancelSync() argument 2293 getContentService().cancelSync(account, authority, null); in cancelSync() 2302 public static void cancelSyncAsUser(Account account, String authority, @UserIdInt int userId) { in cancelSyncAsUser() argument [all …]
|
/frameworks/base/services/core/java/com/android/server/accounts/ |
D | AccountManagerService.java | 397 for (Account account : accounts) { in AccountManagerService() 399 account, uid, packageName, true); in AccountManagerService() 412 for (Account account : accounts) { in cancelAccountAccessRequestNotificationIfNeeded() 413 cancelAccountAccessRequestNotificationIfNeeded(account, uid, checkAccess); in cancelAccountAccessRequestNotificationIfNeeded() 420 for (Account account : accounts) { in cancelAccountAccessRequestNotificationIfNeeded() 421 cancelAccountAccessRequestNotificationIfNeeded(account, uid, packageName, checkAccess); in cancelAccountAccessRequestNotificationIfNeeded() 425 private void cancelAccountAccessRequestNotificationIfNeeded(Account account, int uid, in cancelAccountAccessRequestNotificationIfNeeded() argument 430 cancelAccountAccessRequestNotificationIfNeeded(account, uid, in cancelAccountAccessRequestNotificationIfNeeded() 436 private void cancelAccountAccessRequestNotificationIfNeeded(Account account, in cancelAccountAccessRequestNotificationIfNeeded() argument 438 if (!checkAccess || hasAccountAccess(account, packageName, in cancelAccountAccessRequestNotificationIfNeeded() [all …]
|
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() 142 mTokenEvictors.put(new Pair<>(k.account.type, v.token), tokenEvictor); in putToken() 145 Evictor accountEvictor = mAccountEvictors.get(k.account); in putToken() 150 mAccountEvictors.put(k.account, tokenEvictor); in putToken() 164 public void evict(Account account) { in evict() argument 165 Evictor evictor = mAccountEvictors.get(account); in evict() [all …]
|
D | AccountsDb.java | 335 Map<String, String> findAuthTokensByAccount(Account account) { in findAuthTokensByAccount() argument 341 new String[] {account.name, account.type}, in findAuthTokensByAccount() 438 Map<String, String> findUserExtrasForAccount(Account account) { in findUserExtrasForAccount() argument 441 String[] selectionArgs = {account.name, account.type}; in findUserExtrasForAccount() 456 long findCeAccountId(Account account) { in findCeAccountId() argument 460 String[] selectionArgs = {account.name, account.type}; in findCeAccountId() 484 long insertCeAccount(Account account, String password) { in insertCeAccount() argument 487 values.put(ACCOUNTS_NAME, account.name); in insertCeAccount() 488 values.put(ACCOUNTS_TYPE, account.type); in insertCeAccount() 683 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 | 524 public static byte[] get(ContentProviderClient provider, Account account) in get() argument 526 return SyncStateContract.Helpers.get(provider, CONTENT_URI, account); in get() 532 public static Pair<Uri, byte[]> getWithUri(ContentProviderClient provider, Account account) in getWithUri() argument 534 return SyncStateContract.Helpers.getWithUri(provider, CONTENT_URI, account); in getWithUri() 540 public static void set(ContentProviderClient provider, Account account, byte[] data) in set() argument 542 SyncStateContract.Helpers.set(provider, CONTENT_URI, account, data); in set() 548 public static ContentProviderOperation newSetOperation(Account account, byte[] data) { in newSetOperation() argument 549 return SyncStateContract.Helpers.newSetOperation(CONTENT_URI, account, data); in newSetOperation()
|
/frameworks/base/services/core/java/com/android/server/content/ |
D | SyncOperation.java | 101 public SyncOperation(Account account, int userId, int owningUid, String owningPackage, in SyncOperation() argument 104 this(new SyncStorageEngine.EndPoint(account, provider, userId), owningUid, owningPackage, in SyncOperation() 187 Account account = (Account) value; in toJobInfoExtras() local 189 accountBundle.putString("accountName", account.name); in toJobInfoExtras() 190 accountBundle.putString("accountType", account.type); in toJobInfoExtras() 217 jobInfoExtras.putString("accountName", target.account.name); in toJobInfoExtras() 218 jobInfoExtras.putString("accountType", target.account.type); in toJobInfoExtras() 281 Account account = new Account(accountsBundle.getString("accountName"), in maybeCreateFromJobExtras() local 283 extras.putParcelable(newKey, account); in maybeCreateFromJobExtras() 287 Account account = new Account(accountName, accountType); in maybeCreateFromJobExtras() local [all …]
|
D | ContentService.java | 503 public void requestSync(Account account, String authority, Bundle extras) { in requestSync() argument 515 syncManager.scheduleSync(account, userId, uId, authority, extras, in requestSync() 599 public void cancelSync(Account account, String authority, ComponentName cname) { in cancelSync() argument 600 cancelSyncAsUser(account, authority, cname, UserHandle.getCallingUserId()); in cancelSync() 617 public void cancelSyncAsUser(Account account, String authority, ComponentName cname, in cancelSyncAsUser() argument 635 info = new SyncStorageEngine.EndPoint(account, authority, userId); in cancelSyncAsUser() 655 Account account = request.getAccount(); in cancelRequest() local 657 info = new SyncStorageEngine.EndPoint(account, provider, userId); in cancelRequest() 721 public boolean getSyncAutomatically(Account account, String providerName) { in getSyncAutomatically() argument 722 return getSyncAutomaticallyAsUser(account, providerName, UserHandle.getCallingUserId()); in getSyncAutomatically() [all …]
|
D | SyncManager.java | 345 private boolean containsAccountAndUser(AccountAndUser[] accounts, Account account, int userId) { in containsAccountAndUser() argument 349 && accounts[i].account.equals(account)) { in containsAccountAndUser() 573 scheduleSync(info.account, info.userId, reason, info.provider, extras, in SyncManager() 647 mAccountManagerInternal.addOnAppPermissionChangeListener((Account account, int uid) -> { in SyncManager() argument 649 if (mAccountManagerInternal.hasAccountAccess(account, uid)) { in SyncManager() 650 scheduleSync(account, UserHandle.getUserId(uid), in SyncManager() 762 for (Account account : mAccountManager.getAccountsByTypeAsUser( in whiteListExistingSyncAdaptersIfNeeded() 764 if (!canAccessAccount(account, packageName, userId)) { in whiteListExistingSyncAdaptersIfNeeded() 765 mAccountManager.updateAppPermission(account, in whiteListExistingSyncAdaptersIfNeeded() 795 private int getIsSyncable(Account account, int userId, String providerName) { in getIsSyncable() argument [all …]
|
D | SyncStorageEngine.java | 167 final Account account; field in SyncStorageEngine.EndPoint 171 public EndPoint(Account account, String provider, int userId) { in EndPoint() argument 172 this.account = account; in EndPoint() 190 if (spec.account == null) { in matchesSpec() 193 accountsMatch = account.equals(spec.account); in matchesSpec() 206 sb.append(account == null ? "ALL ACCS" : account.name) in toString() 374 boolean isAccountValid(Account account, int userId) { in isAccountValid() argument 380 return ArrayUtils.contains(accountsForUser, account); in isAccountValid() 615 public boolean getSyncAutomatically(Account account, int userId, String providerName) { in getSyncAutomatically() argument 617 if (account != null) { in getSyncAutomatically() [all …]
|
/frameworks/base/core/java/com/android/server/backup/ |
D | AccountSyncSettingsBackupHelper.java | 152 for (Account account : accounts) { in serializeAccountSyncSettingsToJSON() 153 List<String> authorities = accountTypeToAuthorities.get(account.type); in serializeAccountSyncSettingsToJSON() 162 accountJSON.put(KEY_ACCOUNT_NAME, account.name); in serializeAccountSyncSettingsToJSON() 163 accountJSON.put(KEY_ACCOUNT_TYPE, account.type); in serializeAccountSyncSettingsToJSON() 168 int syncState = ContentResolver.getIsSyncable(account, authority); in serializeAccountSyncSettingsToJSON() 169 boolean syncEnabled = ContentResolver.getSyncAutomatically(account, authority); in serializeAccountSyncSettingsToJSON() 284 Account account = null; in restoreFromJsonArray() local 286 account = new Account(accountName, accountType); in restoreFromJsonArray() 293 if (currentAccounts.contains(account)) { in restoreFromJsonArray() 359 for (Account account : accounts) { in getAccounts() [all …]
|