Home
last modified time | relevance | path

Searched refs:ACCOUNT_TYPE (Results 1 – 25 of 48) 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 …]
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()
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/hostsidetests/multiuser/app/src/com/android/cts/multiuser/
DAccountCreator.java60 waitForAccountAuthenticator(MockAuthenticator.ACCOUNT_TYPE, accountManager); in addMockAccountForCurrentUser()
63 MockAuthenticator.ACCOUNT_TYPE, null, null, null, null, null, null); in addMockAccountForCurrentUser()
70 MockAuthenticator.ACCOUNT_TYPE); in addMockAccountForCurrentUser()
75 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/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/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_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_DirectoryTest.java60 mAccount = new Account(CtsGalProvider.ACCOUNT_NAME, CtsGalProvider.ACCOUNT_TYPE); in setUp()
85 null, Directory.ACCOUNT_NAME + "=? and " + Directory.ACCOUNT_TYPE + "=?", in waitForDirectorySetup()
86 new String[]{CtsGalProvider.ACCOUNT_NAME, CtsGalProvider.ACCOUNT_TYPE}, in waitForDirectorySetup() argument
98 assertEquals(CtsGalProvider.ACCOUNT_TYPE, getString(c, Directory.ACCOUNT_TYPE)); in waitForDirectorySetup()
DContactsContract_StructuredPhoneticName.java76 .with(RawContacts.ACCOUNT_TYPE, mTestAccount.getAccountType()) in testPhoneticStructuredName()
100 .with(RawContacts.ACCOUNT_TYPE, mTestAccount.getAccountType()) in testPhoneticStructuredName_phoneticPriority1()
110 .with(RawContacts.ACCOUNT_TYPE, mTestAccount.getAccountType()) in testPhoneticStructuredName_phoneticPriority1()
137 .with(RawContacts.ACCOUNT_TYPE, mTestAccount.getAccountType()) in testPhoneticStructuredName_phoneticPriority2()
147 .with(RawContacts.ACCOUNT_TYPE, mTestAccount.getAccountType()) in testPhoneticStructuredName_phoneticPriority2()
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/accounts/src/android/accounts/cts/
DAccountManagerTest.java65 public static final String ACCOUNT_TYPE = "android.accounts.cts.account.type"; field in AccountManagerTest
99 public static final Account ACCOUNT = new Account(ACCOUNT_NAME, ACCOUNT_TYPE);
101 MockAccountAuthenticator.ACCOUNT_NAME_FOR_NEW_REMOVE_API, ACCOUNT_TYPE);
103 MockAccountAuthenticator.ACCOUNT_NAME_FOR_DEFAULT_IMPL, ACCOUNT_TYPE);
104 public static final Account ACCOUNT_SAME_TYPE = new Account(ACCOUNT_NAME_OTHER, ACCOUNT_TYPE);
152 SESSION_BUNDLE.putString(AccountManager.KEY_ACCOUNT_TYPE, ACCOUNT_TYPE); in setUp()
183 Account[] ctsAccounts = am.getAccountsByType(ACCOUNT_TYPE); in tearDown()
223 ACCOUNT_TYPE.equals(account.type) || AUTH_EXPIRING_TOKEN_TYPE.equals(tokenType); in validateSuccessfulTokenFetchingLifecycle()
239 isCachingExpected = ACCOUNT_TYPE.equals(account.type); in validateSuccessfulTokenFetchingLifecycle()
281 assertEquals(ACCOUNT_TYPE, result.get(AccountManager.KEY_ACCOUNT_TYPE)); in validateAccountAndNoAuthTokenResult()
[all …]
/cts/tests/tests/appenumeration/src/android/appenumeration/cts/
DAccountManagerEnumerationTest.java20 import static android.appenumeration.cts.Constants.ACCOUNT_TYPE;
57 private static final Account ACCOUNT = new Account(ACCOUNT_NAME, ACCOUNT_TYPE);
81 for (Account account : mAccountManager.getAccountsByType(ACCOUNT_TYPE)) { in onAfter()
95 assertThat(mAccountManager.getAccountsAndVisibilityForPackage(TARGET_VISIBLE, ACCOUNT_TYPE), in addAccountExplicitlyWithVisibility_targetPackageIsVisible()
109 TARGET_NOT_VISIBLE, ACCOUNT_TYPE), anEmptyMap()); in addAccountExplicitlyWithVisibility_targetPackageNotVisible()
/cts/hostsidetests/appcloning/test-apps/AppCloningContactsSharingApps/CloneProfileAppWithLaunchableActivity/src/com/android/cts/launchable/cloneprofile/contacts/app/
DCloneContactsSharingTest.java90 values.put(ContactsContract.RawContacts.ACCOUNT_TYPE, "test.com"); in getTestContentValues()
127 String selection = ContactsContract.RawContacts.ACCOUNT_TYPE + " = ?"; in queryContactsForTestAccount()
170 .withValue(ContactsContract.RawContacts.ACCOUNT_TYPE, in insertContactsDataThroughBatchOperations()
307 ContactsContract.RawContacts.ACCOUNT_TYPE, in testCloneContactsProviderUpdates_rawContactsUpdate_doesNotUpdateActually()
311 String selection = ContactsContract.RawContacts.ACCOUNT_TYPE + " = ?"; in testCloneContactsProviderUpdates_rawContactsUpdate_doesNotUpdateActually()
320 updatedValues.put(ContactsContract.RawContacts.ACCOUNT_TYPE, in testCloneContactsProviderUpdates_rawContactsUpdate_doesNotUpdateActually()
348 String selection = ContactsContract.RawContacts.ACCOUNT_TYPE + " = ?"; in testCloneContactsProviderDeletes_rawContactsDelete_doesNotDeleteActually()
378 ContactsContract.RawContacts.ACCOUNT_TYPE, in testCloneContactsProviderReads_rawContactsReads_redirectsToPrimary()
397 ContactsContract.RawContacts.ACCOUNT_TYPE))) in testCloneContactsProviderReads_rawContactsReads_redirectsToPrimary()
435 ContactsContract.RawContacts.ACCOUNT_TYPE, in testAccessManagedProfileContacts_contactReadSuccessfully()
[all …]
/cts/hostsidetests/accounts/src/android/host/accounts/
DAccountManagerHostSideTest.java63 private static final String ACCOUNT_TYPE = field in AccountManagerHostSideTest
129 .setStrings(ACCOUNT_TYPE, in tesAddAccount_logsMetrics()
151 .setStrings(ACCOUNT_TYPE, in tesAddAccountExplicitly_logsMetrics()
171 .setStrings(ACCOUNT_TYPE, in tesGetAuthToken_logsMetrics()
/cts/tests/devicepolicy/src/android/devicepolicy/cts/
DPolicyKeysTest.java48 private static final String ACCOUNT_TYPE = "accountType"; field in PolicyKeysTest
63 AccountTypePolicyKey key = new AccountTypePolicyKey(POLICY_KEY, ACCOUNT_TYPE); in accountTypePolicyKey_getAccountType_returnsCorrectType()
65 assertThat(key.getAccountType()).isEqualTo(ACCOUNT_TYPE); in accountTypePolicyKey_getAccountType_returnsCorrectType()
/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/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