Commit Graph

4612 Commits

Author SHA1 Message Date
Marc Blank 6b6750cf5c Fix broken unit tests; fix proguard warnings
Bug: 3456565
Change-Id: Ibb3e0c2330a7d051b50ca522b7f102fb9bde0f43
2011-02-15 16:28:33 -08:00
Marc Blank 3a5c1fb274 Email split, part neuf: Setup, logging, attachment glue
* Make "Exchange" option in account setup depend upon availability of the
  Exchange EmailService
* Make presence of Exchange logging depend upon availability of the
  Exchange EmailService
* Make AttachmentDownloadService use service rather than ExchangeService
  class
* Move SSLUtils to emailcommon/utility
* Move account manager type defs to emailcommon/AccountManagerTypes
* Update proguard.flags
* This is the penultimate CL for the Email package itself; the next CL
  creates a clean, SDK-compatible Email application

Bug: 3442973
Change-Id: I9162cf5fa6b5a043ded0fdd1e25fd3ce5948ad8f
2011-02-14 16:08:55 -08:00
Marc Blank 31d9acbf06 Email split, part huit: Refactor constants, clean emailcommon
* There are three pieces to this CL (sorry):
  1) Move and/or rename some constants into emailcommon
  2) Move Utility to emailcommon, moving the few UI
     related utilities back into Email (FolderProperties
     and UiUtilities)
  3) Remove all references to resources from emailcommon
* The three pieces relate in that, between them, they allow
  the emailcommon static library to compile cleanly

Bug: 3442973

Change-Id: Ic5e3abaa2a1b36999e0b6653c6c2134ea1bd544f
2011-02-14 12:18:10 -08:00
Marc Blank 37500777f1 Email split, part sept: Configuration
* Add getConfigurationData api to AccountService; this allows clients
  to get configuration-related data from the Email app
* We use this so that Exchange can determine whether alternative strings
  should be used

Bug: 3442963
Change-Id: Ieea56e3416458dc57699b00c2fc062dfcf7abca9
2011-02-14 11:24:28 -08:00
Todd Kennedy 32311cce01 Implement IMAP prefix support
We support two different ways for an IMAP prefix to be specified:
  1. A text field on the IMAP configuration page. This is the most obvious to
     the end user. It is also an explicit, manual configuration.
  2. RFC2342 defines a NAMESPACE IMAP command to be able to query the prefix
     from the IMAP server. This is an automatic configuration without any
     user involvement (i.e. the UI will NOT change if a prefix is loaded in
     this way)

If the user goes to the trouble of specifying a prefix, we will always honour
it instead of the namespace returned by the IMAP server -- even if the user's
configuration is wrong.

bug 1592696

Change-Id: I6b94c7aaac538f6cd9dc4694b0f1634e8c956bc1
2011-02-11 14:17:48 -08:00
Todd Kennedy da71042569 Merge "Fix class names in proguard.flags" 2011-02-11 13:51:11 -08:00
Todd Kennedy 7891dcd0af Fix class names in proguard.flags
Change-Id: I76286c567049ea4ea5c468beeb23737bb292609b
2011-02-11 09:19:27 -08:00
Marc Blank a7bc0319a7 Email split, part six: EmailContent
* Moved EmailContent to emailcommon

Change-Id: Ib3db1bfcfe74554c0e5afd3cfce6d72f26e9aeb9
2011-02-10 19:44:29 -08:00
Marc Blank 2193962ca2 Email split, part quatre: Move along, nothing to see here
* No code was harmed, er, changed in the making of this CL
* All that's happened is that code that is needed by both Email and
  Exchange have been moved into emailcommon
* This required import changes to many files, which explains the
  length of the CL

Change-Id: I4e12455ba057a4a8054fdbd0b578c73afa411c8a
2011-02-10 16:28:37 -08:00
Marc Blank 8a57469460 Email split, part trois: AccountService
* Create AccountService.aidl and AccountServiceProxy in emailcommon
* Implement AccountService in email
* Use AccountServiceProxy in Exchange for account reconciliation,
  notifications, etc.
* Move sync window constants into emailcommon
* Split attachment provider utilities and constants into emailcommon

Bug: 3442973
Change-Id: I89dce28b799b193243c07774dab65d830ae62775
2011-02-10 14:32:01 -08:00
Marc Blank e86789b66e Merge "Email split, part deux: PolicyService" 2011-02-10 14:01:45 -08:00
Eric Fischer b063a03b88 am f2333d70: (-s ours) am dfe62ed4: (-s ours) am 7fc19e98: Import revised translations. DO NOT MERGE
* commit 'f2333d707c27254bec4d50b35211c883d5c9f17a':
  Import revised translations.  DO NOT MERGE
2011-02-10 13:57:14 -08:00
Marc Blank 9ba506c4dd Email split, part deux: PolicyService
* Split PolicySet from SecurityPolicy and move to emailcommon
* Define PolicyService that sync adapter services can use to
  interact with the Email DPM administrator
* Implement PolicyServiceProxy for exchange
* Implement PolicyService in email
* Modify imports, references, etc. as required

Bug: 3442973

Change-Id: I92015e21f780a68754b318da89fbb33570f334a2
2011-02-10 13:53:37 -08:00
Eric Fischer f2333d707c am dfe62ed4: (-s ours) am 7fc19e98: Import revised translations. DO NOT MERGE
* commit 'dfe62ed4523f9ee75f67dc3f352393aa1bd45541':
  Import revised translations.  DO NOT MERGE
2011-02-10 13:50:54 -08:00
Marc Blank 0d4fc55861 Email split, part one: EmailService
* Create emailcommon package
* Move EmailService classes to emailcommon package
* Change references to aidl's to emailcommon package
* Add getApiLevel() command to EmailService

Bug: 3442973

Change-Id: Ic7d2115363cdff6ebb86c46650b0a5b2109b1c72
2011-02-10 13:10:38 -08:00
Eric Fischer dfe62ed452 am 7fc19e98: Import revised translations. DO NOT MERGE
* commit '7fc19e98c6cb7c237b71a6435c311318ca1a5e93':
  Import revised translations.  DO NOT MERGE
2011-02-08 17:32:38 -08:00
Todd Kennedy 34e487594d Remove unused import for Log class
Change-Id: I5edb48c11bde8d0785dd6e1857a04949ea122a46
2011-02-08 15:04:40 -08:00
Todd Kennedy 8cc2fc5101 Merge "Fix attachment mime type unit tests" 2011-02-08 14:32:22 -08:00
Makoto Onuki 314a51cb1d Refactoring widget
- Moved to com.android.email.widget
- Extracted nested classes to top-level classes
- Some small clean-ups.
- WidgetProvider and WidgetProvider$WidgetService are left in the original
  package to keep compatibility with honeycomb (3.0) release.

This CL is supposed to be pure-refactoring.  There should be no
functionality changes.

Change-Id: I37acaa24b6b488724750c0f33374b31fcc433f11
2011-02-08 13:10:42 -08:00
Eric Fischer a2d1b7e3f4 am 4225039a: (-s ours) am 625cf4ca: Import revised translations. DO NOT MERGE
* commit '4225039afe0890a716b2e9a1400d0ee10b0decac':
  Import revised translations.  DO NOT MERGE
2011-02-08 10:53:03 -08:00
Eric Fischer 4225039afe am 625cf4ca: Import revised translations. DO NOT MERGE
* commit '625cf4cac27b75e61e8f3e82f533d83c83a9b27d':
  Import revised translations.  DO NOT MERGE
2011-02-08 10:44:07 -08:00
Todd Kennedy 8586532f3e Fix attachment mime type unit tests
Attachments with no extension and mime type of text/plain need to return the
mime type of "text/plain" instead of "application/octet-stream"

bug 3428076

Change-Id: I00452c908ac0672879d42f4ed9ee574e376eac9f
2011-02-08 09:51:16 -08:00
Todd Kennedy 3a18f5f8c8 Fix "method not found" unit test errors
Not only were needed methods added to the proguard.flags file, but, the file
was generally cleaned up so that only the methods absolutely required by the
unit tests are specified.

Change-Id: If888d69325c3138815e39218d05eec473d5d72b6
2011-02-07 17:27:43 -08:00
Eric Fischer 625cf4cac2 Import revised translations. DO NOT MERGE
Change-Id: I2e6ded83b1111789122a0d9e9dad52df805721b7
2011-02-07 17:22:41 -08:00
Todd Kennedy 6e4df4de7a Merge "Fix mailbox adapter & message order manager unit tests" 2011-02-07 15:43:34 -08:00
Todd Kennedy 5fdd36aba6 Merge "Fix inbox query unit tests" 2011-02-07 15:42:57 -08:00
Todd Kennedy bddc4e87ef Fix mailbox adapter & message order manager unit tests
* the new mailbox queries will only catch message that are
"loaded"; by default, messages were created "unloaded", so,
the query was returning 0 results

* extra parens were removed from the query string; the text
needed to be updated to not check for the extra parens

bug 3428077

Change-Id: Iea5867e741b9673985ca020aa3a8425c061324bf
2011-02-07 15:07:55 -08:00
Todd Kennedy 43a85091e9 Fix inbox query unit tests
The new query will only select attachments if their associated message is in
the loaded state. The unit tests need to add the messages to the loaded state.

bug 3428076

Change-Id: Ib4ad8b2570a2cdc042b932b10dbaa3170ab825cd
2011-02-07 14:57:30 -08:00
Eric Fischer 7fc19e98c6 Import revised translations. DO NOT MERGE
Change-Id: Ic8a992a03e32a62f023995a29ee671dede5aab18
2011-02-07 13:19:59 -08:00
Justin Ho fb5bb64589 am d7e48963: am 5769309e: Updated Email launcher icon
* commit 'd7e4896339954fda3b12a3bc23979f7abdc4fbc2':
  Updated Email launcher icon
2011-02-07 11:35:01 -08:00
Andy Stadler d4cad2dae8 Merge "Remove all compatibility with pre-2.0 data" 2011-02-07 11:12:25 -08:00
Marc Blank 433d500cb9 Merge "Show smart forward attachments in MessageCompose" 2011-02-07 10:11:36 -08:00
Andy Stadler 7d51b7a05b Remove all compatibility with pre-2.0 data
* Remove LocalStore (pre-2.0 mail database) and its unit test
* Remove UpgradeAccounts (converted pre-2.0 accounts to Provider)
* Remove FolderMessageList (receiver for pre-1.6 desktop shortcuts)
* Remove "upgrading" paths through LegacyConversions
* Clip out dangling references to everything above

Bug: 3292310
Change-Id: I5654d55a0879b00b05b63055b94651855a8ee3ef
2011-02-06 00:54:39 -08:00
Justin Ho d7e4896339 am 5769309e: Updated Email launcher icon
* commit '5769309e1e3396b5b8100ac455330de1a2c338b6':
  Updated Email launcher icon
2011-02-03 15:41:29 -08:00
Justin Ho 5769309e1e Updated Email launcher icon
Change-Id: I6c2fcda8bd10b4673a2556e7adde0212686b7a9d
2011-02-03 14:55:00 -08:00
Todd Kennedy 5e39f90e9d Resolve build warnings; part 4
Fix unchecked warnings

Change-Id: I872740fca4e5050e6ed2922eabc7e46e5e97ff3c
2011-02-03 12:44:24 -08:00
Todd Kennedy 8d8537cd2e Resolve build warnings; part 3
Fixes deprecation warnings

NOTE: This does not resolve hostauth deprecation; that will be fixed
in a separate CL.

Change-Id: I47115516da34effbf885615cb439c9d3e6f95b84
2011-02-03 12:43:12 -08:00
Todd Kennedy 8546e21e1e Resolve build warnings; part 2
Change-Id: I76c1a5a4f759071f92eef0574abb20a99bfb32b7
2011-02-03 11:46:40 -08:00
Todd Kennedy 44de127691 Resolve build warnings; part 1
Change-Id: I80ca98ef80a427229ab5feb41568e34b257f32ce
2011-02-03 11:44:39 -08:00
Justin Ho 045f91e94f am d31aa4e2: am e653ed26: Merge "Updating Email checkboxes with framework assets" into honeycomb
* commit 'd31aa4e2a940e21964dbdbf9653709e988fe3a90':
  Updating Email checkboxes with framework assets
2011-02-02 16:21:12 -08:00
Justin Ho d31aa4e2a9 am e653ed26: Merge "Updating Email checkboxes with framework assets" into honeycomb
* commit 'e653ed2641fd6ef1d8795a31f096abd61f3c7b63':
  Updating Email checkboxes with framework assets
2011-02-02 15:52:42 -08:00
Justin Ho e653ed2641 Merge "Updating Email checkboxes with framework assets" into honeycomb 2011-02-02 14:41:04 -08:00
Justin Ho 10b5ace91c Updating Email checkboxes with framework assets
Change-Id: I52fb28304d7175372f05d889a388d7fb846807f1
2011-02-02 14:36:46 -08:00
Jesse Wilson 3aee641aab Use a field rather than a superclass for ContentCache's cache.
This makes it easier for cache experiments to swap out the
LinkedHashMap for another cache.

http://b/3184897
Change-Id: Iacdb266e41f5a98efd9bb30bc09ff8fff5a0a5a9
2011-02-02 12:11:17 -08:00
Jean-Baptiste Queru 1d62e10e4f am bbedac04: am 05f45f89: am 4895e726: Merge from gingerbread
* commit 'bbedac04b0acb9300bb0ab90a1d921b0d0e7dd11':
2011-02-02 09:59:35 -08:00
Jean-Baptiste Queru bbedac04b0 am 05f45f89: am 4895e726: Merge from gingerbread
* commit '05f45f89e367a82ca9bbb07f8f90e2635c9cad16':
2011-02-02 09:56:22 -08:00
Jean-Baptiste Queru 05f45f89e3 am 4895e726: Merge from gingerbread
* commit '4895e726ee66978dc24c618917e86b2930fe9bdf':
2011-02-02 09:53:24 -08:00
Jean-Baptiste Queru e14e903a30 am 5e1fa607: (-s ours) am 80312972: (-s ours) am feb9a2c6: Merge from open-source gingerbread - do not merge
* commit '5e1fa60708995aff67d4c1fd206670ea9ef6f1ef':
  Fix a decoding problem on the Email body
2011-02-02 08:05:46 -08:00
Jean-Baptiste Queru 5e1fa60708 am 80312972: (-s ours) am feb9a2c6: Merge from open-source gingerbread - do not merge
* commit '8031297202239c19ee43d34d467af25b90a07479':
  Fix a decoding problem on the Email body
2011-02-02 08:03:33 -08:00
Jean-Baptiste Queru 4895e726ee Merge from gingerbread
Change-Id: I874374c7c0a05f4159e1a77142d95eb62f7eac61
2011-02-02 08:02:02 -08:00