/packages/apps/Email/src/com/android/email/provider/ |
H A D | AccountReconciler.java | 77 final Account account = new Account(); 78 account.restore(c); 79 builder.add(account); 88 * Compare our account list (obtained from EmailProvider) with the account list owned by 89 * AccountManager. If there are any orphans (an account in one list without a corresponding 90 * account in the other list), delete the orphan, as these must remain in sync. 92 * Note that the duplication of account information is caused by the Email application's 96 * into the account manager. 107 * Check if the AccountManager accounts list contains a specific account [all...] |
/packages/apps/UnifiedEmail/src/com/android/mail/ui/ |
H A D | AccountItemView.java | 33 * The view for each account in the folder list/drawer. 61 * Sets the account name and draws the unread count. Depending on the account state (current or 65 * @param account account whose name will be displayed 66 * @param isCurrentAccount true if the account is the one in use, false otherwise 69 public void bind(final Account account, final boolean isCurrentAccount, final int count) { argument 70 mAccountTextView.setText(account.name);
|
H A D | OnePaneController.java | 56 /** Whether a conversation list for this account has ever been shown.*/ 89 // account. Currently this method is blank to avoid any changes. 93 * Returns true if the candidate URI is the URI for the default inbox for the given account. 95 * @param account the account whose default Inbox the candidate might be 96 * @return true if the candidate is indeed the default inbox for the given account. 98 private static boolean isDefaultInbox(FolderUri candidate, Account account) { argument 99 return (candidate != null && account != null) 100 && candidate.equals(account.settings.defaultInbox); 108 private static boolean inInbox(final Account account, fina argument 120 changeAccount(Account account) argument [all...] |
/packages/apps/UnifiedEmail/src/com/android/mail/providers/ |
H A D | MailAppProvider.java | 59 * During development this will allow new account types to be added, and allow them to be shown in 109 * {@link Context#startActivityForResult(android.content.Intent)} when the account provider 146 // Load the previously saved account list 150 // Load the uris for the account list 182 // Make a copy of the account cache 192 final Account account = accountEntry.mAccount; 194 final Map<String, Object> accountValues = account.getValueMap(); 243 * {@link Context#startActivity(android.content.Intent)} when the account provider doesn't 268 private void addAccountImpl(Account account, Uri accountsQueryUri, boolean notify) { argument 269 addAccountImpl(account 497 AccountCacheEntry(Account account, Uri accountQueryUri) argument [all...] |
/packages/apps/ContactsCommon/tests/src/com/android/contacts/common/model/ |
H A D | 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/ |
H A D | ProviderTestUtils.java | 48 * Create an account for test purposes 51 Account account = new Account(); 53 account.mDisplayName = name; 54 account.mEmailAddress = name + "@android.com"; 55 account.mSyncKey = "sync-key-" + name; 56 account.mSyncLookback = 1; 57 account.mSyncInterval = Account.CHECK_INTERVAL_NEVER; 58 account.mHostAuthKeyRecv = 0; 59 account.mHostAuthKeySend = 0; 60 account [all...] |
/packages/apps/Exchange/tests/src/com/android/exchange/ |
H A D | EasSyncServiceTests.java | 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(); 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"; 80 svc.mAccount = account;
|
/packages/apps/Settings/src/com/android/settings/accounts/ |
H A D | SyncSettings.java | 141 final Account account = accounts[i]; 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 items
|
/packages/apps/Email/src/com/android/email/service/ |
H A D | PopImapSyncAdapterService.java | 61 public void onPerformSync(android.accounts.Account account, Bundle extras, argument 63 PopImapSyncAdapterService.performSync(getContext(), account, extras, provider, 106 Account account = Account.restoreAccountWithId(context, mailbox.mAccountKey); 107 if (account == null) return; 109 String protocol = account.getProtocol(context); 130 EmailServiceStub.sendMailImpl(context, account.mId); 136 status = ImapService.synchronizeMailboxSynchronous(context, account, 139 status = Pop3Service.synchronizeMailboxSynchronous(context, account, 169 private static void performSync(Context context, android.accounts.Account account, argument 171 // Find an EmailProvider account wit [all...] |
H A D | ImapService.java | 87 * Simple cache for last search result mailbox by account and serverId, since the most common 95 * Cache search results by account; this allows for "load more" support without having to 160 final Account account, final Mailbox folder, final boolean loadMore, 162 TrafficStats.setThreadStatsTag(TrafficFlags.getSyncFlags(context, account)); 165 processPendingActionsSynchronous(context, account); 166 synchronizeMailboxGeneric(context, account, folder, loadMore, uiRefresh); 167 // Clear authentication notification for this account 168 nc.cancelLoginFailedNotification(account.mId); 175 nc.showLoginFailedNotification(account.mId); 219 // Note: mailbox key and account ke 159 synchronizeMailboxSynchronous(Context context, final Account account, final Mailbox folder, final boolean loadMore, final boolean uiRefresh) argument 238 loadUnsyncedMessages(final Context context, final Account account, Folder remoteFolder, ArrayList<Message> messages, final Mailbox toMailbox) argument 265 downloadFlagAndEnvelope(final Context context, final Account account, final Mailbox mailbox, Folder remoteFolder, ArrayList<Message> unsyncedMessages, HashMap<String, LocalMessageInfo> localMessageMap, final ArrayList<Long> unseenMessages) argument 339 synchronizeMailboxGeneric(final Context context, final Account account, final Mailbox mailbox, final boolean loadMore, final boolean uiRefresh) argument 700 processPendingActionsSynchronous(Context context, Account account) argument 760 processPendingDeletesSynchronous(Context context, Account account, String[] accountIdArgs) argument 825 processPendingUploadsSynchronous(Context context, Account account, String[] accountIdArgs) argument 895 processPendingUpdatesSynchronous(Context context, Account account, String[] accountIdArgs) argument [all...] |
/packages/apps/Exchange/src/com/android/exchange/service/ |
H A D | EasServerConnection.java | 138 public EasServerConnection(final Context context, final Account account, argument 142 mAccount = account; 143 mAccountId = account.mId; 144 setProtocolVersion(account.mProtocolVersion); 147 public EasServerConnection(final Context context, final Account account) { argument 148 this(context, account, HostAuth.restoreHostAuthWithId(context, account.mHostAuthKeyRecv)); 292 // If there's an account in existence, use its key; otherwise (we're creating the 293 // account), send "0". The server will respond with code 449 if there are policies 491 * at construction time it is set to whatever protocol version is in the account 502 sendMessage(final Account account, final EmailContent.Message msg) argument [all...] |
H A D | PingTask.java | 38 public PingTask(final Context context, final Account account, argument 41 mOperation = new EasPing(context, account, amAccount); 72 LogUtils.e(TAG, e, "Ping exception for account %d", mOperation.getAccountId());
|
/packages/apps/ContactsCommon/src/com/android/contacts/common/model/ |
H A D | AccountTypeManager.java | 47 import com.android.contacts.common.model.account.AccountType; 48 import com.android.contacts.common.model.account.AccountTypeWithDataSet; 49 import com.android.contacts.common.model.account.AccountWithDataSet; 50 import com.android.contacts.common.model.account.ExchangeAccountType; 51 import com.android.contacts.common.model.account.ExternalAccountType; 52 import com.android.contacts.common.model.account.FallbackAccountType; 53 import com.android.contacts.common.model.account.GoogleAccountType; 98 * Set the instance of account type manager. This is only for and should only be used by unit 129 public final AccountType getAccountTypeForAccount(AccountWithDataSet account) { argument 130 return getAccountType(account 168 contains(AccountWithDataSet account, boolean contactWritableOnly) argument [all...] |
/packages/apps/Contacts/src/com/android/contacts/editor/ |
H A D | ContactEditorUtils.java | 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. 154 Log.e(TAG, "Error with retrieving default account " 167 isValidAccount(AccountWithDataSet account) argument [all...] |
/packages/apps/Email/src/com/android/email/preferences/ |
H A D | EmailPreferenceMigrator.java | 95 for (final Account account : accounts) { 96 // Get the emailcommon account 100 AccountColumns.EMAIL_ADDRESS + " = ?", new String[] { account.name }, 107 LogUtils.e(LOG_TAG, "Null old account cursor for mailbox %s", 108 LogUtils.sanitizeName(LOG_TAG, account.name)); 116 LogUtils.e(LOG_TAG, "Couldn't load old account for mailbox %s", 117 LogUtils.sanitizeName(LOG_TAG, account.name)); 127 context.getContentResolver().query(account.settings.defaultInbox, 133 account.settings.defaultInbox.toString())); 147 new FolderPreferences(context, account [all...] |
/packages/apps/ContactsCommon/src/com/android/contacts/common/model/dataitem/ |
H A D | 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;
|
/packages/apps/Email/tests/src/com/android/email/activity/setup/ |
H A D | AccountSetupIncomingTests.java | 189 Account account = new Account(); 191 HostAuth auth = account.getOrCreateHostAuthRecv(context); 193 SetupData.init(SetupData.FLOW_MODE_NORMAL, account);
|
H A D | AccountSetupOutgoingTests.java | 185 Account account = new Account(); 187 HostAuth auth = account.getOrCreateHostAuthSend(context); 189 SetupData.init(SetupData.FLOW_MODE_NORMAL, account);
|
/packages/apps/Exchange/src/com/android/exchange/eas/ |
H A D | EasOperation.java | 59 * discover deviates since it's not account-specific), but the default implementation should suffice 99 * The account id for this operation. 114 protected EasOperation(final Context context, final Account account, final HostAuth hostAuth) { argument 115 this(context, account.mId, new EasServerConnection(context, account, hostAuth)); 118 protected EasOperation(final Context context, final Account account) { argument 119 this(context, account, HostAuth.restoreHostAuthWithId(context, account.mHostAuthKeyRecv)); 305 * Reset the protocol version to use for this connection. If it's changed, and our account is 449 * account t 530 sendMessage(final Account account, final EmailContent.Message msg) argument [all...] |
/packages/apps/Settings/src/com/android/settings/ |
H A D | DebugIntentSender.java | 46 String account = mAccountField.getText().toString(); 53 intent.putExtra("account", account); 79 mAccountField = (EditText) findViewById(R.id.account);
|
/packages/apps/Exchange/src/com/android/exchange/ |
H A D | ExchangeService.java | 157 // try again (the hold might have been specific to this account and released already) 161 log("User requested sync of account in sync disabled hold; releasing"); 165 log("User requested sync of account in security hold; releasing"); 219 // If it's for the account whose host has changed, clear the error 269 * Delete PIM (calendar, contacts) data for the specified account 271 * @param emailAddress the email address for the account whose data should be deleted 317 * in account reconciliation, an exception is thrown if the result cannot be guaranteed accurate 337 Account account = new Account(); 338 account.restore(c); 340 account 362 onSecurityHold(Account account) argument 366 onSyncDisabledHold(Account account) argument 370 eventsAsSyncAdapter(final Uri uri, final String account, final String accountType) argument 397 CalendarObserver(Handler handler, Account account) argument [all...] |
/packages/apps/Email/src/com/android/email/activity/ |
H A D | InsertQuickResponseDialog.java | 41 * Dialog which lists QuickResponses for the specified account. On user selection, will call 46 private static final String ACCOUNT_KEY = "account"; 68 newInstance(Fragment callbackFragment, Account account) { argument 81 args.putParcelable(ACCOUNT_KEY, account); 118 final Account account = getArguments().getParcelable(ACCOUNT_KEY); 123 return new CursorLoader(getActivity(), account.quickResponseUri,
|
/packages/apps/Email/src/com/android/email/activity/setup/ |
H A D | SetupData.java | 39 // either return to the caller (if we're in an account type flow) or go to the message list 86 public SetupData(int flowMode, Account account) { argument 88 mAccount = account; 107 public void setAccount(Account account) { argument 108 mAccount = account;
|
H A D | AccountSecurity.java | 44 * 1. Confirm the account of interest has any security policies defined - exit early if not 75 * @param accountId The account of interest 78 * is not clear (e.g. any time after the account has been set up). 79 * @return an Intent which can be used to view that account 141 // This account wants to control security 173 * the requisite security settings for the given account. 184 private void tryAdvanceSecurity(Account account) { argument 192 repostNotification(account, security); 197 HostAuth hostAuth = HostAuth.restoreHostAuthWithId(this, account.mHostAuthKeyRecv); 202 repostNotification(account, securit 295 repostNotification(final Account account, final SecurityPolicy security) argument [all...] |
/packages/apps/Exchange/src/com/android/exchange/adapter/ |
H A D | AbstractSyncParser.java | 54 final InputStream in, final Mailbox mailbox, final Account account) throws IOException { 56 init(context, resolver, mailbox, account); 75 final Account account) { 79 mAccount = account; 53 AbstractSyncParser(final Context context, final ContentResolver resolver, final InputStream in, final Mailbox mailbox, final Account account) argument 74 init(final Context context, final ContentResolver resolver, final Mailbox mailbox, final Account account) argument
|