/packages/providers/CalendarProvider/tests/src/com/android/providers/calendar/ |
CalendarSyncTestingBase.java | 19 import android.accounts.Account; 20 import android.accounts.AccountManager; 352 Account[] accounts = mAccountManager.getAccountsByType("com.google"); local 354 assertTrue("Didn't find any Google accounts", accounts.length > 0); 356 Account account = accounts[accounts.length - 1]; 357 Log.v(TAG, "Found " + accounts.length + " accounts; using the last one, " + account.name);
|
/packages/apps/ContactsCommon/src/com/android/contacts/common/model/ |
AccountTypeManager.java | 19 import android.accounts.Account; 20 import android.accounts.AccountManager; 21 import android.accounts.AuthenticatorDescription; 22 import android.accounts.OnAccountsUpdateListener; 112 * Returns the list of all accounts (if contactWritableOnly is false) or just the list of 113 * contact writable accounts (if contactWritableOnly is true). 119 * Returns the list of accounts that are group writable. 276 // Accounts without data sets get sorted before those that have them. 313 // Request updates when packages or accounts change 346 public void onAccountsUpdated(Account[] accounts) { 480 Account[] accounts = mAccountManager.getAccounts(); local [all...] |
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ |
ContactsActor.java | 19 import android.accounts.Account; 20 import android.accounts.AccountManager; 21 import android.accounts.AccountManagerCallback; 22 import android.accounts.AccountManagerFuture; 23 import android.accounts.AuthenticatorException; 24 import android.accounts.OnAccountsUpdateListener; 25 import android.accounts.OperationCanceledException; 518 public void setAccounts(Account[] accounts) { 519 mAccounts = accounts;
|
/frameworks/base/core/java/android/accounts/ |
AccountManager.java | 17 package android.accounts; 54 * online accounts. The user enters credentials (username and password) once 58 * <p>Different online services have different ways of handling accounts and 80 * <li>List the available accounts using {@link #getAccountsByType} or 82 * be interested in accounts with one particular <em>type</em>, which 88 * <li>Select one or more of the available accounts, possibly by asking the 89 * user for their preference. If no suitable accounts are available, 95 * of accounts returned by {@link #getAccountsByType}. Requesting an auth token 191 public static final String KEY_ACCOUNTS = "accounts"; 228 "android.accounts.AccountAuthenticator" [all...] |
/development/apps/Development/src/com/android/development/ |
SyncAdapterDriver.java | 47 import android.accounts.Account; 48 import android.accounts.AccountManager; 138 Account accounts[] = AccountManager.get(this).getAccountsByType( local 140 String[] accountNames = new String[accounts.length]; 141 for (int i = 0; i < accounts.length; i++) { 142 accountNames[i] = accounts[i].name;
|
/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; 76 /** Default sync window for new EAS accounts */ 184 // Don't allow this more than once (Exchange accounts call an async method
|
/packages/apps/Email/src/com/android/email/service/ |
EmailBroadcastProcessorService.java | 19 import android.accounts.AccountManager; 160 final android.accounts.Account[] amAccounts = 163 for (android.accounts.Account amAccount: amAccounts) { 173 private static void removePeriodicSyncs(final android.accounts.Account amAccount, 189 final android.accounts.Account[] amAccounts = 191 for (android.accounts.Account amAccount : amAccounts) { 209 /** Projection used for getting sync intervals for all accounts. */ 216 * Get the sync interval for all accounts, as stored in the DB. 253 // rename the account manager type for all existing accounts, so we add new ones and delete 303 * accounts are converted otherwise terrible, horrible things will happen [all...] |
/packages/apps/Launcher3/src/com/android/launcher3/ |
LauncherClings.java | 19 import android.accounts.Account; 20 import android.accounts.AccountManager; 99 Account[] accounts = AccountManager.get(mLauncher).getAccounts(); local 100 if (supportsLimitedUsers && accounts.length == 0) { 125 Account[] accounts = am.getAccountsByType("com.google"); 126 return accounts.length == 0;
|
/frameworks/base/core/java/android/content/ |
IContentService.aidl | 19 import android.accounts.Account; 134 * Returns the status that matches the authority. If there are multiples accounts for
|
/packages/apps/ContactsCommon/src/com/android/contacts/common/util/ |
LocalizedNameResolver.java | 19 import android.accounts.AccountManager; 20 import android.accounts.AuthenticatorDescription;
|
/packages/apps/ContactsCommon/tests/src/com/android/contacts/common/model/ |
AccountWithDataSetTest.java | 89 AccountWithDataSet... accounts) { 91 List<AccountWithDataSet> list = Lists.newArrayList(accounts);
|
/packages/providers/ContactsProvider/src/com/android/providers/contacts/ |
PhotoPriorityResolver.java | 19 import android.accounts.AccountManager; 20 import android.accounts.AuthenticatorDescription;
|
AccountWithDataSet.java | 19 import android.accounts.Account;
|
/external/chromium_org/sync/android/javatests/src/org/chromium/sync/notifier/ |
TestableInvalidationService.java | 7 import android.accounts.Account;
|
/external/robolectric/src/test/java/com/xtremelabs/robolectric/shadows/ |
AccountTest.java | 3 import android.accounts.Account;
|
/frameworks/base/tests/AppLaunch/src/com/android/tests/applaunch/ |
AppLaunch.java | 18 import android.accounts.Account; 19 import android.accounts.AccountManager; 236 Account[] accounts = am.getAccounts(); local 237 // use set here in case device has multiple accounts of the same type 239 for (Account account : accounts) { 248 StringBuilder sb = new StringBuilder("Device missing these accounts:");
|
/frameworks/opt/vcard/java/com/android/vcard/ |
VCardEntryConstructor.java | 18 import android.accounts.Account;
|
/packages/apps/Contacts/src/com/android/contacts/ |
TypePrecedence.java | 19 import android.accounts.Account;
|
/packages/apps/Exchange/src/com/android/exchange/eas/ |
EasPing.java | 56 private final android.accounts.Account mAmAccount; 92 final android.accounts.Account amAccount) { 137 public final android.accounts.Account getAmAccount() { 422 public static void requestPing(final android.accounts.Account amAccount) {
|
/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;
|
/external/chromium_org/chrome/browser/chromeos/login/ |
existing_user_controller_auto_login_unittest.cc | 84 base::ListValue accounts; local 85 accounts.Append(account.release()); 86 CrosSettings::Get()->Set(kAccountsPrefDeviceLocalAccounts, accounts);
|
/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/ContactsCommon/src/com/android/contacts/common/model/account/ |
AccountWithDataSet.java | 19 import android.accounts.Account; 167 public static String stringifyList(List<AccountWithDataSet> accounts) { 170 for (AccountWithDataSet account : accounts) {
|
/packages/apps/Exchange/src/com/android/exchange/service/ |
EasService.java | 58 * The content authorities that can be synced for EAS accounts. Initialization must wait until 147 * Content selection string for getting all accounts that are configured for push. 148 * TODO: Add protocol check so that we don't get e.g. IMAP accounts here. 155 /** {@link AsyncTask} to restart pings for all accounts that need it. */ 204 // Restart push for all accounts that need it. Because this requires DB loads, we do it in 226 // We've been asked to forcibly shutdown. This happens if email accounts are 228 // accounts that are now gone. 230 // if accounts disappear out from under us. 280 // Check if the account has performed at least one sync so far (accounts must perform 289 final android.accounts.Account amAccount = new android.accounts.Account [all...] |
/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;
|