/packages/apps/Email/src/com/android/email/activity/ |
Welcome.java | 94 long accountId = c.getLong(EmailContent.Account.CONTENT_ID_COLUMN); 95 MessageList.actionHandleAccount(this, accountId, Mailbox.TYPE_INBOX);
|
MessageCompose.java | 194 * @param accountId 196 public static void actionCompose(Context context, long accountId) { 199 i.putExtra(EXTRA_ACCOUNT_ID, accountId); 213 * @param accountId 216 public static boolean actionCompose(Context context, String uriString, long accountId) { 221 i.putExtra(EXTRA_ACCOUNT_ID, accountId); 272 long accountId = intent.getLongExtra(EXTRA_ACCOUNT_ID, -1); 273 if (accountId == -1) { 274 accountId = Account.getDefaultAccountId(this); 276 if (accountId == -1) [all...] |
MessageList.java | 184 * @param accountId The account to open 187 public static void actionHandleAccount(Context context, long accountId, int mailboxType) { 188 context.startActivity(createIntent(context, accountId, -1, mailboxType)); 205 * @param accountId The account to open, or -1 209 public static Intent createIntent(Context context, long accountId, long mailboxId, 213 if (accountId != -1) intent.putExtra(EXTRA_ACCOUNT_ID, accountId); 287 long accountId = (uri == null) ? -1 290 if (accountId != -1) { 292 mFindMailboxTask = new FindMailboxTask(accountId, mailboxType, false) [all...] |
/packages/apps/Email/src/com/android/email/activity/setup/ |
AccountSecurity.java | 51 * @param accountId The account of interest 54 public static Intent actionUpdateSecurityIntent(Context context, long accountId) { 56 intent.putExtra(EXTRA_ACCOUNT_ID, accountId); 65 long accountId = i.getLongExtra(EXTRA_ACCOUNT_ID, -1); 67 security.clearNotification(accountId); 68 if (accountId != -1) { 70 Account account = Account.restoreAccountWithId(this, accountId); 112 final long accountId = getIntent().getLongExtra(EXTRA_ACCOUNT_ID, -1); 113 if (accountId != -1) { 118 .policiesRequired(accountId); [all...] |
AccountSetupBasics.java | 133 public static void actionAccountCreateFinished(Activity fromActivity, long accountId) { 137 i.putExtra(AccountSetupBasics.ACTION_START_AT_MESSAGE_LIST, accountId); 152 long accountId = intent.getLongExtra(ACTION_START_AT_MESSAGE_LIST, -1); 153 if (accountId >= 0) { 155 MessageList.actionHandleAccount(this, accountId, Mailbox.TYPE_INBOX); 454 // From now on we'll only pass the accountId around.
|
AccountSetupNames.java | 45 private static final String EXTRA_ACCOUNT_ID = "accountId"; 62 public static void actionSetNames(Activity fromActivity, long accountId, boolean easFlowMode) { 64 i.putExtra(EXTRA_ACCOUNT_ID, accountId); 93 long accountId = getIntent().getLongExtra(EXTRA_ACCOUNT_ID, -1); 94 mAccount = EmailContent.Account.restoreAccountWithId(this, accountId); 212 public CheckAccountStateTask(long accountId) { 213 mAccountId = accountId;
|
/packages/apps/Email/src/com/android/exchange/ |
ContactsSyncAdapterService.java | 122 long accountId = accountCursor.getLong(0); 125 ACCOUNT_AND_TYPE_CONTACTS, 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);
|
EasSyncService.java | [all...] |
/packages/apps/Email/src/com/android/exchange/provider/ |
ExchangeProvider.java | 69 long accountId = -1; 76 accountId = Long.parseLong(accountIdString); 81 GalResult galResult = EasSyncService.searchGal(getContext(), accountId, filter);
|
/packages/apps/Email/tests/src/com/android/email/ |
ControllerProviderOpsTests.java | 102 * Does not test duplication, bad accountID, or any other bad input. 106 long accountId = account.mId; 108 long oldBoxId = Mailbox.findMailboxOfType(mProviderContext, accountId, Mailbox.TYPE_DRAFTS); 112 ct.createMailbox(accountId, Mailbox.TYPE_DRAFTS); 113 long boxId = Mailbox.findMailboxOfType(mProviderContext, accountId, Mailbox.TYPE_DRAFTS); 125 * - when accountId or mailboxType are -1, returns NO_MAILBOX 129 long accountId = account.mId; 130 Mailbox box = ProviderTestUtils.setupMailbox("box", accountId, false, mProviderContext); 137 long testBoxId = ct.findOrCreateMailboxOfType(accountId, boxType); 142 long boxId2 = ct.findOrCreateMailboxOfType(accountId, Mailbox.TYPE_DRAFTS) [all...] |
LegacyConversionsTests.java | 210 final long accountId = 1; 215 "local-message", accountId, mailboxId, false, true, mProviderContext); 221 "local-message", accountId, mailboxId, false, true, mProviderContext); 264 final long accountId = 1; 267 "local-message", accountId, mailboxId, false, true, mProviderContext); 300 final long accountId = 1; 303 "local-upgrade", accountId, mailboxId, false, true, mProviderContext); [all...] |
/packages/apps/Email/tests/src/com/android/email/mail/internet/ |
EmailHtmlUtilTest.java | 61 long accountId = Account.getDefaultAccountId(context); 62 if (accountId == -1) { 67 accountId = account.mId; 68 mCreatedAccountId = accountId; 70 Account.restoreAccountWithId(context, accountId);
|
/packages/apps/Email/src/com/android/email/provider/ |
AttachmentProvider.java | 90 public static Uri getAttachmentUri(long accountId, long id) { 92 .appendPath(Long.toString(accountId)) 98 public static Uri getAttachmentThumbnailUri(long accountId, long id, 101 .appendPath(Long.toString(accountId)) 116 public static File getAttachmentFilename(Context context, long accountId, long attachmentId) { 117 return new File(getAttachmentDirectory(context, accountId), Long.toString(attachmentId)); 127 public static File getAttachmentDirectory(Context context, long accountId) { 128 return context.getDatabasePath(accountId + ".db_att"); 241 String accountId = segments.get(0); 247 String filename = "thmb_" + accountId + "_" + id [all...] |
/packages/apps/Email/src/com/android/email/ |
Utility.java | 423 long accountId = c2.getLong(Account.ID_PROJECTION_COLUMN); 424 if (accountId != allowAccountId) { 425 Account account = Account.restoreAccountWithId(context, accountId);
|
Controller.java | 152 public void updateMailboxList(final long accountId, final Result callback) { 154 IEmailService service = getServiceForAccount(accountId); 158 service.updateFolderList(accountId); 169 mLegacyController.listFolders(accountId, mLegacyListener); 181 public void serviceCheckMail(final long accountId, final long mailboxId, final long tag, 183 IEmailService service = getServiceForAccount(accountId); 190 callback.serviceCheckMailCallback(null, accountId, mailboxId, 100, tag); 201 mLegacyController.checkMail(accountId, tag, mLegacyListener); 214 public void updateMailbox(final long accountId, final long mailboxId, final Result callback) { 216 IEmailService service = getServiceForAccount(accountId); [all...] |
SecurityPolicy.java | 184 * @param accountId the account that has been updated, -1 if unknown/deleted 186 public synchronized void updatePolicies(long accountId) { 309 long accountId = c.getLong(ACCOUNT_FLAGS_COLUMN_ID); 310 Uri uri = ContentUris.withAppendedId(Account.CONTENT_URI, accountId); 325 * @param accountId the account for which sync cannot proceed 327 public void policiesRequired(long accountId) { 328 Account account = EmailContent.Account.restoreAccountWithId(mContext, accountId); 343 Intent intent = AccountSecurity.actionUpdateSecurityIntent(mContext, accountId); 373 public void clearNotification(long accountId) {
|
/packages/apps/Email/tests/src/com/android/email/activity/ |
MessageComposeTests.java | 125 long accountId = Account.getDefaultAccountId(context); 126 if (accountId == -1) { 131 accountId = account.mId; 132 mCreatedAccountId = accountId; 134 Account account = Account.restoreAccountWithId(context, accountId); [all...] |
/packages/apps/Email/src/com/android/email/service/ |
MailService.java | 117 * @param accountId account to clear, or -1 for all accounts
119 public static void resetNewMessageCount(Context context, long accountId) {
122 if (accountId == -1 || accountId == report.accountId) {
129 if (accountId == -1) {
132 uri = ContentUris.withAppendedId(Account.CONTENT_URI, accountId);
143 * @param accountId the id of the account that is reporting new messages
146 public static void actionNotifyNewMessages(Context context, long accountId) {
149 i.putExtra(EXTRA_CHECK_ACCOUNT, accountId);
[all...] |
/frameworks/base/core/java/android/accounts/ |
AccountManagerService.java | 241 final long accountId = cursor.getLong(0); 248 db.delete(TABLE_ACCOUNTS, ACCOUNTS_ID + "=" + accountId, null); 268 final long accountId = cursor.getLong(0); 273 db.delete(TABLE_ACCOUNTS, ACCOUNTS_ID + "=" + accountId, null); 426 long accountId = db.insert(TABLE_ACCOUNTS, ACCOUNTS_NAME, values); 427 if (accountId < 0) { 433 if (insertExtra(db, accountId, key, value) < 0) { 448 private long insertExtra(SQLiteDatabase db, long accountId, String key, String value) { 451 values.put(EXTRAS_ACCOUNTS_ID, accountId); 630 long accountId = getAccountId(db, account) [all...] |