Home
last modified time | relevance | path

Searched refs:ACCOUNT_TYPE (Results 1 – 25 of 42) sorted by relevance

12

/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()
94 assertEquals(0, mAccountManager.getAccountsByType(MockAccountAuthenticator.ACCOUNT_TYPE) in testRemoveAccount_blocked()
99 assertEquals(1, mAccountManager.getAccountsByType(MockAccountAuthenticator.ACCOUNT_TYPE) in testRemoveAccount_blocked()
111 MockAccountAuthenticator.ACCOUNT_TYPE); in testRemoveAccount_blocked()
[all …]
DAccountUtilsTest.java39 MockAccountAuthenticator.ACCOUNT_TYPE);
51 assertEquals(0, mAccountManager.getAccountsByType(MockAccountAuthenticator.ACCOUNT_TYPE) in testAddAccountExplicitly()
54 assertEquals(1, mAccountManager.getAccountsByType(MockAccountAuthenticator.ACCOUNT_TYPE) in testAddAccountExplicitly()
59 assertEquals(1, mAccountManager.getAccountsByType(MockAccountAuthenticator.ACCOUNT_TYPE) in testRemoveAccountExplicitly()
62 assertEquals(0, mAccountManager.getAccountsByType(MockAccountAuthenticator.ACCOUNT_TYPE) in testRemoveAccountExplicitly()
DMockAccountAuthenticator.java31 static final String ACCOUNT_TYPE field in MockAccountAuthenticator
43 result.putString(AccountManager.KEY_ACCOUNT_TYPE, ACCOUNT_TYPE); in createResultBundle()
/cts/hostsidetests/accounts/test-apps/AccountManagerCrossUserApp/src/com/android/cts/accountmanager/
DAccountManagerCrossUserTest.java44 MockAuthenticator.ACCOUNT_TYPE);
99 MockAuthenticator.ACCOUNT_TYPE, in testAccountManager_addMockAccount()
104 MockAuthenticator.ACCOUNT_TYPE); in testAccountManager_addMockAccount()
117 MockAuthenticator.ACCOUNT_TYPE, in testAccountManager_addMockAccountForCurrentUser()
140 accountManagerAsUser.getAccountsByType(MockAuthenticator.ACCOUNT_TYPE)) in testAccountManager_getAccountsForTestUser()
153 assertThat(accountManager.getAccountsByType(MockAuthenticator.ACCOUNT_TYPE)).isEmpty(); in testAccountManager_addAccountExplicitlyForCurrentUser()
155 assertThat(accountManager.getAccountsByType(MockAuthenticator.ACCOUNT_TYPE)).hasLength(1); in testAccountManager_addAccountExplicitlyForCurrentUser()
163 assertThat(accountManager.getAccountsByType(MockAuthenticator.ACCOUNT_TYPE)).hasLength(1); in testRemoveAccountExplicitly()
165 assertThat(accountManager.getAccountsByType(MockAuthenticator.ACCOUNT_TYPE)).isEmpty(); in testRemoveAccountExplicitly()
178 assertThat(accountManager.getAccountsByType(MockAuthenticator.ACCOUNT_TYPE)).hasLength( in testAccountManager_getAccountsForCurrentUser()
[all …]
DMockAuthenticator.java39 static final String ACCOUNT_TYPE = "com.android.cts.accountmanager"; field in MockAuthenticator
53 return new Account(ACCOUNT_NAME, ACCOUNT_TYPE); in getTestAccount()
88 result.putString(AccountManager.KEY_ACCOUNT_TYPE, ACCOUNT_TYPE); in createResultBundle()
/cts/tests/tests/accounts/src/android/accounts/cts/
DAccountManagerTest.java64 public static final String ACCOUNT_TYPE = "android.accounts.cts.account.type"; field in AccountManagerTest
98 public static final Account ACCOUNT = new Account(ACCOUNT_NAME, ACCOUNT_TYPE);
100 MockAccountAuthenticator.ACCOUNT_NAME_FOR_NEW_REMOVE_API, ACCOUNT_TYPE);
102 MockAccountAuthenticator.ACCOUNT_NAME_FOR_DEFAULT_IMPL, ACCOUNT_TYPE);
103 public static final Account ACCOUNT_SAME_TYPE = new Account(ACCOUNT_NAME_OTHER, ACCOUNT_TYPE);
151 SESSION_BUNDLE.putString(AccountManager.KEY_ACCOUNT_TYPE, ACCOUNT_TYPE); in setUp()
169 Account[] ctsAccounts = am.getAccountsByType(ACCOUNT_TYPE); in tearDown()
209 ACCOUNT_TYPE.equals(account.type) || AUTH_EXPIRING_TOKEN_TYPE.equals(tokenType); in validateSuccessfulTokenFetchingLifecycle()
225 isCachingExpected = ACCOUNT_TYPE.equals(account.type); in validateSuccessfulTokenFetchingLifecycle()
267 assertEquals(ACCOUNT_TYPE, result.get(AccountManager.KEY_ACCOUNT_TYPE)); in validateAccountAndNoAuthTokenResult()
[all …]
/cts/tests/tests/contactsprovider/src/android/provider/cts/contacts/
DContactsContract_RawContactsTest.java60 RawContacts.ACCOUNT_TYPE,
90 .with(RawContacts.ACCOUNT_TYPE, "test_type") in testGetLookupUriBySourceId()
111 .with(RawContacts.ACCOUNT_TYPE, "test_type") in testGetLookupUriByDisplayName()
214 RawContacts.ACCOUNT_NAME, RawContacts.ACCOUNT_TYPE in testRawContactCreate_noAccountUsesLocalAccount()
235 .with(RawContacts.ACCOUNT_TYPE, (String) null) in testRawContactCreate_nullAccountUsesLocalAccount()
241 RawContacts.ACCOUNT_NAME, RawContacts.ACCOUNT_TYPE in testRawContactCreate_nullAccountUsesLocalAccount()
301 .with(RawContacts.ACCOUNT_TYPE, "test_type") in testProjection()
321 .with(RawContacts.ACCOUNT_TYPE, "test_type") in testInsertUsageStat()
334 .with(RawContacts.ACCOUNT_TYPE, "test_type") in testInsertUsageStat()
345 .with(RawContacts.ACCOUNT_TYPE, "test_type") in testInsertUsageStat()
[all …]
DContactsContract_StructuredPhoneticName.java60 .with(RawContacts.ACCOUNT_TYPE, "test_account") in testPhoneticStructuredName()
84 .with(RawContacts.ACCOUNT_TYPE, "test_account") in testPhoneticStructuredName_phoneticPriority1()
94 .with(RawContacts.ACCOUNT_TYPE, "test_account") in testPhoneticStructuredName_phoneticPriority1()
121 .with(RawContacts.ACCOUNT_TYPE, "test_account") in testPhoneticStructuredName_phoneticPriority2()
131 .with(RawContacts.ACCOUNT_TYPE, "test_account") in testPhoneticStructuredName_phoneticPriority2()
DContactsContract_DirectoryTest.java56 mAccount = new Account(CtsGalProvider.ACCOUNT_NAME, CtsGalProvider.ACCOUNT_TYPE); in setUp()
81 null, Directory.ACCOUNT_NAME + "=? and " + Directory.ACCOUNT_TYPE + "=?", in waitForDirectorySetup()
82 new String[]{CtsGalProvider.ACCOUNT_NAME, CtsGalProvider.ACCOUNT_TYPE}, in waitForDirectorySetup() argument
94 assertEquals(CtsGalProvider.ACCOUNT_TYPE, getString(c, Directory.ACCOUNT_TYPE)); in waitForDirectorySetup()
DContactsContract_ContactCountsTest.java118 .with(RawContacts.ACCOUNT_TYPE, "test_account") in setupTestData()
128 .with(RawContacts.ACCOUNT_TYPE, "test_account") in setupTestData()
138 .with(RawContacts.ACCOUNT_TYPE, "test_account") in setupTestData()
148 .with(RawContacts.ACCOUNT_TYPE, "test_account") in setupTestData()
158 .with(RawContacts.ACCOUNT_TYPE, "test_account") in setupTestData()
168 .with(RawContacts.ACCOUNT_TYPE, "test_account") in setupTestData()
DContactsContract_GroupMembershipTest.java64 .with(RawContacts.ACCOUNT_TYPE, "test_type") in testAddGroupMembershipWithGroupSourceId()
69 .with(Groups.ACCOUNT_TYPE, "test_type") in testAddGroupMembershipWithGroupSourceId()
84 .with(RawContacts.ACCOUNT_TYPE, "test_type") in testAddGroupMembershipWithUnknownGroupSourceId()
91 .with(Groups.ACCOUNT_TYPE, "test_type") in testAddGroupMembershipWithUnknownGroupSourceId()
DContactsContract_IsSuperPrimaryName.java73 .with(RawContacts.ACCOUNT_TYPE, "test_account") in testInner_displayNameFromIsSuperPrimary()
84 .with(RawContacts.ACCOUNT_TYPE, "test_account") in testInner_displayNameFromIsSuperPrimary()
134 .with(RawContacts.ACCOUNT_TYPE, "test_account") in testIsSuperPrimaryName_mergeBothSuperPrimary()
145 .with(RawContacts.ACCOUNT_TYPE, "test_account") in testIsSuperPrimaryName_mergeBothSuperPrimary()
DContactsContract_DataTest.java95 RawContacts.ACCOUNT_TYPE,
210 .with(RawContacts.ACCOUNT_TYPE, "test_type") in testGetLookupUriBySourceId()
231 .with(RawContacts.ACCOUNT_TYPE, "test_type") in testDataProjection()
247 .with(RawContacts.ACCOUNT_TYPE, "test_type") in testRawContactsEntityProjection()
264 RawContacts.ACCOUNT_TYPE, in testRawContactsEntityProjection()
309 .with(RawContacts.ACCOUNT_TYPE, "test_type") in testEntityProjection()
359 RawContacts.ACCOUNT_TYPE, in testEntityProjection()
413 .with(RawContacts.ACCOUNT_TYPE, "test_type") in testGetLookupUriByDisplayName()
430 .with(RawContacts.ACCOUNT_TYPE, "test_account") in testContactablesUri()
711 .with(RawContacts.ACCOUNT_TYPE, "test_account") in setupContactablesTestData()
[all …]
DContactsContract_AggregationSuggestionsTest.java161 .with(RawContacts.ACCOUNT_TYPE, "test_account") in setupThreeContacts()
171 .with(RawContacts.ACCOUNT_TYPE, "test_account") in setupThreeContacts()
181 .with(RawContacts.ACCOUNT_TYPE, "test_account") in setupThreeContacts()
DContactsContract_StatusUpdatesTest.java36 private static final String ACCOUNT_TYPE = "android.provider.cts"; field in ContactsContract_StatusUpdatesTest
50 .withValue(RawContacts.ACCOUNT_TYPE, ACCOUNT_TYPE) in setUp()
/cts/tests/tests/contactsprovider/gal/src/android/provider/cts/contacts/galprovider/
DCtsGalProvider.java46 public static final String ACCOUNT_TYPE = "com.android.cts.contactsprovider"; field in CtsGalProvider
131 } else if (column.equals(Directory.ACCOUNT_TYPE)) { in handleDirectories()
132 row[i] = ACCOUNT_TYPE; in handleDirectories()
160 final String accountType = uri.getQueryParameter(RawContacts.ACCOUNT_TYPE); in handleFilter()
171 if (!ACCOUNT_TYPE.equals(accountType)) { in handleFilter()
173 ACCOUNT_TYPE, accountType)); in handleFilter()
/cts/hostsidetests/accounts/src/android/host/accounts/
DAccountManagerHostSideTest.java62 private static final String ACCOUNT_TYPE = field in AccountManagerHostSideTest
127 .setStrings(ACCOUNT_TYPE, in tesAddAccount_logsMetrics()
147 .setStrings(ACCOUNT_TYPE, in testStartAddAccountSession_logsMetrics()
168 .setStrings(ACCOUNT_TYPE, in tesAddAccountExplicitly_logsMetrics()
187 .setStrings(ACCOUNT_TYPE, in tesGetAuthToken_logsMetrics()
/cts/hostsidetests/multiuser/app/src/com/android/cts/multiuser/
DAccountCreator.java52 MockAuthenticator.ACCOUNT_TYPE, null, null, null, null, null, null); in addMockAccountForCurrentUser()
59 MockAuthenticator.ACCOUNT_TYPE); in addMockAccountForCurrentUser()
64 assertThat(accountManager.getAccountsByType(MockAuthenticator.ACCOUNT_TYPE)).hasLength(1); in addMockAccountForCurrentUser()
DMockAuthenticator.java40 static final String ACCOUNT_TYPE = "com.android.cts.multiuser"; field in MockAuthenticator
54 return new Account(ACCOUNT_NAME, ACCOUNT_TYPE); in getTestAccount()
89 result.putString(AccountManager.KEY_ACCOUNT_TYPE, ACCOUNT_TYPE); in createResultBundle()
/cts/hostsidetests/devicepolicy/app/AccountCheck/Auth/src/com/android/cts/devicepolicy/accountcheck/
DAccountCheckTest.java30 private static final String ACCOUNT_TYPE = "com.android.cts.devicepolicy.accountcheck"; field in AccountCheckTest
51 for (Account account : mAccountManager.getAccountsByType(ACCOUNT_TYPE)) { in testRemoveAllAccounts()
59 ACCOUNT_TYPE, in addAccount()
67 assertEquals(ACCOUNT_TYPE, result.getString(AccountManager.KEY_ACCOUNT_TYPE)); in addAccount()
/cts/hostsidetests/statsdatom/apps/statsdapp/src/com/android/server/cts/device/statsdatom/
DStatsdAuthenticator.java39 private static final String ACCOUNT_TYPE = "com.android.cts.statsdatom"; field in StatsdAuthenticator
52 return new Account(ACCOUNT_NAME, ACCOUNT_TYPE); in getTestAccount()
78 for (Account account : am.getAccountsByType(ACCOUNT_TYPE)) { in removeAllAccounts()
/cts/hostsidetests/incident/apps/batterystatsapp/src/com/android/server/cts/device/batterystats/
DBatteryStatsAuthenticator.java39 private static final String ACCOUNT_TYPE = "com.android.server.cts.device.batterystats"; field in BatteryStatsAuthenticator
53 return new Account(ACCOUNT_NAME, ACCOUNT_TYPE); in getTestAccount()
79 for (Account account : am.getAccountsByType(BatteryStatsAuthenticator.ACCOUNT_TYPE)) { in removeAllAccounts()
/cts/hostsidetests/backup/SyncAdapterSettingsApp/src/android/cts/backup/syncadaptersettingsapp/
DSyncAdapterSettingsTest.java60 private static final String ACCOUNT_TYPE = "android.cts.backup.syncadaptersettingsapp"; field in SyncAdapterSettingsTest
227 return new Account(ACCOUNT_NAME, ACCOUNT_TYPE); in getAccount()
249 .contains(ACCOUNT_TYPE); in isAuthenticatorRegistered()
262 final Account[] accounts = am.getAccountsByType(ACCOUNT_TYPE); in removeAccount()
/cts/hostsidetests/devicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/
DAccountAuthenticator.java34 public static final String ACCOUNT_TYPE = "com.android.cts.test"; field in AccountAuthenticator
35 public static final Account TEST_ACCOUNT = new Account(ACCOUNT_NAME, ACCOUNT_TYPE);
49 result.putString(AccountManager.KEY_ACCOUNT_TYPE, ACCOUNT_TYPE); in createAuthTokenBundle()
/cts/tests/tests/content/src/android/content/cts/
DMockAccountAuthenticator.java31 public static final String ACCOUNT_TYPE = "android.content.cts.account.type"; field in MockAccountAuthenticator
43 result.putString(AccountManager.KEY_ACCOUNT_TYPE, ACCOUNT_TYPE); in createResultBundle()

12