Home
last modified time | relevance | path

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

/cts/tests/tests/accounts/src/android/accounts/cts/
DAuthenticatorDescriptionTest.java9 private String accountType = "com.my.auth"; field in AuthenticatorDescriptionTest
15 desc = new AuthenticatorDescription(accountType, packageName, 1, 1, 1, 1, true); in setUp()
28 new AuthenticatorDescription(accountType, null, 1, 1, 1, 1); in testAccountObjectCreationWithNullPackageName()
35 new AuthenticatorDescription(accountType, packageName, -1, 0, -1, 1); in testObjectCreation()
36 new AuthenticatorDescription(accountType, packageName, -1, 0, -1, 1, true); in testObjectCreation()
45 AuthenticatorDescription desc = AuthenticatorDescription.newKey(accountType); in testNewKey()
46 assertEquals(desc.type, accountType); in testNewKey()
DMockAccountAuthenticator.java160 public Bundle addAccount(AccountAuthenticatorResponse response, String accountType, in addAccount() argument
164 this.mAccountType = accountType; in addAccount()
192 public Bundle editProperties(AccountAuthenticatorResponse response, String accountType) { in editProperties() argument
194 this.mAccountType = accountType; in editProperties()
334 String accountType, in startAddAccountSession() argument
339 this.mAccountType = accountType; in startAddAccountSession()
444 String accountType, in finishSession() argument
447 this.mAccountType = accountType; in finishSession()
DAbstractAuthenticatorTests.java191 assertEquals(Fixtures.TYPE_DEFAULT, addAccountTx.accountType); in testFinishSessionAndStartAddAccountSessionDefaultImpl()
DAccountManagerUnaffiliatedAuthenticatorTests.java455 assertEquals(tx.accountType, Fixtures.TYPE_STANDARD_UNAFFILIATED); in validateStartAddAccountSessionParameters()
DAccountManagerTest.java314 private Bundle addAccount(AccountManager am, String accountType, String authTokenType, in addAccount() argument
320 accountType, in addAccount()
3113 String accountType,
3123 accountType,
/cts/tests/tests/accounts/common/src/android/accounts/cts/common/tx/
DEditPropertiesTx.java23 public final String accountType; field in EditPropertiesTx
27 accountType = in.readString(); in EditPropertiesTx()
32 String accountType, in EditPropertiesTx() argument
34 this.accountType = accountType; in EditPropertiesTx()
45 out.writeString(accountType); in writeToParcel()
DStartAddAccountSessionTx.java26 public final String accountType; field in StartAddAccountSessionTx
32 accountType = in.readString(); in StartAddAccountSessionTx()
39 String accountType, in StartAddAccountSessionTx() argument
43 this.accountType = accountType; in StartAddAccountSessionTx()
60 out.writeString(accountType); in writeToParcel()
DAddAccountTx.java26 public final String accountType; field in AddAccountTx
33 accountType = in.readString(); in AddAccountTx()
41 String accountType, in AddAccountTx() argument
46 this.accountType = accountType; in AddAccountTx()
64 out.writeString(accountType); in writeToParcel()
/cts/tests/tests/accounts/common/src/android/accounts/cts/common/
DTestDefaultAuthenticator.java38 public TestDefaultAuthenticator(Context context, String accountType) { in TestDefaultAuthenticator() argument
40 mAccountType = accountType; in TestDefaultAuthenticator()
45 public Bundle editProperties(AccountAuthenticatorResponse response, String accountType) { in editProperties() argument
53 String accountType, in addAccount() argument
57 if (!mAccountType.equals(accountType)) { in addAccount()
73 new AddAccountTx(accountType, authTokenType, requiredFeatures, options, result)); in addAccount()
DTestAccountAuthenticator.java46 public TestAccountAuthenticator(Context context, String accountType) { in TestAccountAuthenticator() argument
49 mAccountType = accountType; in TestAccountAuthenticator()
53 public Bundle editProperties(AccountAuthenticatorResponse response, String accountType) { in editProperties() argument
61 String accountType, in addAccount() argument
65 if (!mAccountType.equals(accountType)) { in addAccount()
76 new AddAccountTx(accountType, authTokenType, requiredFeatures, options, result)); in addAccount()
85 eventualActivityResultData.putExtra(AccountManager.KEY_ACCOUNT_TYPE, accountType); in addAccount()
312 String accountType, in startAddAccountSession() argument
316 if (!mAccountType.equals(accountType)) { in startAddAccountSession()
321 accountType, authTokenType, requiredFeatures, options)); in startAddAccountSession()
/cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/
DSetPolicyActivity.java90 String accountType = intent.getStringExtra(EXTRA_ACCOUNT_TYPE); in handleIntent() local
92 accountType, true); in handleIntent()
93 Log.i(TAG, "Blocking account management for account type: " + accountType in handleIntent()
96 String accountType = intent.getStringExtra(EXTRA_ACCOUNT_TYPE); in handleIntent() local
98 accountType, false); in handleIntent()
99 Log.i(TAG, "Unblocking account management for account type: " + accountType in handleIntent()
DDpcAllowedAccountManagementTest.java123 for (String accountType : mDevicePolicyManager.getAccountTypesWithManagementDisabled()) { in clearAllAccountManagementDisabled()
124 mDevicePolicyManager.setAccountManagementDisabled(ADMIN_RECEIVER_COMPONENT, accountType, in clearAllAccountManagementDisabled()
/cts/hostsidetests/devicepolicy/app/AccountCheck/Auth/src/com/android/cts/devicepolicy/accountcheck/
DTestAuthenticator.java59 public Bundle addAccount(AccountAuthenticatorResponse response, String accountType, in addAccount() argument
73 Log.v(TAG, "Adding account '" + name + "' for " + accountType in addAccount()
77 result.putString(AccountManager.KEY_ACCOUNT_TYPE, accountType); in addAccount()
81 new Account(name, accountType), "password", new Bundle()); in addAccount()
87 public Bundle editProperties(AccountAuthenticatorResponse response, String accountType) { in editProperties() argument
/cts/hostsidetests/devicepolicy/app/AccountCheck/Tester/src/com/android/cts/devicepolicy/accountcheck/tester/
DTestAuthenticator.java63 private static Account createAccount(Context context, String accountType, in createAccount() argument
72 Log.i(TAG, "Adding account '" + name + "' for " + accountType in createAccount()
75 final Account account = new Account(name, accountType); in createAccount()
91 public Bundle addAccount(AccountAuthenticatorResponse response, String accountType, in addAccount() argument
97 public Bundle editProperties(AccountAuthenticatorResponse response, String accountType) { in editProperties() argument
/cts/hostsidetests/content/test-apps/SyncAccountAccessStubs/src/com/android/cts/stub/
DStubAuthenticator.java53 String accountType) { in editProperties() argument
59 String accountType, String tokenType, String[] strings, in addAccount() argument
62 accountManager.addAccountExplicitly(new Account("foo", accountType), "bar", null); in addAccount()
66 result.putString(AccountManager.KEY_ACCOUNT_TYPE, accountType); in addAccount()
/cts/tests/tests/content/src/android/content/cts/
DMockAccountAuthenticator.java50 public Bundle addAccount(AccountAuthenticatorResponse response, String accountType, in addAccount() argument
57 public Bundle editProperties(AccountAuthenticatorResponse response, String accountType) { in editProperties() argument
DContentResolverSyncTestCase.java289 if (MockAccountAuthenticator.ACCOUNT_TYPE.equals(type.accountType) &&
/cts/tests/tests/provider/src/android/provider/cts/contacts/account/
DStaticAccountAuthenticator.java56 public Bundle editProperties(AccountAuthenticatorResponse response, String accountType) { in editProperties() argument
61 public Bundle addAccount(AccountAuthenticatorResponse response, String accountType, in addAccount() argument
/cts/hostsidetests/content/test-apps/CtsSyncInvalidAccountAuthorityTestCases/src/android/content/sync/cts/
DStubAuthenticator.java51 String accountType) { in editProperties() argument
57 String accountType, String tokenType, String[] strings, in addAccount() argument
/cts/hostsidetests/devicepolicy/app/AccountManagement/src/com/android/cts/devicepolicy/accountmanagement/
DMockAccountAuthenticator.java50 public Bundle addAccount(AccountAuthenticatorResponse response, String accountType, in addAccount() argument
57 public Bundle editProperties(AccountAuthenticatorResponse response, String accountType) { in editProperties() argument
/cts/tests/tests/provider/src/android/provider/cts/contacts/
DDummyGalProvider.java168 final String accountType = uri.getQueryParameter(RawContacts.ACCOUNT_TYPE); in handleFilter() local
179 if (!ACCOUNT_TYPE.equals(accountType)) { in handleFilter()
181 ACCOUNT_TYPE, accountType)); in handleFilter()
/cts/hostsidetests/incident/apps/batterystatsapp/src/com/android/server/cts/device/batterystats/
DBatteryStatsAuthenticator.java96 public Bundle addAccount(AccountAuthenticatorResponse response, String accountType, in addAccount() argument
103 public Bundle editProperties(AccountAuthenticatorResponse response, String accountType) { in editProperties() argument
/cts/hostsidetests/devicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/
DAccountAuthenticator.java71 public Bundle addAccount(AccountAuthenticatorResponse response, String accountType, in addAccount() argument
78 public Bundle editProperties(AccountAuthenticatorResponse response, String accountType) { in editProperties() argument
/cts/hostsidetests/devicepolicy/src/com/android/cts/devicepolicy/
DDeviceAndProfileOwnerTest.java752 private void changeAccountManagement(String command, String accountType, int userId) in changeAccountManagement() argument
754 changePolicyOrFail(command, "--es extra-account-type " + accountType, userId); in changeAccountManagement()
/cts/tests/tests/provider/src/android/provider/cts/
DCalendarTest.java700 String accountType, String data, String index, int type, int color) { in addColor() argument
701 Uri uri = asSyncAdapter(Colors.CONTENT_URI, accountName, accountType); in addColor()
717 String accountType, String index) { in findColorByIndex() argument
720 new String[] {accountName, accountType, index}, null); in findColorByIndex()
724 String accountType) { in findColorsByAccount() argument
726 new String[] { accountName, accountType }, null); in findColorsByAccount()
736 String accountName, String accountType) { in addDefaultColorsToAccount() argument
738 long id = addColor(resolver, accountName, accountType, null, DEFAULT_INDICES[i], in addDefaultColorsToAccount()
748 String accountType) { in deleteColorsByAccount() argument
749 Uri uri = asSyncAdapter(Colors.CONTENT_URI, accountName, accountType); in deleteColorsByAccount()
[all …]