/packages/apps/Email/src/com/android/email/ |
MessagingListener.java | 29 public void listFoldersStarted(long accountId) { 32 public void listFoldersFailed(long accountId, String message) { 35 public void listFoldersFinished(long accountId) { 38 public void synchronizeMailboxStarted(long accountId, long mailboxId) 42 public void synchronizeMailboxFinished(long accountId, 46 public void synchronizeMailboxFailed(long accountId, long mailboxId, 59 public void checkMailStarted(Context context, long accountId, long tag) { 62 public void checkMailFinished(Context context, long accountId, long mailboxId, long tag) { 65 public void sendPendingMessagesStarted(long accountId, long messageId) { 68 public void sendPendingMessagesCompleted(long accountId) { [all...] |
GroupMessagingListener.java | 52 synchronized public void listFoldersStarted(long accountId) { 54 l.listFoldersStarted(accountId); 59 synchronized public void listFoldersFailed(long accountId, String message) { 61 l.listFoldersFailed(accountId, message); 66 synchronized public void listFoldersFinished(long accountId) { 68 l.listFoldersFinished(accountId); 73 synchronized public void synchronizeMailboxStarted(long accountId, long mailboxId) { 75 l.synchronizeMailboxStarted(accountId, mailboxId); 80 synchronized public void synchronizeMailboxFinished(long accountId, long mailboxId, 83 l.synchronizeMailboxFinished(accountId, mailboxId [all...] |
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...] |
ExchangeUtils.java | 89 public boolean createFolder(long accountId, String name) throws RemoteException { 93 public boolean deleteFolder(long accountId, String name) throws RemoteException { 97 public void hostChanged(long accountId) throws RemoteException { 107 public boolean renameFolder(long accountId, String oldName, String newName) 127 public void updateFolderList(long accountId) throws RemoteException {
|
Email.java | 177 /* package for testing */ static int getColorIndexFromAccountId(long accountId) { 180 return Math.abs((int) (accountId - 1) % ACCOUNT_COLOR_CHIP_RES_IDS.length); 183 public static int getAccountColorResourceId(long accountId) { 184 return ACCOUNT_COLOR_CHIP_RES_IDS[getColorIndexFromAccountId(accountId)]; 187 public static int getAccountColor(long accountId) { 188 return ACCOUNT_COLOR_CHIP_RGBS[getColorIndexFromAccountId(accountId)];
|
MessagingController.java | 244 public void listFolders(final long accountId, MessagingListener listener) { 246 EmailContent.Account.restoreAccountWithId(mContext, accountId); 250 mListeners.listFoldersStarted(accountId); 304 mContext, accountId, localInfo.mId); 336 mListeners.listFoldersFinished(accountId); 338 mListeners.listFoldersFailed(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/src/com/android/email/service/ |
IEmailService.aidl | 32 void updateFolderList(long accountId); 34 boolean createFolder(long accountId, String name); 35 boolean deleteFolder(long accountId, String name); 36 boolean renameFolder(long accountId, String oldName, String newName); 42 void hostChanged(long accountId);
|
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...] |
IEmailServiceCallback.aidl | 38 * accountId = the account being synced 42 void syncMailboxListStatus(long accountId, int statusCode, int progress);
|
EmailServiceProxy.java | 238 public void updateFolderList(final long accountId) throws RemoteException { 243 mService.updateFolderList(accountId); 273 public void hostChanged(final long accountId) throws RemoteException { 277 mService.hostChanged(accountId); 300 public boolean createFolder(long accountId, String name) throws RemoteException { 304 public boolean deleteFolder(long accountId, String name) throws RemoteException { 308 public boolean renameFolder(long accountId, String oldName, String newName)
|
/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...] |
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/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/activity/ |
Welcome.java | 94 long accountId = c.getLong(EmailContent.Account.CONTENT_ID_COLUMN); 95 MessageList.actionHandleAccount(this, accountId, Mailbox.TYPE_INBOX);
|
AccountFolderList.java | 377 public DeleteAccountTask(long accountId, String accountUri) { 378 mAccountId = accountId; 420 private void onEditAccount(long accountId) { 421 AccountSettings.actionSettings(this, accountId); 426 * @param accountId A specific id to refresh folders only, or -1 to refresh everything 428 private void onRefresh(long accountId) { 429 if (accountId == -1) { 437 accountId, mControllerCallback); 441 private void onCompose(long accountId) { 442 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/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...] |
/packages/apps/Email/src/com/android/email/mail/internet/ |
EmailHtmlUtil.java | 50 ContentResolver resolver, long accountId, String text, Part part, int depth) 63 AttachmentProvider.getAttachmentUri(accountId, attachment.getAttachmentId()); 75 text = resolveInlineImage(resolver, accountId, text, mp.getBodyPart(i), depth + 1);
|
/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/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/tests/src/com/android/email/provider/ |
ProviderTestUtils.java | 71 public static HostAuth setupHostAuth(String name, long accountId, boolean saveIt, 73 return setupHostAuth("protocol", name, accountId, saveIt, context); 79 public static HostAuth setupHostAuth(String protocol, String name, long accountId, 90 hostAuth.mAccountKey = accountId; 101 public static Mailbox setupMailbox(String name, long accountId, boolean saveIt, 103 return setupMailbox(name, accountId, saveIt, context, Mailbox.TYPE_MAIL); 106 public static Mailbox setupMailbox(String name, long accountId, boolean saveIt, 113 box.mAccountKey = accountId; 138 public static Message setupMessage(String name, long accountId, long mailboxId, 157 message.mAccountKey = 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...] |
/packages/apps/Email/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 | 122 long accountId = accountCursor.getLong(0); 125 ACCOUNT_AND_TYPE_CONTACTS, new String[] {Long.toString(accountId)}, null);
|