Home
last modified time | relevance | path

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

12

/cts/hostsidetests/devicepolicy/app/AccountManagement/src/com/android/cts/devicepolicy/accountmanagement/
DAccountManagementTest.java42 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 …]
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.java31 static final String ACCOUNT_TYPE field in MockAccountAuthenticator
43 result.putString(AccountManager.KEY_ACCOUNT_TYPE, ACCOUNT_TYPE); in createResultBundle()
/cts/tests/tests/provider/src/android/provider/cts/
DContactsContract_StreamItemsTest.java36 private static final String ACCOUNT_TYPE = "com.android.cts"; field in ContactsContract_StreamItemsTest
74 values.put(RawContacts.ACCOUNT_TYPE, ACCOUNT_TYPE); in testContentDirectoryUri()
87 values.put(RawContacts.ACCOUNT_TYPE, ACCOUNT_TYPE); in insertRawContact()
99 values.put(RawContacts.ACCOUNT_TYPE, ACCOUNT_TYPE); in insertViaContentDirectoryUri()
116 .withValue(RawContacts.ACCOUNT_TYPE, ACCOUNT_TYPE) in testContentUri()
122 .withValue(RawContacts.ACCOUNT_TYPE, ACCOUNT_TYPE) in testContentUri()
148 .withValue(RawContacts.ACCOUNT_TYPE, ACCOUNT_TYPE) in testContentUri()
DContactsContract_StructuredPhoneticName.java61 .with(RawContacts.ACCOUNT_TYPE, "test_account") in testPhoneticStructuredName()
85 .with(RawContacts.ACCOUNT_TYPE, "test_account") in testPhoneticStructuredName_phoneticPriority1()
95 .with(RawContacts.ACCOUNT_TYPE, "test_account") in testPhoneticStructuredName_phoneticPriority1()
122 .with(RawContacts.ACCOUNT_TYPE, "test_account") in testPhoneticStructuredName_phoneticPriority2()
132 .with(RawContacts.ACCOUNT_TYPE, "test_account") in testPhoneticStructuredName_phoneticPriority2()
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_RawContactsTest.java62 RawContacts.ACCOUNT_TYPE,
92 .with(RawContacts.ACCOUNT_TYPE, "test_type") in testGetLookupUriBySourceId()
113 .with(RawContacts.ACCOUNT_TYPE, "test_type") in testGetLookupUriByDisplayName()
227 .with(RawContacts.ACCOUNT_TYPE, "test_type") in testProjection()
DContactsContract_DataTest.java96 RawContacts.ACCOUNT_TYPE,
211 .with(RawContacts.ACCOUNT_TYPE, "test_type") in testGetLookupUriBySourceId()
232 .with(RawContacts.ACCOUNT_TYPE, "test_type") in testDataProjection()
248 .with(RawContacts.ACCOUNT_TYPE, "test_type") in testRawContactsEntityProjection()
265 RawContacts.ACCOUNT_TYPE, in testRawContactsEntityProjection()
308 .with(RawContacts.ACCOUNT_TYPE, "test_type") in testEntityProjection()
358 RawContacts.ACCOUNT_TYPE, in testEntityProjection()
410 .with(RawContacts.ACCOUNT_TYPE, "test_type") in testGetLookupUriByDisplayName()
427 .with(RawContacts.ACCOUNT_TYPE, "test_account") in testContactablesUri()
677 .with(RawContacts.ACCOUNT_TYPE, "test_account") in setupContactablesTestData()
[all …]
DContactsContract_AggregationSuggestionsTest.java162 .with(RawContacts.ACCOUNT_TYPE, "test_account") in setupThreeContacts()
172 .with(RawContacts.ACCOUNT_TYPE, "test_account") in setupThreeContacts()
182 .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()
DContactsContract_PhoneLookup.java76 .with(RawContacts.ACCOUNT_TYPE, "test_account") in setupTestData()
90 .with(RawContacts.ACCOUNT_TYPE, "test_account") in setupTestData()
105 .with(RawContacts.ACCOUNT_TYPE, "test_account") in setupTestData()
DContactsContract_SearchSnippetsTest.java218 .with(RawContacts.ACCOUNT_TYPE, "test_account") in setupTestData()
232 .with(RawContacts.ACCOUNT_TYPE, "test_account") in setupTestData()
251 .with(RawContacts.ACCOUNT_TYPE, "test_account") in setupTestData()
DContactsContract_ProviderStatus.java60 .with(RawContacts.ACCOUNT_TYPE, "test_account") in testProviderStatus_addedContacts()
DContactsContract_FrequentsStrequentsTest.java437 .with(RawContacts.ACCOUNT_TYPE, "test_account") in setupTestData()
451 .with(RawContacts.ACCOUNT_TYPE, "test_account") in setupTestData()
465 .with(RawContacts.ACCOUNT_TYPE, "test_account") in setupTestData()
DCalendarTest.java89 Calendars.ACCOUNT_TYPE,
143 values.put(Calendars.ACCOUNT_TYPE, CTS_TEST_TYPE); in getNewCalendarValues()
209 String selection = Calendars.ACCOUNT_TYPE + "=?"; in getCalendarsByAccount()
232 SyncState.ACCOUNT_TYPE,
249 values.put(SyncState.ACCOUNT_TYPE, CTS_TEST_TYPE); in getNewSyncStateValues()
266 String selection = SyncState.ACCOUNT_TYPE + "=? AND " + SyncState.ACCOUNT_NAME + "=?"; in getSyncStateByAccount()
301 Events.ACCOUNT_TYPE,
516 values.put(Events.ACCOUNT_TYPE, CTS_TEST_TYPE); in addDefaultReadOnlyValues()
555 String selection = Calendars.ACCOUNT_TYPE + "=?"; in getEventsByAccount()
649 + Colors.ACCOUNT_TYPE + "=?";
[all …]
/cts/tests/tests/accounts/src/android/accounts/cts/
DAccountManagerTest.java59 public static final String ACCOUNT_TYPE = "android.accounts.cts.account.type"; field in AccountManagerTest
91 public static final Account ACCOUNT = new Account(ACCOUNT_NAME, ACCOUNT_TYPE);
93 MockAccountAuthenticator.ACCOUNT_NAME_FOR_NEW_REMOVE_API, ACCOUNT_TYPE);
95 MockAccountAuthenticator.ACCOUNT_NAME_FOR_DEFAULT_IMPL, ACCOUNT_TYPE);
96 public static final Account ACCOUNT_SAME_TYPE = new Account(ACCOUNT_NAME_OTHER, ACCOUNT_TYPE);
146 Account[] ctsAccounts = am.getAccountsByType(ACCOUNT_TYPE); in tearDown()
186 ACCOUNT_TYPE.equals(account.type) || AUTH_EXPIRING_TOKEN_TYPE.equals(tokenType); in validateSuccessfulTokenFetchingLifecycle()
202 isCachingExpected = ACCOUNT_TYPE.equals(account.type); in validateSuccessfulTokenFetchingLifecycle()
244 assertEquals(ACCOUNT_TYPE, result.get(AccountManager.KEY_ACCOUNT_TYPE)); in validateAccountAndNoAuthTokenResult()
255 assertEquals(ACCOUNT_TYPE, mockAuthenticator.getAccountType()); in validateAccountAndAuthTokenType()
[all …]
DMockAccountAuthenticator.java136 result.putString(AccountManager.KEY_ACCOUNT_TYPE, AccountManagerTest.ACCOUNT_TYPE); in createResultBundle()
/cts/hostsidetests/devicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/
DAccountAuthenticator.java30 public static final String ACCOUNT_TYPE = "com.android.cts.test"; field in AccountAuthenticator
41 result.putString(AccountManager.KEY_ACCOUNT_TYPE, ACCOUNT_TYPE); in createResultBundle()
/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()
DContentResolverSyncTestCase.java40 MockAccountAuthenticator.ACCOUNT_TYPE);
290 if (MockAccountAuthenticator.ACCOUNT_TYPE.equals(type.accountType) &&
/cts/hostsidetests/devicepolicy/src/com/android/cts/devicepolicy/
DDeviceAndProfileOwnerTest.java85 private static final String ACCOUNT_TYPE field in DeviceAndProfileOwnerTest
333 changeAccountManagement(COMMAND_BLOCK_ACCOUNT_TYPE, ACCOUNT_TYPE, mUserId); in testAccountManagement_disabledAddAccount()
337 changeAccountManagement(COMMAND_UNBLOCK_ACCOUNT_TYPE, ACCOUNT_TYPE, mUserId); in testAccountManagement_disabledAddAccount()
349 changeAccountManagement(COMMAND_BLOCK_ACCOUNT_TYPE, ACCOUNT_TYPE, mUserId); in testAccountManagement_disabledRemoveAccount()
353 changeAccountManagement(COMMAND_UNBLOCK_ACCOUNT_TYPE, ACCOUNT_TYPE, mUserId); in testAccountManagement_disabledRemoveAccount()
/cts/tests/tests/provider/src/android/provider/cts/contacts/
DRawContactUtil.java59 values.put(ContactsContract.RawContacts.ACCOUNT_TYPE, account.type); in insertRawContact()
/cts/hostsidetests/devicepolicy/app/ContactDirectoryProvider/src/com/android/cts/contactdirectoryprovider/
DDirectoryProvider.java123 } else if (column.equals(Directory.ACCOUNT_TYPE)) { in query()

12