Home
last modified time | relevance | path

Searched refs:accountName (Results 1 – 22 of 22) sorted by relevance

/frameworks/base/services/tests/servicestests/src/com/android/server/accounts/
DTestAccountType1Authenticator.java69 String accountName = null; in addAccount() local
72 accountName = options.getString(AccountManagerServiceTestFixtures.KEY_ACCOUNT_NAME); in addAccount()
76 if (accountName.equals(AccountManagerServiceTestFixtures.ACCOUNT_NAME_SUCCESS)) { in addAccount()
78 result.putString(AccountManager.KEY_ACCOUNT_NAME, accountName); in addAccount()
83 } else if (accountName.equals( in addAccount()
87 eventualActivityResultData.putExtra(AccountManager.KEY_ACCOUNT_NAME, accountName); in addAccount()
270 String accountName = null; in startAddAccountSession() local
274 accountName = options.getString(AccountManagerServiceTestFixtures.KEY_ACCOUNT_NAME); in startAddAccountSession()
281 if (accountName.equals(AccountManagerServiceTestFixtures.ACCOUNT_NAME_SUCCESS)) { in startAddAccountSession()
289 } else if (accountName.equals( in startAddAccountSession()
[all …]
DAccountManagerServiceTest.java2429 String accountName = result.getString(AccountManager.KEY_ACCOUNT_NAME); in testGetAccountByTypeAndFeaturesWithNoFeaturesAndNoAccount() local
2431 assertEquals(null, accountName); in testGetAccountByTypeAndFeaturesWithNoFeaturesAndNoAccount()
2447 String accountName = result.getString(AccountManager.KEY_ACCOUNT_NAME); in testGetAccountByTypeAndFeaturesWithNoFeaturesAndOneVisibleAccount() local
2449 assertEquals(AccountManagerServiceTestFixtures.ACCOUNT_NAME_SUCCESS, accountName); in testGetAccountByTypeAndFeaturesWithNoFeaturesAndOneVisibleAccount()
2510 String accountName = result.getString(AccountManager.KEY_ACCOUNT_NAME); in testGetAccountByTypeAndFeaturesWithFeaturesAndNoAccount() local
2512 assertEquals(null, accountName); in testGetAccountByTypeAndFeaturesWithFeaturesAndNoAccount()
2530 String accountName = result.getString(AccountManager.KEY_ACCOUNT_NAME); in testGetAccountByTypeAndFeaturesWithFeaturesAndNoQualifiedAccount() local
2532 assertEquals(null, accountName); in testGetAccountByTypeAndFeaturesWithFeaturesAndNoQualifiedAccount()
2551 String accountName = result.getString(AccountManager.KEY_ACCOUNT_NAME); in testGetAccountByTypeAndFeaturesWithFeaturesAndOneQualifiedAccount() local
2553 assertEquals(AccountManagerServiceTestFixtures.ACCOUNT_NAME_SUCCESS, accountName); in testGetAccountByTypeAndFeaturesWithFeaturesAndOneQualifiedAccount()
[all …]
/frameworks/base/core/java/android/accounts/
DChooseTypeAndAccountActivity.java343 String accountName = null; in onActivityResult() local
347 accountName = data.getStringExtra(AccountManager.KEY_ACCOUNT_NAME); in onActivityResult()
351 if (accountName == null || accountType == null) { in onActivityResult()
362 accountName = account.name; 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
443 Account account = new Account(accountName, accountType); in setResultAndFinish()
459 bundle.putString(AccountManager.KEY_ACCOUNT_NAME, accountName); in setResultAndFinish()
464 + accountName + ", " + accountType); in setResultAndFinish()
DAccountManager.java2579 String accountName = null;
2583 accountName = result.getString(AccountManager.KEY_ACCOUNT_NAME);
2596 if (accountName == null) {
2618 Account account = new Account(accountName, accountType);
2636 final String accountName = result.getString(KEY_ACCOUNT_NAME);
2638 if (TextUtils.isEmpty(accountName) || TextUtils.isEmpty(accountType)) {
2643 final Account account = new Account(accountName, accountType, accessId);
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/
DUserManagerServiceTest.java72 String accountName = "Test Account"; in testAddUserWithAccount() local
73 um.setUserAccount(tempUserId, accountName); in testAddUserWithAccount()
74 assertEquals(accountName, um.getUserAccount(tempUserId)); in testAddUserWithAccount()
/frameworks/base/test-runner/src/android/test/
DSyncBaseInstrumentation.java53 protected void syncProvider(Uri uri, String accountName, String authority) throws Exception { in syncProvider() argument
56 Account account = new Account(accountName, "com.google"); in syncProvider()
/frameworks/ex/common/java/com/android/common/content/
DSyncStateContentProviderHelper.java117 final String accountName = c.getString(0); 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/
DIUserManager.aidl66 void setUserAccount(int userHandle, String accountName); in setUserAccount() argument
87 void setSeedAccountData(int userHandle, in String accountName, in setSeedAccountData() argument
93 boolean someUserHasSeedAccount(in String accountName, in String accountType); in someUserHasSeedAccount() argument
DUserManager.java2220 @Nullable String accountName, in createUserCreationIntent() argument
2226 if (accountName != null && accountType == null) { in createUserCreationIntent()
2230 if (accountName != null) { in createUserCreationIntent()
2231 intent.putExtra(EXTRA_USER_ACCOUNT_NAME, accountName); in createUserCreationIntent()
2299 public void setSeedAccountData(int userId, String accountName, String accountType, in setSeedAccountData() argument
2302 mService.setSeedAccountData(userId, accountName, accountType, accountOptions, in setSeedAccountData()
2472 public void setUserAccount(@UserIdInt int userHandle, @Nullable String accountName) { in setUserAccount() argument
2474 mService.setUserAccount(userHandle, accountName); in setUserAccount()
3199 public boolean someUserHasSeedAccount(String accountName, String accountType) { in someUserHasSeedAccount() argument
3201 return mService.someUserHasSeedAccount(accountName, accountType); in someUserHasSeedAccount()
/frameworks/base/core/java/com/android/server/backup/
DAccountSyncSettingsBackupHelper.java287 String accountName = accountJSON.getString(KEY_ACCOUNT_NAME); in restoreFromJsonArray() local
292 account = new Account(accountName, accountType); in restoreFromJsonArray()
300 if (DEBUG) Log.i(TAG, "Restoring Sync Settings for" + accountName); in restoreFromJsonArray()
407 String accountName = accountJSON.getString(KEY_ACCOUNT_NAME); in restoreExistingAccountSyncSettingsFromJSON() local
410 final Account account = new Account(accountName, accountType); in restoreExistingAccountSyncSettingsFromJSON()
/frameworks/base/services/core/java/com/android/server/accounts/
DAccountsDb.java826 final String accountName = cursor.getString(2); in findAllDeAccounts() local
828 final Account account = new Account(accountName, accountType); in findAllDeAccounts()
1013 String accountName = cursor.getString(2); in findAllVisibilityValues() local
1015 Account account = new Account(accountName, accountType); in findAllVisibilityValues()
1098 final String accountName = cursor.getString(0); in findAllAccountGrants() local
1100 results.add(Pair.create(accountName, uid)); in findAllAccountGrants()
1257 String accountName = cursor.getString(0); in findCeAccountsNotInDe() local
1259 accounts.add(new Account(accountName, accountType)); in findCeAccountsNotInDe()
DAccountManagerBackupHelper.java174 final String accountName = grant.first; in backupAccountAccessPermissions() local
197 PackageUtils.computeSha256Digest(accountName.getBytes())); in backupAccountAccessPermissions()
DAccountManagerService.java2443 String accountName = cursor.getString(1); in invalidateAuthTokenLocked() local
2446 results.add(Pair.create(new Account(accountName, accountType), authTokenType)); in invalidateAuthTokenLocked()
3394 String accountName, in StartAccountSession() argument
3399 true /* stripAuthTokenFromResult */, accountName, authDetailsRequired, in StartAccountSession()
4717 boolean expectActivityLaunch, boolean stripAuthTokenFromResult, String accountName,
4720 accountName, authDetailsRequired, false /* updateLastAuthenticatedTime */);
4724 boolean expectActivityLaunch, boolean stripAuthTokenFromResult, String accountName,
4735 mAccountName = accountName;
4956 String accountName = result.getString(AccountManager.KEY_ACCOUNT_NAME);
4958 if (!TextUtils.isEmpty(accountName) && !TextUtils.isEmpty(accountType)) {
[all …]
/frameworks/ex/common/java/com/android/common/contacts/
DBaseEmailAddressAdapter.java102 public String accountName; field in BaseEmailAddressAdapter.DirectoryPartition
384 partition.accountName = directoryCursor.getString(DirectoryListQuery.ACCOUNT_NAME); in onDirectoryLoadFinished()
406 if (mAccount != null && mAccount.name.equals(partition.accountName) && in onDirectoryLoadFinished()
/frameworks/base/services/core/java/com/android/server/content/
DSyncOperation.java251 String accountName, accountType; in maybeCreateFromJobExtras() local
266 accountName = jobExtras.getString("accountName"); in maybeCreateFromJobExtras()
298 Account account = new Account(accountName, accountType); in maybeCreateFromJobExtras()
DSyncStorageEngine.java1816 String accountName = parser.getAttributeValue(null, "account"); in parseAuthority() local
1829 + " account=" + accountName in parseAuthority()
1842 if (accountName != null && authorityName != null) { in parseAuthority()
1844 new Account(accountName, accountType), in parseAuthority()
/frameworks/opt/chips/src/com/android/ex/chips/
DBaseRecipientAdapter.java111 public String accountName; field in BaseRecipientAdapter.DirectorySearchParams
729 params.accountName = directoryCursor.getString(DirectoryListQuery.ACCOUNT_NAME); in setupOtherDirectories()
750 && account.name.equals(params.accountName) in setupOtherDirectories()
/frameworks/base/services/core/java/com/android/server/pm/
DUserManagerService.java650 public void setUserAccount(int userId, String accountName) { in setUserAccount() argument
661 if (!Objects.equals(currentAccount, accountName)) { in setUserAccount()
662 userData.account = accountName; in setUserAccount()
3786 public void setSeedAccountData(int userId, String accountName, String accountType, in setSeedAccountData() argument
3797 userData.seedAccountName = accountName; in setSeedAccountData()
3850 public boolean someUserHasSeedAccount(String accountName, String accountType) in someUserHasSeedAccount() argument
3858 if (data.seedAccountName == null || !data.seedAccountName.equals(accountName)) { in someUserHasSeedAccount()
/frameworks/base/core/java/android/content/
DContentResolver.java2542 String accountName = extras.getString(SYNC_EXTRAS_ACCOUNT);
2543 if (!TextUtils.isEmpty(accountName)) {
2545 account = new Account(accountName, "com.google");
/frameworks/opt/setupwizard/tools/docs/
Dandroid-22.txt24401 field public static final java.lang.String ACCOUNT_NAME = "accountName";
/frameworks/base/non-updatable-api/
Dcurrent.txt37999 field public static final String ACCOUNT_NAME = "accountName";
/frameworks/base/api/
Dcurrent.txt38143 field public static final String ACCOUNT_NAME = "accountName";