/cts/tests/tests/content/src/android/content/cts/ |
D | ContentResolverSyncTestCase.java | 44 private static final Account ACCOUNT = new Account(MockAccountAuthenticator.ACCOUNT_NAME, field in ContentResolverSyncTestCase 65 removeAccount(sAccountManager, ACCOUNT, null /* callback */); in tearDown() 146 if (!ContentResolver.isSyncActive(ACCOUNT, AUTHORITY) in cancelSync() 147 && !ContentResolver.isSyncPending(ACCOUNT, AUTHORITY)) { in cancelSync() 188 addAccountAndVerifyInitSync(ACCOUNT, in testRequestSync() 195 setIsSyncable(ACCOUNT, AUTHORITY, true); in testRequestSync() 196 cancelSync(ACCOUNT, AUTHORITY, LATCH_TIMEOUT_MS); in testRequestSync() 200 requestSync(ACCOUNT, AUTHORITY, LATCH_TIMEOUT_MS); in testRequestSync() 205 assertEquals(ACCOUNT, getMockSyncAdapter().getAccounts().get(0)); in testRequestSync() 219 addAccountAndVerifyInitSync(ACCOUNT, in testCancelSync() [all …]
|
D | ContentResolverTest.java | 107 private static final Account ACCOUNT = new Account("cts", "cts"); field in ContentResolverTest 1524 ContentResolver.requestSync(ACCOUNT, AUTHORITY, extras); in testStartCancelSync() 1527 ContentResolver.cancelSync(ACCOUNT, AUTHORITY); in testStartCancelSync()
|
/cts/tests/tests/appenumeration/src/android/appenumeration/cts/ |
D | AccountManagerEnumerationTest.java | 57 private static final Account ACCOUNT = new Account(ACCOUNT_NAME, ACCOUNT_TYPE); field in AccountManagerEnumerationTest 91 ACCOUNT, null /* password */, null /* userdata */, visibility), is(true)); in addAccountExplicitlyWithVisibility_targetPackageIsVisible() 93 assertThat(mAccountManager.getAccountVisibility(ACCOUNT, TARGET_VISIBLE), in addAccountExplicitlyWithVisibility_targetPackageIsVisible() 96 hasEntry(ACCOUNT, AccountManager.VISIBILITY_VISIBLE)); in addAccountExplicitlyWithVisibility_targetPackageIsVisible() 104 ACCOUNT, null /* password */, null /* userdata */, visibility), is(true)); in addAccountExplicitlyWithVisibility_targetPackageNotVisible() 106 assertThat(mAccountManager.getAccountVisibility(ACCOUNT, TARGET_NOT_VISIBLE), in addAccountExplicitlyWithVisibility_targetPackageNotVisible() 115 ACCOUNT, null /* password */, null /* userdata */), is(true)); in setAccountVisibility_targetPackageIsVisible() 117 ACCOUNT, TARGET_VISIBLE, AccountManager.VISIBILITY_VISIBLE), is(true)); in setAccountVisibility_targetPackageIsVisible() 123 ACCOUNT, null /* password */, null /* userdata */), is(true)); in setAccountVisibility_targetPackageNotVisible() 125 ACCOUNT, TARGET_NOT_VISIBLE, AccountManager.VISIBILITY_VISIBLE), is(false)); in setAccountVisibility_targetPackageNotVisible()
|
/cts/hostsidetests/devicepolicy/app/AccountManagement/src/com/android/cts/devicepolicy/accountmanagement/ |
D | AccountManagementTest.java | 40 private final static Account ACCOUNT = new Account("user0", field in AccountManagementTest 53 mAccountManager.removeAccountExplicitly(ACCOUNT); in tearDown() 98 assertTrue(mAccountManager.addAccountExplicitly(ACCOUNT, "password", null)); in testRemoveAccount_blocked() 104 mAccountManager.removeAccount(ACCOUNT, null, null).getResult(); in testRemoveAccount_blocked() 113 assertEquals(ACCOUNT, accounts[0]); in testRemoveAccount_blocked() 121 assertTrue(mAccountManager.addAccountExplicitly(ACCOUNT, "password", null)); in testRemoveAccount_allowed() 124 assertTrue(mAccountManager.removeAccount(ACCOUNT, null, null).getResult()); in testRemoveAccount_allowed()
|
/cts/tests/tests/accounts/src/android/accounts/cts/ |
D | AccountManagerTest.java | 99 public static final Account ACCOUNT = new Account(ACCOUNT_NAME, ACCOUNT_TYPE); field in AccountManagerTest 177 assertTrue(removeAccount(am, ACCOUNT, mActivity, null /* callback */).getBoolean( in tearDown() 257 ACCOUNT.name, in validateAccountAndAuthTokenResult() 260 ACCOUNT.type, in validateAccountAndAuthTokenResult() 318 assertEquals(ACCOUNT, mockAuthenticator.getAccount()); in validateCredentials() 590 addAccountExplicitly(ACCOUNT, ACCOUNT_PASSWORD, null /* userData */); in testAddAccountExplicitlyAndRemoveAccount() 596 assertTrue(isAccountPresent(am.getAccounts(), ACCOUNT)); in testAddAccountExplicitlyAndRemoveAccount() local 598 assertTrue(removeAccount(am, ACCOUNT, mActivity, null /* callback */).getBoolean( in testAddAccountExplicitlyAndRemoveAccount() 673 addAccountExplicitly(ACCOUNT, ACCOUNT_PASSWORD, null /* userData */); in testAddAccountExplicitlyAndRemoveAccountWithDeprecatedApi() 679 assertTrue(isAccountPresent(am.getAccounts(), ACCOUNT)); in testAddAccountExplicitlyAndRemoveAccountWithDeprecatedApi() local [all …]
|
D | MockAccountAuthenticator.java | 170 am.addAccountExplicitly(AccountManagerTest.ACCOUNT, "fakePassword", null); in addAccount()
|
/cts/tests/tests/telecom/src/android/telecom/cts/ |
D | CallStreamingTest.java | 64 private static final PhoneAccount ACCOUNT = field in CallStreamingTest 87 mTelecomManager.registerPhoneAccount(ACCOUNT); in setUp()
|
/cts/common/device-side/bedstead/remoteframeworkclasses/java/apis/ |
D | current.txt | 36730 field public static final String EXTRA_ACCOUNT = "android.provider.extra.ACCOUNT";
|