Home | History | Annotate | Download | only in activity

Lines Matching refs:accountId

85      * @param accountId If -1, default account will be used.
87 public static Intent createOpenAccountIntent(Activity fromActivity, long accountId) {
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,
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,
123 if (accountId == -1 || mailboxId == -1 || messageId == -1) {
127 i.putExtra(EXTRA_ACCOUNT_ID, accountId);
136 * @param accountId ID of the account for the mailbox. Must not be {@link Account#NO_ACCOUNT}.
141 public static Intent createSearchIntent(Activity fromActivity, long accountId,
143 Preconditions.checkArgument(Account.isNormalAccount(accountId),
149 i.putExtra(EXTRA_ACCOUNT_ID, accountId);
365 MessagingException result, long accountId, long messageId, int progress) {
366 handleError(result, accountId, progress);
371 MessagingException result, long accountId, long mailboxId, int progress, long tag) {
372 handleError(result, accountId, progress);
376 public void updateMailboxCallback(MessagingException result, long accountId, long mailboxId,
378 handleError(result, accountId, progress);
383 MessagingException result, long accountId, int progress) {
384 handleError(result, accountId, progress);
388 public void loadAttachmentCallback(MessagingException result, long accountId,
390 handleError(result, accountId, progress);
394 public void loadMessageForViewCallback(MessagingException result, long accountId,
396 handleError(result, accountId, progress);
399 private void handleError(final MessagingException result, final long accountId,
401 if (accountId == -1) {
407 if (mLastErrorAccountId == accountId) {
412 Account account = Account.restoreAccountWithId(EmailActivity.this, accountId);
422 mLastErrorAccountId = accountId;