Commit Graph

14302 Commits

Author SHA1 Message Date
Andy Stadler c8e41e98cd AI 146538: am: CL 146134 Add persistence API for remote stores & folders to use while
syncing.  This provides a key-value store, per folder, that
  can be used by network Stores to record persistent data such
  as sync status, server keys, etc.
  Note that, by definition, this only applies to remote folders
  (e.g. IMAP, POP3). You'll see everywhere that LocalFolder is
  passed null, and this is correct - LocalFolder *is* persistent
  storage and does not need external help.
  Note to reviewers:  The core changes are Folder.java,
  LocalStore.java, and LocalStoreUnitTests.java, so please give
  them the bulk of your reviewer attention.  The other files
  are just following along with minor API changes.  Of those,
  the one worth close examination is MessagingController.java,
  which is the only place in the system where remote Folders
  are bonded with Local Folders and thus where this new API
  comes into play.
  Note to jham:  Can you please take a look at
  LocalStore.LocalFolder.setPersistentString() and recommend
  better SQL foo than my primitive test-then-update-or-insert
  logic, which is not transactional or threadsafe.
  Original author: stadler

Automated import of CL 146538
2009-04-18 15:25:13 -07:00
Andy Stadler 3c4552eb4a Merge branch 'readonly-p4-master' 2009-04-16 11:56:52 -07:00
Andy Stadler da2794ed80 AI 146514: am: CL 146061 Add persistent storage that Store classes can access.
The current design for Store classes (e.g. IMAP) did not provide for
  any persistent storage.  This is the beginning of a mechanism to
  provide that.  It's quite simplisitic - each Store can read/write one
  persistent string - but that's enough for the first simple use case
  (saving some sync data for EAS).
  The core changes here - suggest reviewing first - are in Account.java,
  Store.java, and AccountUnitTests.java.  Everything else is just
  following the API change that was necessary.
  Note that, by definition, this only applies to remote stores (e.g.
  IMAP, POP3).  You'll see everywhere that LocalStore is passed null, and
  this is correct - LocalStore *is* persistent storage and does not need
  access (so far, at least).
  Original author: stadler

Automated import of CL 146514
2009-04-16 11:55:39 -07:00
Eric Fischer 31e3dbe0b2 AI 146517: Import translation changes.
DO NOT MERGE

Automated import of CL 146517
2009-04-16 11:01:06 -07:00
Andy Stadler 7e6df9c6aa AI 146379: Provide a small set of message flags that can be set by stores and will
be persisted by LocalStore.
  BUG=1786939

Automated import of CL 146379
2009-04-15 15:29:00 -07:00
Andy Stadler 37e98419d7 AI 146366: Automated g4 rollback of changelist 146361.
*** Reason for rollback ***
  Despite the markings in the CL, this was inadvertently merged.
  This CL restores donut & downstream branches to the desired state.
  *** Original change description ***
  am: CL 146359 D* N*T M***E - we'll keep the fix for donut+
  Automated g4 rollback of changelist 146273.
  *** Reason for rollback ***
  Inadvertently approved for cupcake, past deadline.
  *** Original change description ***
  Fixed "show pictures" button isnot displayed for HTML messages.
  Original author: stadler
  Merged from: //branches/cupcake/...
  BUG=1766880

Automated import of CL 146366
2009-04-15 13:38:26 -07:00
Eric Fischer 9a79d70c6f AI 146365: Import revised translations.
DO NOT MERGE

Automated import of CL 146365
2009-04-15 13:30:19 -07:00
Andy Stadler af88cfc482 AI 146361: am: CL 146359 DO NOT MERGE - we'll keep the fix for donut+
Automated g4 rollback of changelist 146273.
  *** Reason for rollback ***
  Inadvertently approved for cupcake, past deadline.
  *** Original change description ***
  Fixed "show pictures" button isnot displayed for HTML messages.
  Original author: stadler
  Merged from: //branches/cupcake/...

Automated import of CL 146361
2009-04-15 13:01:48 -07:00
Andy Stadler 1f48259d22 AI 146360: Provide an API by which the server (or store) can tag some
of the role-specific folders such as Drafts, Sent, or Trash.
  This allows us to properly target these folders even on
  systems where they have different names.  I capture the
  tagged names into the existing columns in the account data,
  where they are used elsewhere in the code (no changes
  necessary).
  Use default implementations on POP3 and IMAP for now -
  no change from original behavior.  The new code is
  primarily to support EAS (for now).
  BUG=1790798

Automated import of CL 146360
2009-04-15 12:58:19 -07:00
Andy Stadler a065fff529 AI 146359: DO NOT MERGE - we'll keep the fix for donut+
Automated g4 rollback of changelist 146273.
  *** Reason for rollback ***
  Inadvertently approved for cupcake, past deadline.
  *** Original change description ***
  Fixed "show pictures" button isnot displayed for HTML messages.
  BUG=1766880

Automated import of CL 146359
2009-04-15 12:56:08 -07:00
Andy Stadler 4836f3c289 AI 146331: Make the download window sizing adjustable on a per-store basis.
The default values are 25 (default) and 25 (increment).  This is fine
  for Stores that control downloads by # of messages, but won't work for
  stores that use other measurements - e.g. EAS windows the download in #
  of days.  So for this change:
  1.  Allow the StoreInfo to provide non-default values
  2.  Remove the hardcoded references to the default values
  3.  Use StoreInfo values everywhere
  4.  Set the values to 1,1 in EAS store info
  BUG=1789913

Automated import of CL 146331
2009-04-15 10:58:59 -07:00
Tadashi Takaoka 1464095f9f AI 146274: am: CL 146273 Fixed "show pictures" button isnot displayed for HTML messages.
Original author: takaoka
  Merged from: //branches/cupcake/...

Automated import of CL 146274
2009-04-14 21:42:56 -07:00
Tadashi Takaoka 65ad330b78 AI 146273: Fixed "show pictures" button isnot displayed for HTML messages.
BUG=1766880

Automated import of CL 146273
2009-04-14 21:41:42 -07:00
The Android Open Source Project 15461d34f1 Merge commit 'korg/cupcake' 2009-04-14 18:18:15 -07:00
Eric Fischer 3a8bad2563 AI 146175: Import updated translations.
Automated import of CL 146175
2009-04-14 12:10:43 -07:00
Andy Stadler c6039f7d17 AI 146134: Add persistence API for remote stores & folders to use while
syncing.  This provides a key-value store, per folder, that
  can be used by network Stores to record persistent data such
  as sync status, server keys, etc.
  Note that, by definition, this only applies to remote folders
  (e.g. IMAP, POP3). You'll see everywhere that LocalFolder is
  passed null, and this is correct - LocalFolder *is* persistent
  storage and does not need external help.
  Note to reviewers:  The core changes are Folder.java,
  LocalStore.java, and LocalStoreUnitTests.java, so please give
  them the bulk of your reviewer attention.  The other files
  are just following along with minor API changes.  Of those,
  the one worth close examination is MessagingController.java,
  which is the only place in the system where remote Folders
  are bonded with Local Folders and thus where this new API
  comes into play.
  Note to jham:  Can you please take a look at
  LocalStore.LocalFolder.setPersistentString() and recommend
  better SQL foo than my primitive test-then-update-or-insert
  logic, which is not transactional or threadsafe.
  BUG=1786939

Automated import of CL 146134
2009-04-14 10:15:07 -07:00
Andy Stadler cd7e5664f9 AI 146061: Add persistent storage that Store classes can access.
The current design for Store classes (e.g. IMAP) did not provide for
  any persistent storage.  This is the beginning of a mechanism to
  provide that.  It's quite simplisitic - each Store can read/write one
  persistent string - but that's enough for the first simple use case
  (saving some sync data for EAS).
  The core changes here - suggest reviewing first - are in Account.java,
  Store.java, and AccountUnitTests.java.  Everything else is just
  following the API change that was necessary.
  Note that, by definition, this only applies to remote stores (e.g.
  IMAP, POP3).  You'll see everywhere that LocalStore is passed null, and
  this is correct - LocalStore *is* persistent storage and does not need
  access (so far, at least).
  BUG=1786939

Automated import of CL 146061
2009-04-13 20:07:56 -07:00
Eric Fischer 014e0444f4 AI 145782: Import updated translations.
DO NOT MERGE

Automated import of CL 145782
2009-04-10 16:38:00 -07:00
Eric Fischer 9b8be65244 AI 145711: Import a few changed translations.
DO NOT MERGE

Automated import of CL 145711
2009-04-10 10:45:19 -07:00
Andy Stadler 73d3b93d31 Merge branch 'readonly-p4-master' 2009-04-08 19:29:31 -07:00
Andy Stadler 61dc3a8795 AI 145230: am: CL 145227 Add callback for push-mode stores to report async updates.
The logic for this is quite simplistic, for now:  When the store
  reports that it has new messages, it triggers a service refresh,
  just as if a pull-mode interval had expired and it is time to
  check the server.
  Note, unfortunately at this time there are no tests, because there
  are not currently any good test seams in MailService.java.
  Original author: stadler

Automated import of CL 145230
2009-04-08 19:28:19 -07:00
Andy Stadler 8664ecf181 AI 145227: Add callback for push-mode stores to report async updates.
The logic for this is quite simplistic, for now:  When the store
  reports that it has new messages, it triggers a service refresh,
  just as if a pull-mode interval had expired and it is time to
  check the server.
  Note, unfortunately at this time there are no tests, because there
  are not currently any good test seams in MailService.java.
  BUG=1776149

Automated import of CL 145227
2009-04-08 18:42:42 -07:00
Andy Stadler b4376e68b4 Merge branch 'readonly-p4-master' 2009-04-08 13:36:15 -07:00
Andy Stadler 28010fe9fc AI 145128: am: CL 144953 Provide UI for push mode accounts.
1.  Generalize the code for the various spinners that control
  account check frequency.
  2.  Provide an API for looking up store attributes (and refactor
  existing instatiateStore logic to use it).
  3.  Cleanup the old code that was used to setup frequency spinners.
  4.  Hardwire Exchange accounts to default into push mode.
  Notes to tester:
  1.  For each account type (POP, IMAP, EAS) we need to check that
  auto & manual creation "do the right thing" for frequencies.
  POP & IMAP should offer "none" or time intervals, while EAS
  should offer "push", "none", or time intervals.
  2.  EAS accounts should default to "push", all others to "15 min"
  3.  Make sure that you can edit existing account settings and see
  the right choices (only EAS should be offered push).
  4.  I couldn't write an automated test for the mail checker service,
  please confirm that POP & IMAP accounts are checked at the right
  intervals (or never, if set for "none".)
  Original author: stadler

Automated import of CL 145128
2009-04-08 13:35:04 -07:00
Eric Fischer 3fd60f0d4e Merge branch 'readonly-p4-master' 2009-04-08 00:31:51 -07:00
Eric Fischer f98681b459 AI 144913: am: CL 144912 Merge from cupcake:
Change 144891 on 2009/04/07 by enf@ebcdic
  Import a bunch of revised translations.
  Original author: enf

Automated import of CL 144913
2009-04-08 00:30:38 -07:00
Eric Fischer ff36efb76e AI 144977: Import revised translations.
DO NOT MERGE

Automated import of CL 144977
2009-04-07 18:15:15 -07:00
Andy Stadler ea6fea9bb2 AI 144953: Provide UI for push mode accounts.
1.  Generalize the code for the various spinners that control
  account check frequency.
  2.  Provide an API for looking up store attributes (and refactor
  existing instatiateStore logic to use it).
  3.  Cleanup the old code that was used to setup frequency spinners.
  4.  Hardwire Exchange accounts to default into push mode.
  Notes to tester:
  1.  For each account type (POP, IMAP, EAS) we need to check that
  auto & manual creation "do the right thing" for frequencies.
  POP & IMAP should offer "none" or time intervals, while EAS
  should offer "push", "none", or time intervals.
  2.  EAS accounts should default to "push", all others to "15 min"
  3.  Make sure that you can edit existing account settings and see
  the right choices (only EAS should be offered push).
  4.  I couldn't write an automated test for the mail checker service,
  please confirm that POP & IMAP accounts are checked at the right
  intervals (or never, if set for "none".)
  BUG=1776149

Automated import of CL 144953
2009-04-07 17:35:13 -07:00
Eric Fischer 1b32206538 AI 144912: Merge from cupcake:
Change 144891 on 2009/04/07 by enf@ebcdic
  Import a bunch of revised translations.

Automated import of CL 144912
2009-04-07 13:55:06 -07:00
Eric Fischer 8ff3119670 AI 144891: Import a bunch of revised translations.
Automated import of CL 144891
2009-04-07 11:48:29 -07:00
Andy Stadler 062268110a Merge branch 'readonly-p4-master' 2009-04-03 16:07:18 -07:00
Andy Stadler 3ad7c1b66c AI 144527: am: CL 144525 Add structural support for Exchange transport. The idea is that
the shipping client will include the necessary generic pieces for
  configuring an Exchange client (e.g. account setup) but will not
  include actual Exchange client code (e.g. transport / protocol).
  Also added a "sample code" implementation of Exchange for use
  as a starting point for implementors.  (Note, this will not ship
  in Donut, it's a placeholder for working on the "framework"
  aspects.)
  Original author: stadler

Automated import of CL 144527
2009-04-03 16:06:11 -07:00
Andy Stadler 87c43cada6 AI 144525: Add structural support for Exchange transport. The idea is that
the shipping client will include the necessary generic pieces for
  configuring an Exchange client (e.g. account setup) but will not
  include actual Exchange client code (e.g. transport / protocol).
  Also added a "sample code" implementation of Exchange for use
  as a starting point for implementors.  (Note, this will not ship
  in Donut, it's a placeholder for working on the "framework"
  aspects.)
  BUG=1740621,1740626

Automated import of CL 144525
2009-04-03 16:02:55 -07:00
Andy Stadler a191c5bfc2 Merge branch 'readonly-p4-master' 2009-04-03 15:43:52 -07:00
Andy Stadler d505973178 AI 144522: am: CL 144520 General cleanup after the integrations in CL 143018. Some spelling
errors, inconsistencies in passing Application/Activity/Context, and
  some error handling cleanups.  These are all changes that would have
  probably been made before the original submits, but I didn't want
  to fix them in the integration step.
  Original author: stadler

Automated import of CL 144522
2009-04-03 15:42:31 -07:00
Andy Stadler 2b0c619f1e AI 144520: General cleanup after the integrations in CL 143018. Some spelling
errors, inconsistencies in passing Application/Activity/Context, and
  some error handling cleanups.  These are all changes that would have
  probably been made before the original submits, but I didn't want
  to fix them in the integration step.
  BUG=1740621

Automated import of CL 144520
2009-04-03 15:40:49 -07:00
Eric Fischer b222a9a729 Merge branch 'readonly-p4-master' 2009-04-02 23:32:29 -07:00
Eric Fischer e6d8d70412 AI 144411: am: CL 144336 am: CL 144335 Import US Spanish translations, and a few Japanese changes.
Original author: enf
  Merged from: //branches/cupcake/...
  Original author: android-build

Automated import of CL 144411
2009-04-02 23:31:17 -07:00
Eric Fischer 42bd059020 AI 144355: Automated g4 rollback of changelist 144335.
*** Reason for rollback ***
  Roll back US Spanish import because it made the build too big.
  *** Original change description ***
  Import US Spanish translations, and a few Japanese changes.

Automated import of CL 144355
2009-04-02 21:42:06 -07:00
Eric Fischer f20ec708bc AI 144336: am: CL 144335 Import US Spanish translations, and a few Japanese changes.
Original author: enf
  Merged from: //branches/cupcake/...

Automated import of CL 144336
2009-04-02 16:42:14 -07:00
Eric Fischer 101ee5587a AI 144335: Import US Spanish translations, and a few Japanese changes.
Automated import of CL 144335
2009-04-02 16:39:22 -07:00
The Android Open Source Project 0f6f4930ee Merge branch 'open_source_contributions_already_merged' into google_internal 2009-03-29 08:55:18 -07:00
Eric Fischer 37939cfcc4 AI 143313: am: CL 143164 am: CL 142860 Add a special case for copying translations from other applications.
If you absolutely must add a string after string freeze, and that
  same string has already been translated for another application
  in a similar context, you can copy the translation by specifying
  it by numeric message ID.
  Fix the incorrect IDs I had told people for a couple of strings,
  add the script that will make a flat-file version of translations
  so you can find out the IDs yourself, and reimport the translations
  for the couple of applications that wanted to copy translations.
  Original author: enf
  Merged from: //branches/cupcake/...
  Original author: android-build
  Merged from: //branches/donutburger/...

Automated import of CL 143313
2009-03-27 18:03:00 -07:00
Andy Stadler bd68145460 AI 143282: am: CL 143018 Integrate changes to generalize selection of Sender & Store.
Rollup of CL's 140586, 140598, 140600, 140655, 140656 (partial),
  141082 (partial).
  All unit tests pass.  Simple functional tests:  Create IMAP & POP3
  accounts.  For each account:  Download messages.  Send message.
  Check account settings.  Delete account.
  Original author: stadler
  Merged from: //branches/donutburger/...

Automated import of CL 143282
2009-03-27 16:59:36 -07:00
Eric Fischer 2cfbb10fd0 AI 143164: am: CL 142860 Add a special case for copying translations from other applications.
If you absolutely must add a string after string freeze, and that
  same string has already been translated for another application
  in a similar context, you can copy the translation by specifying
  it by numeric message ID.
  Fix the incorrect IDs I had told people for a couple of strings,
  add the script that will make a flat-file version of translations
  so you can find out the IDs yourself, and reimport the translations
  for the couple of applications that wanted to copy translations.
  Original author: enf
  Merged from: //branches/cupcake/...

Automated import of CL 143164
2009-03-27 15:49:34 -07:00
The Android Open Source Project 315a7b3b74 Merge commit 'korg/cupcake' 2009-03-27 15:31:12 -07:00
Andy Stadler ae8ca3fbd1 Automated import from //branches/donutburger/...@143018,143018 2009-03-26 17:05:25 -07:00
Eric Fischer 8d448bbd7c Automated import from //branches/cupcake/...@142860,142860 2009-03-25 21:52:36 -07:00
Eric Fischer 88ccbb1992 Automated import from //branches/donutburger/...@142720,142720 2009-03-25 17:04:28 -07:00
Andy Stadler dfa98d5e1f Automated import from //branches/donutburger/...@142711,142711 2009-03-25 16:36:11 -07:00