History log of /packages/apps/Email/emailcommon/src/com/android/emailcommon/provider/Account.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
123d40283e1411dcb5fa5def656ad352c101e5d0 24-Sep-2014 Martin Hibdon <mhibdon@google.com> Make sure to close a cursor

b/17570154

Change-Id: I759a116a14784e92e7fa7eb51755ceda3860550e
/packages/apps/Email/emailcommon/src/com/android/emailcommon/provider/Account.java
c3404cca71b3451e0bf79afe2abca45522738873 18-Jun-2014 Régis Décamps <regisd@google.com> Better documentation for "Account display name".

Give examples of what the display name is.

Change-Id: I2934dc9e8b95d0b32b9c1e9fab391d7ba9e997da
/packages/apps/Email/emailcommon/src/com/android/emailcommon/provider/Account.java
06415a635f5f01d8e1620b29f44d68dc4dfdf435 25-Jun-2014 Tony Mantler <nicoya@google.com> Unify settings activity

b/9566150

- Install PublicPreferenceActivity
- Create AccountServerSettingsActivity to contain all the crazy
logic we don't want in AccountSettings
- Add restoreAccountWithAddress to Account
- Refactor almost everything out of AccountSettings
- Tidy the QuickResponse fragment
- Majorly refactor the AccountSettingsFragment to decouple it from
the activity, and make it save settings immediately instead of
when pausing
- Move login warning dialog to AccountSettingsFragment
- Tweak HeadlessAccountSettingsLoader

Change-Id: Ie69181d968b9c3e5940cfef9690b1f5c70e21aa8
/packages/apps/Email/emailcommon/src/com/android/emailcommon/provider/Account.java
51af59fc6643657d6ff7fb9ed05c5ce298b8d653 10-Jun-2014 Tony Mantler <nicoya@google.com> Remove unused preferences and dead code

Change-Id: Ica8bd735a91417ed44bd547ab7176832745d729e
/packages/apps/Email/emailcommon/src/com/android/emailcommon/provider/Account.java
97fb20697c1f2e03ad4aec20bc263e5bae3aa912 10-Jun-2014 James Lemieux <jplemieux@google.com> Merge "Unit Tests for serialization of Account and HostAuth objects" into ub-mail-master
9250f4787222f8bc3afe539a2f351fd8d9875fba 09-Jun-2014 James Lemieux <jplemieux@google.com> Unit Tests for serialization of Account and HostAuth objects

b/14998528

These are particularly important since they are stored in JSON form within the
Account Manager, so maintaining backward compatibility when future changes are
introduced is crucial.

Change-Id: I51333a364726a4c7e2fe88ee888e8c4cc11d962f
/packages/apps/Email/emailcommon/src/com/android/emailcommon/provider/Account.java
524e0a5fbcb80b22e0b74920416f662d85a54396 10-Jun-2014 Tony Mantler <nicoya@google.com> am 73101f3a: Fix OAuth when changing credentials from settings

* commit '73101f3a7bc1e735199a7c2c18358e9db9af0bca':
Fix OAuth when changing credentials from settings
73101f3a7bc1e735199a7c2c18358e9db9af0bca 10-Jun-2014 Tony Mantler <nicoya@google.com> Fix OAuth when changing credentials from settings

b/15521401

Change-Id: I7909389943c8e3eefbef0699f1c7c9c338282ca5
(cherry picked from commit 994c282d804a635f783681ae314a6b4b244b476e)
/packages/apps/Email/emailcommon/src/com/android/emailcommon/provider/Account.java
994c282d804a635f783681ae314a6b4b244b476e 10-Jun-2014 Tony Mantler <nicoya@google.com> Fix OAuth when changing credentials from settings

b/15521401

Change-Id: I7909389943c8e3eefbef0699f1c7c9c338282ca5
/packages/apps/Email/emailcommon/src/com/android/emailcommon/provider/Account.java
82a207132b34377d532f19882f5bfc70bc657da0 14-May-2014 Tony Mantler <nicoya@google.com> Move account backup/restore to userdata in AccountManager

Change-Id: Iea9f2a1b1f2d87e07d63cbb1df5a0d6355ea4031
/packages/apps/Email/emailcommon/src/com/android/emailcommon/provider/Account.java
8518665a04b0da5a6abbf06b2763f71ca78a979f 14-May-2014 Tony Mantler <nicoya@google.com> Fix projection columns, begin removing another unused field

Change-Id: I89126dba47ed6e78c870d458c4f286a37f763a66
/packages/apps/Email/emailcommon/src/com/android/emailcommon/provider/Account.java
2f97a7c658eb76ab9f388da8e73c1393b88d0def 13-May-2014 Tony Mantler <nicoya@google.com> Clean up unused code and warnings in Account

Change-Id: I40475eb6c8afa6b7b28fd143b9ad4fd268ff4657
/packages/apps/Email/emailcommon/src/com/android/emailcommon/provider/Account.java
3dd85723a1af5537e23e4b05bdc361cce9cd42be 11-Apr-2014 Tony Mantler <nicoya@google.com> Cleanup in EmailContent

Change-Id: Ifa251eb206779f59ea003f99395d454c7e407bc2
/packages/apps/Email/emailcommon/src/com/android/emailcommon/provider/Account.java
eba80c114e87346aeb64bbff91ef11b0ba566fd6 07-Mar-2014 Anthony Lee <anthonylee@google.com> b/9564335. Add support for a maxAttachmentSize column in the Account
table and connect the data to the Settings object in the existing
location (SettingsColumns.MAX_ATTACHMENT_SIZE).

Change-Id: Iaf48995757511e1dfb65aa35ff6d81bbc47187bd

Conflicts:
src/com/android/email/provider/DBHelper.java
/packages/apps/Email/emailcommon/src/com/android/emailcommon/provider/Account.java
0f8d16f56ad3aa1c2d3cd20b1ca0c24b486035ca 31-Jan-2014 Tony Mantler <nicoya@google.com> Fix content observing

b/12834957

Change-Id: I00e2fc48e1d78665e0cdcfc3f4fb483f5a047252
/packages/apps/Email/emailcommon/src/com/android/emailcommon/provider/Account.java
062f27fa370564d494260889c8141df50c07572f 30-Jan-2014 Tony Mantler <nicoya@google.com> Clean up AccountSettingsFragment loading

Also extend EmailContent to allow registering a ContentObserver

b/12816752

Change-Id: Ida873ac10101af92c627858d1d86c3a5ccd4ab26
/packages/apps/Email/emailcommon/src/com/android/emailcommon/provider/Account.java
e8eb6e659b5914eb7deab451c583e906010d0457 11-Dec-2013 Martin Hibdon <mhibdon@google.com> Make OAuth work

Now you can authenticate your account using oauth
for google hosted accounts (e.g. google.com, gmail.com)
The setup ui is still not up to spec.

Change-Id: Ib2826653550a823b4d1b8739c1e483746cccbc22
/packages/apps/Email/emailcommon/src/com/android/emailcommon/provider/Account.java
05723aa0f642fbbffd8859dce8181601576e245b 11-Dec-2013 Martin Hibdon <mhibdon@google.com> Don't put Credentials in HostAuth parcels

The problem is that exchange isn't compiled with this
change, so HostAuth parcels to or from exchange fail.
Ultimately, we'll need to probably create a HostAuth2
object or something along those lines. For now, just
change the format of HostAuth parcels back, so they
stay compatible with exchange, I'll figure out a real
solution later.

Change-Id: I9c8c8639b7b474fe82dfdc37a9e51a0451820105
/packages/apps/Email/emailcommon/src/com/android/emailcommon/provider/Account.java
0b25179dab10dc7dfb91210cabfe637f3067d777 04-Dec-2013 Martin Hibdon <mhibdon@google.com> Allow database to hold oauth credentials

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