Home
last modified time | relevance | path

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

123

/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
165 this.mAccountType = accountType; in addAccount()
193 public Bundle editProperties(AccountAuthenticatorResponse response, String accountType) { in editProperties() argument
195 this.mAccountType = accountType; in editProperties()
336 String accountType, in startAddAccountSession() argument
341 this.mAccountType = accountType; in startAddAccountSession()
447 String accountType, in finishSession() argument
450 this.mAccountType = accountType; in finishSession()
/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/devicepolicy/src/android/devicepolicy/cts/
DAccountManagementTest.java119 sDeviceState.accounts().accountType(), /* disabled= */ false)); in setAccountTypesWithManagementDisabled_invalidAdmin_throwsException()
131 sDeviceState.accounts().accountType(), in setAccountManagementDisabled_disableAccountType_works()
136 sDeviceState.accounts().accountType()); in setAccountManagementDisabled_disableAccountType_works()
140 sDeviceState.accounts().accountType(), /* disabled= */ false); in setAccountManagementDisabled_disableAccountType_works()
149 sDeviceState.accounts().accountType(), in setAccountManagementDisabled_addSameAccountTypeTwice_presentOnlyOnce()
153 sDeviceState.accounts().accountType(), in setAccountManagementDisabled_addSameAccountTypeTwice_presentOnlyOnce()
159 .filter(s -> s.equals(sDeviceState.accounts().accountType())) in setAccountManagementDisabled_addSameAccountTypeTwice_presentOnlyOnce()
164 sDeviceState.accounts().accountType(), in setAccountManagementDisabled_addSameAccountTypeTwice_presentOnlyOnce()
173 sDeviceState.accounts().accountType(), in setAccountManagementDisabled_disableThenEnable_notDisabled()
177 sDeviceState.accounts().accountType(), in setAccountManagementDisabled_disableThenEnable_notDisabled()
[all …]
/cts/common/device-side/bedstead/testapp/src/testapps/main/java/com/android/bedstead/testapp/
DTestAppAccountAuthenticator.java57 private Bundle createResultBundle(String accountType) { in createResultBundle() argument
58 return createResultBundle(accountType, ACCOUNT_NAME); in createResultBundle()
61 private Bundle createResultBundle(String accountType, String name) { in createResultBundle() argument
64 result.putString(AccountManager.KEY_ACCOUNT_TYPE, accountType); in createResultBundle()
70 public Bundle addAccount(AccountAuthenticatorResponse response, String accountType, in addAccount() argument
81 Account account = new Account(name, accountType); in addAccount()
87 return createResultBundle(accountType, name); in addAccount()
91 public Bundle editProperties(AccountAuthenticatorResponse response, String accountType) { in editProperties() argument
92 return createResultBundle(accountType); in editProperties()
/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/multiuser/app/src/com/android/cts/multiuser/
DAccountCreator.java81 private void waitForAccountAuthenticator(String accountType, AccountManager am) { in waitForAccountAuthenticator() argument
85 && !accountAuthenticatorExists(accountType, am)) { in waitForAccountAuthenticator()
86 Log.w(TAG, "Account authenticator not found for accountType: " + accountType); in waitForAccountAuthenticator()
90 Log.i(TAG, "Account authenticator found for accountType: " + accountType); in waitForAccountAuthenticator()
94 private boolean accountAuthenticatorExists(String accountType, AccountManager am) { in accountAuthenticatorExists() argument
100 return authenticatorTypes.contains(accountType); in accountAuthenticatorExists()
/cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/
DSetPolicyActivity.java85 String accountType = intent.getStringExtra(EXTRA_ACCOUNT_TYPE); in handleIntent() local
87 accountType, true); in handleIntent()
88 Log.i(TAG, "Blocking account management for account type: " + accountType in handleIntent()
91 String accountType = intent.getStringExtra(EXTRA_ACCOUNT_TYPE); in handleIntent() local
93 accountType, false); in handleIntent()
94 Log.i(TAG, "Unblocking account management for account type: " + accountType in handleIntent()
/cts/hostsidetests/securitybulletin/test-apps/CVE-2021-0704/stub-app/src/android/security/cts/CVE_2021_0704_stub/
DStubAuthenticator.java49 public Bundle addAccount(AccountAuthenticatorResponse response, String accountType, in addAccount() argument
55 accountManager.addAccountExplicitly(new Account(accountName, accountType), in addAccount()
59 result.putString(AccountManager.KEY_ACCOUNT_TYPE, accountType); in addAccount()
80 public Bundle editProperties(AccountAuthenticatorResponse response, String accountType) { in editProperties() argument
/cts/tests/tests/content/SyncAccountAccessStubs/src/com/android/cts/stub/
DStubAuthenticator.java54 String accountType) { in editProperties() argument
60 String accountType, String tokenType, String[] strings, in addAccount() argument
67 accountManager.addAccountExplicitly(new Account(accountName, accountType), "bar", null); in addAccount()
71 result.putString(AccountManager.KEY_ACCOUNT_TYPE, accountType); in addAccount()
/cts/hostsidetests/securitybulletin/test-apps/CVE-2020-0338/src/android/security/cts/CVE_2020_0338/
DPocAuthenticator.java50 public Bundle editProperties(AccountAuthenticatorResponse response, String accountType) { in editProperties() argument
55 public Bundle addAccount(AccountAuthenticatorResponse response, String accountType, in addAccount() argument
61 intent.putExtra(AccountManager.KEY_ACCOUNT_TYPE, accountType); in addAccount()
/cts/hostsidetests/devicepolicy/app/AccountManagement/src/com/android/cts/devicepolicy/accountmanagement/
DAccountManagementTest.java82 String accountType = result.getString(AccountManager.KEY_ACCOUNT_TYPE); in testAddAccount_allowed() local
84 assertEquals(MockAccountAuthenticator.ACCOUNT_TYPE, accountType); in testAddAccount_allowed()
87 Account account = new Account(accountName, accountType); in testAddAccount_allowed()
DMockAccountAuthenticator.java49 public Bundle addAccount(AccountAuthenticatorResponse response, String accountType, in addAccount() argument
56 public Bundle editProperties(AccountAuthenticatorResponse response, String accountType) { in editProperties() argument
/cts/hostsidetests/securitybulletin/test-apps/CVE-2023-20944/test-app/src/android/security/cts/CVE_2023_20944_test/
DPocAuthService.java41 public Bundle addAccount(AccountAuthenticatorResponse response, String accountType, in addAccount() argument
52 public Bundle editProperties(AccountAuthenticatorResponse response, String accountType) { in editProperties() argument
/cts/hostsidetests/securitybulletin/test-apps/CVE-2021-0685/src/android/security/cts/CVE_2021_0685/
DPocAuthService.java40 public Bundle addAccount(AccountAuthenticatorResponse response, String accountType, in addAccount() argument
51 public Bundle editProperties(AccountAuthenticatorResponse response, String accountType) { in editProperties() argument
/cts/hostsidetests/backup/SyncAdapterSettingsApp/src/android/cts/backup/syncadaptersettingsapp/
DSyncAdapterSettingsAuthenticator.java53 public Bundle addAccount(AccountAuthenticatorResponse response, String accountType, in addAccount() argument
60 public Bundle editProperties(AccountAuthenticatorResponse response, String accountType) { in editProperties() argument
/cts/tests/tests/appenumeration/app/target/src/android/appenumeration/testapp/
DMockAuthenticatorService.java48 public Bundle editProperties(AccountAuthenticatorResponse response, String accountType) { in editProperties() argument
53 public Bundle addAccount(AccountAuthenticatorResponse response, String accountType, in addAccount() argument
/cts/hostsidetests/appcloning/hostside/src/com/android/cts/appcloning/contacts/
DTestContactsDataManager.java55 public final String accountType; field in TestContactsDataManager.TestRawContact
58 TestRawContact(String accountName, String accountType, String customRingtone) { in TestRawContact() argument
60 this.accountType = accountType; in TestRawContact()
/cts/tests/tests/multiuser/src/android/multiuser/cts/
DNewUserRequestTest.java130 final String accountType = "test_account_type"; in testSetAccountNameAndAccountType() local
131 mBuilder.setAccountName(accountName).setAccountType(accountType); in testSetAccountNameAndAccountType()
134 assertThat(request.getAccountType()).isEqualTo(accountType); in testSetAccountNameAndAccountType()
/cts/hostsidetests/appcloning/test-apps/AppCloningContactsSharingApps/CloneProfileAppWithLaunchableActivity/src/com/android/cts/launchable/cloneprofile/contacts/app/
DTestAccountAuthenticator.java44 public Bundle editProperties(AccountAuthenticatorResponse response, String accountType) { in editProperties() argument
49 public Bundle addAccount(AccountAuthenticatorResponse response, String accountType, in addAccount() argument
/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
/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

123