Commit Graph

2788 Commits

Author SHA1 Message Date
Marc Blank 422ceb0efd Merge "Don't enable calendar sync if sync_events is disabled" into froyo 2010-04-27 11:59:33 -07:00
Marc Blank f62f4afff1 Don't enable calendar sync if sync_events is disabled
* When SyncManager starts up, it reconciles the AccountManager sync settings
  with its own
* This works for Contacts, but Calendar has a second setting that needs to be
  checked - the sync_events column in the Calendar table (in CalendarProvider2)
* Before turning on Calendar sync, we now check this second setting; if
  sync_events is 0, we won't re-enable Calendar sync

Bug: 2619755
Change-Id: Iea6c99dce228d2c111a529a6c9b865ed1577b19e
2010-04-26 13:25:48 -07:00
Marc Blank 6b594cc97b am a238577c: am d718abd3: am b62cbc7e: Increase service call timeout to 45 seconds 2010-04-26 11:20:02 -07:00
Marc Blank 3c39402e4a am f714fcc9: am cebb801a: am da71abeb: Improve sync thread alerting mechanism 2010-04-26 11:19:59 -07:00
Marc Blank abd581582c am 7d1f082c: am 17733f22: am 0f686768: Merge "Fix upsync of DAILY rrule with UNTIL" into froyo 2010-04-26 11:19:55 -07:00
Marc Blank 90e69be84a am c5fb4298: am aaa9c6a4: am d8d3719f: Tweak NAT timeout behavior 2010-04-26 11:19:53 -07:00
Marc Blank a238577cb7 am d718abd3: am b62cbc7e: Increase service call timeout to 45 seconds
Merge commit 'd718abd38c12a902b85ba6341c4eda1c778d68b7' into kraken

* commit 'd718abd38c12a902b85ba6341c4eda1c778d68b7':
  Increase service call timeout to 45 seconds
2010-04-26 11:10:23 -07:00
Marc Blank f714fcc952 am cebb801a: am da71abeb: Improve sync thread alerting mechanism
Merge commit 'cebb801ace0f2622430df88758485e6509f5fbf6' into kraken

* commit 'cebb801ace0f2622430df88758485e6509f5fbf6':
  Improve sync thread alerting mechanism
2010-04-26 11:10:21 -07:00
Marc Blank 7d1f082c5a am 17733f22: am 0f686768: Merge "Fix upsync of DAILY rrule with UNTIL" into froyo
Merge commit '17733f228ec131900acd7e5ff883bb0150025c42' into kraken

* commit '17733f228ec131900acd7e5ff883bb0150025c42':
  Fix upsync of DAILY rrule with UNTIL
2010-04-26 11:10:19 -07:00
Marc Blank c5fb42984e am aaa9c6a4: am d8d3719f: Tweak NAT timeout behavior
Merge commit 'aaa9c6a4d18c07bd36cb259bc6031b360586baba' into kraken

* commit 'aaa9c6a4d18c07bd36cb259bc6031b360586baba':
  Tweak NAT timeout behavior
2010-04-26 11:10:16 -07:00
Marc Blank 52ab04a805 am ad7060ae: am f1fa44bd: am 2f1ce56f: Merge "Fix upload/download of attendee status" into froyo 2010-04-26 10:11:52 -07:00
Marc Blank 9d0fa303c8 am 5b25478b: am b11ea045: am 7cb5e144: Merge "Add checks for null in SyncManager" into froyo 2010-04-26 10:11:43 -07:00
Marc Blank d718abd38c am b62cbc7e: Increase service call timeout to 45 seconds
Merge commit 'b62cbc7e7b82739c307b5cb3175bbfff5f549295' into froyo-plus-aosp

* commit 'b62cbc7e7b82739c307b5cb3175bbfff5f549295':
  Increase service call timeout to 45 seconds
2010-04-26 10:08:21 -07:00
Marc Blank cebb801ace am da71abeb: Improve sync thread alerting mechanism
Merge commit 'da71abeb8f0b0bce9de837d6614bcbc8ad7a39c6' into froyo-plus-aosp

* commit 'da71abeb8f0b0bce9de837d6614bcbc8ad7a39c6':
  Improve sync thread alerting mechanism
2010-04-26 10:08:12 -07:00
Marc Blank 17733f228e am 0f686768: Merge "Fix upsync of DAILY rrule with UNTIL" into froyo
Merge commit '0f68676828d1f66c7997a0457f1c6536e661658f' into froyo-plus-aosp

* commit '0f68676828d1f66c7997a0457f1c6536e661658f':
  Fix upsync of DAILY rrule with UNTIL
2010-04-26 10:08:10 -07:00
Marc Blank aaa9c6a4d1 am d8d3719f: Tweak NAT timeout behavior
Merge commit 'd8d3719f34fa2dde9312d3156f7eccfe0fef0584' into froyo-plus-aosp

* commit 'd8d3719f34fa2dde9312d3156f7eccfe0fef0584':
  Tweak NAT timeout behavior
2010-04-26 10:08:00 -07:00
Marc Blank b62cbc7e7b Increase service call timeout to 45 seconds
Bug: 2627273
Change-Id: I971aa271cfc03e669e72f7871856cb9cfc10aa14
2010-04-26 08:14:01 -07:00
Marc Blank da71abeb8f Improve sync thread alerting mechanism
* When a sync thread triggers an alarm by failing to return from
  an HttpPost beyond the socket timeout, we call abort() on the
  HttpPost to force it to stop
* It appears that there are cases in which this is insufficient,
  and the thread remains hung in a blocked state
* The result of this failure is to prevent the syncing mailbox from
  ever syncing again, and is typically seen by a failure to receive
  new mail (as reported in the referenced bug)
* In this CL, we add code to wait for 10 seconds after calling the
  abort() method.  If the HttpPost is still hung, we interrupt() the
  thread, and have SyncManager release the Mailbox, so that another
  thread can be started.

Bug: 2615293
Change-Id: I6a48195fc68bb950126006326a5b30448d3bbb63
2010-04-26 07:06:56 -07:00
Marc Blank 0f68676828 Merge "Fix upsync of DAILY rrule with UNTIL" into froyo 2010-04-25 20:27:54 -07:00
Marc Blank 47d124e4a1 Fix upsync of DAILY rrule with UNTIL
* Make sure we send UNTIL with FREQ=DAILY as appropriate
* Also to help debug this in the future...
    Add logging capability to utilities via SyncManager
    Add public log methods so that CalendarUtilities can log properly
    Change Log.d's to SyncManager.log in CalendarUtilities

Bug: 2623787
Change-Id: I3d651f00a3f7522e25c8d6e389469770c733953f
2010-04-24 13:05:16 -07:00
Marc Blank d8d3719f34 Tweak NAT timeout behavior
* Change "broken pipe" behavior to simply run through the ping loop
  again, rather than be treated as a NAT timeout

Bug: 2615293
Change-Id: I67c3200f148a8c2beda58f812c29af8a726a4b9c
2010-04-24 10:39:06 -07:00
Marc Blank ad7060ae18 am f1fa44bd: am 2f1ce56f: Merge "Fix upload/download of attendee status" into froyo
Merge commit 'f1fa44bdc064a6c01813c5380839b90bd0290d46' into kraken

* commit 'f1fa44bdc064a6c01813c5380839b90bd0290d46':
  Fix upload/download of attendee status
2010-04-23 17:27:10 -07:00
Marc Blank 5b25478b0c am b11ea045: am 7cb5e144: Merge "Add checks for null in SyncManager" into froyo
Merge commit 'b11ea045e994d80c49d0a80ca08582554a1c5823' into kraken

* commit 'b11ea045e994d80c49d0a80ca08582554a1c5823':
  Add checks for null in SyncManager
2010-04-23 17:24:37 -07:00
Marc Blank f1fa44bdc0 am 2f1ce56f: Merge "Fix upload/download of attendee status" into froyo
Merge commit '2f1ce56fc85e8dc7052dc16f58d00bf19b2a9bee' into froyo-plus-aosp

* commit '2f1ce56fc85e8dc7052dc16f58d00bf19b2a9bee':
  Fix upload/download of attendee status
2010-04-23 17:24:20 -07:00
Marc Blank b11ea045e9 am 7cb5e144: Merge "Add checks for null in SyncManager" into froyo
Merge commit '7cb5e144e746b5310d8f9facc24ab992f1a2a67c' into froyo-plus-aosp

* commit '7cb5e144e746b5310d8f9facc24ab992f1a2a67c':
  Add checks for null in SyncManager
2010-04-23 17:21:46 -07:00
Marc Blank 2f1ce56fc8 Merge "Fix upload/download of attendee status" into froyo 2010-04-23 17:21:41 -07:00
Marc Blank 7cb5e144e7 Merge "Add checks for null in SyncManager" into froyo 2010-04-23 17:19:32 -07:00
Andrew Stadler 5f1fdc2111 am f6e5f6e3: am da0fb178: am 5ac8a35c: Merge "Fix uncommanded exit from MessageList with 2+ accounts" into froyo 2010-04-23 13:41:34 -07:00
Andrew Stadler f6e5f6e395 am da0fb178: am 5ac8a35c: Merge "Fix uncommanded exit from MessageList with 2+ accounts" into froyo
Merge commit 'da0fb1784c7675841cd64cb7c19020491667872f' into kraken

* commit 'da0fb1784c7675841cd64cb7c19020491667872f':
  Fix uncommanded exit from MessageList with 2+ accounts
2010-04-23 13:36:09 -07:00
Andrew Stadler da0fb1784c am 5ac8a35c: Merge "Fix uncommanded exit from MessageList with 2+ accounts" into froyo
Merge commit '5ac8a35c4290d9e3ce22eb28341214189a40fc6c' into froyo-plus-aosp

* commit '5ac8a35c4290d9e3ce22eb28341214189a40fc6c':
  Fix uncommanded exit from MessageList with 2+ accounts
2010-04-23 13:34:23 -07:00
Andrew Stadler 5ac8a35c42 Merge "Fix uncommanded exit from MessageList with 2+ accounts" into froyo 2010-04-23 13:30:48 -07:00
Marc Blank e06a6dae37 am 169e3378: am 819de68b: am de3ae172: Merge "Add additional test for likely NAT timeout" into froyo 2010-04-23 12:56:17 -07:00
Marc Blank 169e33789b am 819de68b: am de3ae172: Merge "Add additional test for likely NAT timeout" into froyo
Merge commit '819de68b01ec9f8d44e4fa1e16bf4900abf90b16' into kraken

* commit '819de68b01ec9f8d44e4fa1e16bf4900abf90b16':
  Add additional test for likely NAT timeout
2010-04-23 12:49:23 -07:00
Marc Blank 819de68b01 am de3ae172: Merge "Add additional test for likely NAT timeout" into froyo
Merge commit 'de3ae17246bc011eff61e18ee1013e146ec53a3d' into froyo-plus-aosp

* commit 'de3ae17246bc011eff61e18ee1013e146ec53a3d':
  Add additional test for likely NAT timeout
2010-04-23 12:45:55 -07:00
Marc Blank de3ae17246 Merge "Add additional test for likely NAT timeout" into froyo 2010-04-23 12:42:30 -07:00
Andrew Stadler 88fb7f7cd0 Fix uncommanded exit from MessageList with 2+ accounts
* When you have 2 or more accounts configured, MessageList gets confused.
* If you are viewing a mailbox from account A, and account B does a
  background sync, MessageList gets confused by the reports coming back
  from the Controller.  It gives up and returns to the Accounts list.
* This change adds a check for the current account and ignores the
  MessageList updates if we weren't actually waiting for them.
* To test the positive case for this code (make sure we didn't break it),
  verify that the inbox on an IMAP account is displayed properly
  immediately after you add it.

Bug: 2619513
Change-Id: Ib31254b4099ba6b7922b06d42e2b7928551e4fb2
2010-04-23 12:17:43 -07:00
Marc Blank bc27894815 Add additional test for likely NAT timeout
* This prevents unnecessary delays in receiving push mail
* At present, there is a likely 5 minute delay on receiving new pushed
  mail on the network displaying the behavior we're testing for

Bug: 2615293
Change-Id: Ic42e576fa683790f96434fcbad5ee873d0730f6d
2010-04-23 10:53:21 -07:00
Marc Blank 8a19af3739 Fix upload/download of attendee status
* It turns out that the UI uses selfAttendeeStatus and the attendee's status
  from the Attendees table in confusing and undocumented ways
* selfAttendeeStatus is used in the UI, but only in certain cases. Generally speaking,
  the Attendees table status is definitive.  However, when the user sets his status
  from the UI, this data is reflected in the event's selfAttendeeStatus, since for EAS,
  the user is always the owner of his calendar
* On downsync,  we'll put the user's busy status into the Attendees table
* On upsync, we'll send busy status based on the user's attendee status in the
  Attendees table
* We'll use selfAttendeeStatus only to determine whether the user has manually changed
  his status via the UI (as before)

Bug: 2615586
Change-Id: I3a82474cfd07cbf5aa595e5214807cb55005cefa
2010-04-23 09:07:53 -07:00
Marc Blank f44b9440d8 Add checks for null in SyncManager
Bug: 2619723
Change-Id: Iea3c3258274bdf86784e232922290841ad0d9d36
2010-04-22 17:43:30 -07:00
Makoto Onuki 92db71e440 Merge "Send local IP address with EHLO instead of "localhost"." 2010-04-22 14:23:46 -07:00
Makoto Onuki 967786d80b am 3844bbca: am 2ca8d734: am 6cfa8001: Merge "Fix failing unit tests" into froyo 2010-04-22 13:36:21 -07:00
Marc Blank cb4288aca4 am 0acd7e9c: am d764ce7e: am 1880ad6a: Send correct busy status information in upsyncs to EAS 2010-04-22 13:36:19 -07:00
Makoto Onuki 3844bbcaaf am 2ca8d734: am 6cfa8001: Merge "Fix failing unit tests" into froyo
Merge commit '2ca8d7347db3975746ad87347de57fd5800bf5d4' into kraken

* commit '2ca8d7347db3975746ad87347de57fd5800bf5d4':
  Fix failing unit tests
2010-04-22 13:24:40 -07:00
Marc Blank 0acd7e9c77 am d764ce7e: am 1880ad6a: Send correct busy status information in upsyncs to EAS
Merge commit 'd764ce7e4442b0027a891582cbdd728487a49f97' into kraken

* commit 'd764ce7e4442b0027a891582cbdd728487a49f97':
  Send correct busy status information in upsyncs to EAS
2010-04-22 13:23:55 -07:00
Makoto Onuki f4dac9f266 Send local IP address with EHLO instead of "localhost".
Bug 1515345

Change-Id: I181c9f0d79fbdf62f7df77f72a1ec9653797b6dd
2010-04-22 11:23:08 -07:00
Makoto Onuki 2ca8d7347d am 6cfa8001: Merge "Fix failing unit tests" into froyo
Merge commit '6cfa8001a8f352fa2a51925c7552f772796d9cd1' into froyo-plus-aosp

* commit '6cfa8001a8f352fa2a51925c7552f772796d9cd1':
  Fix failing unit tests
2010-04-22 09:53:58 -07:00
Makoto Onuki 6cfa8001a8 Merge "Fix failing unit tests" into froyo 2010-04-22 09:51:21 -07:00
Makoto Onuki 25d55ed266 Fix failing unit tests
Bug 2614782

Change-Id: I7ed7bf61a567429017f64d9049577ec076331bb2
2010-04-22 09:18:42 -07:00
Marc Blank d764ce7e44 am 1880ad6a: Send correct busy status information in upsyncs to EAS
Merge commit '1880ad6a83120b89ed239858d27d3e63242160e6' into froyo-plus-aosp

* commit '1880ad6a83120b89ed239858d27d3e63242160e6':
  Send correct busy status information in upsyncs to EAS
2010-04-21 23:00:56 -07:00
Andrew Stadler 5e2b2dfc58 am d729ff89: am 151b9aa8: am 5d5d7854: Harden UpgradeAccounts against runtime errors (e.g. NPE) 2010-04-21 18:27:56 -07:00