/packages/apps/Email/src/com/android/email/activity/ |
InsertQuickResponseDialog.java | 22 import com.android.emailcommon.provider.Account; 38 * Dialog which lists QuickResponses for the specified account. On user selection, will call 46 // Key for the Account object in the arguments bundle 47 private static final String ACCOUNT_KEY = "account"; 66 newInstance(Fragment callbackFragment, Account account) { 82 args.putParcelable(ACCOUNT_KEY, account); 106 Account account = (Account) getArguments().getParcelable(ACCOUNT_KEY) local [all...] |
ShortcutPickerFragment.java | 20 import com.android.emailcommon.provider.Account; 57 /** Builds a mailbox filter for the given account. See MailboxShortcutPickerFragment. */ 58 public Integer buildFilter(Account account); 59 /** Invoked when an account and mailbox have been selected. */ 60 public void onSelected(Account account, long mailboxId); 61 /** Required data is missing; either the account and/or mailbox */ 67 @Override public Integer buildFilter(Account account) { return null; 144 Account account = new Account(); local 219 Account account = new Account(); local [all...] |
MessagesAdapter.java | 36 import com.android.emailcommon.provider.Account; 111 /** {@link Account} that owns the mailbox. Null for combined mailboxes. */ 112 public final Account mAccount; 115 /** {@code true} if the account is an EAS account */ 123 boolean found, Account account, Mailbox mailbox, boolean isEasAccount, 127 mAccount = account; 315 Account account = null local [all...] |
/packages/apps/Email/src/com/android/email/service/ |
PopImapSyncAdapterService.java | 19 import android.accounts.Account; 56 public void onPerformSync(Account account, Bundle extras, 59 PopImapSyncAdapterService.performSync(mContext, account, extras, 84 private static void performSync(Context context, Account account, Bundle extras, 88 String emailAddress = account.name; 89 // Find an EmailProvider account with the Account's email address 91 com.android.emailcommon.provider.Account.CONTENT_URI [all...] |
/packages/apps/Email/tests/src/com/android/email/activity/setup/ |
AccountSetupOptionsTests.java | 29 import com.android.emailcommon.provider.Account; 61 boolean hasPush = frequencySpinnerHasValue(Account.CHECK_INTERVAL_PUSH); 75 boolean hasPush = frequencySpinnerHasValue(Account.CHECK_INTERVAL_PUSH); 89 boolean hasPush = frequencySpinnerHasValue(Account.CHECK_INTERVAL_PUSH); 163 * Create an intent with the Account in it 167 Account account = new Account(); local 168 account.setSenderName(name); 170 HostAuth auth = account.getOrCreateHostAuthRecv(context) [all...] |
AccountSetupIncomingTests.java | 20 import com.android.emailcommon.provider.Account; 33 * Tests of the basic UI logic in the Account Setup Incoming (IMAP / POP3) screen. 185 * Create an intent with the Account in it 189 Account account = new Account(); local 191 HostAuth auth = account.getOrCreateHostAuthRecv(context); 193 SetupData.init(SetupData.FLOW_MODE_NORMAL, account);
|
AccountSetupOutgoingTests.java | 20 import com.android.emailcommon.provider.Account; 33 * Tests of the basic UI logic in the Account Setup Outgoing (SMTP) screen. 181 * Create an intent with the Account in it 185 Account account = new Account(); local 187 HostAuth auth = account.getOrCreateHostAuthSend(context); 189 SetupData.init(SetupData.FLOW_MODE_NORMAL, account);
|
/development/apps/Development/src/com/android/development/ |
AccountsTester.java | 19 import android.accounts.Account; 62 private Account mLongPressedAccount = null; 99 private class AccountArrayAdapter extends ArrayAdapter<Account> { 102 public AccountArrayAdapter(Context context, Account[] accounts) { 110 Account account; field in class:AccountsTester.AccountArrayAdapter.ViewHolder 140 final Account account = getItem(position); local 141 holder.account = account; 269 final Account account = mLongPressedAccount; local 281 final Account account = mLongPressedAccount; local [all...] |
/packages/apps/Email/src/com/android/email/activity/setup/ |
AccountSettings.java | 46 import com.android.emailcommon.provider.Account; 53 * Handles account preferences, using multi-pane arrangement when possible. 57 * Account{Incoming/Outgoing/Exchange}Fragment 62 * TODO: Delete account - on single-pane view (phone UX) the account list doesn't update properly 63 * TODO: Handle dynamic changes to the account list (exit if necessary). It probably makes 69 * Intent to open account settings for account=1 80 private static final String QUICK_RESPONSE_ACCOUNT_KEY = "account"; 112 * Display (and edit) settings for a specific account, or -1 for any/all account [all...] |
AccountSetupExchange.java | 22 import com.android.emailcommon.provider.Account; 45 * Load existing values from account into fields 47 * Confirm not a duplicate account 58 * write server's account details into account 59 * Load values from account into fields 60 * Confirm not a duplicate account 79 public static void actionIncomingSettings(Activity fromActivity, int mode, Account account) { 81 SetupData.setAccount(account); 148 Account account = SetupData.getAccount(); local [all...] |
AccountSetupIncomingFragment.java | 42 import com.android.emailcommon.provider.Account; 47 * Provides UI for IMAP/POP account settings. 139 new SpinnerOption(Account.DELETE_POLICY_NEVER, 141 new SpinnerOption(Account.DELETE_POLICY_ON_DELETE, 180 // We're editing an existing account; don't allow modification of the user name 288 * Configure the editor for the account type 292 Account account = SetupData.getAccount(); 293 if (account == null || account.mHostAuthRecv == null) 418 Account account = SetupData.getAccount(); local 430 Account account = SetupData.getAccount(); local 447 Account account = SetupData.getAccount(); local [all...] |
AccountSecurity.java | 36 import com.android.emailcommon.provider.Account; 44 * 1. Confirm the account of interest has any security policies defined - exit early if not 66 private Account mAccount; 73 * @param accountId The account of interest 76 * is not clear (e.g. any time after the account has been set up). 77 * @return an Intent which can be used to view that account 117 mAccount = Account.restoreAccountWithId(AccountSecurity.this, accountId); 135 // This account wants to control security 164 * the requisite security settings for the given account. 175 private void tryAdvanceSecurity(Account account) [all...] |
/frameworks/base/core/java/android/provider/ |
BrowserContract.java | 19 import android.accounts.Account; 109 * account, including sync information that an account may need. 114 * The name of the account instance to which this row belongs, which when paired with 115 * {@link #ACCOUNT_TYPE} identifies a specific account. 121 * The type of account to which this row belongs, which when paired with 122 * {@link #ACCOUNT_NAME} identifies a specific account. 128 * String that uniquely identifies this row to its source account. 142 * to be synchronized by its owning account. 307 * Query parameter used to specify an account nam [all...] |
/packages/apps/ContactsCommon/src/com/android/contacts/common/model/account/ |
AccountWithDataSet.java | 17 package com.android.contacts.common.model.account; 19 import android.accounts.Account; 37 * Wrapper for an account that includes a data set (which may be null). 39 public class AccountWithDataSet extends Account { 90 * Return {@code true} if this account has any contacts in the database. 133 private static StringBuilder addStringified(StringBuilder sb, AccountWithDataSet account) { 134 sb.append(account.name); 136 sb.append(account.type); 138 if (!TextUtils.isEmpty(account.dataSet)) sb.append(account.dataSet) [all...] |
/packages/apps/Email/src/com/android/email/mail/store/ |
ServiceStore.java | 25 import com.android.emailcommon.provider.Account; 39 * Creates a new store for the given account. 41 public ServiceStore(Account account, Context context) throws MessagingException { 43 mHostAuth = account.getOrCreateHostAuthRecv(mContext); 50 * @throws MessagingException if we can't authenticate the account
|
/packages/apps/Calendar/src/com/android/calendar/alerts/ |
GlobalDismissManager.java | 141 for (String account : accounts) { 143 if (cnb.subscribeToGroup(senderId, account, account)) { 144 existingAccounts.add(account); 147 // Try again, next time the account triggers and alert. 194 // TODO group by account to reduce queries 200 Pair<String, String> account = calendarsToAccounts.get(calendar); local 201 if (GOOGLE_ACCOUNT_TYPE.equals(account.first)) { 202 Uri uri = asSync(Events.CONTENT_URI, account.first, account.second) 231 String account = syncIdToAccount.get(syncId); local [all...] |
/cts/tests/tests/provider/src/android/provider/cts/contacts/ |
DatabaseAsserts.java | 19 import android.accounts.Account; 24 import android.provider.cts.contacts.account.StaticAccountAuthenticator; 58 * Create a contact in account 1 and assert that the record exists. 67 * Create a contact in a specified account and assert that the record exists. 72 Account account, String name) { 73 long rawContactId = RawContactUtil.createRawContactWithName(resolver, account, name); 82 * Create a contact in a specified account and assert that the record exists. 86 public static ContactIdPair assertAndCreateContact(ContentResolver resolver, Account account) { [all...] |
/packages/apps/ContactsCommon/tests/src/com/android/contacts/common/model/ |
AccountTypeManagerTest.java | 23 import com.android.contacts.common.model.account.AccountType; 24 import com.android.contacts.common.model.account.AccountTypeWithDataSet; 25 import com.android.contacts.common.model.account.AccountWithDataSet; 45 // Define account types. 89 // With invite support, 1 account 96 // With invite support, 2 account 149 for (AccountWithDataSet account : accounts) { 150 result.add(account);
|
/packages/apps/Email/tests/src/com/android/email/provider/ |
ProviderTestUtils.java | 20 import com.android.emailcommon.provider.Account; 48 * Create an account for test purposes 50 public static Account setupAccount(String name, boolean saveIt, Context context) { 51 Account account = new Account(); local 53 account.mDisplayName = name; 54 account.mEmailAddress = name + "@android.com"; 55 account.mSyncKey = "sync-key-" + name; 56 account.mSyncLookback = 1 [all...] |
/packages/apps/Exchange/exchange2/tests/src/com/android/exchange/ |
EasSyncServiceTests.java | 25 import com.android.emailcommon.provider.Account; 63 // The value will be "0" without an account 69 // With an account, but null security key, the header's value should be "0" 70 Account account = new Account(); local 71 account.mSecuritySyncKey = null; 72 svc.mAccount = account; 78 // With an account and security key, the header's value should be the security key 79 account.mSecuritySyncKey = "key" [all...] |
/packages/apps/Settings/src/com/android/settings/accounts/ |
SyncSettings.java | 19 import android.accounts.Account; 136 public void onAccountsUpdated(Account[] accounts) { 141 final Account account = accounts[i]; local 142 final ArrayList<String> auths = getAuthoritiesForAccountType(account.type); 156 final Drawable icon = getDrawableForType(account.type); 158 new AccountPreference(getActivity(), account, icon, auths, true); 160 preference.setSummary(getLabelForType(account.type)); 168 // Update account icons for all account preference item [all...] |
/frameworks/base/core/java/android/content/ |
ContentResolver.java | 21 import android.accounts.Account; 71 * {@link #requestSync(android.accounts.Account, String, android.os.Bundle)} 74 public static final String SYNC_EXTRAS_ACCOUNT = "account"; 113 * the given account/authority pair. One required initialization step is to 114 * ensure that {@link #setIsSyncable(android.accounts.Account, String, int)} has been 1373 Account account = null; local [all...] |
/packages/apps/ContactsCommon/src/com/android/contacts/common/model/ |
AccountTypeManager.java | 19 import android.accounts.Account; 48 import com.android.contacts.common.model.account.AccountType; 49 import com.android.contacts.common.model.account.AccountTypeWithDataSet; 50 import com.android.contacts.common.model.account.AccountWithDataSet; 51 import com.android.contacts.common.model.account.ExchangeAccountType; 52 import com.android.contacts.common.model.account.ExternalAccountType; 53 import com.android.contacts.common.model.account.FallbackAccountType; 54 import com.android.contacts.common.model.account.GoogleAccountType; 99 * Set the instance of account type manager. This is only for and should only be used by unit 130 public final AccountType getAccountTypeForAccount(AccountWithDataSet account) { [all...] |
/packages/apps/Contacts/src/com/android/contacts/editor/ |
ContactEditorUtils.java | 19 import android.accounts.Account; 31 import com.android.contacts.common.model.account.AccountType; 32 import com.android.contacts.common.model.account.AccountWithDataSet; 42 * Utility methods for the "account changed" notification in the new contact creation flow. 110 * Saves all writable accounts and the default account, which can later be obtained 115 * @param defaultAccount the account used to save a newly created contact. Or pass {@code null} 124 // This should always be the case with our spec, but because we load the account list 126 // point. So if the default is null always clear the account list. 138 * @return the default account saved with {@link #saveDefaultAndAllAccounts}. 144 * Also note that the returned account may have been removed already [all...] |
/packages/apps/ContactsCommon/src/com/android/contacts/common/model/dataitem/ |
DataKind.java | 23 import com.android.contacts.common.model.account.AccountType.EditField; 24 import com.android.contacts.common.model.account.AccountType.EditType; 25 import com.android.contacts.common.model.account.AccountType.StringInflater;
|