/packages/apps/Email/src/com/android/email/widget/ |
EmailWidgetLoader.java | 168 * @param accountId The ID of the account. May be {@link Account#ACCOUNT_ID_COMBINED_VIEW}. 173 void load(long accountId, long mailboxId) { 175 mAccountId = accountId;
|
EmailWidget.java | 161 long accountId = WidgetManager.loadAccountIdPref(mContext, mWidgetId); 164 if (accountId == Account.NO_ACCOUNT) { 165 accountId = Account.ACCOUNT_ID_COMBINED_VIEW; 168 mAccountId = accountId; 430 long accountId = mCursor.getLong(EmailWidgetLoader.WIDGET_COLUMN_ACCOUNT_KEY); 431 int colorId = mResourceHelper.getAccountColorId(accountId);
|
/packages/apps/Email/tests/src/com/android/email/service/ |
EmailBroadcastProcessorServiceTests.java | 70 private int getAccountFlags(long accountId) throws NoSuchElementException { 71 Uri uri = ContentUris.withAppendedId(Account.CONTENT_URI, accountId);
|
/packages/apps/Exchange/exchange2/src/com/android/exchange/ |
CalendarSyncAdapterService.java | 124 long accountId = accountCursor.getLong(0); 127 ACCOUNT_AND_TYPE_CALENDAR, new String[] {Long.toString(accountId)}, null);
|
ContactsSyncAdapterService.java | 135 long accountId = accountCursor.getLong(0); 138 ACCOUNT_AND_TYPE_CONTACTS, new String[] {Long.toString(accountId)}, null);
|
EasOutboxService.java | 532 * @param accountId the accountId for the sending account 535 public static void sendMessage(Context context, long accountId, Message msg) { 536 Mailbox mailbox = Mailbox.restoreMailboxOfType(context, accountId, Mailbox.TYPE_OUTBOX); 539 msg.mAccountKey = accountId;
|
/packages/providers/ContactsProvider/src/com/android/providers/contacts/ |
TransactionContext.java | 55 public void rawContactInserted(long rawContactId, long accountId) { 57 mInsertedRawContactsAccounts.put(rawContactId, accountId);
|
/packages/apps/Email/src/com/android/email/activity/setup/ |
AccountServerBaseFragment.java | 246 protected void startDuplicateTaskCheck(long accountId, String checkHost, String checkLogin, 248 new DuplicateCheckTask(accountId, checkHost, checkLogin, checkSettingsMode) 328 public DuplicateCheckTask(long accountId, String checkHost, String checkLogin, 330 mAccountId = accountId;
|
AccountSettingsFragment.java | 67 private static final String BUNDLE_KEY_ACCOUNT_ID = "AccountSettingsFragment.AccountId"; 146 public static Bundle buildArguments(long accountId, String email) { 148 b.putLong(BUNDLE_KEY_ACCOUNT_ID, accountId); 183 long accountId = b.getLong(BUNDLE_KEY_ACCOUNT_ID, -1); 185 if (accountId >= 0 && !mLoaded) { 186 startLoadingAccount(accountId); 321 public void startLoadingAccount(long accountId) { 324 AsyncTask.THREAD_POOL_EXECUTOR, accountId); 333 long accountId = params[0]; 334 Account account = Account.restoreAccountWithId(mContext, accountId); [all...] |
/packages/apps/Email/src/com/android/email/provider/ |
EmailProvider.java | 531 private HashMap<Integer, Long> getOrCreateAccountMailboxTypeMap(long accountId) { 533 HashMap<Integer, Long> accountMailboxTypeMap = mMailboxTypeMap.get(accountId); 536 mMailboxTypeMap.put(accountId, accountMailboxTypeMap); 543 long accountId = c.getLong(Mailbox.CONTENT_ACCOUNT_KEY_COLUMN); 547 getOrCreateAccountMailboxTypeMap(accountId); 552 private long getMailboxIdFromMailboxTypeMap(long accountId, int type) { 554 HashMap<Integer, Long> accountMap = mMailboxTypeMap.get(accountId); [all...] |
/packages/apps/Email/src/com/android/email/ |
LegacyConversions.java | 78 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();
|
Preferences.java | 284 public void setLastUsedAccountId(long accountId) { 287 .putLong(LAST_ACCOUNT_USED, accountId)
|
/packages/apps/Email/tests/src/com/android/email/ |
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/Exchange/exchange2/src/com/android/exchange/adapter/ |
Search.java | 57 public static int searchMessages(Context context, long accountId, SearchParams searchParams, 68 Account account = Account.restoreAccountWithId(context, accountId); 90 Mailbox inbox = Mailbox.restoreMailboxOfType(context, accountId, Mailbox.TYPE_INBOX);
|
/packages/apps/Email/src/com/android/email/service/ |
EmailBroadcastProcessorService.java | 199 long accountId = c.getLong(Account.CONTENT_ID_COLUMN); 200 Uri uri = ContentUris.withAppendedId(Account.CONTENT_URI, accountId);
|
/packages/apps/Email/src/com/android/email/activity/ |
MessageCompose.java | 233 * Create an {@link Intent} that can start the message compose activity. If accountId -1, 236 public static Intent getMessageComposeIntent(Context context, long accountId) { 238 i.putExtra(EXTRA_ACCOUNT_ID, accountId); 248 private static Intent getMainAppIntent(Context context, long accountId) { 249 Intent result = getMessageComposeIntent(context, accountId); 259 * @param accountId 261 public static void actionCompose(Context context, long accountId) { 263 Intent i = getMainAppIntent(context, accountId); 278 * @param accountId 281 public static boolean actionCompose(Context context, String uriString, long accountId) { [all...] |
MessagesAdapter.java | 202 final long accountId = cursor.getLong(COLUMN_ACCOUNT_KEY); 203 itemView.mAccountId = accountId; 219 mShowColorChips ? mResourceHelper.getAccountColorPaint(accountId) : null;
|
MessageListFragment.java | 316 long accountId = listContext.mAccountId; 317 if (accountId == Account.ACCOUNT_ID_COMBINED_VIEW) { 323 long inboxId = Mailbox.findMailboxOfType(mActivity, accountId, Mailbox.TYPE_INBOX); [all...] |
ShortcutPickerFragment.java | 237 String[] selectionArgs, String sortOrder, long accountId, boolean allowUnread) { 239 mAccountId = 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...] |
/frameworks/base/services/java/com/android/server/accounts/ |
AccountManagerService.java | 366 final long accountId = cursor.getLong(0); 373 db.delete(TABLE_ACCOUNTS, ACCOUNTS_ID + "=" + accountId, null); 686 long accountId = db.insert(TABLE_ACCOUNTS, ACCOUNTS_NAME, values); 687 if (accountId < 0) { 695 if (insertExtraLocked(db, accountId, key, value) < 0) { 738 private long insertExtraLocked(SQLiteDatabase db, long accountId, String key, String value) { 741 values.put(EXTRAS_ACCOUNTS_ID, accountId); [all...] |
/packages/apps/Email/tests/src/com/android/email/activity/ |
MessageComposeTests.java | 140 long accountId = Account.getDefaultAccountId(mContext); 141 if (accountId == -1) { 147 accountId = account.mId; 148 mCreatedAccountId = accountId; 150 Account account = Account.restoreAccountWithId(mContext, accountId); [all...] |
/packages/apps/Email/src/com/android/email/mail/store/ |
ImapStore.java | 348 * @param accountId The ID of the account the mailbox is to be associated with 353 private ImapFolder addMailbox(Context context, long accountId, String mailboxPath, 356 Mailbox mailbox = Mailbox.getMailboxForPath(context, accountId, mailboxPath); 362 updateMailbox(mailbox, accountId, mailboxPath, delimiter, selectable,
|
/packages/apps/Email/emailcommon/src/com/android/emailcommon/provider/ |
EmailContent.java | [all...] |