Searched defs:accountId (Results 1 - 25 of 72) sorted by relevance

123

/packages/apps/Email/tests/src/com/android/email/service/
H A DEmailBroadcastProcessorServiceTests.java70 private int getAccountFlags(long accountId) throws NoSuchElementException { argument
71 Uri uri = ContentUris.withAppendedId(Account.CONTENT_URI, accountId);
/packages/apps/Email/src/com/android/email/
H A DResourceHelper.java59 /* 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 DControllerResultUiThreadWrapper.java61 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 DLegacyConversions.java78 long accountId, long mailboxId) throws MessagingException {
131 localMessage.mAccountKey = accountId;
290 long accountId) throws MessagingException, IOException {
296 File saveIn = AttachmentUtilities.getAttachmentDirectory(context, accountId);
300 File saveAs = AttachmentUtilities.getAttachmentFilename(context, accountId,
310 accountId, attachmentId).toString();
77 updateMessageFields(EmailContent.Message localMessage, Message message, long accountId, long mailboxId) argument
289 saveAttachmentBody(Context context, Part part, Attachment localAttachment, long accountId) argument
H A DMessageListContext.java56 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 DAttachmentInfo.java189 * @param accountId the account associated with the attachment (or 0 if we don't need to
193 public Intent getAttachmentIntent(Context context, long accountId) { argument
194 Uri contentUri = getUriForIntent(context, accountId);
202 protected Uri getUriForIntent(Context context, long accountId) { argument
203 Uri contentUri = AttachmentUtilities.getAttachmentUri(accountId, mId);
204 if (accountId > 0) {
/packages/apps/Exchange/exchange2/src/com/android/exchange/provider/
H A DMailboxUtilities.java158 private static void setAccountSyncAdapterFlag(Context context, long accountId, boolean start) { argument
159 Account account = Account.restoreAccountWithId(context, accountId);
172 * @param accountId the account that is starting to change its mailbox list
174 public static void startMailboxChanges(Context context, long accountId) { argument
175 setAccountSyncAdapterFlag(context, accountId, true);
181 * @param accountId the account that is finished with changes to its mailbox list
183 public static void endMailboxChanges(Context context, long accountId) { argument
184 setAccountSyncAdapterFlag(context, accountId, false);
191 * @param accountId the account whose mailboxes are to be checked
193 public static void checkMailboxConsistency(Context context, long accountId) { argument
[all...]
/packages/apps/Exchange/exchange2/tests/src/com/android/exchange/provider/
H A DEmailContentSetupUtils.java54 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 DEmailContentSetupUtils.java54 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/service/
H A DAccountServiceProxy.java48 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);
H A DPolicyServiceProxy.java70 public void setAccountPolicy(final long accountId, final Policy policy, argument
74 mService.setAccountPolicy(accountId, policy, securityKey);
123 public static void setAccountPolicy(Context context, long accountId, Policy policy, argument
126 new PolicyServiceProxy(context).setAccountPolicy(accountId, policy, securityKey);
/packages/apps/Email/src/com/android/email/activity/
H A DActivityHelper.java137 public static void showSecurityHoldDialog(Activity callerActivity, long accountId) { argument
139 AccountSecurity.actionUpdateSecurityIntent(callerActivity, accountId, true));
H A DRecentMailboxManager.java96 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 DMailboxMoveToAdapter.java117 static Loader<Cursor> createLoader(Context context, long accountId, long mailboxId) { argument
119 Log.d(Logging.LOG_TAG, "MailboxDialogAdapter#createLoader accountId=" + accountId
122 return new MailboxMoveToLoader(context, accountId, mailboxId);
140 public MailboxMoveToLoader(Context context, long accountId, long mailboxId) { argument
143 new String[] { Long.toString(accountId), Long.toString(mailboxId) }, null);
144 mAccountId = accountId;
/packages/apps/Email/tests/src/com/android/email/activity/
H A DMessagesAdapterTests.java53 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...]
H A DUIControllerTwoPaneRefreshTaskTest.java167 public boolean isMailboxListRefreshing(long accountId) { argument
168 Assert.assertEquals(mExpectedAccountId, accountId);
173 public long getLastMailboxListRefreshTime(long accountId) { argument
174 Assert.assertEquals(mExpectedAccountId, accountId);
/packages/apps/Exchange/exchange2/src/com/android/exchange/adapter/
H A DSearch.java57 public static int searchMessages(Context context, long accountId, SearchParams searchParams, argument
68 Account account = Account.restoreAccountWithId(context, accountId);
90 Mailbox inbox = Mailbox.restoreMailboxOfType(context, accountId, Mailbox.TYPE_INBOX);
/packages/apps/Email/emailcommon/src/com/android/emailcommon/provider/
H A DQuickResponse.java128 * @param accountId
129 * @return array of QuickResponses for the account with id accountId
132 long accountId) {
133 Uri uri = ContentUris.withAppendedId(ACCOUNT_ID_URI, accountId);
131 restoreQuickResponsesWithAccountId(Context context, long accountId) argument
/packages/apps/Email/emailcommon/src/com/android/emailcommon/utility/
H A DIntentUtilities.java53 public static void setAccountId(Uri.Builder b, long accountId) { argument
54 if (accountId != -1) {
55 b.appendQueryParameter(ACCOUNT_ID_PARAM, Long.toString(accountId));
H A DAttachmentUtilities.java137 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...]
/packages/apps/Email/src/com/android/email/activity/setup/
H A DEditQuickResponseDialog.java54 * @param accountId - The accountId for the account which holds this QuickResponse
57 QuickResponse quickResponse, long accountId) {
61 args.putLong("accountId", accountId);
139 final long accountId = getArguments().getLong("accountId");
143 mQuickResponse = new QuickResponse(accountId, text);
56 newInstance( QuickResponse quickResponse, long accountId) argument
/packages/apps/Email/src/com/android/email/mail/
H A DStore.java183 protected static void updateMailbox(Mailbox mailbox, long accountId, String mailboxPath, argument
185 mailbox.mAccountKey = accountId;
/packages/apps/Email/src/com/android/email/widget/
H A DEmailWidgetLoader.java168 * @param accountId The ID of the account. May be {@link Account#ACCOUNT_ID_COMBINED_VIEW}.
173 void load(long accountId, long mailboxId) { argument
175 mAccountId = accountId;
H A DWidgetManager.java119 static void saveWidgetPrefs(Context context, int appWidgetId, long accountId, long mailboxId) { argument
122 .putLong(ACCOUNT_ID_PREFIX + appWidgetId, accountId)
145 long accountId = prefs.getLong(ACCOUNT_ID_PREFIX + appWidgetId, Account.NO_ACCOUNT);
146 return accountId;
/packages/providers/ContactsProvider/src/com/android/providers/contacts/
H A DTransactionContext.java50 public void rawContactInserted(long rawContactId, long accountId) { argument
52 mInsertedRawContactsAccounts.put(rawContactId, accountId);

Completed in 272 milliseconds

123