Home
last modified time | relevance | path

Searched refs:ACCOUNT_TYPE (Results 1 – 25 of 34) 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.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/contacts/
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_DirectoryTest.java52 mAccount = new Account(DummyGalProvider.ACCOUNT_NAME, DummyGalProvider.ACCOUNT_TYPE); in setUp()
77 null, Directory.ACCOUNT_NAME + "=? and " + Directory.ACCOUNT_TYPE + "=?", in waitForDirectorySetup()
78 new String[]{DummyGalProvider.ACCOUNT_NAME, DummyGalProvider.ACCOUNT_TYPE}, in waitForDirectorySetup() argument
90 assertEquals(DummyGalProvider.ACCOUNT_TYPE, getString(c, Directory.ACCOUNT_TYPE)); in waitForDirectorySetup()
DDummyGalProvider.java45 public static final String ACCOUNT_TYPE = StaticAccountAuthenticator.TYPE; field in DummyGalProvider
139 } else if (column.equals(Directory.ACCOUNT_TYPE)) { in handleDirectories()
140 row[i] = ACCOUNT_TYPE; in handleDirectories()
168 final String accountType = uri.getQueryParameter(RawContacts.ACCOUNT_TYPE); in handleFilter()
179 if (!ACCOUNT_TYPE.equals(accountType)) { in handleFilter()
181 ACCOUNT_TYPE, accountType)); in handleFilter()
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_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_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_RawContactsTest.java57 RawContacts.ACCOUNT_TYPE,
87 .with(RawContacts.ACCOUNT_TYPE, "test_type") in testGetLookupUriBySourceId()
108 .with(RawContacts.ACCOUNT_TYPE, "test_type") in testGetLookupUriByDisplayName()
222 .with(RawContacts.ACCOUNT_TYPE, "test_type") in testProjection()
239 .with(RawContacts.ACCOUNT_TYPE, "test_type") in testInsertUsageStat()
252 .with(RawContacts.ACCOUNT_TYPE, "test_type") in testInsertUsageStat()
263 .with(RawContacts.ACCOUNT_TYPE, "test_type") in testInsertUsageStat()
279 .with(RawContacts.ACCOUNT_TYPE, "test_type") in testUpdateUsageStat()
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_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_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_ProviderStatus.java59 .with(RawContacts.ACCOUNT_TYPE, "test_account") in testProviderStatus_addedContacts()
DContactsContract_PhoneLookup.java75 .with(RawContacts.ACCOUNT_TYPE, "test_account") in setupTestData()
89 .with(RawContacts.ACCOUNT_TYPE, "test_account") in setupTestData()
104 .with(RawContacts.ACCOUNT_TYPE, "test_account") in setupTestData()
DContactsContract_FrequentsStrequentsTest.java432 .with(RawContacts.ACCOUNT_TYPE, "test_account") in setupTestData()
446 .with(RawContacts.ACCOUNT_TYPE, "test_account") in setupTestData()
460 .with(RawContacts.ACCOUNT_TYPE, "test_account") in setupTestData()
/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/tests/tests/accounts/src/android/accounts/cts/
DAccountManagerTest.java66 public static final String ACCOUNT_TYPE = "android.accounts.cts.account.type"; field in AccountManagerTest
100 public static final Account ACCOUNT = new Account(ACCOUNT_NAME, ACCOUNT_TYPE);
102 MockAccountAuthenticator.ACCOUNT_NAME_FOR_NEW_REMOVE_API, ACCOUNT_TYPE);
104 MockAccountAuthenticator.ACCOUNT_NAME_FOR_DEFAULT_IMPL, ACCOUNT_TYPE);
105 public static final Account ACCOUNT_SAME_TYPE = new Account(ACCOUNT_NAME_OTHER, ACCOUNT_TYPE);
153 SESSION_BUNDLE.putString(AccountManager.KEY_ACCOUNT_TYPE, ACCOUNT_TYPE); in setUp()
171 Account[] ctsAccounts = am.getAccountsByType(ACCOUNT_TYPE); in tearDown()
211 ACCOUNT_TYPE.equals(account.type) || AUTH_EXPIRING_TOKEN_TYPE.equals(tokenType); in validateSuccessfulTokenFetchingLifecycle()
227 isCachingExpected = ACCOUNT_TYPE.equals(account.type); in validateSuccessfulTokenFetchingLifecycle()
269 assertEquals(ACCOUNT_TYPE, result.get(AccountManager.KEY_ACCOUNT_TYPE)); in validateAccountAndNoAuthTokenResult()
[all …]
/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/statsd/apps/statsdapp/src/com/android/server/cts/device/statsd/
DStatsdAuthenticator.java39 private static final String ACCOUNT_TYPE = "com.android.cts.statsd"; 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/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()
DProvisioningTest.java121 for (Account account : am.getAccountsByType(AccountAuthenticator.ACCOUNT_TYPE)) { in testAccountExist()
133 am.getAccountsByType(AccountAuthenticator.ACCOUNT_TYPE).length == 0); in testAccountNotExist()
/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()
/cts/hostsidetests/devicepolicy/app/AccountCheck/Tester/src/com/android/cts/devicepolicy/accountcheck/tester/
DTestAuthenticator.java38 private static final String ACCOUNT_TYPE = "com.android.cts.devicepolicy.authcheck.tester"; field in TestAuthenticator
56 createAccount(this, ACCOUNT_TYPE, features); in onStartCommand()
/cts/tests/tests/provider/src/android/provider/cts/contacts/account/
DContactsContract_Subquery.java50 .with(RawContacts.ACCOUNT_TYPE, "test_account") in testProviderStatus_addedContacts()

12