Commit Graph

4680 Commits

Author SHA1 Message Date
Todd Kennedy 3a4a1ac834 Send attachments through the download manager
bug 3339015

Change-Id: Ic16033a73d0e32608a14a2737f6ff28556dbe782
2011-02-18 16:07:41 -08:00
Todd Kennedy a819783491 Fix NPE when creating an account from template
if you create an account using one of the pre-defined templates (such as
Yahoo!), the user name and password were not being set in the HostAuth
structure. This was causing an NPE when we tried to generate an IMAP ID.

Change-Id: I9619cddc0ab758c187cf4b9c7c84485ac1f4bfdd
2011-02-17 14:43:50 -08:00
Eric Fischer 6153b35aa2 Merge "Import revised translations." 2011-02-17 10:32:03 -08:00
Eric Fischer 4ec2cbc1ed Import revised translations.
Change-Id: I488e9c6d663eb48d3acae2ce149a058e50745ba4
2011-02-17 10:17:40 -08:00
Todd Kennedy 040ddf60cf Resolve build warnings; part 5
Remove dependence upon URIs for creating the host auth structure

Change-Id: I92dee36fa329a8976b76bbd4991ed3469c6475f2
2011-02-16 17:38:31 -08:00
Andy Stadler d25610356d Merge "Refresh email notifications (part I)" 2011-02-16 16:39:01 -08:00
Andy Stadler c6d344ad2a Refresh email notifications (part I)
* Use strings that fit properly in new notifications
* General cleanups & rewrites from Roy
* Remove showWarningNotification() and use postAccountNotification()

This is part I.  Part II will add dialogs triggered by some of these
notifications, to provide more explanation to the user of what's wrong
and how to fix it.

Bug: 3238657
Change-Id: Ib51bcb4412f8a09a6f97653f0b5f8642efe2ac1e
2011-02-16 16:38:18 -08:00
Todd Kennedy 153448644d Merge "Fix NoSuchMethodError for unit tests" 2011-02-16 16:22:35 -08:00
Todd Kennedy da3c80b338 Fix NoSuchMethodError for unit tests
With all the code movement, some tests were found to break. Update the
proguard config so the appropriate methods can be referenced.

bug 3460695

Change-Id: I2fc9786cc54182ba8571d87947241dcd7b2e9995
2011-02-16 15:07:43 -08:00
Andy Stadler e47af7698f Add summaries to incoming/outgoing preference items
Bug: 3380377
Change-Id: I81993adfea93f00c81655cda13e2ff46ec8ac20d
2011-02-16 14:19:34 -08:00
Eric Fischer ca6b75a1e6 am 6b49223c: (-s ours) am 30b1b213: Import revised translations. DO NOT MERGE
* commit '6b49223cf5f2f309d065eb6c103dd513fcaf46ab':
  Import revised translations.  DO NOT MERGE
2011-02-16 10:42:10 -08:00
Eric Fischer 6b49223cf5 am 30b1b213: Import revised translations. DO NOT MERGE
* commit '30b1b2137cffb1bc98ee63e8ee3d2ff8cebcf09d':
  Import revised translations.  DO NOT MERGE
2011-02-16 10:38:18 -08:00
Eric Fischer 30b1b2137c Import revised translations. DO NOT MERGE
Change-Id: I91ca5d06b2027a644d9e777fa33718b1a9c0a5a1
2011-02-16 10:20:11 -08:00
Jesse Wilson d75968acfb Merge "Adopt LruCache in Email's ContentCache." 2011-02-16 09:38:39 -08:00
Marc Blank 3d1568d465 Merge "Fix broken unit tests; fix proguard warnings" 2011-02-15 16:46:46 -08:00
Marc Blank 6b6750cf5c Fix broken unit tests; fix proguard warnings
Bug: 3456565
Change-Id: Ibb3e0c2330a7d051b50ca522b7f102fb9bde0f43
2011-02-15 16:28:33 -08:00
Todd Kennedy c0195ab902 Update expected value for unit test
There were extra parens in the SELECT sql command. These have been
removed from production code, so, the test needs to be updated as
well.

bug 3456577

Change-Id: I7fcfd326c17fd732ecfd3cd77f6e583106afa287
2011-02-15 13:54:07 -08:00
Andy Stadler 6000e676e7 Quick fix to enable ExchangeService while in single APK
Bug: 3456342
Bug: 3442973
Change-Id: Idb2234794af9a36b75ba46fc1ca04ef5629eb7a2
2011-02-15 11:32:05 -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
Jesse Wilson 92ab6db38d Adopt LruCache in Email's ContentCache.
LruCache simply wraps LinkedHashMap for a better API.
Performance/hit rate should not be impacted.

Tracking bug: http://b/3184897

Change-Id: Icbac38d3cea5f8c522df7a883d8e74a8f3786b92
2011-02-11 14:02:28 -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