Lines Matching refs:accounts

17 package android.accounts;
61 * online accounts. The user enters credentials (username and password) once
65 * <p>Different online services have different ways of handling accounts and
87 * <li>List the available accounts using {@link #getAccountsByType} or
89 * be interested in accounts with one particular <em>type</em>, which
95 * <li>Select one or more of the available accounts, possibly by asking the
96 * user for their preference. If no suitable accounts are available,
102 * of accounts returned by {@link #getAccountsByType}. Requesting an auth token
200 public static final String KEY_ACCOUNTS = "accounts";
263 "android.accounts.AccountAuthenticator";
265 "android.accounts.AccountAuthenticator";
274 * when accounts are added, accounts are removed, or an
280 "android.accounts.LOGIN_ACCOUNTS_CHANGED";
363 * arbitrary metadata along with accounts. The meaning of the keys
429 * Lists all accounts of any type registered on the device.
436 * will only see those accounts managed by AbstractAccountAuthenticators whose
440 * (never null) if no accounts have been added.
454 * Lists all accounts of any type registered on the device for a given
461 * will only see those accounts managed by AbstractAccountAuthenticators whose
465 * (never null) if no accounts have been added.
479 * For use by internal activities. Returns the list of accounts that the calling package
480 * is authorized to use, particularly for shared accounts.
483 * @return the accounts that are available to this package and user.
495 * Returns the accounts visible to the specified package, in an environment where some apps
496 * are not authorized to view all accounts. This method can only be called by system apps.
497 * @param type The type of accounts to return, null to retrieve all accounts
498 * @param packageName The package name of the app for which the accounts are to be returned
500 * (never null) if no accounts of the specified type have been added.
513 * Lists all accounts of a particular type. The account type is a
523 * will only see those accounts managed by AbstractAccountAuthenticators whose
530 * @param type The type of accounts to return, null to retrieve all accounts
532 * (never null) if no accounts of the specified type have been added.
604 * whether Google accounts have a particular service (such as Google
646 * Lists all accounts of a type which have certain features. The account
660 * will only see those accounts managed by AbstractAccountAuthenticators whose
663 * @param type The type of accounts to return, must not be null
913 * adding accounts (of this type) has been disabled by policy
1506 * any reason, including the user canceling the creation process or adding accounts
1559 * Adds shared accounts from a parent user to a secondary user. Adding the shared account
1560 * doesn't take effect immediately. When the target user starts up, any pending shared accounts
1889 final Account[] accounts) {
1890 final Account[] accountsCopy = new Account[accounts.length];
1893 System.arraycopy(accounts, 0, accountsCopy, 0, accountsCopy.length);
1903 Log.e(TAG, "Can't update accounts", e);
2234 Account[] accounts;
2236 accounts = future.getResult();
2248 mNumAccounts = accounts.length;
2250 if (accounts.length == 0) {
2252 // no accounts, add one now. pretend that the user directly
2269 } else if (accounts.length == 1) {
2272 mFuture = getAuthToken(accounts[0], mAuthTokenType,
2275 mFuture = getAuthToken(accounts[0],
2298 // have many accounts, launch the chooser
2305 intent.putExtra(KEY_ACCOUNTS, accounts);
2358 * <p>This method gets a list of the accounts matching the
2382 * adding new accounts; may be null or empty
2426 * accounts.
2439 * @param allowableAccounts an optional {@link List} of accounts that are allowed to be
2440 * shown. If not specified then this field will not limit the displayed accounts.
2442 * both to filter the shown accounts and to filter the list of account types that are shown
2447 * accounts chooser screen rather than the default
2478 * accounts.
2491 * @param allowableAccounts an optional {@link List} of accounts that are allowed to be
2492 * shown. If not specified then this field will not limit the displayed accounts.
2494 * both to filter the shown accounts and to filter the list of account types that are shown
2498 * accounts chooser screen rather than the default
2542 * so that it can read the updated list of accounts and send them to the listener
2548 final Account[] accounts = getAccounts();
2553 postToHandler(entry.getValue(), entry.getKey(), accounts);
2562 * list of accounts on the device changes.
2571 * <p>The listener will only be informed of accounts that would be returned
2573 * get any accounts, the caller will need to be grated the GET_ACCOUNTS
2697 * creation process or adding accounts (of this type) has been
2861 * creation process or adding accounts (of this type) has been