Commit Graph

6953 Commits

Author SHA1 Message Date
Marc Blank
8d8f6918c7 Use 5 minute ping time when connected via mobile (prevent NAT timeout) 2009-08-11 13:44:35 -07:00
Marc Blank
84cb2bcd59 Change PIM fallback sync to 30 mins; try ping again if changes are found 2009-08-11 09:52:27 -07:00
Marc Blank
72c62e4d33 Make verbose logging less verbose; add exception message to logging 2009-08-11 09:15:12 -07:00
satok
5c6d8ed70d Show folder icon left of mailbox list See bug 2028384 2009-08-11 13:08:48 +09:00
Marc Blank
bd4d30f522 Push fallback per mailbox, rather than for entire account
* Also cleanup code, add comments, remove unused methods
2009-08-10 17:05:31 -07:00
Marc Blank
9d3f4abd97 Delete rows that are unused when changes are synced down 2009-08-10 11:11:21 -07:00
Marc Blank
cc402e42ab Clear error states on network reconnect; add temporary notifications; see details
* When we get a network connect broadcast, clear error states so sync can
  restart for any boxes in an error state
* Add temporary notification code for the testers
* Add file-based debug logger
* Add Exchange logging to debug screen (adds additional exchange debugging)
* Add Exchange sd card logging to debug screen (logs to sd card)
* Change setLogging service API to send an int rather than a boolean
* Make sure push mailboxes are set up again when account changes to push
* Make sure push mailboxes are set up again when account mailbox starts
* (Fixed contacts sync bug found during debugging these changes)
2009-08-09 21:20:47 -07:00
Marc Blank
71132ff6b7 Make small changes as recommended by stadler (for CL9459) 2009-08-08 21:23:28 -07:00
Marc Blank
1795efacc5 Use wake locks in running syncs; clean up associated code 2009-08-08 18:59:33 -07:00
Marc Blank
1e7829fb65 Switch from HttpURLConnection to HttpClient 2009-08-08 13:33:41 -07:00
Marc Blank
fc579d4477 Refactor, cleanup, and fix sync bugs
* Found/fixed major sync bug re: first-time sync (emulator only)
* Moved deviceId code to SyncManager
* Added code to handle some edge cases related to sync errors
2009-08-07 22:29:15 -07:00
Marc Blank
b9d6ba11c7 Fix various problems related to synchronization, reload folder list, etc.
* The reloadFolderList service call mustn't reset the account mailbox if the foler
  list has never synced
* Be careful to not commit anything after a mailbox has been stopped
* Be careful to synchronize before checking the stopped state of a mailbox
2009-08-07 12:17:23 -07:00
Marc Blank
9b598924ec Try to work around the "ping loop" problem in some Exchange 2003 servers
* First try reloading the folder list; this can sometimes work
* Otherwise, change push to 5 minute sync
* Send notification if we switch to 5 minute sync so there are no surprises
* Added syncStatus column to EmailProvider (can be used for any purpose)
* Use syncStatus to keep track of sync type, result type, and change count;
  detect ping loop as consecutive ping's with no changes
* Remove InteractiveSyncService (no longer needed)
2009-08-06 20:51:54 -07:00
Android (Google) Code Review
17d86bb529 Merge change 20277
* changes:
  Initial support for Exchange account creation via AccountManager
2009-08-06 12:51:30 -07:00
Marc Blank
06275c4207 Initial support for Exchange account creation via AccountManager
* Export AccountSetupBasics so that it can be launched by AccountManager
* Update EasAuthenticatorService to return an Intent for AccountSetupBasics
* UI needs to be updated to skip account type screen, change welcome, etc.
2009-08-06 12:50:34 -07:00
Mihai Preda
a5af05f1a9 MessageCompose: load body.
- load body for edit-draft, replay, forward.
- fix debug secret code for no-keyboard devices.
- fix CR-LF BUG 1911254.
- fix menu invoke compose from folder with mailboxId < 0.
2009-08-06 11:40:42 +02:00
Android (Google) Code Review
47f1b7a32b Merge change 20084
* changes:
  Change context menu by mailbox type See bug 1399964 for details.
2009-08-05 23:24:57 -07:00
satok
375f968aa5 Change context menu by mailbox type See bug 1399964 for details. 2009-08-06 13:52:23 +09:00
Android (Google) Code Review
6d130d6d6d Merge change 20078
* changes:
  Separate out name and address from EAS contact email fields
2009-08-05 19:57:27 -07:00
Android (Google) Code Review
d65901784a Merge change 20206
* changes:
  Fix EmailProvider so that deletions can occur during batch operations
2009-08-05 19:54:41 -07:00
Marc Blank
cba3a48f97 Fix EmailProvider so that deletions can occur during batch operations
* Fixes bug #2034170
* Attach the body database during all batch operations
* Change insert, delete, update, and query to use the main database for
  all operations during a batch operation; trying to use the body database
  while it is attached will result in a SQLiteException (database locked)
2009-08-05 19:53:20 -07:00
Android (Google) Code Review
b3ceddb1b1 Merge change 20088
* changes:
  Don't show mailboxes with flagVisible=0 See bug 1938449 for details.
2009-08-05 19:22:17 -07:00
satok
bbcb150dee Don't show mailboxes with flagVisible=0 See bug 1938449 for details. 2009-08-06 11:21:26 +09:00
Marc Blank
25c46808c6 Check existence of mWakeLock before releasing it
* Also, unregister connectivity receiver in onDestroy method
2009-08-05 13:03:06 -07:00
Marc Blank
228d422951 Separate out name and address from EAS contact email fields
* Use newly created sync adapter column for name portion
* Fix typo in note upload
2009-08-04 22:51:07 -07:00
Marc Blank
5f25162475 Fix AndroidManifest.xml to have use the renamed EmailSyncAlarmReceiver class 2009-08-04 22:33:32 -07:00
Android (Google) Code Review
86445dfbc9 Merge change 9630
* changes:
  Add support for note and category upload for Contacts
2009-08-04 13:40:11 -07:00
Marc Blank
b4d87dfdd0 Add support for note and category upload for Contacts
* Also fixed a few random bugs found while debugging
2009-08-04 11:06:58 -07:00
Jean-Baptiste Queru
d82ceb192b merge from open-source master 2009-08-04 09:00:28 -07:00
Android (Google) Code Review
d1e7dc68f3 Merge change 9462
* changes:
  Add support for additional EAS contact fields
2009-08-03 20:22:12 -07:00
Marc Blank
b2bd8a8095 Add support for additional EAS contact fields
* Fix a few misc. bugs found while testing
2009-08-03 17:00:05 -07:00
Eric Fischer
c109a7a6ee am 45764fba: (-s ours) Import revised translations. DO NOT MERGE
Merge commit '45764fba5533aa91daa24acfacbaf43c023694a0'

* commit '45764fba5533aa91daa24acfacbaf43c023694a0':
  Import revised translations.  DO NOT MERGE
2009-08-03 16:48:47 -07:00
Eric Fischer
45764fba55 Import revised translations. DO NOT MERGE 2009-08-03 16:24:09 -07:00
Marc Blank
e7e999ee95 Send OPTIONS less frequently; remove extraneous Log command 2009-08-03 10:49:10 -07:00
Mihai Preda
2917e895c7 MessageCompose:
- set displayName for composed messages (from To:)
- set FLAG_LOADED
- do the save & send in an AsyncTask
- some clean-up
2009-08-03 13:04:21 +02:00
Marc Blank
b9f5134672 Fix inadvertent submission with debug flag set 2009-08-03 00:10:49 -07:00
Marc Blank
6696c26da3 Fix bugs related to push & reloading folder list
* Fixed bug #2026451 (updateFolderList isn't interrupting pingLoop)
* Added some logging code related to 'ping' and manual service starts
* Handle exit from stopped sync thread better
* Fixed a bug in ContactsSyncAdapter service in which a cursor didn't
  get properly closed.
2009-08-02 15:35:04 -07:00
Android (Google) Code Review
5b571cf6ba Merge change 9294
* changes:
  Massive reworking of EAS serialization; much smaller and faster now
2009-08-01 18:03:58 -07:00
Marc Blank
f00dccd321 Massive reworking of EAS serialization; much smaller and faster now
* Remove all use of Strings in favor of the parser's static final int's
* Strings remain in Tags for debugging output only
* Renamed lots of classes to be more consistent
* Centralized logging behavior in Eas class
* Found and fixed some bugs in the process:
  - Account deletion wasn't removing HostAuth's correctly in the trigger
  - Adding a second EAS account was trashing the first one
  - Fixed looping sync behavior caused by Exchange 2003 bug
2009-08-01 17:55:15 -07:00
Andrew Stadler
9aced6c76b Add cox.net email addresses to automatic setup list.
http://b/issue?id=1942352
2009-07-31 16:28:03 -07:00
Marc Blank
cc8b35e631 Temporarily force updateFolderList to send start/stop callbacks to UI
* Keep this in place until the related bug is resolved
2009-07-31 11:02:17 -07:00
Andrew Stadler
77898e14e9 Enable logging in EAS based on Email.DEBUG flag. 2009-07-30 21:47:32 -07:00
Marc Blank
59b7da4616 Fix 2026451 (folder list update callback not being made)
* Make sure updateFolderList service call stops the account mailbox sync
* Make sure SyncManager is kicked so that it will restart (and thus do
  a folder list sync)
2009-07-30 21:34:48 -07:00
Andrew Stadler
8f7f93a7b3 Enable account & mailbox sync for exchange
* Now attempts folder list sync for exchange
    (goto folder list and click sync)
* Folder sync never seems to call our callback - bug in EAS side?

* Now attempts mailbox sync
    (go to an EAS mailbox and click sync)

Also:
* Cleanup start/stop/error path for IMAP/POP as well
* Small bugfix in SyncManager.java (was calling wrong callback)
* No longer trying to set mailbox read/unread count in IMAP/POP
2009-07-30 18:48:12 -07:00
Android (Google) Code Review
5dd01e89a4 Merge change 9197
* changes:
  Use providers to update the unreadCount of Mailboxes
2009-07-30 16:23:08 -07:00
Marc Blank
758a532fce Use providers to update the unreadCount of Mailboxes
* Triggers added for insert/delete/update of Message
* update of Mailbox will never set unreadCount
* Removed old test for unread counts and replaced with on
  that tests trigger operation.
* Remove Account.updateUnreadCount (deprecated)
2009-07-30 16:03:31 -07:00
Andrew Stadler
9f9aaeaa3a Updates to AccountFolderList
* Switch to custom list item view
* Make the folder button work right
* Add the "Accounts" separator
* Change top text to "Email"
2009-07-30 15:50:08 -07:00
Marc Blank
85ef72b2ce Add support for the syncMailboxStatus/syncMailboxListStatus callback
* Allows UI to show proper progress indications depending on the status
  of a particular mailbox (running, finished, or error state)
2009-07-30 14:01:09 -07:00
Andrew Stadler
90ed7a4e23 Convert AccountFolderList to flat list
TODO: convert item to custom view
TODO: click on folder icon
TODO: mailbox per-type icons (e.g. inbox, outbox)
TODO: separator between two sections
2009-07-30 10:01:01 -07:00
Marc Blank
948c36f47a Reimplement EAS contacts sync to work w/ new system facilities
* Modify to work with ContactsProvider2
* Modify to work with system AccountManager
* Modify to work with system SyncManager (for triggering user-change syncs)
* Sync server->client for adds/deletes implemented (CP2 doesn't handle delete yet)
* Sync server->client changes handled efficiently (only write changes)
* Some fields still not handled
* Rewrote most of the CPO code to handle server->client changes
* Sync client->server works for supported fields
2009-07-30 09:22:40 -07:00