/packages/apps/Email/src/com/android/email/ |
H A D | MessagingListener.java | 36 public void listFoldersStarted(long accountId) { argument 39 public void listFoldersFailed(long accountId, String message) { argument 42 public void listFoldersFinished(long accountId) { argument 45 public void synchronizeMailboxStarted(long accountId, long mailboxId) { argument 52 * @param accountId The account that was synchronized 59 public void synchronizeMailboxFinished(long accountId, long mailboxId, argument 63 public void synchronizeMailboxFailed(long accountId, long mailboxId, Exception e) { argument 75 public void checkMailStarted(Context context, long accountId, long tag) { argument 78 public void checkMailFinished(Context context, long accountId, long mailboxId, long tag) { argument 81 public void sendPendingMessagesStarted(long accountId, lon argument 84 sendPendingMessagesCompleted(long accountId) argument 87 sendPendingMessagesFailed(long accountId, long messageId, Exception reason) argument 90 messageUidChanged(long accountId, long mailboxId, String oldUid, String newUid) argument 93 loadAttachmentStarted( long accountId, long messageId, long attachmentId, boolean requiresDownload) argument 100 loadAttachmentFinished( long accountId, long messageId, long attachmentId) argument 106 loadAttachmentFailed( long accountId, long messageId, long attachmentId, MessagingException me, boolean background) argument [all...] |
H A D | GroupMessagingListener.java | 55 synchronized public void listFoldersStarted(long accountId) { argument 57 l.listFoldersStarted(accountId); 62 synchronized public void listFoldersFailed(long accountId, String message) { argument 64 l.listFoldersFailed(accountId, message); 69 synchronized public void listFoldersFinished(long accountId) { argument 71 l.listFoldersFinished(accountId); 76 synchronized public void synchronizeMailboxStarted(long accountId, long mailboxId) { argument 78 l.synchronizeMailboxStarted(accountId, mailboxId); 83 synchronized public void synchronizeMailboxFinished(long accountId, long mailboxId, argument 86 l.synchronizeMailboxFinished(accountId, mailboxI 92 synchronizeMailboxFailed(long accountId, long mailboxId, Exception e) argument 120 checkMailStarted(Context context, long accountId, long tag) argument 127 checkMailFinished(Context context, long accountId, long folderId, long tag) argument 135 sendPendingMessagesStarted(long accountId, long messageId) argument 142 sendPendingMessagesCompleted(long accountId) argument 149 sendPendingMessagesFailed(long accountId, long messageId, Exception reason) argument 157 messageUidChanged(long accountId, long mailboxId, String oldUid, String newUid) argument 165 loadAttachmentStarted( long accountId, long messageId, long attachmentId, boolean requiresDownload) argument 176 loadAttachmentFinished( long accountId, long messageId, long attachmentId) argument 186 loadAttachmentFailed( long accountId, long messageId, long attachmentId, MessagingException me, boolean background) argument [all...] |
H A D | RefreshManager.java | 70 * @param accountId ID of the account. 74 public void onRefreshStatusChanged(long accountId, long mailboxId); argument 79 * @param accountId ID of the account, or -1 if unknown. 83 public void onMessagingError(long accountId, long mailboxId, String message); argument 212 public boolean refreshMailboxList(long accountId) { argument 213 final Status status = mMailboxListStatus.get(accountId); 217 Log.d(Logging.LOG_TAG, "refreshMailboxList " + accountId); 220 notifyRefreshStatusChanged(accountId, -1); 221 mController.updateMailboxList(accountId); 230 public boolean isMailboxListStale(long accountId) { argument 238 refreshMessageList(long accountId, long mailboxId, boolean userRequest) argument 245 loadMoreMessages(long accountId, long mailboxId) argument 249 refreshMessageList(long accountId, long mailboxId, boolean loadMoreMessages, boolean userRequest) argument 271 sendPendingMessages(long accountId) argument 297 performAction(long accountId) argument 302 getLastMailboxListRefreshTime(long accountId) argument 310 isMailboxListRefreshing(long accountId) argument 330 notifyRefreshStatusChanged(long accountId, long mailboxId) argument 336 reportError(long accountId, long mailboxId, String errorMessage) argument 347 getMailboxListStatusForTest(long accountId) argument 370 updateMailboxListCallback(MessagingException exception, long accountId, int progress) argument 388 updateMailboxCallback(MessagingException exception, long accountId, long mailboxId, int progress, int dontUseNumNewMessages, ArrayList<Long> addedMessages) argument 407 serviceCheckMailCallback( MessagingException exception, long accountId, long mailboxId, int progress, long tag) argument 417 updateMailboxCallbackInternal(MessagingException exception, long accountId, long mailboxId, int progress, int dontUseNumNewMessages) argument 436 sendMailCallback(MessagingException exception, long accountId, long messageId, int progress) argument [all...] |
H A D | ControllerResultUiThreadWrapper.java | 61 public void loadAttachmentCallback(final MessagingException result, final long accountId, argument 70 mWrappee.loadAttachmentCallback(result, accountId, messageId, attachmentId, 77 public void loadMessageForViewCallback(final MessagingException result, final long accountId, argument 82 mWrappee.loadMessageForViewCallback(result, accountId, messageId, progress); 88 public void sendMailCallback(final MessagingException result, final long accountId, argument 93 mWrappee.sendMailCallback(result, accountId, messageId, progress); 99 public void serviceCheckMailCallback(final MessagingException result, final long accountId, argument 104 mWrappee.serviceCheckMailCallback(result, accountId, mailboxId, progress, tag); 110 public void updateMailboxCallback(final MessagingException result, final long accountId, argument 116 mWrappee.updateMailboxCallback(result, accountId, mailboxI 123 updateMailboxListCallback(final MessagingException result, final long accountId, final int progress) argument [all...] |
H A D | ResourceHelper.java | 59 /* package */ int getAccountColorIndex(long accountId) { argument 62 return Math.abs((int) ((accountId - 1) % mAccountColors.length)); 68 public int getAccountColor(long accountId) { argument 69 return mAccountColors[getAccountColorIndex(accountId)]; 76 public int getAccountColorId(long accountId) { argument 77 return mAccountColorArray.getResourceId(getAccountColorIndex(accountId), 84 public Paint getAccountColorPaint(long accountId) { argument 85 return mAccountColorPaints[getAccountColorIndex(accountId)];
|
H A D | MessageListContext.java | 56 private MessageListContext(long accountId, long searchMailboxId, SearchParams searchParams) { argument 57 mAccountId = accountId; 70 long accountId = intent.getLongExtra(EmailActivity.EXTRA_ACCOUNT_ID, Account.NO_ACCOUNT); 76 Controller.getInstance(context).getSearchMailbox(accountId).mId; 77 return forSearch(accountId, searchMailboxId, new SearchParams(mailboxId, queryTerm)); 79 if (accountId == Account.NO_ACCOUNT) { 80 accountId = Account.getDefaultAccountId(context); 81 if (accountId == Account.NO_ACCOUNT) { 86 mailboxId = (accountId == Account.ACCOUNT_ID_COMBINED_VIEW) 88 : Mailbox.findMailboxOfType(context, accountId, Mailbo 98 forSearch( long accountId, long searchMailboxId, SearchParams searchParams) argument 109 forMailbox(long accountId, long mailboxId) argument [all...] |
H A D | Controller.java | 273 public Mailbox getSearchMailbox(long accountId) { argument 274 Mailbox m = Mailbox.restoreMailboxOfType(mContext, accountId, Mailbox.TYPE_SEARCH); 277 m.mAccountKey = accountId; 342 public void updateMailboxList(final long accountId) { argument 346 final IEmailService service = getServiceForAccount(accountId); 350 service.updateFolderList(accountId); 358 mLegacyController.listFolders(accountId, mLegacyListener); 370 public void serviceCheckMail(final long accountId, final long mailboxId, final long tag) { argument 371 IEmailService service = getServiceForAccount(accountId); 378 mLegacyListener.checkMailFinished(mContext, accountId, mailboxI 401 updateMailbox(final long accountId, final long mailboxId, boolean userRequest) argument 496 findOrCreateMailboxOfType(long accountId, int mailboxType) argument 540 createMailbox(long accountId, int mailboxType) argument 596 sendPendingMessagesSmtp(long accountId) argument 616 sendPendingMessages(long accountId) argument 965 searchMore(long accountId) argument 978 searchMessages(final long accountId, final SearchParams searchParams) argument 1055 loadAttachment(final long attachmentId, final long messageId, final long accountId) argument 1103 getServiceForAccount(long accountId) argument 1120 isMessagingController(long accountId) argument 1133 deleteAccount(final long accountId) argument 1145 deleteAccountSync(long accountId, Context context) argument 1189 deleteSyncedDataSync(long accountId) argument 1247 updateMailboxListCallback(MessagingException result, long accountId, int progress) argument 1261 updateMailboxCallback(MessagingException result, long accountId, long mailboxId, int progress, int numNewMessages, ArrayList<Long> addedMessages) argument 1272 loadMessageForViewCallback(MessagingException result, long accountId, long messageId, int progress) argument 1284 loadAttachmentCallback(MessagingException result, long accountId, long messageId, long attachmentId, int progress) argument 1299 serviceCheckMailCallback(MessagingException result, long accountId, long mailboxId, int progress, long tag) argument 1332 sendMailCallback(MessagingException result, long accountId, long messageId, int progress) argument 1376 listFoldersStarted(long accountId) argument 1385 listFoldersFailed(long accountId, String message) argument 1394 listFoldersFinished(long accountId) argument 1403 synchronizeMailboxStarted(long accountId, long mailboxId) argument 1412 synchronizeMailboxFinished(long accountId, long mailboxId, int totalMessagesInMailbox, int numNewMessages, ArrayList<Long> addedMessages) argument 1423 synchronizeMailboxFailed(long accountId, long mailboxId, Exception e) argument 1438 checkMailStarted(Context context, long accountId, long tag) argument 1447 checkMailFinished(Context context, long accountId, long folderId, long tag) argument 1487 loadAttachmentStarted(long accountId, long messageId, long attachmentId, boolean requiresDownload) argument 1502 loadAttachmentFinished(long accountId, long messageId, long attachmentId) argument 1516 loadAttachmentFailed(long accountId, long messageId, long attachmentId, MessagingException me, boolean background) argument 1545 sendPendingMessagesStarted(long accountId, long messageId) argument 1554 sendPendingMessagesCompleted(long accountId) argument 1563 sendPendingMessagesFailed(long accountId, long messageId, Exception reason) argument 1641 syncMailboxListStatus(long accountId, int statusCode, int progress) argument [all...] |
/packages/apps/Email/emailcommon/src/com/android/emailcommon/service/ |
H A D | IAccountService.aidl | 22 oneway void notifyLoginFailed(long accountId); 23 oneway void notifyLoginSucceeded(long accountId); 27 int getAccountColor(long accountId);
|
H A D | IEmailService.aidl | 34 oneway void updateFolderList(long accountId); 36 boolean createFolder(long accountId, String name); 37 boolean deleteFolder(long accountId, String name); 38 boolean renameFolder(long accountId, String oldName, String newName); 46 oneway void hostChanged(long accountId); 54 void deleteAccountPIMData(long accountId); 59 int searchMessages(long accountId, in SearchParams params, long destMailboxId); 61 void sendMail(long accountId);
|
H A D | IPolicyService.aidl | 22 void setAccountHoldFlag(long accountId, boolean newState); 23 void setAccountPolicy(long accountId, in Policy policy, String securityKey);
|
H A D | AccountServiceProxy.java | 48 public void notifyLoginFailed(final long accountId) { argument 52 mService.notifyLoginFailed(accountId); 58 public void notifyLoginSucceeded(final long accountId) { argument 62 mService.notifyLoginSucceeded(accountId); 81 public int getAccountColor(final long accountId) { argument 85 mReturn = mService.getAccountColor(accountId);
|
/packages/apps/Email/tests/src/com/android/email/activity/ |
H A D | MailboxFinderTest.java | 108 private long createMailbox(long accountId, int mailboxType) { argument 111 box.mAccountKey = accountId; 122 private void createAndStartFinder(final long accountId, final int mailboxType) argument 127 mMailboxFinder = new MailboxFinder(mProviderContext, accountId, mailboxType, 152 final long accountId = createAccount(true); 154 createAndStartFinder(accountId, Mailbox.TYPE_INBOX); 186 final long accountId = createAccount(false); 187 final long mailboxId = createMailbox(accountId, Mailbox.TYPE_INBOX); 189 createAndStartFinder(accountId, Mailbox.TYPE_INBOX); 198 assertEquals(accountId, mCallbac 207 prepareForNetworkLookupTest(final long accountId) argument 407 updateMailboxList(long accountId) argument 436 onAccountSecurityHold(long accountId) argument 442 onMailboxFound(long accountId, long mailboxId) argument 449 onMailboxNotFound(long accountId) argument [all...] |
H A D | MessagesAdapterTests.java | 53 private long createMailbox(long accountId, int type) { argument 54 Mailbox box = ProviderTestUtils.setupMailbox("name", accountId, false, mProviderContext); 60 private MessagesAdapter.MessagesCursor getLoaderResult(long accountId, long mailboxId) { argument 64 MessageListContext.forMailbox(accountId, mailboxId))); 71 final long accountId = createAccount(false); 72 final long mailboxId = createMailbox(accountId, Mailbox.TYPE_MAIL); 74 MessagesAdapter.MessagesCursor result = getLoaderResult(accountId, mailboxId); 76 assertEquals(accountId, result.mAccount.mId); 86 final long accountId = createAccount(true); 87 final long mailboxId = createMailbox(accountId, Mailbo [all...] |
/packages/apps/Email/src/com/android/email/service/ |
H A D | PolicyService.java | 38 public void policiesRequired(long accountId) { 39 mSecurityPolicy.policiesRequired(accountId); 42 public void policiesUpdated(long accountId) { 43 mSecurityPolicy.policiesUpdated(accountId); 46 public void setAccountHoldFlag(long accountId, boolean newState) { 47 SecurityPolicy.setAccountHoldFlag(mContext, accountId, newState); 66 public void setAccountPolicy(long accountId, Policy policy, String securityKey) { 67 mSecurityPolicy.setAccountPolicy(accountId, policy, securityKey);
|
H A D | MailService.java | 127 * @param accountId the account whose pending mail should be sent 129 public static void actionSendPendingMail(Context context, long accountId) { argument 133 i.putExtra(MailService.EXTRA_ACCOUNT, accountId); 151 final long accountId = intent.getLongExtra(EXTRA_ACCOUNT, -1); 171 Log.d(LOG_TAG, "action: check mail for id=" + accountId); 173 if (accountId >= 0) { 174 setWatchdog(accountId, alarmManager); 179 if (accountId != -1 && ContentResolver.getMasterSyncAutomatically()) { 182 if (report.accountId == accountId) { 386 setWatchdog(long accountId, AlarmManager alarmMgr) argument 437 long accountId; field in class:MailService.AccountSyncReport 469 setupSyncReports(long accountId) argument 479 setupSyncReportsLocked(long accountId, Context context) argument 564 updateAccountReport(long accountId, int newCount) argument 619 updateMailboxCallback(MessagingException result, long accountId, long mailboxId, int progress, int numNewMessages, ArrayList<Long> addedMessages) argument 639 serviceCheckMailCallback(MessagingException result, long accountId, long mailboxId, int progress, long tag) argument [all...] |
H A D | EmailServiceUtils.java | 96 public boolean createFolder(long accountId, String name) throws RemoteException { argument 100 public boolean deleteFolder(long accountId, String name) throws RemoteException { argument 104 public void hostChanged(long accountId) throws RemoteException { argument 113 public boolean renameFolder(long accountId, String oldName, String newName) argument 133 public void updateFolderList(long accountId) throws RemoteException { argument 140 public void deleteAccountPIMData(long accountId) throws RemoteException { argument 143 public int searchMessages(long accountId, SearchParams searchParams, long destMailboxId) { argument 157 public void sendMail(long accountId) throws RemoteException { argument
|
H A D | AccountService.java | 49 public void notifyLoginFailed(long accountId) { 50 NotificationController.getInstance(mContext).showLoginFailedNotification(accountId); 54 public void notifyLoginSucceeded(long accountId) { 55 NotificationController.getInstance(mContext).cancelLoginFailedNotification(accountId); 64 long accountId = c.getLong(Account.CONTENT_ID_COLUMN); 65 String protocol = Account.getProtocol(mContext, accountId); 67 Account account = Account.restoreAccountWithId(mContext, accountId); 88 public int getAccountColor(long accountId) { 89 return ResourceHelper.getInstance(mContext).getAccountColor(accountId);
|
/packages/apps/Email/tests/src/com/android/email/ |
H A D | ResourceHelperTest.java | 35 for (long accountId = -1; accountId < 100; accountId++) { 37 Integer color = mResourceHelper.getAccountColor(accountId); 38 Paint paint = mResourceHelper.getAccountColorPaint(accountId);
|
H A D | MessageListContextTests.java | 27 long accountId = 123; 29 MessageListContext original = MessageListContext.forMailbox(accountId, mailboxId); 41 long accountId = 123; 44 MessageListContext original = MessageListContext.forSearch(accountId, mailboxId, params);
|
/packages/apps/Email/src/com/android/email/activity/ |
H A D | RecentMailboxManager.java | 96 public EmailAsyncTask<Void, Void, Void> touch(long accountId, long mailboxId) { argument 97 return fireAndForget(accountId, mailboxId, sClock.getTime()); 105 * @param accountId The ID of the account to load the recent list. 109 public ArrayList<Long> getMostRecent(long accountId, boolean withExclusions) { argument 110 ensureDefaultsInitialized(accountId, sClock.getTime()); 117 new String[] { Long.toString(accountId), Integer.toString(LIMIT_RESULTS) }, 131 final long accountId, final long mailboxId, final long time) { 135 ensureDefaultsInitialized(accountId, time); 136 touchMailboxSynchronous(accountId, mailboxId, time); 141 private void touchMailboxSynchronous(long accountId, lon argument 130 fireAndForget( final long accountId, final long mailboxId, final long time) argument 152 ensureDefaultsInitialized(long accountId, long time) argument [all...] |
H A D | EmailActivity.java | 85 * @param accountId If -1, default account will be used. 87 public static Intent createOpenAccountIntent(Activity fromActivity, long accountId) { argument 89 if (accountId != -1) { 90 i.putExtra(EXTRA_ACCOUNT_ID, accountId); 98 * @param accountId must not be -1. 102 public static Intent createOpenMailboxIntent(Activity fromActivity, long accountId, argument 104 if (accountId == -1 || mailboxId == -1) { 108 i.putExtra(EXTRA_ACCOUNT_ID, accountId); 116 * @param accountId must not be -1. 121 public static Intent createOpenMessageIntent(Activity fromActivity, long accountId, argument 141 createSearchIntent(Activity fromActivity, long accountId, long mailboxId, String query) argument 364 sendMailCallback( MessagingException result, long accountId, long messageId, int progress) argument 370 serviceCheckMailCallback( MessagingException result, long accountId, long mailboxId, int progress, long tag) argument 376 updateMailboxCallback(MessagingException result, long accountId, long mailboxId, int progress, int numNewMessages, ArrayList<Long> addedMessages) argument 382 updateMailboxListCallback( MessagingException result, long accountId, int progress) argument 388 loadAttachmentCallback(MessagingException result, long accountId, long messageId, long attachmentId, int progress) argument 394 loadMessageForViewCallback(MessagingException result, long accountId, long messageId, int progress) argument 399 handleError(final MessagingException result, final long accountId, int progress) argument [all...] |
H A D | UIControllerBase.java | 116 public void onMessagingError(final long accountId, long mailboxId, final String message) { argument 121 public void onRefreshStatusChanged(long accountId, long mailboxId) { argument 210 long accountId = getUIAccountId(); 211 Preferences.getPreferences(mActivity).setLastUsedAccountId(accountId); 212 showAccountSpecificWarning(accountId); 528 * @param accountId ID of the account to load. Can be {@link Account#ACCOUNT_ID_COMBINED_VIEW}. 533 public final void switchAccount(long accountId, boolean forceShowInbox) { argument 535 if (Account.isSecurityHold(mActivity, accountId)) { 536 ActivityHelper.showSecurityHoldDialog(mActivity, accountId); 541 if (accountId 592 openMailbox(long accountId, long mailboxId) argument 1033 showAccountSpecificWarning(long accountId) argument [all...] |
/packages/apps/Exchange/exchange2/tests/src/com/android/exchange/provider/ |
H A D | EmailContentSetupUtils.java | 54 public static Mailbox setupMailbox(String name, long accountId, boolean saveIt, argument 56 return setupMailbox(name, accountId, saveIt, context, Mailbox.TYPE_MAIL, null); 59 public static Mailbox setupMailbox(String name, long accountId, boolean saveIt, argument 61 return setupMailbox(name, accountId, saveIt, context, type, null); 64 public static Mailbox setupMailbox(String name, long accountId, boolean saveIt, argument 69 box.mAccountKey = accountId; 86 public static Message setupMessage(String name, long accountId, long mailboxId, argument 89 return setupMessage(name, accountId, mailboxId, addBody, saveIt, context, true, true); 95 public static Message setupMessage(String name, long accountId, long mailboxId, argument 101 message.mAccountKey = accountId; [all...] |
/packages/apps/Exchange/tests/src/com/android/exchange/provider/ |
H A D | EmailContentSetupUtils.java | 54 public static Mailbox setupMailbox(String name, long accountId, boolean saveIt, argument 56 return setupMailbox(name, accountId, saveIt, context, Mailbox.TYPE_MAIL, null); 59 public static Mailbox setupMailbox(String name, long accountId, boolean saveIt, argument 61 return setupMailbox(name, accountId, saveIt, context, type, null); 64 public static Mailbox setupMailbox(String name, long accountId, boolean saveIt, argument 69 box.mAccountKey = accountId; 86 public static Message setupMessage(String name, long accountId, long mailboxId, argument 89 return setupMessage(name, accountId, mailboxId, addBody, saveIt, context, true, true); 95 public static Message setupMessage(String name, long accountId, long mailboxId, argument 101 message.mAccountKey = accountId; [all...] |
/packages/apps/Email/emailcommon/src/com/android/emailcommon/utility/ |
H A D | AttachmentUtilities.java | 137 public static Uri getAttachmentUri(long accountId, long id) { argument 139 .appendPath(Long.toString(accountId)) 145 public static Uri getAttachmentThumbnailUri(long accountId, long id, argument 148 .appendPath(Long.toString(accountId)) 163 public static File getAttachmentFilename(Context context, long accountId, long attachmentId) { argument 164 return new File(getAttachmentDirectory(context, accountId), Long.toString(attachmentId)); 174 public static File getAttachmentDirectory(Context context, long accountId) { argument 175 return context.getDatabasePath(accountId + ".db_att"); 305 * @param accountId the account for the message 308 public static void deleteAllAttachmentFiles(Context context, long accountId, lon argument 333 deleteAllMailboxAttachmentFiles(Context context, long accountId, long mailboxId) argument 354 deleteAllAccountAttachmentFiles(Context context, long accountId) argument [all...] |