Home
last modified time | relevance | path

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

/cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/
DAccountUtilsTest.java35 MockAccountAuthenticator.ACCOUNT_TYPE);
45 assertEquals(0, mAccountManager.getAccountsByType(MockAccountAuthenticator.ACCOUNT_TYPE) in testAddAccount()
48 assertEquals(1, mAccountManager.getAccountsByType(MockAccountAuthenticator.ACCOUNT_TYPE) in testAddAccount()
53 removeAllAccountsForType(mAccountManager, MockAccountAuthenticator.ACCOUNT_TYPE); in testRemoveAccounts()
DMockAccountAuthenticator.java27 /* package */ class MockAccountAuthenticator extends AbstractAccountAuthenticator { class
28 private static MockAccountAuthenticator sMockAuthenticator = null;
34 private MockAccountAuthenticator(Context context) { in MockAccountAuthenticator() method in MockAccountAuthenticator
94 public static synchronized MockAccountAuthenticator getMockAuthenticator(Context context) { in getMockAuthenticator()
96 sMockAuthenticator = new MockAccountAuthenticator(context); in getMockAuthenticator()
DMockAccountService.java30 return MockAccountAuthenticator.getMockAuthenticator(this).getIBinder(); in onBind()
DAccountManagementTest.java42 private final static String ACCOUNT_TYPE_1 = MockAccountAuthenticator.ACCOUNT_TYPE;
/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.java39 private static final Account ACCOUNT = new Account(MockAccountAuthenticator.ACCOUNT_NAME,
40 MockAccountAuthenticator.ACCOUNT_TYPE);
71 public static synchronized MockAccountAuthenticator getMockAuthenticator(Context context) { in getMockAuthenticator()
72 return MockAccountAuthenticator.getMockAuthenticator(context); in getMockAuthenticator()
168 MockAccountAuthenticator.ACCOUNT_PASSWORD, in testRequestSync()
200 MockAccountAuthenticator.ACCOUNT_PASSWORD, in testCancelSync()
261 … addAccountExplicitly(ACCOUNT, MockAccountAuthenticator.ACCOUNT_PASSWORD, null /* userData */); in testGetAndSetIsSyncable()
290 if (MockAccountAuthenticator.ACCOUNT_TYPE.equals(type.accountType) &&
321 extras.putString("String", MockAccountAuthenticator.ACCOUNT_NAME);
344 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.java36 public class MockAccountAuthenticator extends AbstractAccountAuthenticator { class
64 public MockAccountAuthenticator(Context context) { in MockAccountAuthenticator() method in MockAccountAuthenticator
DAccountManagerTest.java91 MockAccountAuthenticator.ACCOUNT_NAME_FOR_NEW_REMOVE_API, ACCOUNT_TYPE);
97 private static MockAccountAuthenticator mockAuthenticator;
101 public synchronized static MockAccountAuthenticator getMockAuthenticator(Context context) { in getMockAuthenticator()
103 mockAuthenticator = new MockAccountAuthenticator(context); in getMockAuthenticator()
1924 options.putBoolean(MockAccountAuthenticator.KEY_RETURN_INTENT, true);