/cts/tests/tests/accounts/src/android/accounts/cts/ |
D | AuthenticatorDescriptionTest.java | 9 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()
|
D | MockAccountAuthenticator.java | 160 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/ |
D | EditPropertiesTx.java | 23 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()
|
D | StartAddAccountSessionTx.java | 26 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()
|
D | AddAccountTx.java | 26 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/ |
D | AccountManagementTest.java | 119 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/ |
D | TestAppAccountAuthenticator.java | 57 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/ |
D | TestDefaultAuthenticator.java | 38 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()
|
D | TestAccountAuthenticator.java | 46 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/ |
D | AccountCreator.java | 81 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/ |
D | SetPolicyActivity.java | 85 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/ |
D | StubAuthenticator.java | 49 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/ |
D | StubAuthenticator.java | 54 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/ |
D | PocAuthenticator.java | 50 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/ |
D | AccountManagementTest.java | 82 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()
|
D | MockAccountAuthenticator.java | 49 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/ |
D | PocAuthService.java | 41 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/ |
D | PocAuthService.java | 40 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/ |
D | SyncAdapterSettingsAuthenticator.java | 53 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/ |
D | MockAuthenticatorService.java | 48 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/ |
D | TestContactsDataManager.java | 55 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/ |
D | NewUserRequestTest.java | 130 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/ |
D | TestAccountAuthenticator.java | 44 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/ |
D | MockAccountAuthenticator.java | 50 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/ |
D | StubAuthenticator.java | 51 String accountType) { in editProperties() argument 57 String accountType, String tokenType, String[] strings, in addAccount() argument
|