Home
last modified time | relevance | path

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

/cts/hostsidetests/devicepolicy/app/AccountManagement/src/com/android/cts/devicepolicy/accountmanagement/
DAccountManagementTest.java41 MockAccountAuthenticator.ACCOUNT_TYPE);
54 assertEquals(0, mAccountManager.getAccountsByType(MockAccountAuthenticator.ACCOUNT_TYPE) in tearDown()
61 assertEquals(0, mAccountManager.getAccountsByType(MockAccountAuthenticator.ACCOUNT_TYPE) in testAddAccount_blocked()
65 mAccountManager.addAccount(MockAccountAuthenticator.ACCOUNT_TYPE, in testAddAccount_blocked()
71 assertEquals(0, mAccountManager.getAccountsByType(MockAccountAuthenticator.ACCOUNT_TYPE) in testAddAccount_blocked()
76 Bundle result = mAccountManager.addAccount(MockAccountAuthenticator.ACCOUNT_TYPE, in testAddAccount_allowed()
84 assertEquals(MockAccountAuthenticator.ACCOUNT_TYPE, accountType); in testAddAccount_allowed()
89 assertEquals(MockAccountAuthenticator.AUTH_TOKEN, authToken); in testAddAccount_allowed()
94 assertEquals(0, mAccountManager.getAccountsByType(MockAccountAuthenticator.ACCOUNT_TYPE) in testRemoveAccount_blocked()
99 assertEquals(1, mAccountManager.getAccountsByType(MockAccountAuthenticator.ACCOUNT_TYPE) in testRemoveAccount_blocked()
[all …]
DAccountUtilsTest.java42 MockAccountAuthenticator.ACCOUNT_TYPE);
53 assertEquals(0, mAccountManager.getAccountsByType(MockAccountAuthenticator.ACCOUNT_TYPE) in testAddAccountExplicitly()
56 assertEquals(1, mAccountManager.getAccountsByType(MockAccountAuthenticator.ACCOUNT_TYPE) in testAddAccountExplicitly()
61 assertEquals(1, mAccountManager.getAccountsByType(MockAccountAuthenticator.ACCOUNT_TYPE) in testRemoveAccountExplicitly()
64 assertEquals(0, mAccountManager.getAccountsByType(MockAccountAuthenticator.ACCOUNT_TYPE) in testRemoveAccountExplicitly()
DMockAccountAuthenticator.java27 /* package */ class MockAccountAuthenticator extends AbstractAccountAuthenticator { class
28 private static MockAccountAuthenticator sMockAuthenticator = null;
36 private MockAccountAuthenticator(Context context) { in MockAccountAuthenticator() method in MockAccountAuthenticator
95 public static synchronized MockAccountAuthenticator getMockAuthenticator(Context context) { in getMockAuthenticator()
97 sMockAuthenticator = new MockAccountAuthenticator(context); in getMockAuthenticator()
DMockAccountService.java30 return MockAccountAuthenticator.getMockAuthenticator(this).getIBinder(); in onBind()
/cts/tests/tests/content/src/android/content/cts/
DMockAccountAuthenticator.java27 public class MockAccountAuthenticator extends AbstractAccountAuthenticator { class
29 private static MockAccountAuthenticator sMockAuthenticator = null;
36 public MockAccountAuthenticator(Context context) { in MockAccountAuthenticator() method in MockAccountAuthenticator
96 public static synchronized MockAccountAuthenticator getMockAuthenticator(Context context) { in getMockAuthenticator()
98 sMockAuthenticator = new MockAccountAuthenticator(context); in getMockAuthenticator()
DContentResolverSyncTestCase.java44 private static final Account ACCOUNT = new Account(MockAccountAuthenticator.ACCOUNT_NAME,
45 MockAccountAuthenticator.ACCOUNT_TYPE);
78 public static synchronized MockAccountAuthenticator getMockAuthenticator(Context context) { in getMockAuthenticator()
79 return MockAccountAuthenticator.getMockAuthenticator(context); in getMockAuthenticator()
189 MockAccountAuthenticator.ACCOUNT_PASSWORD, in testRequestSync()
220 MockAccountAuthenticator.ACCOUNT_PASSWORD, in testCancelSync()
280 … addAccountExplicitly(ACCOUNT, MockAccountAuthenticator.ACCOUNT_PASSWORD, null /* userData */); in testGetAndSetIsSyncable()
309 if (MockAccountAuthenticator.ACCOUNT_TYPE.equals(type.accountType) &&
340 extras.putString("String", MockAccountAuthenticator.ACCOUNT_NAME);
363 MockAccountAuthenticator.ACCOUNT_PASSWORD,
DMockAccountService.java30 return MockAccountAuthenticator.getMockAuthenticator(this).getIBinder(); in onBind()
/cts/tests/tests/accounts/src/android/accounts/cts/
DAccountRemovalDummyActivity.java42 .getParcelable(MockAccountAuthenticator.KEY_ACCOUNT_AUTHENTICATOR_RESPONSE); in onCreate()
DMockAccountAuthenticator.java37 public class MockAccountAuthenticator extends AbstractAccountAuthenticator { class
70 public MockAccountAuthenticator(Context context) { in MockAccountAuthenticator() method in MockAccountAuthenticator
DAccountManagerTest.java100 MockAccountAuthenticator.ACCOUNT_NAME_FOR_NEW_REMOVE_API, ACCOUNT_TYPE);
102 MockAccountAuthenticator.ACCOUNT_NAME_FOR_DEFAULT_IMPL, ACCOUNT_TYPE);
121 private static MockAccountAuthenticator mockAuthenticator;
125 public synchronized static MockAccountAuthenticator getMockAuthenticator(Context context) { in getMockAuthenticator()
127 mockAuthenticator = new MockAccountAuthenticator(context); in getMockAuthenticator()
2282 options.putBoolean(MockAccountAuthenticator.KEY_RETURN_INTENT, true);