HomeSort by relevance Sort by last modified time
    Searched defs:accountId (Results 1 - 25 of 53) sorted by null

1 2 3

  /packages/apps/Email/tests/src/com/android/email/
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);
ControllerProviderOpsTests.java 110 * Does not test duplication, bad accountID, or any other bad input.
147 * - when accountId or mailboxType are -1, returns NO_MAILBOX
151 long accountId = account.mId;
152 Mailbox box = ProviderTestUtils.setupMailbox("box", accountId, false, mProviderContext);
158 long testBoxId = mTestController.findOrCreateMailboxOfType(accountId, boxType);
163 long boxId2 = mTestController.findOrCreateMailboxOfType(accountId, Mailbox.TYPE_DRAFTS);
168 long boxId3 = mTestController.findOrCreateMailboxOfType(accountId, Mailbox.TYPE_DRAFTS);
174 assertEquals(Mailbox.NO_MAILBOX, mTestController.findOrCreateMailboxOfType(accountId, -1));
LegacyConversionsTests.java 196 final long accountId = 1;
201 "local-message", accountId, mailboxId, false, true, mProviderContext);
207 "local-message", accountId, mailboxId, false, true, mProviderContext);
253 final long accountId = 1;
288 "local-message", accountId, mailboxId, false, true, mProviderContext);
303 final long accountId = 1;
306 "local-message", accountId, mailboxId, false, true, mProviderContext);
  /packages/apps/Email/src/com/android/email/activity/
NfcHandler.java 62 final long accountId = mUiController.getActualAccountId();
63 final Account account = Account.restoreAccountWithId(mActivity, accountId);
MoveMessageToDialog.java 208 // accountId shouldn't be null, but I'm paranoia.
277 long accountId = Account.NO_ACCOUNT;
288 if (accountId == Account.NO_ACCOUNT) {
290 accountId = message.mAccountKey;
291 if (!Account.restoreAccountWithId(c, accountId).supportsMoveMessages(c)) {
294 accountId = Account.NO_ACCOUNT;
301 accountId = Account.NO_ACCOUNT;
307 if (message.mAccountKey != accountId || message.mMailboxKey != mailboxId) {
309 accountId = Account.NO_ACCOUNT;
315 return new IdContainer(accountId, mailboxId)
    [all...]
Welcome.java 113 * Create an Intent to open email activity. If <code>accountId</code> is not -1, the
116 public static Intent createOpenAccountInboxIntent(Context context, long accountId) {
119 IntentUtilities.setAccountId(b, accountId);
126 public static Intent createOpenMessageIntent(Context context, long accountId,
130 IntentUtilities.setAccountId(b, accountId);
139 public static void actionOpenAccountInbox(Activity fromActivity, long accountId) {
140 fromActivity.startActivity(createOpenAccountInboxIntent(fromActivity, accountId));
303 final long accountId;
307 // If the UUID is invalid, accountId will be NO_ACCOUNT.
308 accountId = Account.getAccountIdFromUuid(context, inputUuid)
    [all...]
AccountSelectorAdapter.java 65 private static final String ACCOUNT_ID = "accountId";
104 * @param accountId the ID of the currently viewed account
106 public static Loader<Cursor> createLoader(Context context, long accountId, long mailboxId) {
107 return new AccountsLoader(context, accountId, mailboxId, UiUtilities.useTwoPane(context));
314 AccountsLoader(Context context, long accountId, long mailboxId, boolean useTwoPane) {
319 mAccountId = accountId;
347 final long accountId = accountCursor.getLong(0);
349 mContext, accountId, Mailbox.TYPE_INBOX);
352 addRow(matrixCursor, ROW_TYPE_ACCOUNT, accountId, name, emailAddress, unread,
353 UNKNOWN_POSITION, accountId);
    [all...]
MailboxFragmentAdapter.java 355 final long accountId = getAccountId(cursor);
364 listItem.mAccountId = accountId;
450 static Loader<Cursor> createMailboxesLoader(Context context, long accountId,
453 Log.d(Logging.LOG_TAG, "MailboxFragmentAdapter#CursorWithExtras accountId=" + accountId
456 if (accountId == Account.ACCOUNT_ID_COMBINED_VIEW) {
459 return new MailboxFragmentLoader(context, accountId, parentMailboxId);
477 long accountId) {
491 row.add(accountId);
517 MailboxFragmentLoader(Context context, long accountId, long parentKey)
    [all...]
MessagesAdapter.java 202 final long accountId = cursor.getLong(COLUMN_ACCOUNT_KEY);
203 itemView.mAccountId = accountId;
219 mShowColorChips ? mResourceHelper.getAccountColorPaint(accountId) : null;
  /packages/apps/Email/src/com/android/email/service/
PopImapSyncAdapterService.java 96 long accountId = c.getLong(EmailContent.ID_PROJECTION_COLUMN);
97 long mailboxId = Mailbox.findMailboxOfType(context, accountId,
101 Controller.getInstance(context).updateMailbox(accountId, mailboxId, false);
EmailBroadcastProcessorService.java 198 long accountId = c.getLong(Account.CONTENT_ID_COLUMN);
199 Uri uri = ContentUris.withAppendedId(Account.CONTENT_URI, accountId);
  /packages/apps/Email/tests/src/com/android/email/activity/
MessagesAdapterTests.java 53 private long createMailbox(long accountId, int type) {
54 Mailbox box = ProviderTestUtils.setupMailbox("name", accountId, false, mProviderContext);
60 private MessagesAdapter.MessagesCursor getLoaderResult(long accountId, long mailboxId) {
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, Mailbox.TYPE_MAIL)
    [all...]
MailboxFinderTest.java 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)
    [all...]
  /packages/apps/Email/src/com/android/email/
MessageListContext.java 56 private MessageListContext(long accountId, long searchMailboxId, SearchParams searchParams) {
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, Mailbox.TYPE_INBOX)
    [all...]
  /packages/apps/Exchange/exchange2/src/com/android/exchange/
ContactsSyncAdapterService.java 135 long accountId = accountCursor.getLong(0);
138 ACCOUNT_AND_TYPE_CONTACTS, new String[] {Long.toString(accountId)}, null);
EmailSyncAdapterService.java 102 long accountId = accountCursor.getLong(0);
105 ACCOUNT_AND_TYPE_INBOX, new String[] {Long.toString(accountId)}, null);
CalendarSyncAdapterService.java 124 long accountId = accountCursor.getLong(0);
127 ACCOUNT_AND_TYPE_CALENDAR, new String[] {Long.toString(accountId)}, null);
  /packages/apps/Email/src/com/android/email/activity/setup/
EditQuickResponseDialog.java 54 * @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);
AccountSecurity.java 73 * @param accountId The account of interest
79 public static Intent actionUpdateSecurityIntent(Context context, long accountId,
82 intent.putExtra(EXTRA_ACCOUNT_ID, accountId);
92 public static Intent actionDevicePasswordExpirationIntent(Context context, long accountId,
95 intent.putExtra(EXTRA_ACCOUNT_ID, accountId);
106 final long accountId = i.getLongExtra(EXTRA_ACCOUNT_ID, -1);
112 if (accountId == -1) {
117 mAccount = Account.restoreAccountWithId(AccountSecurity.this, accountId);
  /packages/apps/Email/src/com/android/email/provider/
AttachmentProvider.java 150 String accountId = segments.get(0);
153 AttachmentUtilities.getAttachmentDirectory(context, Long.parseLong(accountId));
165 String accountId = segments.get(0);
171 String filename = "thmb_" + accountId + "_" + id;
176 getAttachmentUri(Long.parseLong(accountId), Long.parseLong(id));
217 new File(getContext().getDatabasePath(accountId + ".db_att"), id),
256 String accountId = segments.get(0);
  /packages/apps/Email/src/com/android/email/widget/
WidgetManager.java 119 static void saveWidgetPrefs(Context context, int appWidgetId, long accountId, long mailboxId) {
122 .putLong(ACCOUNT_ID_PREFIX + appWidgetId, accountId)
145 long accountId = prefs.getLong(ACCOUNT_ID_PREFIX + appWidgetId, Account.NO_ACCOUNT);
146 return accountId;
  /packages/apps/Email/emailcommon/src/com/android/emailcommon/utility/
Utility.java 310 long accountId = c2.getLong(Account.ID_PROJECTION_COLUMN);
311 if (accountId != allowAccountId) {
312 Account account = Account.restoreAccountWithId(context, accountId);
    [all...]
AttachmentUtilities.java 137 public static Uri getAttachmentUri(long accountId, long id) {
139 .appendPath(Long.toString(accountId))
145 public static Uri getAttachmentThumbnailUri(long accountId, long id,
148 .appendPath(Long.toString(accountId))
163 public static File getAttachmentFilename(Context context, long accountId, long attachmentId) {
164 return new File(getAttachmentDirectory(context, accountId), Long.toString(attachmentId));
174 public static File getAttachmentDirectory(Context context, long accountId) {
175 return context.getDatabasePath(accountId + ".db_att");
305 * @param accountId the account for the message
308 public static void deleteAllAttachmentFiles(Context context, long accountId, long messageId)
    [all...]
  /frameworks/av/drm/common/
IDrmManagerService.cpp 358 const String8 accountId = drmRights.getAccountId();
359 data.writeString8((accountId == String8("")) ? String8("NULL") : accountId);
    [all...]
  /packages/apps/Exchange/exchange2/src/com/android/exchange/provider/
ExchangeDirectoryProvider.java 186 Long accountId = mAccountIdMap.get(accountName);
187 if (accountId == null) {
188 accountId = Utility.getFirstRowLong(context, Account.CONTENT_URI,
191 if (accountId != -1) {
192 mAccountIdMap.put(accountName, accountId);
195 return accountId;
290 long accountId = getAccountIdByName(getContext(), accountName);
291 if (accountId == -1) {
297 GalResult galResult = EasSyncService.searchGal(getContext(), accountId,

Completed in 479 milliseconds

1 2 3