Searched refs:accounts (Results 1 - 25 of 102) sorted by relevance

12345

/packages/apps/Email/tests/src/com/android/email/
H A DAccountTestCase.java19 import android.accounts.AccountManager;
20 import android.accounts.AccountManagerFuture;
21 import android.accounts.AuthenticatorException;
22 import android.accounts.OperationCanceledException;
36 * Base class for unit tests that use {@link android.accounts.Account}.
48 protected android.accounts.Account[] getExchangeAccounts() {
52 protected android.accounts.Account makeAccountManagerAccount(String username) {
53 return new android.accounts.Account(username, TEST_ACCOUNT_TYPE);
57 final android.accounts.Account account = makeAccountManagerAccount(username);
84 protected void deleteAccountManagerAccount(android.accounts
[all...]
/packages/apps/Email/src/com/android/email/provider/
H A DAccountReconciler.java19 import android.accounts.AccountManager;
20 import android.accounts.AccountManagerFuture;
21 import android.accounts.AuthenticatorException;
22 import android.accounts.OperationCanceledException;
35 // AccountManager accounts with a name beginning with this constant are ignored for purposes
45 * @param emailProviderAccounts accounts as reported in the Email provider
46 * @param accountManagerAccounts accounts as reported by the system account manager, for the
52 android.accounts.Account[] accountManagerAccounts) {
71 * @param emailProviderAccounts the exchange provider accounts to work from
72 * @param accountManagerAccounts The account manager accounts t
[all...]
/packages/apps/Calendar/src/com/android/calendar/
H A DRecipientAdapter.java21 import android.accounts.Account;
37 super.setAccount(new android.accounts.Account(account.name, "unknown"));
H A DCalendarSettingsActivity.java19 import android.accounts.Account;
20 import android.accounts.AccountManager;
46 Account[] accounts = AccountManager.get(this).getAccounts();
47 if (accounts != null) {
48 int length = accounts.length;
50 Account acct = accounts[i];
64 mAccounts = accounts;
118 Account[] accounts = AccountManager.get(CalendarSettingsActivity.this).getAccounts();
119 if (accounts != null && !accounts
[all...]
/packages/apps/KeyChain/support/src/com/android/keychain/tests/support/
H A DIKeyChainServiceTestSupport.aidl18 import android.accounts.Account;
/packages/apps/Browser/src/com/android/browser/
H A DAccountsChangedReceiver.java18 import android.accounts.Account;
19 import android.accounts.AccountManager;
54 Account[] accounts = AccountManager.get(mContext).getAccounts();
61 if (!contains(accounts, name, type)) {
80 boolean contains(Account[] accounts, String name, String type) { argument
81 for (Account a : accounts) {
H A DDeviceAccountLogin.java19 import android.accounts.Account;
20 import android.accounts.AccountManager;
21 import android.accounts.AccountManagerCallback;
22 import android.accounts.AccountManagerFuture;
63 // No need to display UI if there are no accounts.
H A DGoogleAccountLogin.java19 import android.accounts.Account;
20 import android.accounts.AccountManager;
21 import android.accounts.AccountManagerCallback;
22 import android.accounts.AccountManagerFuture;
50 "https://www.google.com/accounts/IssueAuthToken?service=gaia&Session=false");
53 "https://www.google.com/accounts/TokenAuth");
223 Account[] accounts = getAccounts(activity);
224 if (accounts == null || accounts.length == 0) {
230 new GoogleAccountLogin(activity, accounts[
[all...]
/packages/apps/Contacts/src/com/android/contacts/
H A DContactListEmptyView.java19 import android.accounts.Account;
20 import android.accounts.AccountManager;
98 Account[] accounts = AccountManager.get(getContext()).getAccounts();
99 if (accounts != null && accounts.length > 0) {
101 for (Account account : accounts) {
/packages/apps/Contacts/src/com/android/contacts/util/
H A DAccountPromptUtils.java22 import android.accounts.AccountManager;
23 import android.accounts.AccountManagerCallback;
24 import android.accounts.AccountManagerFuture;
25 import android.accounts.AuthenticatorDescription;
26 import android.accounts.AuthenticatorException;
27 import android.accounts.OperationCanceledException;
/packages/apps/Settings/src/com/android/settings/accounts/
H A DAddAccountSettings.java17 package com.android.settings.accounts;
19 import android.accounts.AccountManager;
20 import android.accounts.AccountManagerCallback;
21 import android.accounts.AccountManagerFuture;
22 import android.accounts.AuthenticatorException;
23 import android.accounts.OperationCanceledException;
H A DProviderPreference.java17 package com.android.settings.accounts;
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
H A DSynchronousProfileProvider.java19 import android.accounts.Account;
/packages/apps/Email/src/com/android/email/service/
H A DEasTestAuthenticatorService.java19 import android.accounts.AbstractAccountAuthenticator;
20 import android.accounts.Account;
21 import android.accounts.AccountAuthenticatorResponse;
22 import android.accounts.AccountManager;
23 import android.accounts.NetworkErrorException;
H A DEasAuthenticatorService.java24 import android.accounts.AbstractAccountAuthenticator;
25 import android.accounts.Account;
26 import android.accounts.AccountAuthenticatorResponse;
27 import android.accounts.AccountManager;
28 import android.accounts.NetworkErrorException;
H A DPopImapAuthenticatorService.java24 import android.accounts.AbstractAccountAuthenticator;
25 import android.accounts.Account;
26 import android.accounts.AccountAuthenticatorResponse;
27 import android.accounts.AccountManager;
28 import android.accounts.NetworkErrorException;
/packages/apps/Contacts/src/com/android/contacts/vcard/
H A DImportRequest.java18 import android.accounts.Account;
/packages/apps/Contacts/tests/src/com/android/contacts/tests/allintents/
H A DSelectAccountDialogFragment.java19 import android.accounts.Account;
20 import android.accounts.AccountManager;
47 Account[] accounts = accountManager.getAccounts();
54 android.R.layout.simple_list_item_2, accounts) {
/packages/apps/Contacts/tests/src/com/android/contacts/tests/testauth/
H A DTestAuthenticator.java19 import android.accounts.AbstractAccountAuthenticator;
20 import android.accounts.Account;
21 import android.accounts.AccountAuthenticatorResponse;
22 import android.accounts.AccountManager;
H A DTestSyncAdapter.java18 import android.accounts.Account;
19 import android.accounts.AccountManager;
/packages/apps/Email/src/com/android/email/
H A DRecipientAdapter.java22 import android.accounts.Account;
53 super.setAccount(new android.accounts.Account(account.name, "unknown"));
/packages/providers/CalendarProvider/tests/src/com/android/providers/calendar/
H A DCalendarProvider2ForTesting.java3 import android.accounts.Account;
25 public void onAccountsUpdated(Account[] accounts) { argument
/packages/apps/Email/tests/src/com/android/email/service/
H A DMailServiceTests.java19 import android.accounts.AccountManager;
65 // Delete any test accounts we might have created earlier
72 // Delete any test accounts we might have created earlier
78 * prexisting (non-test) accounts in the account manager.
86 // *real* accounts here (not in the mock provider)
89 // Now run the test with the "user" accounts in place
97 android.accounts.Account[] accountManagerAccounts = AccountManager.get(context)
99 for (android.accounts.Account accountManagerAccount: accountManagerAccounts) {
112 * Note, there is some inherent risk in this test, as it creates *real* accounts in the
120 // Capture the baseline (account manager accounts) s
[all...]
/packages/apps/Settings/src/com/android/settings/
H A DMasterClear.java19 import android.accounts.Account;
20 import android.accounts.AccountManager;
21 import android.accounts.AuthenticatorDescription;
177 LinearLayout contents = (LinearLayout)mContentView.findViewById(R.id.accounts);
183 Account[] accounts = mgr.getAccounts();
184 final int N = accounts.length;
198 Account account = accounts[i];
/packages/apps/Contacts/tests/src/com/android/contacts/model/
H A DAccountTypeManagerTest.java65 // No invite support, no accounts
72 // No invite support, with accounts
79 // With invite support, no accounts
144 private static Collection<AccountWithDataSet> buildAccounts(AccountWithDataSet... accounts) { argument
146 for (AccountWithDataSet account : accounts) {
157 Collection<AccountWithDataSet> accounts,
162 AccountTypeManagerImpl.findAllInvitableAccountTypes(getContext(), accounts, types);
156 verifyAccountTypes( Collection<AccountWithDataSet> accounts, Map<AccountTypeWithDataSet, AccountType> types, AccountType... expectedInvitableTypes ) argument

Completed in 446 milliseconds

12345