/cts/tests/tests/provider/src/android/provider/cts/ |
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 …]
|
D | ContactsProvider2_AccountRemovalTest.java | 31 import android.provider.cts.contacts.account.StaticAccountAuthenticator; 246 private ArrayList<ContactIdPair> createContacts(Account account, int numContacts) { in createContacts() argument 249 accountIds.add(DatabaseAsserts.assertAndCreateContact(mResolver, account)); in createContacts()
|
D | ContactsContract_RawContactsTest.java | 34 import android.provider.cts.contacts.account.StaticAccountAuthenticator;
|
D | ContactsContract_ContactsTest.java | 37 import android.provider.cts.contacts.account.StaticAccountAuthenticator;
|
/cts/tests/tests/accounts/common/src/android/accounts/cts/common/ |
D | TestAccountAuthenticator.java | 112 Account account, in confirmCredentials() argument 114 if (!mAccountType.equals(account.type)) { in confirmCredentials() 119 new ConfirmCredentialsTx(account, options, result)); in confirmCredentials() 123 if (account.name.startsWith(Fixtures.PREFIX_NAME_SUCCESS)) { in confirmCredentials() 126 result.putString(AccountManager.KEY_ACCOUNT_NAME, account.name); in confirmCredentials() 127 result.putString(AccountManager.KEY_ACCOUNT_TYPE, account.type); in confirmCredentials() 128 } else if (account.name.startsWith(Fixtures.PREFIX_NAME_INTERVENE)) { in confirmCredentials() 132 eventualActivityResultData.putExtra(AccountManager.KEY_ACCOUNT_NAME, account.name); in confirmCredentials() 133 eventualActivityResultData.putExtra(AccountManager.KEY_ACCOUNT_TYPE, account.type); in confirmCredentials() 166 Account account, in getAuthToken() argument [all …]
|
D | AuthenticatorContentProvider.java | 90 Account account = new Account(name, a.type); in setup() local 91 am.addAccountExplicitly(account, Fixtures.PREFIX_PASSWORD + name, null); in setup() 108 for (Account account : accountsToRemove) { in teardown() 109 am.removeAccountExplicitly(account); in teardown()
|
/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 | 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 | 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()
|
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()
|
/cts/tests/tests/accounts/src/android/accounts/cts/ |
D | MockAccountAuthenticator.java | 163 public Bundle updateCredentials(AccountAuthenticatorResponse response, Account account, in updateCredentials() argument 166 this.mAccount = account; in updateCredentials() 188 public Bundle confirmCredentials(AccountAuthenticatorResponse response, Account account, in confirmCredentials() argument 191 this.mAccount = account; in confirmCredentials() 211 Account account, in getAuthToken() argument 217 this.mAccount = account; in getAuthToken() 222 result.putString(AccountManager.KEY_ACCOUNT_NAME, account.name); in getAuthToken() 223 result.putString(AccountManager.KEY_ACCOUNT_TYPE, account.type); in getAuthToken() 253 public Bundle hasFeatures(AccountAuthenticatorResponse response, Account account, in hasFeatures() argument 257 this.mAccount = account; in hasFeatures() [all …]
|
D | AccountManagerTest.java | 164 Account account = fetcher.getAccount(); in validateSuccessfulTokenFetchingLifecycle() local 166 expected.putString(AccountManager.KEY_ACCOUNT_NAME, account.name); in validateSuccessfulTokenFetchingLifecycle() 167 expected.putString(AccountManager.KEY_ACCOUNT_TYPE, account.type); in validateSuccessfulTokenFetchingLifecycle() 182 ACCOUNT_TYPE.equals(account.type) || AUTH_EXPIRING_TOKEN_TYPE.equals(tokenType); in validateSuccessfulTokenFetchingLifecycle() 198 isCachingExpected = ACCOUNT_TYPE.equals(account.type); in validateSuccessfulTokenFetchingLifecycle() 204 am.invalidateAuthToken(account.type, token); in validateSuccessfulTokenFetchingLifecycle() 307 private Account renameAccount(AccountManager am, Account account, String newName) in renameAccount() argument 310 account, newName, null /* callback */, null /* handler */); in renameAccount() 317 private boolean removeAccount(AccountManager am, Account account, in removeAccount() argument 320 AccountManagerFuture<Boolean> futureBoolean = am.removeAccount(account, in removeAccount() [all …]
|
/cts/tests/tests/provider/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 values.put(ContactsContract.RawContacts.ACCOUNT_NAME, account.name); in insertRawContact() 59 values.put(ContactsContract.RawContacts.ACCOUNT_TYPE, account.type); in insertRawContact()
|
D | DatabaseAsserts.java | 26 import android.provider.cts.contacts.account.StaticAccountAuthenticator; 74 Account account, String name) { in assertAndCreateContactWithName() argument 75 long rawContactId = RawContactUtil.createRawContactWithName(resolver, account, name); in assertAndCreateContactWithName() 88 public static ContactIdPair assertAndCreateContact(ContentResolver resolver, Account account) { in assertAndCreateContact() argument 89 long rawContactId = RawContactUtil.createRawContactWithAutoGeneratedName(resolver, account); in assertAndCreateContact()
|
/cts/tests/tests/content/src/android/content/cts/ |
D | ContentResolverSyncTestCase.java | 75 private void addAccountExplicitly(Account account, String password, Bundle userdata) { in addAccountExplicitly() argument 76 assertTrue(sAccountManager.addAccountExplicitly(account, password, userdata)); in addAccountExplicitly() 79 private boolean removeAccount(AccountManager am, Account account, in removeAccount() argument 83 AccountManagerFuture<Boolean> futureBoolean = am.removeAccount(account, in removeAccount() 98 private void addAccountAndVerifyInitSync(Account account, String password, in addAccountAndVerifyInitSync() argument 103 addAccountExplicitly(account, password, null /* userData */); in addAccountAndVerifyInitSync() 117 assertEquals(account, getMockSyncAdapter().getAccounts().get(accountIndex)); in addAccountAndVerifyInitSync() 121 private void cancelSync(Account account, String authority, int latchTimeoutMillis) { in cancelSync() argument 127 ContentResolver.cancelSync(account, authority); in cancelSync() 137 private void requestSync(Account account, String authority, int latchTimeoutMillis) { in requestSync() argument [all …]
|
D | MockSyncAdapter.java | 79 public void startSync(ISyncContext syncContext, String authority, Account account, in startSync() argument 82 mAccounts.add(account); in startSync() 115 public void initialize(android.accounts.Account account, java.lang.String authority) in initialize() argument 118 mAccounts.add(account); in initialize()
|
D | MockAccountAuthenticator.java | 62 public Bundle updateCredentials(AccountAuthenticatorResponse response, Account account, in updateCredentials() argument 68 public Bundle confirmCredentials(AccountAuthenticatorResponse response, Account account, in confirmCredentials() argument 77 public Bundle getAuthToken(AccountAuthenticatorResponse response, Account account, in getAuthToken() argument 88 public Bundle hasFeatures(AccountAuthenticatorResponse response, Account account, in hasFeatures() argument
|
/cts/tests/tests/provider/src/android/provider/cts/contacts/account/ |
D | StaticAccountAuthenticator.java | 17 package android.provider.cts.contacts.account; 70 public Bundle confirmCredentials(AccountAuthenticatorResponse response, Account account, in confirmCredentials() argument 78 public Bundle getAuthToken(AccountAuthenticatorResponse response, Account account, in getAuthToken() argument 89 public Bundle updateCredentials(AccountAuthenticatorResponse response, Account account, in updateCredentials() argument 95 public Bundle hasFeatures(AccountAuthenticatorResponse response, Account account, in hasFeatures() argument
|
D | MockAccountService.java | 17 package android.provider.cts.contacts.account;
|
/cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/ |
D | MockAccountAuthenticator.java | 60 public Bundle updateCredentials(AccountAuthenticatorResponse response, Account account, in updateCredentials() argument 66 public Bundle confirmCredentials(AccountAuthenticatorResponse response, Account account, in confirmCredentials() argument 75 public Bundle getAuthToken(AccountAuthenticatorResponse response, Account account, in getAuthToken() argument 86 public Bundle hasFeatures(AccountAuthenticatorResponse response, Account account, in hasFeatures() argument
|
D | AccountUtilsTest.java | 59 for (Account account : accounts) { in removeAllAccountsForType() 60 AccountManagerFuture<Boolean> result = am.removeAccount(account, null, null); in removeAllAccountsForType()
|
/cts/tests/tests/telecom/src/android/telecom/cts/ |
D | DataObjectUnitTests.java | 61 PhoneAccount account = PhoneAccount.builder( in testPhoneAccount() local 71 assertNotNull(account); in testPhoneAccount() 72 assertEquals(accountHandle, account.getAccountHandle()); in testPhoneAccount() 73 assertEquals(tel, account.getAddress()); in testPhoneAccount() 74 assertEquals(tel, account.getSubscriptionAddress()); in testPhoneAccount() 75 assertEquals(PhoneAccount.CAPABILITY_CALL_PROVIDER, account.getCapabilities()); in testPhoneAccount() 76 assertEquals(Color.RED, account.getHighlightColor()); in testPhoneAccount() 77 assertEquals(ACCOUNT_LABEL, account.getShortDescription()); in testPhoneAccount() 78 assertEquals(ACCOUNT_LABEL, account.getLabel()); in testPhoneAccount() 79 assertEquals(Arrays.asList("tel"), account.getSupportedUriSchemes()); in testPhoneAccount() [all …]
|
D | NumberDialingTest.java | 45 PhoneAccount account = setupConnectionService( in testEndInPound() local 60 startCallTo(address, account.getAccountHandle()); in testEndInPound()
|
D | CallDetailsTest.java | 69 PhoneAccount account = setupConnectionService( in setUp() local
|