Searched refs:MockAccountAuthenticator (Results 1 – 10 of 10) sorted by relevance
/cts/hostsidetests/devicepolicy/app/AccountManagement/src/com/android/cts/devicepolicy/accountmanagement/ |
D | AccountManagementTest.java | 42 MockAccountAuthenticator.ACCOUNT_TYPE); 55 assertEquals(0, mAccountManager.getAccountsByType(MockAccountAuthenticator.ACCOUNT_TYPE) in tearDown() 62 assertEquals(0, mAccountManager.getAccountsByType(MockAccountAuthenticator.ACCOUNT_TYPE) in testAddAccount_blocked() 66 mAccountManager.addAccount(MockAccountAuthenticator.ACCOUNT_TYPE, in testAddAccount_blocked() 72 assertEquals(0, mAccountManager.getAccountsByType(MockAccountAuthenticator.ACCOUNT_TYPE) in testAddAccount_blocked() 77 Bundle result = mAccountManager.addAccount(MockAccountAuthenticator.ACCOUNT_TYPE, in testAddAccount_allowed() 83 assertEquals(MockAccountAuthenticator.ACCOUNT_TYPE, in testAddAccount_allowed() 89 assertEquals(0, mAccountManager.getAccountsByType(MockAccountAuthenticator.ACCOUNT_TYPE) in testRemoveAccount_blocked() 94 assertEquals(1, mAccountManager.getAccountsByType(MockAccountAuthenticator.ACCOUNT_TYPE) in testRemoveAccount_blocked() 106 MockAccountAuthenticator.ACCOUNT_TYPE); in testRemoveAccount_blocked() [all …]
|
D | AccountUtilsTest.java | 42 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()
|
D | MockAccountAuthenticator.java | 27 /* package */ class MockAccountAuthenticator extends AbstractAccountAuthenticator { class 28 private static MockAccountAuthenticator sMockAuthenticator = null; 36 private 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()
|
D | MockAccountService.java | 30 return MockAccountAuthenticator.getMockAuthenticator(this).getIBinder(); in onBind()
|
/cts/tests/tests/content/src/android/content/cts/ |
D | MockAccountAuthenticator.java | 27 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()
|
D | ContentResolverSyncTestCase.java | 39 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,
|
D | MockAccountService.java | 30 return MockAccountAuthenticator.getMockAuthenticator(this).getIBinder(); in onBind()
|
/cts/tests/tests/accounts/src/android/accounts/cts/ |
D | AccountRemovalDummyActivity.java | 42 .getParcelable(MockAccountAuthenticator.KEY_ACCOUNT_AUTHENTICATOR_RESPONSE); in onCreate()
|
D | MockAccountAuthenticator.java | 36 public class MockAccountAuthenticator extends AbstractAccountAuthenticator { class 65 public MockAccountAuthenticator(Context context) { in MockAccountAuthenticator() method in MockAccountAuthenticator
|
D | AccountManagerTest.java | 93 MockAccountAuthenticator.ACCOUNT_NAME_FOR_NEW_REMOVE_API, ACCOUNT_TYPE); 95 MockAccountAuthenticator.ACCOUNT_NAME_FOR_DEFAULT_IMPL, ACCOUNT_TYPE); 101 private static MockAccountAuthenticator mockAuthenticator; 105 public synchronized static MockAccountAuthenticator getMockAuthenticator(Context context) { in getMockAuthenticator() 107 mockAuthenticator = new MockAccountAuthenticator(context); in getMockAuthenticator() 1997 options.putBoolean(MockAccountAuthenticator.KEY_RETURN_INTENT, true);
|