/packages/apps/UnifiedEmail/src/com/android/mail/utils/ |
AccountUtils.java | 18 import com.android.mail.providers.Account; 37 * should prioritize the list of Account objects when merging the 41 public static List<Account> mergeAccountLists(List<Account> inList, Account[] accounts, 44 List<Account> newAccountList = new ArrayList<Account>(); 47 for (Account account : inList) { 48 existingList.add(account.getEmailAddress()) 74 Account account; local [all...] |
/frameworks/base/core/java/android/accounts/ |
AccountManager.java | 55 * per account, granting applications access to online resources with 59 * authentication, so the account manager uses pluggable <em>authenticator</em> 60 * modules for different <em>account types</em>. Authenticators (which may be 61 * written by third parties) handle the actual details of validating account 62 * credentials and storing account information. For example, Google, Facebook, 83 * identifies the authenticator. Account <em>features</em> are used to 84 * identify particular account subtypes and capabilities. Both the account 91 * account of the appropriate type. 94 * account selection, it must make sure the account is still in the lis [all...] |
/external/chromium_org/chrome/browser/extensions/api/identity/ |
account_tracker.cc | 95 // Ignore refresh tokens if there is no primary account ID at all. 152 void AccountTracker::NotifyAccountAdded(const AccountState& account) { 153 DCHECK(!account.ids.gaia.empty()); 155 Observer, observer_list_, OnAccountAdded(account.ids)); 158 void AccountTracker::NotifyAccountRemoved(const AccountState& account) { 159 DCHECK(!account.ids.gaia.empty()); 161 Observer, observer_list_, OnAccountRemoved(account.ids)); 164 void AccountTracker::NotifySignInChanged(const AccountState& account) { 165 DCHECK(!account.ids.gaia.empty()); 168 OnAccountSignInChanged(account.ids, account.is_signed_in)) 180 AccountState& account = accounts_[account_key]; local 205 AccountState& account = accounts_[account_key]; local 239 AccountState& account = accounts_[account_key]; local [all...] |
/packages/apps/ContactsCommon/src/com/android/contacts/common/list/ |
CustomContactListFilterActivity.java | 59 import com.android.contacts.common.model.account.AccountType; 60 import com.android.contacts.common.model.account.AccountWithDataSet; 61 import com.android.contacts.common.model.account.GoogleAccountType; 131 for (AccountWithDataSet account : accountTypes.getAccounts(false)) { 132 final AccountType accountType = accountTypes.getAccountTypeForAccount(account); 133 if (accountType.isExtension() && !account.hasData(context)) { 139 new AccountDisplay(resolver, account.name, account.type, account.dataSet); 142 .appendQueryParameter(Groups.ACCOUNT_NAME, account.name 580 final AccountDisplay account = (AccountDisplay)this.getGroup(groupPosition); local 604 final AccountDisplay account = mAccounts.get(groupPosition); local 627 final AccountDisplay account = mAccounts.get(groupPosition); local 708 final AccountDisplay account = (AccountDisplay)mAdapter.getGroup(groupPosition); local [all...] |
/cts/tests/tests/accounts/src/android/accounts/cts/ |
MockAccountAuthenticator.java | 20 import android.accounts.Account; 30 * A simple Mock Account Authenticator 42 private Account mAccount; 71 public Account getAccount() { 102 * Adds an account of the specified accountType. 119 * Update the locally stored credentials for an account. 122 public Bundle updateCredentials(AccountAuthenticatorResponse response, Account account, 126 this.mAccount = account; 148 * Checks that the user knows the credentials of an account [all...] |
/developers/build/prebuilts/gradle/CardEmulation/Application/src/main/java/com/example/android/cardemulation/ |
AccountStorage.java | 25 * Utility class for persisting account numbers to disk. 41 Log.i(TAG, "Setting account number: " + s); 52 String account = prefs.getString(PREF_ACCOUNT_NUMBER, DEFAULT_ACCOUNT_NUMBER); local 53 sAccount = account;
|
/developers/samples/android/connectivity/nfc/CardEmulation/Application/src/main/java/com/example/android/cardemulation/ |
AccountStorage.java | 25 * Utility class for persisting account numbers to disk. 41 Log.i(TAG, "Setting account number: " + s); 52 String account = prefs.getString(PREF_ACCOUNT_NUMBER, DEFAULT_ACCOUNT_NUMBER); local 53 sAccount = account;
|
/development/samples/SampleSyncAdapter/src/com/example/android/samplesync/authenticator/ |
Authenticator.java | 23 import android.accounts.Account; 37 * part of the authentication process. In the account setup UI, the user enters 42 * we need to return the appropriate authToken for the specified account. If we 43 * already have an authToken stored in the account, we return that authToken. If 76 AccountAuthenticatorResponse response, Account account, Bundle options) { 88 public Bundle getAuthToken(AccountAuthenticatorResponse response, Account account, 100 // Extract the username and password from the Account Manager, and ask 103 final String password = am.getPassword(account); [all...] |
/development/samples/browseable/CardEmulation/src/com.example.android.cardemulation/ |
AccountStorage.java | 25 * Utility class for persisting account numbers to disk. 41 Log.i(TAG, "Setting account number: " + s); 52 String account = prefs.getString(PREF_ACCOUNT_NUMBER, DEFAULT_ACCOUNT_NUMBER); local 53 sAccount = account;
|
/external/chromium_org/chrome/browser/ui/android/infobars/ |
auto_login_infobar_delegate_android.h | 33 const std::string& account() const { return params_.header.account; } function in class:AutoLoginInfoBarDelegateAndroid
|
/external/robolectric/src/main/java/com/xtremelabs/robolectric/shadows/ |
ShadowPeriodicSync.java | 3 import android.accounts.Account; 17 public void __constructor__(Account account, String authority, Bundle extras, long period) throws Exception { 18 setField("account", account);
|
ShadowContentResolver.java | 3 import android.accounts.Account; 32 private static final Map<String, Map<Account, Status>> syncableAccounts = 33 new HashMap<String, Map<Account, Status>>(); 174 public static void requestSync(Account account, String authority, Bundle extras) { 176 Status status = getStatus(account, authority, true); 182 public static void setIsSyncable(Account account, String authority, int syncable) { 183 getStatus(account, authority, true).state = syncable; 187 public static int getIsSyncable(Account account, String authority) [all...] |
/packages/apps/Email/src/com/android/email/activity/setup/ |
AccountSetupFinal.java | 46 import com.android.emailcommon.provider.Account; 67 * Direct access for forcing account creation 74 * construct an intent which contains all necessary information to create the account. No 75 * connection checking is done, so the account may or may not actually work. Here is a sample 76 * command, for a gmail account "test_account" with a password of "test_password". 80 * -e USER "Test Account Name" \ 131 // Account is not pre-configured, query user for account type 133 // Account is pre-configured, but the user picked a different protocol 137 // Account is a pre-configured account, run the checke 322 final Account account = mSetupData.getAccount(); local 328 final Account account = mSetupData.getAccount(); local 575 final Account account = mSetupData.getAccount(); local 824 final Account account = mSetupData.getAccount(); local 872 final Account account = mSetupData.getAccount(); local 922 final Account account = mSetupData.getAccount(); local 952 final Account account = mSetupData.getAccount(); local 1075 final Account account = mSetupData.getAccount(); local 1085 final Account account = mSetupData.getAccount(); local 1100 final Account account = mSetupData.getAccount(); local 1274 final Account account = mSetupData.getAccount(); local [all...] |
AccountSettingsUtils.java | 35 import com.android.emailcommon.provider.Account; 55 * Commits the UI-related settings of an account to the provider. This is static so that it 56 * can be used by the various account activities. If the account has never been saved, this 59 * @param account the account whose settings will be committed 61 public static void commitSettings(Context context, Account account) { 62 if (!account.isSaved()) { 63 account.save(context) [all...] |
/packages/apps/UnifiedEmail/src/com/android/mail/text/ |
EmailAddressSpan.java | 25 import com.android.mail.providers.Account; 29 private final Account mAccount; 32 public EmailAddressSpan(Account account, String emailAddress) { 34 mAccount = account;
|
/packages/apps/Exchange/src/com/android/exchange/service/ |
EasService.java | 32 import com.android.emailcommon.provider.Account; 114 final Account account = Account.restoreAccountWithId(EasService.this, accountId); 115 if (pingNeededForAccount(account)) { 116 mSynchronizer.pushModify(account); 235 "=" + Integer.toString(Account.CHECK_INTERVAL_PUSH); 243 final Cursor c = EasService.this.getContentResolver().query(Account.CONTENT_URI, 244 Account.CONTENT_PROJECTION, PUSH_ACCOUNTS_SELECTION, null, null); 248 final Account account = new Account() local [all...] |
/packages/apps/Email/src/com/android/email/ |
SecurityPolicy.java | 41 import com.android.emailcommon.provider.Account; 220 * API: Report that policies may have been updated due to rewriting values in an Account; we 302 * This can be used when syncing a specific account, by passing a specific set of policies 303 * for that account. Or, it can be used at any time to compare the device 310 * will return 'false' as soon as the password expires - irrespective of which account caused 312 * based on the requirements of the account with the shortest interval. 451 Account account = Account.restoreAccountWithId(context, accountId); local 452 if (account != null) 489 Account account = Account.restoreAccountWithId(mContext, accountId); local 588 Account account = Account.restoreAccountWithId(mContext, accountId); local [all...] |
/cts/tests/tests/content/src/android/content/cts/ |
MockAccountAuthenticator.java | 20 import android.accounts.Account; 30 public static final String ACCOUNT_NAME = "android.content.cts.account.name"; 31 public static final String ACCOUNT_TYPE = "android.content.cts.account.type"; 32 public static final String ACCOUNT_PASSWORD = "android.content.cts.account.password"; 62 public Bundle updateCredentials(AccountAuthenticatorResponse response, Account account, 68 public Bundle confirmCredentials(AccountAuthenticatorResponse response, Account account, 77 public Bundle getAuthToken(AccountAuthenticatorResponse response, Account account, [all...] |
MockSyncAdapter.java | 19 import android.accounts.Account; 33 private ArrayList<Account> mAccounts = new ArrayList<Account>(); 41 public ArrayList<Account> getAccounts() { 79 public void startSync(ISyncContext syncContext, String authority, Account account, 82 mAccounts.add(account); 115 public void initialize(android.accounts.Account account, java.lang.String authority) 118 mAccounts.add(account); [all...] |
/developers/build/prebuilts/gradle/BasicSyncAdapter/Application/src/main/java/com/example/android/common/accounts/ |
GenericAccountService.java | 20 import android.accounts.Account; 32 public static final String ACCOUNT_NAME = "Account"; 36 * Obtain a handle to the {@link android.accounts.Account} used for sync in this application. 45 * @return Handle to application's account (not guaranteed to resolve unless CreateSyncAccount() 48 public static Account GetAccount(String accountType) { 49 // Note: Normally the account name is set to the user's identity (username or email 54 // able to locate the old account, and may erroneously register multiple accounts. 56 return new Account(accountName, accountType); 95 Account account, Bundle bundle [all...] |
/developers/samples/android/common/src/java/com/example/android/common/accounts/ |
GenericAccountService.java | 20 import android.accounts.Account; 32 public static final String ACCOUNT_NAME = "Account"; 36 * Obtain a handle to the {@link android.accounts.Account} used for sync in this application. 45 * @return Handle to application's account (not guaranteed to resolve unless CreateSyncAccount() 48 public static Account GetAccount(String accountType) { 49 // Note: Normally the account name is set to the user's identity (username or email 54 // able to locate the old account, and may erroneously register multiple accounts. 56 return new Account(accountName, accountType); 95 Account account, Bundle bundle [all...] |
/development/samples/browseable/BasicSyncAdapter/src/com.example.android.common/accounts/ |
GenericAccountService.java | 20 import android.accounts.Account; 32 public static final String ACCOUNT_NAME = "Account"; 36 * Obtain a handle to the {@link android.accounts.Account} used for sync in this application. 45 * @return Handle to application's account (not guaranteed to resolve unless CreateSyncAccount() 48 public static Account GetAccount(String accountType) { 49 // Note: Normally the account name is set to the user's identity (username or email 54 // able to locate the old account, and may erroneously register multiple accounts. 56 return new Account(accountName, accountType); 95 Account account, Bundle bundle [all...] |
/external/chromium_org/components/auto_login_parser/ |
auto_login_parser.h | 28 // "account" string from x-auto-login. 29 std::string account; member in struct:auto_login_parser::HeaderData
|
/frameworks/opt/vcard/java/com/android/vcard/ |
VCardEntryConstructor.java | 18 import android.accounts.Account; 54 private final Account mAccount; 66 public VCardEntryConstructor(final int vcardType, final Account account) { 67 this(vcardType, account, null); 72 * Use {@link #VCardEntryConstructor(int, Account)} 75 public VCardEntryConstructor(final int vcardType, final Account account, 78 mAccount = account;
|
/frameworks/volley/src/com/android/volley/toolbox/ |
AndroidAuthenticator.java | 21 import android.accounts.Account; 30 * tokens of a specified type for a specified account. 34 private final Account mAccount; 41 * @param account Account to authenticate as 44 public AndroidAuthenticator(Context context, Account account, String authTokenType) { 45 this(context, account, authTokenType, false); 51 * @param account Account to authenticate a [all...] |