Lines Matching refs:accountId
108 private long createMailbox(long accountId, int mailboxType) {
111 box.mAccountKey = accountId;
122 private void createAndStartFinder(final long accountId, final int mailboxType)
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, mCallback.mAccountId);
207 private void prepareForNetworkLookupTest(final long accountId) throws Throwable {
209 createAndStartFinder(accountId, Mailbox.TYPE_INBOX);
220 assertEquals(accountId, mMockController.mPassedAccountId);
232 final long accountId = createAccount(false);
234 prepareForNetworkLookupTest(accountId);
241 null, accountId, 100);
262 final long accountId = createAccount(false);
264 prepareForNetworkLookupTest(accountId);
267 final long mailboxId = createMailbox(accountId, Mailbox.TYPE_INBOX);
274 null, accountId, 100);
287 assertEquals(accountId, mCallback.mAccountId);
298 final long accountId = createAccount(false);
300 prepareForNetworkLookupTest(accountId);
308 new MessagingException("Network error"), accountId, 0);
325 final long accountId = createAccount(false);
327 prepareForNetworkLookupTest(accountId);
333 long nonTargetAccountId = accountId + 1;
353 final long accountId = createAccount(false);
354 final long mailboxId = createMailbox(accountId, Mailbox.TYPE_DRAFTS);
356 createAndStartFinder(accountId, Mailbox.TYPE_INBOX);
372 final long accountId = createAccount(true);
374 createAndStartFinder(accountId, Mailbox.TYPE_INBOX);
383 final long accountId = createAccount(true);
385 createAndStartFinder(accountId, Mailbox.TYPE_INBOX);
407 public void updateMailboxList(long accountId) {
409 mPassedAccountId = accountId;
436 public void onAccountSecurityHold(long accountId) {
438 mAccountId = accountId;
442 public void onMailboxFound(long accountId, long mailboxId) {
444 mAccountId = accountId;
449 public void onMailboxNotFound(long accountId) {
451 mAccountId = accountId;