/cts/tests/tests/calendarprovider/src/android/provider/cts/calendar/ |
D | CalendarTest.java | 127 static String generateCalendarOwnerEmail(String account) { in generateCalendarOwnerEmail() argument 128 return "OWNER_" + account + "@example.com"; in generateCalendarOwnerEmail() 140 String account, int seed) { in getNewCalendarValues() argument 145 values.put(Calendars.ACCOUNT_NAME, account); in getNewCalendarValues() 150 values.put(Calendars.OWNER_ACCOUNT, generateCalendarOwnerEmail(account)); in getNewCalendarValues() 203 public static int deleteCalendarByAccount(ContentResolver resolver, String account) { in deleteCalendarByAccount() argument 205 new String[] { account }); in deleteCalendarByAccount() 208 public static Cursor getCalendarsByAccount(ContentResolver resolver, String account) { in getCalendarsByAccount() argument 211 if (account != null) { in getCalendarsByAccount() 214 selectionArgs[1] = account; in getCalendarsByAccount() [all …]
|
/cts/tests/tests/syncmanager/apps/app1/src/android/content/syncmanager/cts/app/ |
D | SyncManagerCtsAuthenticator.java | 66 final Account account = new Account(name, getAccountType()); in ensureTestAccount() local 69 result.putString(AccountManager.KEY_ACCOUNT_TYPE, account.type); in ensureTestAccount() 70 result.putString(AccountManager.KEY_ACCOUNT_NAME, account.name); in ensureTestAccount() 72 if (!Arrays.asList(getAccountManager().getAccountsByType(account.type)).contains(account)) { in ensureTestAccount() 73 Log.i(TAG, "Adding account: " + account); in ensureTestAccount() 74 getAccountManager().addAccountExplicitly(account, "password", new Bundle()); in ensureTestAccount() 84 for (Account account : am.getAccountsByType(getAccountType())) { in removeAllAccounts() 85 Log.i(TAG, "Removing " + account + "..."); in removeAllAccounts() 86 am.removeAccountExplicitly(account); in removeAllAccounts() 116 public Bundle updateCredentials(AccountAuthenticatorResponse response, Account account, in updateCredentials() argument [all …]
|
D | SyncManagerCtsSyncAdapter.java | 57 SyncResult onPerformSync(Account account, Bundle extras, String authority, in onPerformSync() argument 64 public void onPerformSync(Account account, Bundle extras, String authority, in onPerformSync() argument 68 Log.i(TAG, "onPerformSync: account=" + account + " authority=" + authority in onPerformSync() 74 .setAccountName(account.name) in onPerformSync() 75 .setAccountType(account.type) in onPerformSync() 81 getContext().getContentResolver().setIsSyncable(account, authority, 1); in onPerformSync() 84 sSyncInterceptor.onPerformSync(account, extras, authority, syncResult); in onPerformSync() 101 Log.i(TAG, "onPerformSyncFinishing: account=" + account + " authority=" + authority in onPerformSync()
|
/cts/hostsidetests/statsdatom/apps/statsdapp/src/com/android/server/cts/device/statsdatom/ |
D | StatsdAuthenticator.java | 59 final Account account = getTestAccount(); in ensureTestAccount() local 62 result.putString(AccountManager.KEY_ACCOUNT_TYPE, account.type); in ensureTestAccount() 63 result.putString(AccountManager.KEY_ACCOUNT_NAME, account.name); in ensureTestAccount() 67 if (!Arrays.asList(am.getAccountsByType(account.type)).contains(account) ){ in ensureTestAccount() 68 am.addAccountExplicitly(account, "password", new Bundle()); in ensureTestAccount() 78 for (Account account : am.getAccountsByType(ACCOUNT_TYPE)) { in removeAllAccounts() 79 Log.i(TAG, "Removing " + account + "..."); in removeAllAccounts() 80 am.removeAccountExplicitly(account); in removeAllAccounts() 107 public Bundle updateCredentials(AccountAuthenticatorResponse response, Account account, in updateCredentials() argument 113 public Bundle confirmCredentials(AccountAuthenticatorResponse response, Account account, in confirmCredentials() argument [all …]
|
/cts/tests/tests/accounts/common/src/android/accounts/cts/common/ |
D | TestAccountAuthenticator.java | 109 Account account, in confirmCredentials() argument 111 if (!mAccountType.equals(account.type)) { in confirmCredentials() 116 new ConfirmCredentialsTx(account, options, result)); in confirmCredentials() 120 if (account.name.startsWith(Fixtures.PREFIX_NAME_SUCCESS)) { in confirmCredentials() 123 result.putString(AccountManager.KEY_ACCOUNT_NAME, account.name); in confirmCredentials() 124 result.putString(AccountManager.KEY_ACCOUNT_TYPE, account.type); in confirmCredentials() 125 } else if (account.name.startsWith(Fixtures.PREFIX_NAME_INTERVENE)) { in confirmCredentials() 129 eventualActivityResultData.putExtra(AccountManager.KEY_ACCOUNT_NAME, account.name); in confirmCredentials() 130 eventualActivityResultData.putExtra(AccountManager.KEY_ACCOUNT_TYPE, account.type); in confirmCredentials() 155 Account account, in getAuthToken() argument [all …]
|
D | TestDefaultAuthenticator.java | 80 Account account, in confirmCredentials() argument 89 Account account, in getAuthToken() argument 105 Account account, in updateCredentials() argument 108 if (!mAccountType.equals(account.type)) { in updateCredentials() 112 result.putString(AccountManager.KEY_ACCOUNT_NAME, account.name); in updateCredentials() 113 result.putString(AccountManager.KEY_ACCOUNT_TYPE, account.type); in updateCredentials() 115 new UpdateCredentialsTx(account, authTokenType, options, result)); in updateCredentials() 122 Account account, in hasFeatures() argument
|
/cts/tests/tests/accounts/common/src/android/accounts/cts/common/tx/ |
D | GetAccountRemovalAllowedTx.java | 24 public final Account account; field in GetAccountRemovalAllowedTx 28 account = in.readParcelable(null); in GetAccountRemovalAllowedTx() 33 Account account, in GetAccountRemovalAllowedTx() argument 35 this.account = account; in GetAccountRemovalAllowedTx() 46 out.writeParcelable(account, flags); in writeToParcel()
|
D | StartUpdateCredentialsSessionTx.java | 24 public final Account account; field in StartUpdateCredentialsSessionTx 29 account = in.readParcelable(null); in StartUpdateCredentialsSessionTx() 35 Account account, in StartUpdateCredentialsSessionTx() argument 38 this.account = account; in StartUpdateCredentialsSessionTx() 50 out.writeParcelable(account, flags); in writeToParcel()
|
D | ConfirmCredentialsTx.java | 24 public final Account account; field in ConfirmCredentialsTx 29 account = in.readParcelable(null); in ConfirmCredentialsTx() 35 Account account, in ConfirmCredentialsTx() argument 38 this.account = account; in ConfirmCredentialsTx() 50 out.writeParcelable(account, flags); in writeToParcel()
|
D | GetAuthTokenTx.java | 24 public final Account account; field in GetAuthTokenTx 30 account = in.readParcelable(null); in GetAuthTokenTx() 37 Account account, in GetAuthTokenTx() argument 41 this.account = account; in GetAuthTokenTx() 54 out.writeParcelable(account, flags); in writeToParcel()
|
D | UpdateCredentialsTx.java | 24 public final Account account; field in UpdateCredentialsTx 30 account = in.readParcelable(null); in UpdateCredentialsTx() 37 Account account, in UpdateCredentialsTx() argument 41 this.account = account; in UpdateCredentialsTx() 54 out.writeParcelable(account, flags); in writeToParcel()
|
D | HasFeaturesTx.java | 27 public final Account account; field in HasFeaturesTx 32 account = in.readParcelable(null); in HasFeaturesTx() 38 Account account, in HasFeaturesTx() argument 41 this.account = account; in HasFeaturesTx() 57 out.writeParcelable(account, flags); in writeToParcel()
|
/cts/common/device-side/bedstead/remoteaccountauthenticator/src/test/java/com/android/bedstead/remoteaccountauthenticator/ |
D | RemoteAccountAuthenticatorTest.java | 68 AccountReference account = authenticator.addAccount().add(); in addAccount_accountIsAdded() local 70 assertThat(authenticator.allAccounts()).contains(account); in addAccount_accountIsAdded() 78 AccountReference account = authenticator.addAccount().add(); in remove_accountIsRemoved() local 79 account.remove(); in remove_accountIsRemoved() 81 assertThat(authenticator.allAccounts()).doesNotContain(account); in remove_accountIsRemoved() 89 AccountReference account = authenticator.addAccount().add(); in accountAutoclose_accountIsRemoved() local 90 try (account) { in accountAutoclose_accountIsRemoved() argument 94 assertThat(authenticator.allAccounts()).doesNotContain(account); in accountAutoclose_accountIsRemoved()
|
/cts/hostsidetests/multiuser/app/src/com/android/cts/multiuser/ |
D | MockAuthenticator.java | 61 final Account account = getTestAccount(); in addTestAccount() local 64 result.putString(AccountManager.KEY_ACCOUNT_TYPE, account.type); in addTestAccount() 65 result.putString(AccountManager.KEY_ACCOUNT_NAME, account.name); in addTestAccount() 69 if (!Arrays.asList(am.getAccountsByType(account.type)).contains(account)) { in addTestAccount() 70 am.addAccountExplicitly(account, "password", new Bundle()); in addTestAccount() 111 public Bundle updateCredentials(AccountAuthenticatorResponse response, Account account, in updateCredentials() argument 117 public Bundle confirmCredentials(AccountAuthenticatorResponse response, Account account, in confirmCredentials() argument 126 public Bundle getAuthToken(AccountAuthenticatorResponse response, Account account, in getAuthToken() argument 137 public Bundle hasFeatures(AccountAuthenticatorResponse response, Account account, in hasFeatures() argument
|
/cts/hostsidetests/accounts/test-apps/AccountManagerCrossUserApp/src/com/android/cts/accountmanager/ |
D | MockAuthenticator.java | 60 final Account account = getTestAccount(); in addTestAccount() local 63 result.putString(AccountManager.KEY_ACCOUNT_TYPE, account.type); in addTestAccount() 64 result.putString(AccountManager.KEY_ACCOUNT_NAME, account.name); in addTestAccount() 68 if (!Arrays.asList(am.getAccountsByType(account.type)).contains(account) ){ in addTestAccount() 69 am.addAccountExplicitly(account, "password", new Bundle()); in addTestAccount() 110 public Bundle updateCredentials(AccountAuthenticatorResponse response, Account account, in updateCredentials() argument 116 public Bundle confirmCredentials(AccountAuthenticatorResponse response, Account account, in confirmCredentials() argument 125 public Bundle getAuthToken(AccountAuthenticatorResponse response, Account account, in getAuthToken() argument 136 public Bundle hasFeatures(AccountAuthenticatorResponse response, Account account, in hasFeatures() argument
|
/cts/tests/tests/telecom-cuj/src/android/telecom/cts/cuj/app/integration/ |
D | PhoneAccountTest.java | 83 PhoneAccount account = verifyDefaultAccountIsRegistered(voipCsApp); in testAccountTest_ConnectionServiceVoipAppMain() local 84 unregisterDefaultAndVerify(voipCsApp, account); in testAccountTest_ConnectionServiceVoipAppMain() 200 PhoneAccount account = verifyDefaultAccountIsRegistered(transactionalApp); in testAccountTest_TransactionalVoipAppMain() local 201 unregisterDefaultAndVerify(transactionalApp, account); in testAccountTest_TransactionalVoipAppMain() 238 for(PhoneAccount account : accounts){ in testGetOwnSelfManagedPhoneAccount_TransactionalVoipAppMain() 239 if(account.getAccountHandle().equals(expectedHandle)){ in testGetOwnSelfManagedPhoneAccount_TransactionalVoipAppMain() 241 assertPhoneAccountValuesMatch(expectedAccount, account); in testGetOwnSelfManagedPhoneAccount_TransactionalVoipAppMain() 301 for(PhoneAccount account : accounts){ in testMultipleAccountsWithUniquePhoneAccountHandle() 302 if(account.getAccountHandle().equals(uniqueHandle)){ in testMultipleAccountsWithUniquePhoneAccountHandle() 304 assertPhoneAccountValuesMatch(acctVideoCap, account); in testMultipleAccountsWithUniquePhoneAccountHandle() [all …]
|
/cts/hostsidetests/devicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/ |
D | AccountAuthenticator.java | 83 public Bundle updateCredentials(AccountAuthenticatorResponse response, Account account, in updateCredentials() argument 89 public Bundle confirmCredentials(AccountAuthenticatorResponse response, Account account, in confirmCredentials() argument 98 public Bundle getAuthToken(AccountAuthenticatorResponse response, Account account, in getAuthToken() argument 109 public Bundle hasFeatures(AccountAuthenticatorResponse response, Account account, in hasFeatures() argument 118 …ic Bundle getAccountCredentialsForCloning(AccountAuthenticatorResponse response, Account account) { in getAccountCredentialsForCloning() argument 119 if (TEST_ACCOUNT.equals(account)) { in getAccountCredentialsForCloning() 122 Log.e(TAG, "failed in getAccountCredentialsForCloning. account: " + account); in getAccountCredentialsForCloning() 128 public Bundle addAccountFromCredentials(AccountAuthenticatorResponse response, Account account, in addAccountFromCredentials() argument 130 if (accountCredentials != null && TEST_ACCOUNT.equals(account) in addAccountFromCredentials() 136 + " account: " + account); in addAccountFromCredentials()
|
/cts/common/device-side/bedstead/testapp/src/testapps/main/java/com/android/bedstead/testapp/ |
D | TestAppAccountAuthenticator.java | 81 Account account = new Account(name, accountType); in addAccount() local 83 accountManager.addAccountExplicitly(account, password, new Bundle()); in addAccount() 85 accountManager.setUserData(account, "features", String.join(",", features)); in addAccount() 96 public Bundle updateCredentials(AccountAuthenticatorResponse response, Account account, in updateCredentials() argument 100 accountManager.setUserData(account, "features", in updateCredentials() 108 public Bundle confirmCredentials(AccountAuthenticatorResponse response, Account account, in confirmCredentials() argument 117 public Bundle getAuthToken(AccountAuthenticatorResponse response, Account account, in getAuthToken() argument 128 public Bundle hasFeatures(AccountAuthenticatorResponse response, Account account, in hasFeatures() argument 132 if (accountManager.getUserData(account, "features") == null) { in hasFeatures() 135 hasFeatures = Arrays.asList(accountManager.getUserData(account, "features") in hasFeatures()
|
/cts/tests/tests/accounts/src/android/accounts/cts/ |
D | AccountTest.java | 18 private Account account; field in AccountTest 22 account = new Account("abc@xyz.org", "com.my.auth"); in setUp() 45 assertEquals(0, account.describeContents()); in testDescribeContents() 52 account.writeToParcel(parcel, 0); in testWriteToParcel() 58 assertEquals(account, newAccount); in testWriteToParcel()
|
D | MockAccountAuthenticator.java | 178 public Bundle updateCredentials(AccountAuthenticatorResponse response, Account account, in updateCredentials() argument 181 this.mAccount = account; in updateCredentials() 203 public Bundle confirmCredentials(AccountAuthenticatorResponse response, Account account, in confirmCredentials() argument 206 this.mAccount = account; in confirmCredentials() 226 Account account, in getAuthToken() argument 232 this.mAccount = account; in getAuthToken() 237 result.putString(AccountManager.KEY_ACCOUNT_NAME, account.name); in getAuthToken() 238 result.putString(AccountManager.KEY_ACCOUNT_TYPE, account.type); in getAuthToken() 268 public Bundle hasFeatures(AccountAuthenticatorResponse response, Account account, in hasFeatures() argument 272 this.mAccount = account; in hasFeatures() [all …]
|
/cts/tests/tests/contactsprovider/src/android/provider/cts/contacts/ |
D | RawContactUtil.java | 42 public static long createRawContactWithName(ContentResolver resolver, Account account, in createRawContactWithName() argument 44 Long rawContactId = insertRawContact(resolver, account); in createRawContactWithName() 50 Account account) { in createRawContactWithAutoGeneratedName() argument 51 Long rawContactId = insertRawContact(resolver, account); in createRawContactWithAutoGeneratedName() 56 public static long insertRawContact(ContentResolver resolver, Account account) { in insertRawContact() argument 58 if (account != null) { in insertRawContact() 59 values.put(ContactsContract.RawContacts.ACCOUNT_NAME, account.name); in insertRawContact() 60 values.put(ContactsContract.RawContacts.ACCOUNT_TYPE, account.type); in insertRawContact()
|
/cts/common/device-side/bedstead/remoteaccountauthenticator/src/main/java/com/android/bedstead/remoteaccountauthenticator/ |
D | RemoteAccountAuthenticator.java | 103 public void setFeatures(AccountReference account, Set<String> features) { in setFeatures() argument 109 account.account(), in setFeatures() 117 throw new NeneException("Error updating account " + account, e); in setFeatures() 124 public void remove(AccountReference account) { in remove() argument 127 account.account(), in remove() 133 throw new NeneException("Error removing account " + account, e); in remove()
|
/cts/tests/tests/content/SyncAccountAccessStubs/src/com/android/cts/stub/ |
D | StubAuthenticator.java | 79 Account account, Bundle bundle) throws NetworkErrorException { in confirmCredentials() argument 85 Account account, String type, Bundle bundle) throws NetworkErrorException { in getAuthToken() argument 99 Account account, String tokenType, Bundle bundle) in updateCredentials() argument 106 Account account, String[] options) throws NetworkErrorException { in hasFeatures() argument 112 Account account) throws NetworkErrorException { in getAccountRemovalAllowed() argument 120 for (Account account : accountManager.getAccounts()) { in removeAccounts() 121 accountManager.removeAccountExplicitly(account); in removeAccounts()
|
/cts/tests/tests/accounts/multiuser/src/test/android/accounts/cts/multiuser/ |
D | AccountManagerTest.java | 62 sDeviceState.account().account(), new String[]{"feature"}, in hasFeature_crossUser_withoutPermission_throwsException() 77 sDeviceState.account().account(), new String[]{"feature"}, in hasFeature_crossUser_accountHasFeature_returnsTrue() 92 sDeviceState.account().account(), new String[]{"feature"}, in hasFeature_crossUser_accountDoesNotHaveFeature_returnsFalse()
|
/cts/hostsidetests/content/test-apps/CtsSyncInvalidAccountAuthorityTestCases/src/android/content/sync/cts/ |
D | StubAuthenticator.java | 67 Account account, Bundle bundle) throws NetworkErrorException { in confirmCredentials() argument 73 Account account, String type, Bundle bundle) throws NetworkErrorException { in getAuthToken() argument 84 Account account, String tokenType, Bundle bundle) in updateCredentials() argument 91 Account account, String[] options) throws NetworkErrorException { in hasFeatures() argument 97 Account account) throws NetworkErrorException { in getAccountRemovalAllowed() argument
|