/development/apps/Development/src/com/android/development/ |
AccountsTester.java | 25 import android.accounts.*; 84 public AccountArrayAdapter(Context context, Account[] accounts) { 85 super(context, R.layout.account_list_item, accounts); 170 public void onAccountsUpdated(Account[] accounts) { 171 Log.d(TAG, "onAccountsUpdated: \n " + TextUtils.join("\n ", accounts)); 172 mAccountsListView.setAdapter(new AccountArrayAdapter(this, accounts)); 392 Parcelable[] accounts = result.getParcelableArray(AccountManager.KEY_ACCOUNTS); local 393 Log.d(TAG, "found " + accounts.length + " accounts"); 394 for (Parcelable account : accounts) { [all...] |
SyncAdapterDriver.java | 46 import android.accounts.Account; 47 import android.accounts.AccountManager; 142 Account accounts[] = AccountManager.get(this).getAccountsByType( local 144 String[] accountNames = new String[accounts.length]; 145 for (int i = 0; i < accounts.length; i++) { 146 accountNames[i] = accounts[i].name;
|
/packages/apps/Contacts/src/com/android/contacts/model/ |
AccountTypeManager.java | 29 import android.accounts.Account; 30 import android.accounts.AccountManager; 31 import android.accounts.AuthenticatorDescription; 32 import android.accounts.OnAccountsUpdateListener; 96 * Returns the list of all accounts (if contactWritableOnly is false) or just the list of 97 * contact writable accounts (if contactWritableOnly is true). 103 * Returns the list of accounts that are group writable. 261 // Accounts without data sets get sorted before those that have them. 298 // Request updates when packages or accounts change 331 public void onAccountsUpdated(Account[] accounts) { 470 Account[] accounts = mAccountManager.getAccounts(); local [all...] |
AccountWithDataSet.java | 22 import android.accounts.Account; 168 public static String stringifyList(List<AccountWithDataSet> accounts) { 171 for (AccountWithDataSet account : accounts) {
|
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ |
ContactsActor.java | 21 import android.accounts.Account; 22 import android.accounts.AccountManager; 23 import android.accounts.AccountManagerCallback; 24 import android.accounts.AccountManagerFuture; 25 import android.accounts.AuthenticatorException; 26 import android.accounts.OnAccountsUpdateListener; 27 import android.accounts.OperationCanceledException; 499 public void setAccounts(Account[] accounts) { 500 mAccounts = accounts;
|
ContactDirectoryManagerTest.java | 22 import android.accounts.Account; 391 // Accounts won't be affected so false should be passed here. 422 Account[] accounts = new Account[]{ local 425 mActor.setAccounts(accounts); 426 ((ContactsProvider2)getProvider()).onAccountsUpdated(accounts); 438 accounts = new Account[]{new Account("account-name1", "account-type1")}; 439 mActor.setAccounts(accounts); 440 ((ContactsProvider2)getProvider()).onAccountsUpdated(accounts);
|
/frameworks/base/core/java/android/accounts/ |
AccountManager.java | 17 package android.accounts; 50 * online accounts. The user enters credentials (username and password) once 54 * <p>Different online services have different ways of handling accounts and 76 * <li>List the available accounts using {@link #getAccountsByType} or 78 * be interested in accounts with one particular <em>type</em>, which 84 * <li>Select one or more of the available accounts, possibly by asking the 85 * user for their preference. If no suitable accounts are available, 91 * of accounts returned by {@link #getAccountsByType}. Requesting an auth token 183 public static final String KEY_ACCOUNTS = "accounts"; 220 "android.accounts.AccountAuthenticator" [all...] |
/packages/apps/Email/src/com/android/email/activity/setup/ |
AccountSetupOptions.java | 19 import android.accounts.AccountAuthenticatorResponse; 20 import android.accounts.AccountManager; 21 import android.accounts.AccountManagerCallback; 22 import android.accounts.AccountManagerFuture; 23 import android.accounts.AuthenticatorException; 24 import android.accounts.OperationCanceledException; 71 /** Default sync window for new EAS accounts */ 187 // Don't allow this more than once (Exchange accounts call an async method
|
/frameworks/base/core/java/android/content/ |
IContentService.aidl | 19 import android.accounts.Account; 116 * Returns the status that matches the authority. If there are multiples accounts for
|
/packages/apps/Contacts/src/com/android/contacts/util/ |
LocalizedNameResolver.java | 22 import android.accounts.AccountManager; 23 import android.accounts.AuthenticatorDescription;
|
/packages/apps/Contacts/tests/src/com/android/contacts/model/ |
AccountWithDataSetTest.java | 88 AccountWithDataSet... accounts) { 90 List<AccountWithDataSet> list = Lists.newArrayList(accounts);
|
/packages/apps/Email/src/com/android/email/service/ |
AccountService.java | 19 import android.accounts.AccountManager; 82 android.accounts.Account[] accountMgrList =
|
MailService.java | 19 import android.accounts.AccountManager; 20 import android.accounts.AccountManagerCallback; 56 * Background service for refreshing non-push email accounts. 216 Log.d(LOG_TAG, "action: delete exchange accounts"); 349 // collect last-sync-times for all accounts 463 * scan accounts to create a list of { acct, prev sync, next sync, #new } 464 * use this to create a fresh copy. assumes all accounts need sync 497 // setup to add a single account or all accounts 517 // accounts that may have been left behind e.g. by failed unit tests. 518 // Properly-formed accounts will always pass these simple checks [all...] |
/packages/apps/Exchange/src/com/android/exchange/ |
CalendarSyncAdapterService.java | 19 import android.accounts.Account; 20 import android.accounts.OperationCanceledException;
|
ContactsSyncAdapterService.java | 23 import android.accounts.Account; 24 import android.accounts.OperationCanceledException;
|
/packages/providers/ContactsProvider/src/com/android/providers/contacts/ |
PhotoPriorityResolver.java | 25 import android.accounts.AccountManager; 26 import android.accounts.AuthenticatorDescription;
|
/frameworks/opt/vcard/java/com/android/vcard/ |
VCardEntryConstructor.java | 18 import android.accounts.Account;
|
/packages/apps/Contacts/src/com/android/contacts/ |
TypePrecedence.java | 22 import android.accounts.Account;
|
/packages/apps/Email/src/com/android/email/ |
EmailAddressAdapter.java | 78 super.setAccount(new android.accounts.Account(account.mEmailAddress, "unknown"));
|
/development/samples/SampleSyncAdapter/src/com/example/android/samplesync/authenticator/ |
AuthenticatorActivity.java | 23 import android.accounts.Account; 24 import android.accounts.AccountAuthenticatorActivity; 25 import android.accounts.AccountManager;
|
/packages/apps/Contacts/src/com/android/contacts/activities/ |
ContactEditorAccountsChangedActivity.java | 80 final List<AccountWithDataSet> accounts = AccountTypeManager.getInstance(this). local 82 final int numAccounts = accounts.size(); 84 throw new IllegalStateException("Cannot have a negative number of accounts"); 88 // When the user has 2+ writable accounts, show a list of accounts so the user can pick 113 final AccountWithDataSet account = accounts.get(0); 132 // If the user has 0 writable accounts, we will just show the user a message with 2
|
/packages/apps/Settings/src/com/android/settings/accounts/ |
ChooseAccountActivity.java | 17 package com.android.settings.accounts; 19 import android.accounts.AccountManager; 20 import android.accounts.AuthenticatorDescription;
|
/packages/apps/Contacts/src/com/android/contacts/list/ |
ContactEntryListFragment.java | 26 import android.accounts.Account; 27 import android.accounts.AccountManager; 898 Account[] accounts = AccountManager.get(mContext).getAccounts(); local 899 if (accounts != null && accounts.length > 0) { 901 for (Account account : accounts) {
|
/packages/apps/Email/src/com/android/email/activity/ |
MailboxFragmentAdapter.java | 622 final Cursor accounts = super.loadInBackground(); local 625 final MatrixCursor returnCursor = buildCombinedMailboxes(mContext, accounts); 628 accounts.moveToPosition(-1); 629 while (accounts.moveToNext()) { 630 final long accountId = accounts.getLong(COLUMN_ACCOUND_ID); 631 final String accountName = accounts.getString(COLUMN_ACCOUNT_DISPLAY_NAME);
|
/packages/apps/Exchange/src/com/android/exchange/provider/ |
ExchangeDirectoryProvider.java | 31 import android.accounts.AccountManager; 209 // Assuming that GAL can be used with all exchange accounts 210 android.accounts.Account[] accounts = AccountManager.get(getContext()) local 213 if (accounts != null) { 214 for (android.accounts.Account account : accounts) {
|