Home
last modified time | relevance | path

Searched refs:accountName (Results 1 – 21 of 21) 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.java2575 String accountName = null;
2579 accountName = result.getString(AccountManager.KEY_ACCOUNT_NAME);
2592 if (accountName == null) {
2614 Account account = new Account(accountName, accountType);
2632 final String accountName = result.getString(KEY_ACCOUNT_NAME);
2634 if (TextUtils.isEmpty(accountName) || TextUtils.isEmpty(accountType)) {
2639 final Account account = new Account(accountName, accountType, accessId);
/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/base/core/java/android/os/
DIUserManager.aidl65 void setUserAccount(int userHandle, String accountName); in setUserAccount() argument
86 void setSeedAccountData(int userHandle, in String accountName, in setSeedAccountData() argument
92 boolean someUserHasSeedAccount(in String accountName, in String accountType); in someUserHasSeedAccount() argument
DUserManager.java2166 @Nullable String accountName, in createUserCreationIntent() argument
2172 if (accountName != null && accountType == null) { in createUserCreationIntent()
2176 if (accountName != null) { in createUserCreationIntent()
2177 intent.putExtra(EXTRA_USER_ACCOUNT_NAME, accountName); in createUserCreationIntent()
2245 public void setSeedAccountData(int userId, String accountName, String accountType, in setSeedAccountData() argument
2248 mService.setSeedAccountData(userId, accountName, accountType, accountOptions, in setSeedAccountData()
2409 public void setUserAccount(@UserIdInt int userHandle, @Nullable String accountName) { in setUserAccount() argument
2411 mService.setUserAccount(userHandle, accountName); in setUserAccount()
3139 public boolean someUserHasSeedAccount(String accountName, String accountType) { in someUserHasSeedAccount() argument
3141 return mService.someUserHasSeedAccount(accountName, accountType); in someUserHasSeedAccount()
/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/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/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.java2416 String accountName = cursor.getString(1); in invalidateAuthTokenLocked() local
2419 results.add(Pair.create(new Account(accountName, accountType), authTokenType)); in invalidateAuthTokenLocked()
3367 String accountName, in StartAccountSession() argument
3372 true /* stripAuthTokenFromResult */, accountName, authDetailsRequired, in StartAccountSession()
4693 boolean expectActivityLaunch, boolean stripAuthTokenFromResult, String accountName,
4696 accountName, authDetailsRequired, false /* updateLastAuthenticatedTime */);
4700 boolean expectActivityLaunch, boolean stripAuthTokenFromResult, String accountName,
4711 mAccountName = accountName;
4932 String accountName = result.getString(AccountManager.KEY_ACCOUNT_NAME);
4934 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.java610 public void setUserAccount(int userId, String accountName) { in setUserAccount() argument
621 if (!Objects.equals(currentAccount, accountName)) { in setUserAccount()
622 userData.account = accountName; in setUserAccount()
3554 public void setSeedAccountData(int userId, String accountName, String accountType, in setSeedAccountData() argument
3565 userData.seedAccountName = accountName; in setSeedAccountData()
3618 public boolean someUserHasSeedAccount(String accountName, String accountType) in someUserHasSeedAccount() argument
3626 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/api/
Dcurrent.txt37697 field public static final String ACCOUNT_NAME = "accountName";