Home
last modified time | relevance | path

Searched refs:Fixtures (Results 1 – 12 of 12) sorted by relevance

/cts/tests/tests/accounts/src/android/accounts/cts/
DAccountManagerUnaffiliatedAuthenticatorTests.java25 import android.accounts.cts.common.Fixtures;
71 Fixtures.ACCOUNT_UNAFFILIATED_FIXTURE_SUCCESS); in testNotifyAccountAuthenticated()
79 Fixtures.TYPE_STANDARD_UNAFFILIATED, in testEditProperties()
92 Fixtures.ACCOUNT_UNAFFILIATED_FIXTURE_SUCCESS, in testAddAccountExplicitly()
102 Fixtures.ACCOUNT_UNAFFILIATED_FIXTURE_SUCCESS, in testRemoveAccount_withBooleanResult()
112 Fixtures.ACCOUNT_UNAFFILIATED_FIXTURE_SUCCESS, in testRemoveAccount_withBundleResult()
123 Fixtures.ACCOUNT_UNAFFILIATED_FIXTURE_SUCCESS); in testRemoveAccountExplicitly()
131 Fixtures.ACCOUNT_UNAFFILIATED_FIXTURE_SUCCESS); in testGetPassword()
139 Fixtures.ACCOUNT_UNAFFILIATED_FIXTURE_SUCCESS, in testSetPassword()
148 Fixtures.ACCOUNT_UNAFFILIATED_FIXTURE_SUCCESS); in testClearPassword()
[all …]
DAbstractAuthenticatorTests.java25 import android.accounts.cts.common.Fixtures;
77 String accountName = Fixtures.PREFIX_NAME_SUCCESS + "@" + Fixtures.SUFFIX_NAME_FIXTURE; in testStartAddAccountSessionDefaultImpl()
78 options.putString(Fixtures.KEY_ACCOUNT_NAME, accountName); in testStartAddAccountSessionDefaultImpl()
81 Fixtures.TYPE_DEFAULT, in testStartAddAccountSessionDefaultImpl()
113 String accountName = Fixtures.PREFIX_NAME_SUCCESS + "@" + Fixtures.SUFFIX_NAME_FIXTURE; in testStartUpdateCredentialsSessionDefaultImpl()
114 options.putString(Fixtures.KEY_ACCOUNT_NAME, accountName); in testStartUpdateCredentialsSessionDefaultImpl()
117 Fixtures.ACCOUNT_DEFAULT, in testStartUpdateCredentialsSessionDefaultImpl()
139 assertNull(sessionBundle.getString(Fixtures.KEY_ACCOUNT_NAME)); in testStartUpdateCredentialsSessionDefaultImpl()
151 String accountName = Fixtures.PREFIX_NAME_SUCCESS + "@" + Fixtures.SUFFIX_NAME_FIXTURE; in testFinishSessionAndStartAddAccountSessionDefaultImpl()
152 options.putString(Fixtures.KEY_ACCOUNT_NAME, accountName); in testFinishSessionAndStartAddAccountSessionDefaultImpl()
[all …]
DMockAccountAuthenticator.java24 import android.accounts.cts.common.Fixtures;
347 accountName = options.getString(Fixtures.KEY_ACCOUNT_NAME); in startAddAccountSession()
348 sessionBundle = options.getBundle(Fixtures.KEY_ACCOUNT_SESSION_BUNDLE); in startAddAccountSession()
352 if (accountName.startsWith(Fixtures.PREFIX_NAME_SUCCESS)) { in startAddAccountSession()
360 } else if (accountName.startsWith(Fixtures.PREFIX_NAME_INTERVENE)) { in startAddAccountSession()
373 intent.putExtra(Fixtures.KEY_RESULT, eventualActivityResultData); in startAddAccountSession()
374 intent.putExtra(Fixtures.KEY_CALLBACK, response); in startAddAccountSession()
401 accountName = options.getString(Fixtures.KEY_ACCOUNT_NAME); in startUpdateCredentialsSession()
402 sessionBundle = options.getBundle(Fixtures.KEY_ACCOUNT_SESSION_BUNDLE); in startUpdateCredentialsSession()
406 if (accountName.startsWith(Fixtures.PREFIX_NAME_SUCCESS)) { in startUpdateCredentialsSession()
[all …]
DAccountManagerTest.java27 import android.accounts.cts.common.Fixtures;
2357 final String accountName = Fixtures.PREFIX_NAME_SUCCESS + "@"
2358 + Fixtures.SUFFIX_NAME_FIXTURE;
2387 final String accountName = Fixtures.PREFIX_NAME_SUCCESS + "@"
2388 + Fixtures.SUFFIX_NAME_FIXTURE;
2389 options.putString(Fixtures.KEY_ACCOUNT_NAME, accountName);
2421 final String accountName = Fixtures.PREFIX_NAME_SUCCESS + "@"
2422 + Fixtures.SUFFIX_NAME_FIXTURE;
2423 options.putString(Fixtures.KEY_ACCOUNT_NAME, accountName);
2424 options.putBundle(Fixtures.KEY_ACCOUNT_SESSION_BUNDLE, new Bundle());
[all …]
DAccountAuthenticatorDummyActivity.java4 import android.accounts.cts.common.Fixtures;
19 AccountAuthenticatorResponse response = intent.getParcelableExtra(Fixtures.KEY_CALLBACK); in onCreate()
20 Intent result = intent.getParcelableExtra(Fixtures.KEY_RESULT); in onCreate()
/cts/tests/tests/accounts/common/src/android/accounts/cts/common/
DTestAccountAuthenticator.java71 accountName = options.getString(Fixtures.KEY_ACCOUNT_NAME); in addAccount()
72 isCallbackRequired = options.getBoolean(Fixtures.KEY_CALLBACK_REQUIRED, false); in addAccount()
77 if (accountName.startsWith(Fixtures.PREFIX_NAME_SUCCESS)) { in addAccount()
81 } else if (accountName.startsWith(Fixtures.PREFIX_NAME_INTERVENE)) { in addAccount()
88 intent.putExtra(Fixtures.KEY_RESULT, eventualActivityResultData); in addAccount()
89 intent.putExtra(Fixtures.KEY_CALLBACK, response); in addAccount()
119 options != null && options.getBoolean(Fixtures.KEY_CALLBACK_REQUIRED); in confirmCredentials()
120 if (account.name.startsWith(Fixtures.PREFIX_NAME_SUCCESS)) { in confirmCredentials()
125 } else if (account.name.startsWith(Fixtures.PREFIX_NAME_INTERVENE)) { in confirmCredentials()
134 intent.putExtra(Fixtures.KEY_RESULT, eventualActivityResultData); in confirmCredentials()
[all …]
DTestDefaultAuthenticator.java63 accountName = options.getString(Fixtures.KEY_ACCOUNT_NAME); in addAccount()
65 accountName = Fixtures.PREFIX_NAME_SUCCESS + "@" in addAccount()
66 + Fixtures.SUFFIX_NAME_FIXTURE; in addAccount()
DTestAuthenticatorActivity.java30 AccountAuthenticatorResponse response = intent.getParcelableExtra(Fixtures.KEY_CALLBACK); in onCreate()
31 Intent result = intent.getParcelableExtra(Fixtures.KEY_RESULT); in onCreate()
DFixtures.java27 public final class Fixtures { class
83 private Fixtures() {} in Fixtures() method in Fixtures
DAuthenticatorContentProvider.java89 for (String name : Fixtures.getFixtureAccountNames()) { in setup()
91 am.addAccountExplicitly(account, Fixtures.PREFIX_PASSWORD + name, null); in setup()
/cts/tests/tests/accounts/CtsUnaffiliatedAccountAuthenticators/src/android/accounts/cts/unaffiliated/
DStdAccountAuthService.java19 import android.accounts.cts.common.Fixtures;
33 new TestAccountAuthenticator(this, Fixtures.TYPE_STANDARD_UNAFFILIATED); in onBind()
DDefaultAccountAuthService.java19 import android.accounts.cts.common.Fixtures;
33 new TestDefaultAuthenticator(this, Fixtures.TYPE_DEFAULT); in onBind()