History log of /packages/apps/Email/emailcommon/src/com/android/emailcommon/provider/Account.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
840408c41cfc95ffa491aaf11f1c3f4075eae9c9 04-Oct-2013 Tony Mantler <nicoya@google.com> Remove mAmAccount from the email provider account object

b/11070468

Change-Id: I51bad4be41800e4cd6dae42744005ade784cdf82
/packages/apps/Email/emailcommon/src/com/android/emailcommon/provider/Account.java
0a710bde6817354211525b0f3176a1e294d1cd79 26-Aug-2013 Scott Kennedy <skennedy@google.com> Fix notification preference migration

These settings need to be migrated from the database, not the
SharedPreferences file that likely shouldn't even exist.

Everything added to Account.java was removed in
Ie6ec389b5b5d2e7ab1b299d0877811ae716526e2
when it was believed to be unnecessary.

Bug: 10211615
Change-Id: If6193758febda8a3272d82792492503549a44e32
/packages/apps/Email/emailcommon/src/com/android/emailcommon/provider/Account.java
52135c6e8750f19084695cdda78ffe34719c4b6c 21-Aug-2013 Martin Hibdon <mhibdon@google.com> Add PingDuration to the Account table

b/10328857
this is so that we can keep the current ping
duration and restore it on startup.

Change-Id: I7ae11fd21687cb9013222924934154c5ebe1f7e7
/packages/apps/Email/emailcommon/src/com/android/emailcommon/provider/Account.java
6d24534804ddf54cd353ed46c4cbd6d23152f899 10-Aug-2013 Tony Mantler <nicoya@google.com> Continue rewriting QuickResponse support

Change-Id: I95530e84d91f4becb3de5280af83ce546e1ed093
/packages/apps/Email/emailcommon/src/com/android/emailcommon/provider/Account.java
229c070b0b177793032ce9249cb77f6ca98e5aa4 27-Jun-2013 Scott Kennedy <skennedy@google.com> Change the concept of a default account

The user no longer has control over this. Now, the "default" account
(which is only used for prepopulating the name of new accounts is
either the last used account (to be defined), or the first account in
the database.

This removes a setting, and simplifies a lot of code.

We may also want to auto-select the default account when entering the
compose screen from the combined view, but we do not currently have
an easy way to do that.

Bug: 7442992
Change-Id: Iff5bb36d8cbd327334211b670fa4851cbda6b9a0
/packages/apps/Email/emailcommon/src/com/android/emailcommon/provider/Account.java
1b8e0fa23f6e9957f0b8753dd3f5b95d3f5d98ea 26-Jun-2013 Scott Kennedy <skennedy@google.com> Clean up a bunch of warnings

Bug: 9565838
Change-Id: I5e95562bbf463f057cbcc4a9884427a774473b45
/packages/apps/Email/emailcommon/src/com/android/emailcommon/provider/Account.java
503cc0630d54de430a97f6013c6c7b7e851e343d 19-Apr-2013 Yu Ping Hu <yph@google.com> Stop using ContentCache and related caches.

Bug: 8655671
Change-Id: I349ce464b5d752b3ac687852dbce4f0b57e04c67
/packages/apps/Email/emailcommon/src/com/android/emailcommon/provider/Account.java
156163cceb5f56bb53e88e68d4e79bd5c076797f 05-Apr-2013 Paul Westbrook <pwestbro@google.com> Prevent NPE

cherry-pick of https://android-review.googlesource.com/#/c/45703/

Change-Id: I8d6984d90365d6bc3e9f102285a06ac9c32a98d4
/packages/apps/Email/emailcommon/src/com/android/emailcommon/provider/Account.java
8e2c4056caffb9695fa7fdf3a90c1c4f056adb97 14-Mar-2013 Yu Ping Hu <yph@google.com> Clean up dead code. Should be a no-op for functionality.

Also includes a fix for saving a draft that's already
been saved (used to create a new one).

The following were unused:
- accountIdAddToField
- mailboxIdAddToField
- uisendmail
- uisavedraft
- uiupdatedraft
- uisenddraft

Deleting those also allows us to remove the translation
from the Bundle used by calls to the ContentValues used by
update (since the update paths are now gone).

Change-Id: I87f2875e3272177a128a8ff65541e51b1f2d05fc
/packages/apps/Email/emailcommon/src/com/android/emailcommon/provider/Account.java
b34608228f0b55e401415b67b8150ca9e00cee7d 11-Dec-2012 Scott Kennedy <skennedy@google.com> Move notifications to UnifiedEmail

This involves redoing the persistence model, to split general,
account, and folder settings into separate SharedPreference stores.

It also requires some preferences to be moved into UnifiedEmail.

Depends on Ibe2e3f93ec164370535ffc5f5b2409544cc8d36d (UnifiedEmail)

Change-Id: Ie6ec389b5b5d2e7ab1b299d0877811ae716526e2
/packages/apps/Email/emailcommon/src/com/android/emailcommon/provider/Account.java
f9997921cbea7feb13bbbd897e2f179494e5400e 29-Nov-2012 Scott Kennedy <skennedy@google.com> Change Email vibrate setting from tri-state to checkbox

Migrate the old value as necessary.
Update the unit tests.

Cherry-picked from I1c276ffde3496cbc66846ed4a007088d39f20382 with
minor changes.

Bug: 7624838
Change-Id: I1b3fa331b62f556701bacba5ce9cd64305d9b52a
/packages/apps/Email/emailcommon/src/com/android/emailcommon/provider/Account.java
26164054710375519ba7468987971a7a3340ba7e 06-Sep-2012 Marc Blank <mblank@google.com> Improve trash folder picker upon account creation

* Use setup intent uri
* TODO: More cleanup

Bug: 7077441

Change-Id: Ieab5b0ed33b73b7a0e9012aedd6becf867db1566
/packages/apps/Email/emailcommon/src/com/android/emailcommon/provider/Account.java
e714bb9d153cfe13a7f0932e7d67ea08fa5a1d98 23-Aug-2012 Marc Blank <mblank@google.com> Convert authorities, intents, and account manager types

* Tested ok on wiped Nexus
* Tested ok on S3
* Upgrade verified on Nexus

Change-Id: If5d4ce594f8a309cdb59589d10b1d33f3b79326c
/packages/apps/Email/emailcommon/src/com/android/emailcommon/provider/Account.java
f419287f22ae44f25e1ba1f757ec33c7941bbfa8 28-Jun-2012 Marc Blank <mblank@google.com> DO NOT MERGE: Move emailcommon2 sources to emailcommon

Change-Id: I06df7e467cd2e0117df8b8db3ddc6ff9da13f1c7
/packages/apps/Email/emailcommon/src/com/android/emailcommon/provider/Account.java
03cd72805dab0379ed255d151f1c17cc60655fc3 25-Apr-2012 Marc Blank <mblank@google.com> Revert to old Email app

* These are the last sources in the ICS-MR1 tree

Change-Id: Ida4651bddd92a06a518d00f3e1f275ab3a80c8ae
/packages/apps/Email/emailcommon/src/com/android/emailcommon/provider/Account.java
ebb79619e8ed3c9f0c051e7f323e3971bce7508d 09-Mar-2012 Marc Blank <mblank@google.com> Move account delete logic to EmailProvider

* This functionality had to move away from Controller

Change-Id: I557918a325eab8c83a9728fa1ce33dde8b86158f
/packages/apps/Email/emailcommon/src/com/android/emailcommon/provider/Account.java
bf5caf97c547c8fa4bbdc2b500e8d43ee6322fcf 24-Feb-2012 Marc Blank <mblank@google.com> Notify by mailbox, rather than account

* Update EmailProvider, removing two no-longer-used columns in Account and
Mailbox

Change-Id: Ie0f10eb0ca315d73e82be968f7760a51a239ba3f
/packages/apps/Email/emailcommon/src/com/android/emailcommon/provider/Account.java
fd81e1977954a710cd3630ef3a9ab6aebff1094c 21-Nov-2011 Marc Blank <mblank@google.com> Don't save Policy with Account

Change-Id: Ib3601daee8780640a07db573f623e99279c9f9b1
/packages/apps/Email/emailcommon/src/com/android/emailcommon/provider/Account.java
4317ff162ef623cb40c33fc96946f57ade8b2256 02-Nov-2011 Marc Blank <mblank@google.com> am dea198bb: Add utility to determine if account can\'t auto-sync due to roaming

* commit 'dea198bb041754745c3b1522671fd31a79c7168c':
Add utility to determine if account can't auto-sync due to roaming
af9e4ef82eaf241f0c588a2b726a45f38c6fcc76 02-Nov-2011 Mindy Pereira <mindyp@google.com> am ddcb0db4: Merge "Revert "Add utility to determine if account can\'t auto-sync due to roaming"" into ics-mr1

* commit 'ddcb0db429df71356360b2224b56b01b7051c34c':
Revert "Add utility to determine if account can't auto-sync due to roaming"
6638627595633a92c4d3034b5ee2299d3b2df83d 02-Nov-2011 Marc Blank <mblank@google.com> am 483f4927: Merge "Add utility to determine if account can\'t auto-sync due to roaming" into ics-mr1

* commit '483f49274e0aed3d4158ac6c2ba9fd693acb2809':
Add utility to determine if account can't auto-sync due to roaming
dea198bb041754745c3b1522671fd31a79c7168c 01-Nov-2011 Marc Blank <mblank@google.com> Add utility to determine if account can't auto-sync due to roaming

* We need to call this out to the user (a surprised user is an
unhappy user)
* Required for fix to bug referenced below

Bug: 5533550
Change-Id: I64a870a703de7e02ce882aefc3636a1668021eb8
/packages/apps/Email/emailcommon/src/com/android/emailcommon/provider/Account.java
ea4adf0c6bbed52fbe26e7a9be439cb5ff06b9dd 02-Nov-2011 Mindy Pereira <mindyp@google.com> Revert "Add utility to determine if account can't auto-sync due to roaming"

This reverts commit 95abeed64aaf8f597d99b654760ec2c0b5024dc0
/packages/apps/Email/emailcommon/src/com/android/emailcommon/provider/Account.java
95abeed64aaf8f597d99b654760ec2c0b5024dc0 01-Nov-2011 Marc Blank <mblank@google.com> Add utility to determine if account can't auto-sync due to roaming

* We need to call this out to the user (a surprised user is an
unhappy user)
* Required for fix to bug referenced below

Bug: 5533550
Change-Id: I7da337057b9b28300ddd485283920e12c1ae53da
/packages/apps/Email/emailcommon/src/com/android/emailcommon/provider/Account.java
2736c1a11ce3ecdcd9d19aa9c324fb9ce0910c7b 20-Oct-2011 Marc Blank <mblank@google.com> Rewrite of security policy handling and service code

* Remove PolicyService APIs policiesRequired, policiesUpdated,
isSupported, clearUnsupportedPolicies, and isActiveAdmin
* Add PolicyService API setAccountPolicy, which is the sole
method by which security policies are promulgated
* Add protocolPoliciesEnabled and protocolPoliciesUnsupported
to the Policy class; these are packed, localized strings
indicating policies that the protocol itself have enabled
and/or cannot support (i.e. these are policies that are
unknown to the DPM, e.g. don't load attachments)
* Differentiate in security notifications between three kinds
of policy changes - changes that don't require user
intervention (e.g. reducing requirements), changes that
require user intervention (the legacy notification), and
changes that make the account unsyncable (e.g. the server
adding an unsupportable policy). Handle all possible policy
changes cleanly.
* Make security notifications per account (with multiple
accounts, notifications would get arbitrarily munged)
* Expose ALL enforced policies via the account settings
screen in two categories: policies enforced (including
both policies enforced by the DPM and policies enforced
by the protocol) and policies unsupported (note that these
can only be seen if policies are changed after an account
is created; we do not allow the creation of an account
when any required policies are unsupported). Add a
button that forces a sync attempt, for accounts that
are locked out, but whose policies have changed on
the server (this would otherwise require a reboot).
* Updated unit tests

Bug: 5398682
Bug: 5393724
Bug: 5379682
Change-Id: I4a3df823913a809874ed959d228177f0fc799281
/packages/apps/Email/emailcommon/src/com/android/emailcommon/provider/Account.java
81a153463bd9d2e4f71a0985a102548b16a88ec0 20-Jul-2011 Ben Komalo <benkomalo@google.com> Remove "Move" action on POP.

Bug: 5010614
Change-Id: If0a94840e9dc104566ba39d2e3240883dab5bba0
/packages/apps/Email/emailcommon/src/com/android/emailcommon/provider/Account.java
aca94265813e72e692eace527f43eb4c02b09c76 20-Jul-2011 Marc Blank <mblank@google.com> Remove NotificationService; use Account columns for data storage

Bug: 5023662
Change-Id: I84df3b474dd6320327851003af985144cc16348e
/packages/apps/Email/emailcommon/src/com/android/emailcommon/provider/Account.java
4de538be2d17545fb63e781412b8565f0d0d97d4 13-Jul-2011 Ben Komalo <benkomalo@google.com> Prevent account flip flopping from compose

There were two issues:
- the default account ID from the provider wasn't consistent: it was
using a snapshot from the cached data but that simply returns a Map, and
the values aren't guaranteed to be sorted (and indeed I saw that the
order was different on consecutive calls!)
- hitting app up from Compose always just kicked you out to the inbox
for the default account, but it probably should have used the account of
the compose screen, since it can be specified in the Intent

Bug: 5012008
Change-Id: Ic9a753b261e047790453bc1a9417bc0c6d2f87f9
/packages/apps/Email/emailcommon/src/com/android/emailcommon/provider/Account.java
025d29fd4b9dd8351fe2e0428a585cf327ddaca4 11-Jul-2011 Ben Komalo <benkomalo@google.com> Fix some missed account setup flags.

There were two places where account flags were being set on setup: one
was in manual setup when the user selected the account type
(pop/imap/eas), and another was when it was automatically determined
from XML. The two paths were inconsistent and one was setting bits like
SUPPORTS_SEARCH but the other wasn't.

This fixes being able to search in IMAP

Bug: 5011932
Change-Id: I50eada7485aaef4e2a85d25fa7eb9ac7ab03093a
/packages/apps/Email/emailcommon/src/com/android/emailcommon/provider/Account.java
6e418aa41a17136be0dddb816d843428a0a1e722 19-Jun-2011 Marc Blank <mblank@google.com> Improve EmailContent caching...

* Guarantee that up to 16 Account (with HostAuths), and Policy rows
are always cached. Also, 6 commonly used Mailboxes per Account
(Inbox, Outbox, Drafts, Sent, Trash, and Search)
* Precache these rows when EmailProvider starts up
* Ensure that newly added, precachable rows are cached when created
* Clean up some inefficient/wrong caching code
* Fix a commonly called method in NotificationManager in which we
load a single Mailbox row using selection vs withAppendedId
* Confirm that we don't read from the database in typical use and
heavy message loading
* Add a special URI for finding mailbox by type (using the cache)
* Add special-case code for EmailContent.count(Account.CONTENT_URI)
which is used in a number of places (including on the UI thread)
and whose value is easily determined
* Add a special URI to get the default account id
* Confirm that all unit tests work

The goal here is to be able to load all Account, HostAuth, Policy,
and Mailbox objects (by id) without worrying about disk access.
There will still be a single disk read for uncommon Mailbox reads,
but this should be considered acceptable.

Change-Id: Ibc9aa7acc73185e360b0b6f3053b90a985e97210
TODO: Unit tests
/packages/apps/Email/emailcommon/src/com/android/emailcommon/provider/Account.java
e57a83d39a1414bd44eef7376f3a091264fce5d9 14-Jun-2011 Marc Blank <mblank@google.com> Add flags for server-side search support

* Also, a convenience method to test the base flag
* Follow-up CL will add these flags for Exchange

Change-Id: I38dc1d19e89805989e674c17919db238b4913a1c
/packages/apps/Email/emailcommon/src/com/android/emailcommon/provider/Account.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/provider/Account.java