Home
last modified time | relevance | path

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

/cts/tests/tests/accounts/src/android/accounts/cts/
DAbstractAuthenticatorTests.java77 String accountName = Fixtures.PREFIX_NAME_SUCCESS + "@" + Fixtures.SUFFIX_NAME_FIXTURE; in testStartAddAccountSessionDefaultImpl() local
78 options.putString(Fixtures.KEY_ACCOUNT_NAME, accountName); in testStartAddAccountSessionDefaultImpl()
113 String accountName = Fixtures.PREFIX_NAME_SUCCESS + "@" + Fixtures.SUFFIX_NAME_FIXTURE; in testStartUpdateCredentialsSessionDefaultImpl() local
114 options.putString(Fixtures.KEY_ACCOUNT_NAME, accountName); in testStartUpdateCredentialsSessionDefaultImpl()
151 String accountName = Fixtures.PREFIX_NAME_SUCCESS + "@" + Fixtures.SUFFIX_NAME_FIXTURE; in testFinishSessionAndStartAddAccountSessionDefaultImpl() local
152 options.putString(Fixtures.KEY_ACCOUNT_NAME, accountName); in testFinishSessionAndStartAddAccountSessionDefaultImpl()
202 assertEquals(accountName, addAccountTx.options.getString(Fixtures.KEY_ACCOUNT_NAME)); in testFinishSessionAndStartAddAccountSessionDefaultImpl()
207 assertEquals(accountName, result.get(AccountManager.KEY_ACCOUNT_NAME)); in testFinishSessionAndStartAddAccountSessionDefaultImpl()
221 String accountName = Fixtures.PREFIX_NAME_SUCCESS + "@" + Fixtures.SUFFIX_NAME_FIXTURE; in testFinishSessionAndStartUpdateCredentialsSessionDefaultImpl() local
222 options.putString(Fixtures.KEY_ACCOUNT_NAME, accountName); in testFinishSessionAndStartUpdateCredentialsSessionDefaultImpl()
[all …]
DAccountManagerTest.java2357 final String accountName = Fixtures.PREFIX_NAME_SUCCESS + "@"
2359 final Bundle options = createOptionsWithAccountName(accountName);
2371 validateStartAddAccountSessionParametersAndOptions(accountName, options);
2387 final String accountName = Fixtures.PREFIX_NAME_SUCCESS + "@"
2389 options.putString(Fixtures.KEY_ACCOUNT_NAME, accountName);
2402 validateStartAddAccountSessionParametersAndOptions(accountName, options);
2421 final String accountName = Fixtures.PREFIX_NAME_SUCCESS + "@"
2423 options.putString(Fixtures.KEY_ACCOUNT_NAME, accountName);
2437 validateStartAddAccountSessionParametersAndOptions(accountName, options);
2456 final String accountName = Fixtures.PREFIX_NAME_INTERVENE + "@"
[all …]
DAccountManagerUnaffiliatedAuthenticatorTests.java282 String accountName = Fixtures.PREFIX_NAME_SUCCESS + "@" + Fixtures.SUFFIX_NAME_FIXTURE; in testStartAddAccountSession() local
283 Bundle options = createOptionsWithAccountName(accountName); in testStartAddAccountSession()
320 String accountName = Fixtures.PREFIX_NAME_SUCCESS + "@" + Fixtures.SUFFIX_NAME_FIXTURE; in testStartUpdateCredentialsSession() local
321 Bundle options = createOptionsWithAccountName(accountName); in testStartUpdateCredentialsSession()
352 String accountName = Fixtures.PREFIX_NAME_SUCCESS + "@" + Fixtures.SUFFIX_NAME_FIXTURE; in testDefaultFinishSessiontWithStartAddAccountSessionImpl() local
356 sessionBundle.putString(Fixtures.KEY_ACCOUNT_NAME, accountName); in testDefaultFinishSessiontWithStartAddAccountSessionImpl()
360 options.putString(Fixtures.KEY_ACCOUNT_NAME, accountName); in testDefaultFinishSessiontWithStartAddAccountSessionImpl()
402 String accountName = Fixtures.PREFIX_NAME_SUCCESS + "@" + Fixtures.SUFFIX_NAME_FIXTURE; in testDefaultFinishSessionWithCustomStartUpdateCredentialsSessionImpl() local
406 sessionBundle.putString(Fixtures.KEY_ACCOUNT_NAME, accountName); in testDefaultFinishSessionWithCustomStartUpdateCredentialsSessionImpl()
410 options.putString(Fixtures.KEY_ACCOUNT_NAME, accountName); in testDefaultFinishSessionWithCustomStartUpdateCredentialsSessionImpl()
[all …]
DMockAccountAuthenticator.java344 String accountName = null; in startAddAccountSession() local
347 accountName = options.getString(Fixtures.KEY_ACCOUNT_NAME); in startAddAccountSession()
352 if (accountName.startsWith(Fixtures.PREFIX_NAME_SUCCESS)) { in startAddAccountSession()
360 } else if (accountName.startsWith(Fixtures.PREFIX_NAME_INTERVENE)) { in startAddAccountSession()
398 String accountName = null; in startUpdateCredentialsSession() local
401 accountName = options.getString(Fixtures.KEY_ACCOUNT_NAME); in startUpdateCredentialsSession()
406 if (accountName.startsWith(Fixtures.PREFIX_NAME_SUCCESS)) { in startUpdateCredentialsSession()
414 } else if (accountName.startsWith(Fixtures.PREFIX_NAME_INTERVENE)) { in startUpdateCredentialsSession()
450 String accountName = null; in finishSession() local
452 accountName = sessionBundle.getString(Fixtures.KEY_ACCOUNT_NAME); in finishSession()
[all …]
/cts/tests/tests/accounts/common/src/android/accounts/cts/common/
DTestAccountAuthenticator.java68 String accountName = null; in addAccount() local
71 accountName = options.getString(Fixtures.KEY_ACCOUNT_NAME); in addAccount()
77 if (accountName.startsWith(Fixtures.PREFIX_NAME_SUCCESS)) { in addAccount()
79 result.putString(AccountManager.KEY_ACCOUNT_NAME, accountName); in addAccount()
81 } else if (accountName.startsWith(Fixtures.PREFIX_NAME_INTERVENE)) { in addAccount()
84 eventualActivityResultData.putExtra(AccountManager.KEY_ACCOUNT_NAME, accountName); in addAccount()
323 String accountName = null; in startAddAccountSession() local
326 accountName = options.getString(Fixtures.KEY_ACCOUNT_NAME); in startAddAccountSession()
331 if (accountName.startsWith(Fixtures.PREFIX_NAME_SUCCESS)) { in startAddAccountSession()
372 String accountName = null; in startUpdateCredentialsSession() local
[all …]
DTestDefaultAuthenticator.java61 String accountName = null; in addAccount() local
63 accountName = options.getString(Fixtures.KEY_ACCOUNT_NAME); in addAccount()
65 accountName = Fixtures.PREFIX_NAME_SUCCESS + "@" in addAccount()
70 result.putString(AccountManager.KEY_ACCOUNT_NAME, accountName); in addAccount()
/cts/tests/tests/content/SyncAccountAccessStubs/src/com/android/cts/stub/
DStubAuthenticator.java64 String accountName = "foo" + sNumAccountsAdded; in addAccount() local
67 accountManager.addAccountExplicitly(new Account(accountName, accountType), "bar", null); in addAccount()
70 result.putString(AccountManager.KEY_ACCOUNT_NAME, accountName); in addAccount()
/cts/tests/tests/provider/src/android/provider/cts/contacts/
DDummyGalProvider.java167 final String accountName = uri.getQueryParameter(RawContacts.ACCOUNT_NAME); in handleFilter() local
175 if (!ACCOUNT_NAME.equals(accountName)) { in handleFilter()
177 ACCOUNT_NAME, accountName)); in handleFilter()
/cts/hostsidetests/devicepolicy/app/AccountManagement/src/com/android/cts/devicepolicy/accountmanagement/
DAccountManagementTest.java83 String accountName = result.getString(AccountManager.KEY_ACCOUNT_NAME); in testAddAccount_allowed() local
87 Account account = new Account(accountName, accountType); in testAddAccount_allowed()
/cts/tests/tests/provider/src/android/provider/cts/
DCalendarTest.java699 public static long addColor(ContentResolver resolver, String accountName, in addColor() argument
701 Uri uri = asSyncAdapter(Colors.CONTENT_URI, accountName, accountType); in addColor()
716 public static Cursor findColorByIndex(ContentResolver resolver, String accountName, in findColorByIndex() argument
720 new String[] {accountName, accountType, index}, null); in findColorByIndex()
723 public static Cursor findColorsByAccount(ContentResolver resolver, String accountName, in findColorsByAccount() argument
726 new String[] { accountName, accountType }, null); in findColorsByAccount()
736 String accountName, String accountType) { in addDefaultColorsToAccount() argument
738 long id = addColor(resolver, accountName, accountType, null, DEFAULT_INDICES[i], in addDefaultColorsToAccount()
747 public static void deleteColorsByAccount(ContentResolver resolver, String accountName, in deleteColorsByAccount() argument
749 Uri uri = asSyncAdapter(Colors.CONTENT_URI, accountName, accountType); in deleteColorsByAccount()
[all …]