Lines Matching refs:account

57      * used to filter the allowable account types if add account is selected.
81 * If set then the specified account is already "selected".
86 * If true then display the account selection list even if there is just
87 * one account to choose from. boolean.
148 // If the selected account as specified in the intent matches one in the list we will
157 Log.v(TAG, "selected account name is " + mSelectedAccountName);
174 // In cases where the activity does not need to show an account picker, cut the chase
176 // Single account -> select it directly
177 // No account -> launch add account activity directly
179 // If there are no relevant accounts and only one relevant account type go directly to
180 // add account. Otherwise let the user choose.
190 // if there is only one allowable account return it
192 Account account = mAccounts.get(0);
193 setResultAndFinish(account.name, account.type);
252 // Called when the choose account type activity (for adding an account) returns.
253 // If it was a success read the account and set it in the result. In all cases
287 Log.d(TAG, "ChooseTypeAndAccountActivity.onActivityResult: unable to find account "
304 for (Account account : currentAccounts) {
305 if (!preExistingAccounts.contains(account)) {
306 accountName = account.name;
307 accountType = account.type;
319 + "account, pretending the request was canceled");
368 private void onAccountSelected(Account account) {
369 Log.d(TAG, "selected account " + account);
370 setResultAndFinish(account.name, account.type);
380 + "selected account " + accountName + ", " + accountType);
405 * An index value of accounts.size() indicates 'Add account' option.
409 // If "Add account" option was previously selected by user, preserve it across
414 // search for the selected account name if present
420 // no account selected.
425 // List of options includes all accounts found together with "Add new account" as the
437 * Create a list of Account objects for each account that is acceptable. Filter out
444 for (Account account : accounts) {
446 && !mSetOfAllowableAccounts.contains(account)) {
450 && !mSetOfRelevantAccountTypes.contains(account.type)) {
453 accountsToPopulate.add(account);
459 * Return a set of account types speficied by the intent as well as supported by the
463 // An account type is relevant iff it is allowed by the caller and supported by the account