Commit Graph

2115 Commits

Author SHA1 Message Date
Makoto Onuki
f98ffb6f44 Merge "Add "vendor policy" loader, and alternate exchange descriptive text." 2010-01-27 18:09:05 -08:00
Makoto Onuki
f613489663 Add "vendor policy" loader, and alternate exchange descriptive text.
- Dynamically switch to the alternate exchange strings to substitute overlays.
- Added the mechanism to load the "vendor policy", which tells you when the
  alternate strings should be used.

Bug: 2382710
2010-01-27 17:40:56 -08:00
The Android Open Source Project
d423fb996f am 08d92ebf: merge from open-source master
Merge commit '08d92ebf4722e45216ee225775a3b86f9ceecc0d'

* commit '08d92ebf4722e45216ee225775a3b86f9ceecc0d':
  Trim the mime type portion of Content-Type.
2010-01-27 16:29:17 -08:00
Marc Blank
46199c65a3 Fix #2382368 (NPE in AccountSetupExchangeTests)
* AccountSetupExchange defaultly tries using EAS AutoDiscover, which isn't
  appropriate in the unit test setting
* Add an Intent extra to disable AutoDiscover and use it in unit tests

Bug: 2382368
Change-Id: I3d4e8d7194b02da44ad583da0cf2fe60ffb19311
2010-01-27 13:57:20 -08:00
Andrew Stadler
345fb8b737 Add utilities for processing account security policies
* Add security sync key & signature columns
* Add utilities for easy read/write of security columns
* Write aggregator for multiple accounts
* Simple API's for exchange security (very preliminary)
* Unit tests of above

Bug: 2387961
2010-01-26 17:24:15 -08:00
Marc Blank
3ef6b0493e Merge "Handle Exchange meeting invitation responses" 2010-01-26 09:29:05 -08:00
Marc Blank
5de54008e5 Handle Exchange meeting invitation responses
* Includes some refactoring of internal "request" code in SyncManager
* Adds Message flags to tag meeting invites and cancellations
* Adds meetingResponse method in EmailService
* Hooks into Controller and MessageView UI included

Change-Id: I4c5e10bccc4b41956b94d9dfa55925e5af030939
2010-01-26 09:08:52 -08:00
Mihai Preda
e3e65ed919 MessageCompose: properly remove quoted text from saved draft.
Bug 2363249.
2010-01-26 17:19:49 +01:00
Andy Stadler
7cf95265bd Merge "IMAP ID" 2010-01-25 23:17:41 -08:00
Andrew Stadler
468371917e IMAP ID
* Add IMAP ID command to all login sequences
* Send generic information for now
* Explicitly catch & discard parsing errors, since we really don't
  care if the command succeeds or not.
* Unit tests

Bug: 2332183
2010-01-25 18:40:45 -08:00
Andrew Stadler
b313b48644 am 66051529: (-s ours) am 346a0cc1: Backup/Restore accounts - bugfix - DO NOT MERGE
Merge commit '66051529084d6c160c60b04afaf72397adf95ef1'

* commit '66051529084d6c160c60b04afaf72397adf95ef1':
  Backup/Restore accounts - bugfix - DO NOT MERGE
2010-01-25 18:11:42 -08:00
Andrew Stadler
57bdd9e580 am d3998ebe: (-s ours) am 85d765f4: Quick backup/restore of accounts DO NOT MERGE
Merge commit 'd3998ebe4e3581bbd34669fa5fb78537fa6ec98b'

* commit 'd3998ebe4e3581bbd34669fa5fb78537fa6ec98b':
  Quick backup/restore of accounts DO NOT MERGE
2010-01-22 17:05:14 -08:00
Mihai Preda
def85b1ce4 Merge "MessageCompose: show account name in title." 2010-01-22 03:45:01 -08:00
The Android Open Source Project
08d92ebf47 merge from open-source master 2010-01-21 13:19:17 -08:00
Andrew Stadler
fc8d943a82 Add security column to Account
* Upgrade accounts table to add security column
* Read/Write new column
* Backup/Restore new column
* Unit tests for all of the above
* First cut at defining bitfields (non-binding, just putting down ideas)

Bug: 2387961
2010-01-21 11:48:02 -08:00
Patrick Horn
2517a3dfd1 Trim the mime type portion of Content-Type.
Fixes parsing of Content-Type headers like "text/plain ; charset=iso-8859-1"
Added unit tests for whitespace and the charset parameter
2010-01-21 11:46:20 -08:00
Mike Lockwood
87a520d7b9 Use default values rather than hard coding green for LED notification color.
Change-Id: Id192ea4d34725abf9ce892bc24e5c8562215f3e3
BUG: 2329568

Signed-off-by: Mike Lockwood <lockwood@android.com>
2010-01-21 11:20:23 -05:00
Mihai Preda
f9623b9e78 MessageCompose: show account name in title.
Bug 2338152.
2010-01-21 14:47:18 +01:00
Andrew Stadler
6605152908 am 346a0cc1: Backup/Restore accounts - bugfix - DO NOT MERGE
Merge commit '346a0cc1e00fcfde05df66eb37433172c96b1c36' into eclair-plus-aosp

* commit '346a0cc1e00fcfde05df66eb37433172c96b1c36':
  Backup/Restore accounts - bugfix - DO NOT MERGE
2010-01-20 18:29:43 -08:00
Andrew Stadler
346a0cc1e0 Backup/Restore accounts - bugfix - DO NOT MERGE
* Followup to 85d765f4
* Workaround for (HTC bug: 2275383) & (Moto bug: 2226582)
* Restores mSyncKey as null instead of empty string, which is how
  a new account is initialized.  Bug: 2385980
* Cleanup synchronized logic in backup & restore
* Minor cleanups & improved comments

Cherry-picked from master d612717340
2010-01-20 17:24:33 -08:00
Andrew Stadler
d612717340 Backup/Restore accounts - bugfix
* Followup to 5e91cccd
* Workaround for (HTC bug: 2275383) & (Moto bug: 2226582)
* Restores mSyncKey as null instead of empty string, which is how
  a new account is initialized.  Bug: 2385980
* Cleanup synchronized logic in backup & restore
* Minor cleanups & improved comments
2010-01-20 16:52:12 -08:00
Andrew Stadler
d3998ebe4e am 85d765f4: Quick backup/restore of accounts DO NOT MERGE
Merge commit '85d765f41c20e6efb3b120055eb4f1efae166e8b' into eclair-plus-aosp

* commit '85d765f41c20e6efb3b120055eb4f1efae166e8b':
  Quick backup/restore of accounts DO NOT MERGE
2010-01-20 11:25:28 -08:00
Andrew Stadler
85d765f41c Quick backup/restore of accounts DO NOT MERGE
* Workaround for (HTC bug 2275383) & (Moto bug 2226582)
* Adds checkpoints for backing up and restoring accounts
* Uses legacy Account / prefs to back up accounts - this is because
  some of this code will be reused for legacy account migration
* Unit tests of Account & LegacyConversions
* Unit tests of backup & restore
* Not done:  testing of EAS/Account Manager interface (this will require
  deeper dependency injection, to avoid the embedded calls to the Account
  Manager and other system services.)

Cherry-picked from master 5e91cccd4b
2010-01-20 11:05:02 -08:00
Andrew Stadler
5e91cccd4b Quick backup/restore of accounts
* Workaround for (HTC bug 2275383) & (Moto bug 2226582)
* Adds checkpoints for backing up and restoring accounts
* Uses legacy Account / prefs to back up accounts - this is because
  some of this code will be reused for legacy account migration
* Unit tests of Account & LegacyConversions
* Unit tests of backup & restore
* Not done:  testing of EAS/Account Manager interface (this will require
  deeper dependency injection, to avoid the embedded calls to the Account
  Manager and other system services.)
2010-01-20 01:36:01 -08:00
Satoshi Kataoka
950f6c65dd Merge "Fix bugs rerated to updateMailboxRefreshTime" 2010-01-19 14:42:26 -08:00
Marc Blank
0b8b68cbeb Fix account creation race condition
* Due to the order in which account creation occurs in the Provider
  and in AccountManager, and the fact that there are data observers
  on each that initiate account reconciliation, a race condition exists
  that can cause either of these accounts to appear to be orphaned,
  and thereby get deleted
* We add an "incomplete" flag to the Account in EmailProvider and
  set/clear it during account creation.  The various reconciliation
  methods will ignore accounts marked as incomplete.

Bug: 2353755
Change-Id: I13fb144dd857f839eb3471b01f271f3a0d4d8159
2010-01-19 13:07:49 -08:00
Marc Blank
74724af62c Fix autodiscover when attempted with Exchange 2003 server
* Make sure 403 error in autodiscover isn't treated as an auth error
  (401 is used for that)
* Make non-auth errors in autodiscover fail silently (and move user
  to manual setup)

Bug: 2374302
Change-Id: I4699bff70cf5ec4a513e6443e4817543c2ab2cef
2010-01-15 15:36:34 -08:00
satok
0f4efcd483 Fix bugs rerated to updateMailboxRefreshTime
BUG: 2131243

- change the parameter updateMailboxRefreshTime in MailboxList
- add updateMailboxRefreshTime to MailboxList
2010-01-16 04:36:11 +09:00
Marc Blank
9d82553b34 Merge "Implement Autodiscover for Exchange servers" 2010-01-13 17:12:26 -08:00
Marc Blank
17da1767e3 Implement Autodiscover for Exchange servers
* Autodiscover allows complete configuration using only email address
  and password
* Code handles the two standard autodiscover addresses and redirect
* Autodiscover process starts when the user chooses "Exchange" as the
  account type.  If the account is created via the AccountManager,
  autodiscover begins upon tapping "Next" for the first time
* If autodiscover fails due to anything other than auth failure for
  autodiscover-capable servers, the user is placed into the standard manual
  configuration screen

Bug: 2366019
Change-Id: I936712b924833d9a133e8da04e11c3ba45d92f92
2010-01-13 17:11:49 -08:00
The Android Open Source Project
271a587f97 android-2.1_r1 snapshot 2010-01-12 15:19:11 -08:00
Makoto Onuki
08f9bfe831 unbundle: Moving DomainNameChecker to android common. 2010-01-11 14:56:54 -08:00
Marc Blank
19423a8ec0 am 80eb4fd0: (-s ours) am d1c56ea1: Ensure protocol version always set in sync services DO NOT MERGE
Merge commit '80eb4fd0fed32800cd0c78e0e26ca0b3d54c7d2b'

* commit '80eb4fd0fed32800cd0c78e0e26ca0b3d54c7d2b':
  Ensure protocol version always set in sync services DO NOT MERGE
2010-01-11 13:00:41 -08:00
Marc Blank
80eb4fd0fe am d1c56ea1: Ensure protocol version always set in sync services DO NOT MERGE
Merge commit 'd1c56ea144fb3e91ad1fdf8bba4c57531ec9cc18' into eclair-plus-aosp

* commit 'd1c56ea144fb3e91ad1fdf8bba4c57531ec9cc18':
  Ensure protocol version always set in sync services DO NOT MERGE
2010-01-10 19:34:21 -08:00
Romain Guy
a4d32a8fec Deprecate fill_parent and introduce match_parent.
Bug: #2361749.
2010-01-08 15:11:47 -08:00
Marc Blank
d1c56ea144 Ensure protocol version always set in sync services DO NOT MERGE
* A recent change caused an issue in which protocolVersion could
  be null, resulting in an NPE
* Ensure that protocolVersion is always set to a valid version,
  defaulting to 2.5

Change-Id: Ifba6c8089fdbd93dffe38ab9895cfd3e994e29d0
Bug: 2353859
2010-01-08 14:34:21 -08:00
Makoto Onuki
63ba69d5d0 Merge "Move stub logging classes to org.apache.james.mime4j" 2010-01-08 10:32:50 -08:00
Eric Fischer
215c710bfb Merge "Update with latest translations." 2010-01-08 10:02:36 -08:00
Marc Blank
0f2e1a8009 Merge "Make sure protocol version is always set in sync services" 2010-01-08 09:20:59 -08:00
Marc Blank
2cb9c55f3b Add new tests for Email sync parsing
Change-Id: Ib3be60b5f439f79f62f62eff607673e34c75506d
2010-01-07 20:27:39 -08:00
Makoto Onuki
a31cb777eb Move stub logging classes to org.apache.james.mime4j 2010-01-07 16:56:43 -08:00
Eric Fischer
0833476c49 Update with latest translations. 2010-01-07 15:57:27 -08:00
Marc Blank
89ab89dd83 Make sure protocol version is always set in sync services
* A recent change caused an issue in which protocolVersion could
  be null, resulting in an NPE
* Ensure that protocolVersion is always set to a valid version,
  defaulting to 2.5

Bug: 2353859
Change-Id: I6e07ba3df5362c988658e401bebc1776a6780876
2010-01-07 11:59:57 -08:00
Makoto Onuki
f06d3c2d90 Merge "Unbundle: Remove the use of internal SSL APIs." 2010-01-07 10:43:03 -08:00
Mihai Preda
6974852b58 Merge "MessageView: fix rename next/prev in landscape." 2010-01-07 02:31:55 -08:00
Mihai Preda
e2ddc55ed0 MessageView: fix rename next/prev in landscape.
Bug 2353633.
2010-01-06 18:09:38 +01:00
Makoto Onuki
fc59359db5 Unbundle: Remove the use of internal SSL APIs.
1. Replaced SSLContextImpl with SSLContext with TLS.  (They're the same, according to crazybob)
2. Copied SSLSocketFactory from org.apache.http.conn.ssl, so that we can use the hidden costructor.  (Which wasn't in the original code -- it was added by the android team, which is why it's hidden.)
2010-01-05 16:57:17 -08:00
Jean-Baptiste Queru
b5a7afaba1 explicit set an "optional" tag 2010-01-05 11:09:51 -08:00
Makoto Onuki
f39e5f38eb Unbundling: Get rid of the reference to the hidden field.
Remove the reference to CursorAdapter.mDataValid.
2010-01-04 17:13:09 -08:00
Marc Blank
86919853f7 am e83d0d64: am bb12286f: Merge change Ie25ac73d into eclair-mr2
Merge commit 'e83d0d640e9964500097571d9dea4993e5609123'

* commit 'e83d0d640e9964500097571d9dea4993e5609123':
  Fix "back key" flow for Email account setup
2009-12-22 11:25:58 -08:00