History log of /packages/apps/Email/emailcommon/src/com/android/emailcommon/utility/Utility.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
0ff0e155c51250bedc35b5b585003c8cb87f2244 21-Oct-2011 Marc Blank <mblank@google.com> Fix findExistingAccount to treat underscore properly

Bug: 2318959
Change-Id: Ia39ed29084dc8111c61ff552fa65519789b7c23a
/packages/apps/Email/emailcommon/src/com/android/emailcommon/utility/Utility.java
190b2fb8a1be1d72475e2a60d0f00422712ee094 07-Jul-2011 Marc Blank <mblank@google.com> Add support for TrafficStats; use with IMAP/POP3

* All IMAP/POP3 functionality uses TrafficStats except for
attachment loading (subsequenc CL)

Bug: 4988322

Change-Id: I91d826e0f7151a2101b642c868ab8c37e9660332
/packages/apps/Email/emailcommon/src/com/android/emailcommon/utility/Utility.java
8de5bda81594182757c1aa94a65cfb8c7b360b34 30-Jun-2011 Makoto Onuki <omakoto@google.com> Close cursor properly.

Also, don't issue separate query()s for each recent mailbox.

Bug 4977956

Change-Id: I3ccd437a7efd5c3599c4a1952ba091a7b3b815bf
/packages/apps/Email/emailcommon/src/com/android/emailcommon/utility/Utility.java
4a893e60b468e0b67db522c047fa7fab057cfd6f 29-Jun-2011 Makoto Onuki <omakoto@google.com> Switch to EmailAsyncTask

Also remove the isCancelled test in onPostExecute, where it should
never return true.

Change-Id: Ica2b07db22d73769c2ead5f232f4890bd3bb87da
/packages/apps/Email/emailcommon/src/com/android/emailcommon/utility/Utility.java
d8a2e33998a2959d28441e609e915f7e5ad07b7f 25-Jun-2011 Makoto Onuki <omakoto@google.com> Add debug log to investigate bug 4905749

Change-Id: I1cfe12b0150490ec08caa02332bcca88521ff5fd
/packages/apps/Email/emailcommon/src/com/android/emailcommon/utility/Utility.java
ce4cce05b2ee5ea2d9629c189a79f7f30778f534 21-Jun-2011 Makoto Onuki <omakoto@google.com> Fix failing tests

Fixed activity tests and and activity.setup tests.

Bug 4762098
Bug 4766087
Bug 4590590

Change-Id: Ifbd49f38c59854c65b6c48a1b03ca8153bfa558b
/packages/apps/Email/emailcommon/src/com/android/emailcommon/utility/Utility.java
f5418f1f93b02e7fab9f15eb201800b65510998e 14-Jun-2011 Marc Blank <mblank@google.com> Move Account into its own top-level class

Change-Id: Ide7c991b7d4d418dbe17164421425bf898ba64ee
/packages/apps/Email/emailcommon/src/com/android/emailcommon/utility/Utility.java
313586c8eb4e23ceec068b82f3dc0be1c8a7045f 07-Jun-2011 Ben Komalo <benkomalo@google.com> Introduce client cert alias for HostAuth.

Some email servers require client certificates to be presented to
establish an SSL connection. While this certificate will be maintained
by the system key store, we need to store the "alias" of the certificate
stored in that system store.

Wiring up to use the actual alias will be done in future CL's. It is
currently unused.

Change-Id: I8d1290151342daea9ceb0df8a4088405b44faa81
/packages/apps/Email/emailcommon/src/com/android/emailcommon/utility/Utility.java
12b82d9374947c9268217f45befe8a74bd9b60d7 20-May-2011 Ben Komalo <benkomalo@google.com> Move HostAuth to top level class.

No other changes made.

Change-Id: I1c6497c98abc0f99443ea42d8aed6295b263c123
/packages/apps/Email/emailcommon/src/com/android/emailcommon/utility/Utility.java
4c4e4c3515c3e3300e03f90e02a0c520dc2dff32 13-May-2011 Makoto Onuki <omakoto@google.com> Clean up the method to build message list selection.

- Moved the method to EmailCommon.
- Use *_SELECTION for magic mailboxes
(meaning we now use subqueries for magic mailbox selections, rather than
building the mailbox ID list by ourselves)

Change-Id: I3ebf6af62fd912fea6faea0f75e05fc61c87af3b
/packages/apps/Email/emailcommon/src/com/android/emailcommon/utility/Utility.java
53ea83ebf91f820692e8fa8e781f5cc982dd94db 14-May-2011 Ben Komalo <benkomalo@google.com> Move Mailbox to top level class.

No other changes made.

Change-Id: I3d8f3c521dc0d902be313b25252b4b6a4a96e7ee
/packages/apps/Email/emailcommon/src/com/android/emailcommon/utility/Utility.java
5701e0a555a5c263862156c1291aa13b06850425 12-May-2011 Todd Kennedy <toddke@google.com> Suspend notifications for currently shown account

We will suspend notifications whenever we display the message list for an
account (including "combined inbox"). As soon as the message list is paused,
notifications will be resumed.

Change-Id: I481a0f59ce68f89c32210d862d0267f3f334063b
/packages/apps/Email/emailcommon/src/com/android/emailcommon/utility/Utility.java
83693a6acaffd219f65e04054bc04530e9cc132f 10-May-2011 Todd Kennedy <toddke@google.com> Use observers to manage new message notifications

We were sort of using observers to maintain the new message notifications.
However, other parts of the code would poke into the notification controller
to set things such as a list of newly added message IDs. Now, we rely
exclusively on db observers to manage notifications.

As a side effect of this, we now set the notification text correctly to be
the most recently _added_ message. This may be different than the most recently
sent message [since there may be a non-negligable delta between when the
message was sent and when it was received].

NOTE this still suffers from an outstanding bug where we continue to get
notifications when the Eamil UX is visible. That and monitoring changes to the
account table will be addressed in future CLs.

Change-Id: I4c68273716cc685574a1ca71e5d634f53fe0d882
/packages/apps/Email/emailcommon/src/com/android/emailcommon/utility/Utility.java
a17ee57c7ff7eb3391cc32f700aaa4fed8aa971f 09-May-2011 Todd Kennedy <toddke@google.com> Add unit test for Utility#updateLastSeenMessageKey

Change-Id: I1335ac53c5de418fd0ed6c2b38be60165db1cb8c
/packages/apps/Email/emailcommon/src/com/android/emailcommon/utility/Utility.java
a9ac20b96f8d2e2e97fb2878afb9df4795024450 06-May-2011 Todd Kennedy <toddke@google.com> Add lastSeenMessageKey column to the mailbox table

The last seen message key is the id of the last message that we've "seen" for
that mailbox

Change-Id: I197f8a191654225ada1ce553cc959db775809c88
/packages/apps/Email/emailcommon/src/com/android/emailcommon/utility/Utility.java
74143e89d538ce74e8c95e04cee56dca9412a7bd 05-May-2011 Marc Blank <mblank@google.com> Prevent NPE's in calls to database utility methods

* Before the Email/Exchange split, EmailProvider was guaranteed not to return a null
cursor; this is no longer true
* We now throw a new RuntimeException (ProviderUnavailableException) when calling
commonly-used utility methods (e.g. restoreXWithId) and the cursor as returned from
EmailProvider is null (which implies that the provider isn't available).

Change-Id: I152d13bff0129c23586cd570d23c87d69cfce372
/packages/apps/Email/emailcommon/src/com/android/emailcommon/utility/Utility.java
4e033e0ac79d85bc8df8e52bdfc8b1fc9ad29f3e 26-Apr-2011 Makoto Onuki <omakoto@google.com> Fix "move to" dialog.

- Now we always use a fragment as a callback, rather than assuming the parent
activity implements it.
- Use a generics trick to make sure the callback fragments really implements
Callback.
(Might be abuse of a language feature, but it's at least safer than runtime
check...)

Bug 4314669
Bug 4345496

Change-Id: If4048d456b298784097e202cffab170177ac7b2d
/packages/apps/Email/emailcommon/src/com/android/emailcommon/utility/Utility.java
f11295f3352f7c89fc92c73731e41b057e236969 21-Apr-2011 Makoto Onuki <omakoto@google.com> Simplify showToast()

Now it can be used without an activity.

Change-Id: I9c122c9a1e330a909c5ba27aaaca27f746300929
/packages/apps/Email/emailcommon/src/com/android/emailcommon/utility/Utility.java
8a05da7c8c5d5c499c1307cdfe8dee821960ef81 15-Apr-2011 Ben Komalo <benkomalo@google.com> Remove uneeded layer of parcelling.

ListStateSaver did nothing more than hold a Parcelable, and was a
Parcelable itself. The abstraction may have been useful at some point,
but that time seems to have passed.

Change-Id: I2f1f45828782ab44aa8935aa50b825e07845a2a5
/packages/apps/Email/emailcommon/src/com/android/emailcommon/utility/Utility.java
9f0283dbd7810953b0c795bcba7359fb7cd1f1ce 23-Mar-2011 Makoto Onuki <omakoto@google.com> Merge "Better fix for the PendingIntent issue."
284d8d7db5743d24b9aa246afe3d24139bdb0813 23-Mar-2011 Todd Kennedy <toddke@google.com> Add support for UIDPLUS capability

When copying messages between mailboxes using standard IMAP, we must perform
a QUERY or FETCH in order to determine the new message UID. However, if the
server supports the UIDPLUS capability, the server will return the new UID
as part of the response to the "UID COPY" command.

This is the first of a couple modifications. We still need to fallback to a
less efficient QUERY/FETCH if the server does not support UIDPLUS.

bug 4092301

Change-Id: I9279f7fd70daf85adba3b3e202c12d67ddf91f22
/packages/apps/Email/emailcommon/src/com/android/emailcommon/utility/Utility.java
308ce9284793b597797994dfb1fb25155cbe0b20 22-Mar-2011 Makoto Onuki <omakoto@google.com> Better fix for the PendingIntent issue.

Refactor the changes introduced in Ib02842bb.

- Now Welcome and AccountSettingsXL accept intents with URLs of the following
style, and get IDs from query params, rather than extras.

Welcome:
content://ui.email.android.com/view/mailbox?ACCOUNT_ID=1&MAILBOX_ID=2&MESSAGE_ID=3

AccountSettingsXL:
content://ui.email.android.com/settings?ACCOUNT_ID=1

- Now the "new message" and "login failed" notifications use these new style
intents, so the system wouldn't merge PendingIntents for different accounts.

Also:
- Moved all notification creation logic to NotificationController.
(Except the one in CalendarSyncEnabler; which is used only to support
upgrading from pre-froyo and I don't think it's worth refactoring.)

- Note the "password expired/expiring" and "security needed" notifications
aren't changed; they still use extras to store account IDs. This is okay
because these notifications are not per-account.

Bug 4065269

Change-Id: I70737438d2e7c45fd7488a5b0a7105c8568e02f7
/packages/apps/Email/emailcommon/src/com/android/emailcommon/utility/Utility.java
d72f7bdf114a21db6aac66a7e83d6b002c8e8ed5 21-Mar-2011 Makoto Onuki <omakoto@google.com> Improve EmailAsyncTask

Added 6 methods:
- execute{Parallel,Serial}
- cancelPreviousAndExecute{Parallel,Serial}
- runAsyncParallel{Parallel,Serial} (replacement for Utility.runAsync)

Bug 4083415

Change-Id: I5ca33000e52fc5265ccc84a6e5acb0d3359d0eb4
/packages/apps/Email/emailcommon/src/com/android/emailcommon/utility/Utility.java
19b2a7ebc9cc770baace1605ff5b44b3fcb46320 02-Mar-2011 Makoto Onuki <omakoto@google.com> New debug setting to enable strict mode logging.

For now it only enables it for the main process. I've added a flag
to EmailServiceProxy for EAS, but it's not used in the exchange side.

Bug 3500292

Change-Id: I5b27c69fe7cc995a430e9def54b2463076032c78
/packages/apps/Email/emailcommon/src/com/android/emailcommon/utility/Utility.java
37f3385803de19d4b6fb4ef1b1ac9a6196dec98c 02-Mar-2011 Ying Wang <wangying@google.com> Split out emailcommon/Android.mk

Change-Id: I846ee2a4b541f4709e647aa537c61549db2bec2e
/packages/apps/Email/emailcommon/src/com/android/emailcommon/utility/Utility.java
a07f2ae0b18964aa15e218e8b6be8be24e5c9f46 01-Mar-2011 Ying Wang <wangying@google.com> Revert "Split out emailcommon/Android.mk"

This reverts commit c28bf353190eb576072a8fd2f98821424144876e.
/packages/apps/Email/emailcommon/src/com/android/emailcommon/utility/Utility.java
c28bf353190eb576072a8fd2f98821424144876e 01-Mar-2011 Ying Wang <wangying@google.com> Split out emailcommon/Android.mk

Change-Id: I90653e8601ee3ee6a8719d87ffb93222a11a22c0
/packages/apps/Email/emailcommon/src/com/android/emailcommon/utility/Utility.java