/packages/apps/Email/src/com/android/email/ |
H A D | MessagingListener.java | 32 public void listFoldersStarted(long accountId) { argument 35 public void listFoldersFailed(long accountId, String message) { argument 38 public void listFoldersFinished(long accountId) { argument 41 public void synchronizeMailboxStarted(long accountId, long mailboxId) argument 45 public void synchronizeMailboxFinished(long accountId, argument 49 public void synchronizeMailboxFailed(long accountId, long mailboxId, argument 62 public void checkMailStarted(Context context, long accountId, long tag) { argument 65 public void checkMailFinished(Context context, long accountId, long mailboxId, long tag) { argument 68 public void sendPendingMessagesStarted(long accountId, long messageId) { argument 71 public void sendPendingMessagesCompleted(long accountId) { argument 74 sendPendingMessagesFailed(long accountId, long messageId, Exception reason) argument 77 messageUidChanged(long accountId, long mailboxId, String oldUid, String newUid) argument 80 loadAttachmentStarted( long accountId, long messageId, long attachmentId, boolean requiresDownload) argument 87 loadAttachmentFinished( long accountId, long messageId, long attachmentId) argument 93 loadAttachmentFailed( long accountId, long messageId, long attachmentId, String reason) 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, String reason) argument [all...] |
H A D | Controller.java | 152 public void updateMailboxList(final long accountId, final Result callback) { argument 154 IEmailService service = getServiceForAccount(accountId); 158 service.updateFolderList(accountId); 169 mLegacyController.listFolders(accountId, mLegacyListener); 181 public void serviceCheckMail(final long accountId, final long mailboxId, final long tag, argument 183 IEmailService service = getServiceForAccount(accountId); 190 callback.serviceCheckMailCallback(null, accountId, mailboxId, 100, tag); 201 mLegacyController.checkMail(accountId, tag, mLegacyListener); 214 public void updateMailbox(final long accountId, final long mailboxId, final Result callback) { argument 216 IEmailService service = getServiceForAccount(accountId); 305 findOrCreateMailboxOfType(long accountId, int mailboxType) argument 349 createMailbox(long accountId, int mailboxType) argument 372 sendMessage(long messageId, long accountId) argument 424 sendPendingMessages(long accountId, Result callback) argument 577 deleteMessage(long messageId, long accountId) argument 722 loadAttachment(final long attachmentId, final long messageId, final long mailboxId, final long accountId, final Result callback) argument 786 getServiceForAccount(long accountId) argument 828 updateMailboxListCallback(MessagingException result, long accountId, int progress) argument 841 updateMailboxCallback(MessagingException result, long accountId, long mailboxId, int progress, int numNewMessages) argument 876 serviceCheckMailCallback(MessagingException result, long accountId, long mailboxId, int progress, long tag) argument 888 sendMailCallback(MessagingException result, long accountId, long messageId, int progress) argument 899 listFoldersStarted(long accountId) argument 908 listFoldersFailed(long accountId, String message) argument 917 listFoldersFinished(long accountId) argument 926 synchronizeMailboxStarted(long accountId, long mailboxId) argument 935 synchronizeMailboxFinished(long accountId, long mailboxId, int totalMessagesInMailbox, int numNewMessages) argument 945 synchronizeMailboxFailed(long accountId, long mailboxId, Exception e) argument 960 checkMailStarted(Context context, long accountId, long tag) argument 969 checkMailFinished(Context context, long accountId, long folderId, long tag) argument 1006 loadAttachmentStarted(long accountId, long messageId, long attachmentId, boolean requiresDownload) argument 1016 loadAttachmentFinished(long accountId, long messageId, long attachmentId) argument 1025 loadAttachmentFailed(long accountId, long messageId, long attachmentId, String reason) argument 1036 sendPendingMessagesStarted(long accountId, long messageId) argument 1045 sendPendingMessagesCompleted(long accountId) argument 1054 sendPendingMessagesFailed(long accountId, long messageId, Exception reason) argument 1135 syncMailboxListStatus(long accountId, int statusCode, int progress) argument [all...] |
H A D | ExchangeUtils.java | 89 public boolean createFolder(long accountId, String name) throws RemoteException { argument 93 public boolean deleteFolder(long accountId, String name) throws RemoteException { argument 97 public void hostChanged(long accountId) throws RemoteException { argument 107 public boolean renameFolder(long accountId, String oldName, String newName) argument 127 public void updateFolderList(long accountId) throws RemoteException { argument
|
H A D | Email.java | 179 /* package for testing */ static int getColorIndexFromAccountId(long accountId) { argument 182 return Math.abs((int) (accountId - 1) % ACCOUNT_COLOR_CHIP_RES_IDS.length); 185 public static int getAccountColorResourceId(long accountId) { argument 186 return ACCOUNT_COLOR_CHIP_RES_IDS[getColorIndexFromAccountId(accountId)]; 189 public static int getAccountColor(long accountId) { argument 190 return ACCOUNT_COLOR_CHIP_RGBS[getColorIndexFromAccountId(accountId)];
|
/packages/apps/Email/src/com/android/email/service/ |
H A D | IEmailService.aidl | 32 void updateFolderList(long accountId); 34 boolean createFolder(long accountId, String name); 35 boolean deleteFolder(long accountId, String name); 36 boolean renameFolder(long accountId, String oldName, String newName); 42 void hostChanged(long accountId);
|
H A D | MailService.java | 116 * @param accountId account to clear, or -1 for all accounts
118 public static void resetNewMessageCount(Context context, long accountId) {
argument 121 if (accountId == -1 || accountId == report.accountId) {
128 if (accountId == -1) {
131 uri = ContentUris.withAppendedId(Account.CONTENT_URI, accountId);
142 * @param accountId the id of the account that is reporting new messages
145 public static void actionNotifyNewMessages(Context context, long accountId) {
argument 148 i.putExtra(EXTRA_CHECK_ACCOUNT, accountId);
365 setWatchdog(long accountId, AlarmManager alarmMgr) argument 413 long accountId; field in class:MailService.AccountSyncReport 441 setupSyncReports(long accountId) argument 450 setupSyncReportsLocked(long accountId) argument 515 updateAccountReport(long accountId, int newCount) argument 586 updateMailboxCallback(MessagingException result, long accountId, long mailboxId, int progress, int numNewMessages) argument 607 updateMailboxListCallback(MessagingException result, long accountId, int progress) argument 611 serviceCheckMailCallback(MessagingException result, long accountId, long mailboxId, int progress, long tag) argument 629 sendMailCallback(MessagingException result, long accountId, long messageId, int progress) argument 640 notifyNewMessages(long accountId) argument [all...] |
H A D | IEmailServiceCallback.aidl | 38 * accountId = the account being synced 42 void syncMailboxListStatus(long accountId, int statusCode, int progress);
|
H A D | EmailServiceProxy.java | 238 public void updateFolderList(final long accountId) throws RemoteException { argument 243 mService.updateFolderList(accountId); 273 public void hostChanged(final long accountId) throws RemoteException { argument 277 mService.hostChanged(accountId); 300 public boolean createFolder(long accountId, String name) throws RemoteException { argument 304 public boolean deleteFolder(long accountId, String name) throws RemoteException { argument 308 public boolean renameFolder(long accountId, String oldName, String newName) argument
|
/packages/apps/Email/src/com/android/email/activity/setup/ |
H A D | AccountSecurity.java | 50 * @param accountId The account of interest 53 public static Intent actionUpdateSecurityIntent(Context context, long accountId) { argument 55 intent.putExtra(EXTRA_ACCOUNT_ID, accountId); 64 long accountId = i.getLongExtra(EXTRA_ACCOUNT_ID, -1); 66 security.clearNotification(accountId); 67 if (accountId != -1) { 69 Account account = Account.restoreAccountWithId(this, accountId); 106 final long accountId = getIntent().getLongExtra(EXTRA_ACCOUNT_ID, -1); 107 if (accountId != -1) { 112 .policiesRequired(accountId); [all...] |
H A D | AccountSetupNames.java | 45 private static final String EXTRA_ACCOUNT_ID = "accountId"; 62 public static void actionSetNames(Activity fromActivity, long accountId, boolean easFlowMode) { argument 64 i.putExtra(EXTRA_ACCOUNT_ID, accountId); 93 long accountId = getIntent().getLongExtra(EXTRA_ACCOUNT_ID, -1); 94 mAccount = EmailContent.Account.restoreAccountWithId(this, accountId); 212 public CheckAccountStateTask(long accountId) { argument 213 mAccountId = accountId;
|
/packages/apps/IM/src/com/android/im/app/ |
H A D | ImUrlActivity.java | 83 long accountId; 91 accountId = c.getLong(ACCOUNT_ID_COLUMN); 93 editAccount(accountId); 95 signInAccount(accountId); 101 accountId = mConn.getAccountId(); 104 signInAccount(accountId); 107 showContactList(accountId); 109 openChat(providerId, accountId); 128 private void editAccount(long accountId) { argument 129 Uri accountUri = ContentUris.withAppendedId(Imps.Account.CONTENT_URI, accountId); 137 signInAccount(long accountId) argument 145 showContactList(long accountId) argument [all...] |
H A D | SignoutActivity.java | 63 final long accountId; 73 accountId = c.getLong(c.getColumnIndexOrThrow(Imps.Account._ID)); 81 signOut(providerId, accountId); 86 private void signOut(long providerId, long accountId) { argument 104 new String[] { Long.toString(accountId) });
|
H A D | LandingPage.java | 129 private void signIn(long accountId) { argument 130 if (accountId == 0) { 138 if (Log.isLoggable(TAG, Log.DEBUG)) log("no pw for account " + accountId); 145 intent.setData(ContentUris.withAppendedId(Imps.Account.CONTENT_URI, accountId)); 177 long accountId = mProviderCursor.getLong(ACTIVE_ACCOUNT_ID_COLUMN); 178 signOut(accountId); 192 private void signOut(long accountId) { argument 193 if (accountId == 0) { 199 IImConnection conn = mApp.getConnectionByAccount(accountId); 287 long accountId [all...] |
H A D | ChatSwitcher.java | 373 long accountId = c.getLong(mAccountIdColumn); 374 return accountId != 0; 539 i.putExtra("accountId", account); 616 long accountId = c.getLong(mAccountIdColumn); 620 mActivity.getContentResolver(), providerId, accountId, 623 if (mSwitcherCallback == null || !mSwitcherCallback.switchTo(contact, accountId, intent)) { 662 private int findCurrent(Cursor c, String contact, long accountId, long providerId) { argument 665 if (c.getLong(mAccountIdColumn) != accountId) { 680 private void rotateChat(Cursor c, int direction, String contact, long accountId, long providerId) { argument 686 int position = findCurrent(c, contact, accountId, providerI 704 rotateChat(final int direction, final String contact, final long accountId, final long providerId) argument [all...] |
/packages/apps/Email/src/com/android/email/provider/ |
H A D | AttachmentProvider.java | 88 public static Uri getAttachmentUri(long accountId, long id) { argument 90 .appendPath(Long.toString(accountId)) 96 public static Uri getAttachmentThumbnailUri(long accountId, long id, argument 99 .appendPath(Long.toString(accountId)) 114 public static File getAttachmentFilename(Context context, long accountId, long attachmentId) { argument 115 return new File(getAttachmentDirectory(context, accountId), Long.toString(attachmentId)); 125 public static File getAttachmentDirectory(Context context, long accountId) { argument 126 return context.getDatabasePath(accountId + ".db_att"); 154 String accountId = segments.get(0); 233 String accountId 421 deleteAllAttachmentFiles(Context context, long accountId, long messageId) argument 446 deleteAllMailboxAttachmentFiles(Context context, long accountId, long mailboxId) argument [all...] |
/packages/apps/Email/src/com/android/email/activity/ |
H A D | Welcome.java | 94 long accountId = c.getLong(EmailContent.Account.CONTENT_ID_COLUMN); 95 MessageList.actionHandleAccount(this, accountId, Mailbox.TYPE_INBOX);
|
H A D | AccountFolderList.java | 377 public DeleteAccountTask(long accountId, String accountUri) { argument 378 mAccountId = accountId; 420 private void onEditAccount(long accountId) { argument 421 AccountSettings.actionSettings(this, accountId); 426 * @param accountId A specific id to refresh folders only, or -1 to refresh everything 428 private void onRefresh(long accountId) { argument 429 if (accountId == -1) { 437 accountId, mControllerCallback); 441 private void onCompose(long accountId) { argument 442 if (accountId 452 onDeleteAccount(long accountId) argument 677 serviceCheckMailCallback(MessagingException result, long accountId, long mailboxId, int progress, long tag) argument 682 sendMailCallback(MessagingException result, long accountId, long messageId, int progress) argument 732 addOnDeletingAccount(long accountId) argument 736 isOnDeletingAccountView(long accountId) argument [all...] |
H A D | MessageList.java | 184 * @param accountId The account to open 187 public static void actionHandleAccount(Context context, long accountId, int mailboxType) { argument 188 context.startActivity(createIntent(context, accountId, -1, mailboxType)); 205 * @param accountId The account to open, or -1 209 public static Intent createIntent(Context context, long accountId, long mailboxId, argument 213 if (accountId != -1) intent.putExtra(EXTRA_ACCOUNT_ID, accountId); 287 long accountId = (uri == null) ? -1 290 if (accountId != -1) { 292 mFindMailboxTask = new FindMailboxTask(accountId, mailboxTyp 673 onDelete(long messageId, long accountId) argument 913 addFooterView(long mailboxId, long accountId, int mailboxType) argument 1083 FindMailboxTask(long accountId, int mailboxType, boolean okToRecurse) argument 1145 isSecurityHold(long accountId) argument 1404 lookupMailboxType(long accountId, int mailboxType) argument 1444 presetMailboxListCallback(int mailboxType, long accountId) argument 1481 serviceCheckMailCallback(MessagingException result, long accountId, long mailboxId, int progress, long tag) argument 1493 sendMailCallback(MessagingException result, long accountId, long messageId, int progress) argument [all...] |
/packages/apps/IM/src/com/android/im/ |
H A D | IImConnection.aidl | 38 * @param accountId the id of the account in content provider. 45 void login(long accountId, String userName, String password, boolean autoLoadContacts);
|
/packages/apps/Email/tests/src/com/android/email/ |
H A D | ControllerProviderOpsTests.java | 107 long accountId = account.mId; 109 long oldBoxId = Mailbox.findMailboxOfType(mProviderContext, accountId, Mailbox.TYPE_DRAFTS); 113 ct.createMailbox(accountId, Mailbox.TYPE_DRAFTS); 114 long boxId = Mailbox.findMailboxOfType(mProviderContext, accountId, Mailbox.TYPE_DRAFTS); 126 * - when accountId or mailboxType are -1, returns NO_MAILBOX 130 long accountId = account.mId; 131 Mailbox box = ProviderTestUtils.setupMailbox("box", accountId, false, mProviderContext); 138 long testBoxId = ct.findOrCreateMailboxOfType(accountId, boxType); 143 long boxId2 = ct.findOrCreateMailboxOfType(accountId, Mailbox.TYPE_DRAFTS); 148 long boxId3 = ct.findOrCreateMailboxOfType(accountId, Mailbo [all...] |
/packages/apps/Email/src/com/android/email/mail/internet/ |
H A D | EmailHtmlUtil.java | 51 ContentResolver resolver, long accountId, String text, Part part, int depth) 64 AttachmentProvider.getAttachmentUri(accountId, attachment.getAttachmentId()); 76 text = resolveInlineImage(resolver, accountId, text, mp.getBodyPart(i), depth + 1); 50 resolveInlineImage( ContentResolver resolver, long accountId, String text, Part part, int depth) argument
|
/packages/apps/Email/src/com/android/exchange/provider/ |
H A D | ExchangeProvider.java | 69 long accountId = -1; 76 accountId = Long.parseLong(accountIdString); 81 GalResult galResult = EasSyncService.searchGal(getContext(), accountId, filter);
|
/packages/apps/IM/src/com/android/im/service/ |
H A D | StatusBarNotifier.java | 69 public void notifyChat(long providerId, long accountId, long chatId, argument 81 notify(username, title, snippet, msg, providerId, accountId, intent, lightWeightNotify); 84 public void notifySubscriptionRequest(long providerId, long accountId, argument 96 notify(username, title, message, message, providerId, accountId, intent, false); 99 public void notifyGroupInvitation(long providerId, long accountId, argument 108 notify(username, title, message, message, providerId, accountId, intent, false); 165 long providerId, long accountId, Intent intent, boolean lightWeightNotify) { 170 info = new NotificationInfo(providerId, accountId); 216 public NotificationInfo(long providerId, long accountId) { argument 218 mAccountId = accountId; 164 notify(String sender, String title, String tickerText, String message, long providerId, long accountId, Intent intent, boolean lightWeightNotify) argument [all...] |
/packages/apps/Email/tests/src/com/android/email/mail/internet/ |
H A D | EmailHtmlUtilTest.java | 59 long accountId = Account.getDefaultAccountId(context); 60 if (accountId == -1) { 65 accountId = account.mId; 66 mCreatedAccountId = accountId; 68 Account.restoreAccountWithId(context, accountId);
|