Commit Graph

2547 Commits

Author SHA1 Message Date
Andy Stadler
8fd23c5b49 am 48d2621b: Merge "Fix GAL lookup issue" into froyo
Merge commit '48d2621b453a18a99b4975c013e5edb97e7a5f64' into froyo-plus-aosp

* commit '48d2621b453a18a99b4975c013e5edb97e7a5f64':
  Fix GAL lookup issue
2010-05-03 09:31:50 -07:00
Andrew Stadler
7cdd6899fb am a7628f3b: Merge "Better handling for untyped attachments" into froyo
Merge commit 'a7628f3bc05ef349ec6d9588e130126eb1c240a1' into froyo-plus-aosp

* commit 'a7628f3bc05ef349ec6d9588e130126eb1c240a1':
  Better handling for untyped attachments
2010-05-03 09:31:48 -07:00
Makoto Onuki
a094cc259d am cf362a48: Collectly preserve the service start-id.
Merge commit 'cf362a48c14ab3ebae55e9735f9cff6e77a4042a' into froyo-plus-aosp

* commit 'cf362a48c14ab3ebae55e9735f9cff6e77a4042a':
  Collectly preserve the service start-id.
2010-05-03 09:31:45 -07:00
Andy Stadler
48d2621b45 Merge "Fix GAL lookup issue" into froyo 2010-05-03 07:25:15 -07:00
Andrew Stadler
a7628f3bc0 Merge "Better handling for untyped attachments" into froyo 2010-05-03 07:22:00 -07:00
Marc Blank
cb7ac76f0b Fix GAL lookup issue
Bug: 2646410
Change-Id: I52b0ddf4b7c6b56b3ad060d8d42a6080efa3662b
2010-05-02 13:51:35 -07:00
Andrew Stadler
80ebde2897 Better handling for untyped attachments
* IMAP/POP rely on sender to set mime type of attachments
* Which doesn't always work, because senders don't always provide it
* Remap using filename extensions, when needed
* This is applied as late as possible - in the MessageView, and in
  the content provider getType().  No changes to how we write databases,
  and no change to existing attachment rows.

Bug: 2356638
Change-Id: Ie69e3fd12f406aac803583f9d1299a8af4fba010
2010-04-30 15:01:10 -07:00
Makoto Onuki
cf362a48c1 Collectly preserve the service start-id.
We were passing the wrong arguments, which caused the service left running.

Bug 2646212

Change-Id: Ie5aeaeb80635c8e805fc2e9c6f4aec3b21942740
2010-04-30 14:41:47 -07:00
Andrew Stadler
01cc30c9d8 am 14812a50: Workaround for IllegalArgumentException in SyncManager
Merge commit '14812a50a8cacd1166cd2b0d0be0bf2bbeec662c' into froyo-plus-aosp

* commit '14812a50a8cacd1166cd2b0d0be0bf2bbeec662c':
  Workaround for IllegalArgumentException in SyncManager
2010-04-30 12:44:11 -07:00
Andrew Stadler
14812a50a8 Workaround for IllegalArgumentException in SyncManager
* There is a race condition in which the AccountManager listener
  isn't properly unregistered when SyncManager is shut down
* In this case, SyncManager tries to register a new listener
  (i.e. registering again), which causes an IllegalArgumentException
* The quick workaround is simply to catch and ignore this exception,
  as it's really more of a warning than a true error
* A bug will be filed for the underlying issue

Bug: 2631561
Change-Id: I139d24ae045d402d4d8cb006406ef96ccc768566
2010-04-30 12:39:08 -07:00
Marc Blank
3f0d3a437d am 47a59d88: Merge "Fix issues with incorrect email replies to event organizer" into froyo
Merge commit '47a59d883ff64db9bfe29d65cf7851c68b17a5af' into froyo-plus-aosp

* commit '47a59d883ff64db9bfe29d65cf7851c68b17a5af':
  Fix issues with incorrect email replies to event organizer
2010-04-30 12:05:45 -07:00
Marc Blank
47a59d883f Merge "Fix issues with incorrect email replies to event organizer" into froyo 2010-04-30 12:04:34 -07:00
Marc Blank
c9f923959e am 468fe91d: Prevent account reconcile from running when service is down
Merge commit '468fe91dd8d3f7c35a2ecd4187dcc38c2e5ad1cc' into froyo-plus-aosp

* commit '468fe91dd8d3f7c35a2ecd4187dcc38c2e5ad1cc':
  Prevent account reconcile from running when service is down
2010-04-30 11:54:10 -07:00
Marc Blank
468fe91dd8 Prevent account reconcile from running when service is down
Bug: 2644142
Change-Id: Ia6ccf7371bc08b3b67ab3d0871f3618c5e5bd107
2010-04-30 11:43:40 -07:00
Marc Blank
79ace45187 am 09f0ab04: Merge "Fix NPE in SyncManager" into froyo
Merge commit '09f0ab0454ee59170025337b786dd7cf8837d2ed' into froyo-plus-aosp

* commit '09f0ab0454ee59170025337b786dd7cf8837d2ed':
  Fix NPE in SyncManager
2010-04-30 11:22:57 -07:00
Makoto Onuki
4a1565fd7e am 5ab7ec71: Move a bare string to a resource.
Merge commit '5ab7ec7123b5aa6bc9f8fd7e59d2cdf27d716ef5' into froyo-plus-aosp

* commit '5ab7ec7123b5aa6bc9f8fd7e59d2cdf27d716ef5':
  Move a bare string to a resource.
2010-04-30 11:22:55 -07:00
Marc Blank
d2c773a806 Fix issues with incorrect email replies to event organizer
* We were previously storing the user's attendee status in the
  SYNC_ADAPTER_DATA column of the Event, but it turns out that
  this data isn't available in the Entity we retrieve when
  uploading changes to the server
* The result is that we often thought the user's status had
  changed when in fact it had not; in these cases, we sent email
  to the organizer, often with the wrong information.
* As of this CL, we store the user's attendee status in an
  ExtendedProperties row (these values are already exposed in event
  entities)
* The logic otherwise remains the same; we now get correct data,
  however

Bug: 2638762
Change-Id: Ibe8db90c16b4ca06203f77fd010aa26dde89a556
2010-04-30 10:52:18 -07:00
Marc Blank
09f0ab0454 Merge "Fix NPE in SyncManager" into froyo 2010-04-30 10:39:30 -07:00
Makoto Onuki
5ab7ec7123 Move a bare string to a resource.
Bug 2637666

Change-Id: I59cf5d2b30846604049d3f988b1003dd7d91ad6f
2010-04-30 09:21:04 -07:00
Marc Blank
3139d43ee2 Fix NPE in SyncManager
Bug: 2644142
Change-Id: I4336aef65669b7a4a32e43e8068edd4dd9772b03
2010-04-29 20:41:07 -07:00
Marc Blank
44ae6d2fa2 am f2d43c39: Merge "Update unit tests for invitation creation" into froyo
Merge commit 'f2d43c39b4f46d560b5f9d331dd238be63abfcf2' into froyo-plus-aosp

* commit 'f2d43c39b4f46d560b5f9d331dd238be63abfcf2':
  Update unit tests for invitation creation
2010-04-29 20:23:57 -07:00
Marc Blank
f2d43c39b4 Merge "Update unit tests for invitation creation" into froyo 2010-04-29 20:19:07 -07:00
Kenny Root
91a800708a am 3cc3b89f: Import revised translations
Merge commit '3cc3b89fc458fbd2adfcba94b6eded0311e68022' into froyo-plus-aosp

* commit '3cc3b89fc458fbd2adfcba94b6eded0311e68022':
  Import revised translations
2010-04-29 15:43:23 -07:00
Kenny Root
3cc3b89fc4 Import revised translations
Change-Id: I1586d45f93b08b55010c3136ceacd798aab3df6b
2010-04-29 15:40:54 -07:00
Marc Blank
9294d8c030 Update unit tests for invitation creation
* Tests changed/added for exception/recurrence changes in CL50201

Bug: 2640878
Change-Id: I97e5557c198aa686d1705158f2c9087c1683590e
2010-04-29 11:03:37 -07:00
Marc Blank
220d910753 am 8ba07285: Use timezone in exception ics files
Merge commit '8ba07285336c34a1fa454b23c9d4c95af020fa00' into froyo-plus-aosp

* commit '8ba07285336c34a1fa454b23c9d4c95af020fa00':
  Use timezone in exception ics files
2010-04-29 10:48:39 -07:00
Marc Blank
8ba0728533 Use timezone in exception ics files
* Exchange seems to require time zone information in ics files containing
  event exceptions, although this is NOT the case for iCalendar, and appears
  not to conform to VCALENDAR specifications
* This causes exceptions to be placed on the wrong date or perhaps even
  ignored, depending on the circumstance
* This CL simply adds time zone information to all exception ics files

Bug: 2640878
Change-Id: Ibc614eb7a2c45e9e782b10be979d9892bbfc0029
2010-04-29 10:16:58 -07:00
Marc Blank
0d46f9f87c am 39e6d3ae: Fix concurrent modification exception
Merge commit '39e6d3aed05571a1200ea1983bd6db409e2ed2b7' into froyo-plus-aosp

* commit '39e6d3aed05571a1200ea1983bd6db409e2ed2b7':
  Fix concurrent modification exception
2010-04-29 09:28:51 -07:00
Marc Blank
39e6d3aed0 Fix concurrent modification exception
* Synchronize recently added call to releaseMailbox on sSyncLock

Bug: 2639210
Change-Id: Iaa1f2ed7cdc9cc0c306363487095ac5ccd02f9a3
2010-04-28 22:49:23 -07:00
Marc Blank
8048f0fef8 am 8917e52d: Fix regression that prevents calendar sync w/ new accounts
Merge commit '8917e52db0a872dc6438f0055669d2393febfbb7' into froyo-plus-aosp

* commit '8917e52db0a872dc6438f0055669d2393febfbb7':
  Fix regression that prevents calendar sync w/ new accounts
2010-04-28 17:21:08 -07:00
Marc Blank
8917e52db0 Fix regression that prevents calendar sync w/ new accounts
* The regression is caused by a check on whether the calendar is
  syncable, as determined by the status of the Calendar (via
  CalendarProvider2).
* Unfortunately, if there IS no calendar, we were disallowing sync,
  which prevents the calendar from being created in the first place

Bug: 2619755
Change-Id: I1e94a129413bdbe9bc9bfb3608d3ca95f23d8dfb
2010-04-28 15:27:11 -07:00
Marc Blank
7e8315c018 am b7f57f25: Remove STOPSHIP debug code
Merge commit 'b7f57f25ea0baa3b111dafca3a96f532a12fac97' into froyo-plus-aosp

* commit 'b7f57f25ea0baa3b111dafca3a96f532a12fac97':
  Remove STOPSHIP debug code
2010-04-28 09:58:47 -07:00
Marc Blank
b7f57f25ea Remove STOPSHIP debug code
Bug: 2638014
Change-Id: I10a7ac89cce68ae1db146eb9bed574c00386ba62
2010-04-28 09:48:40 -07:00
Marc Blank
773dc43cc2 am b5bf09a5: Merge "Allow more time for HttpPost watchdog timeout" into froyo
Merge commit 'b5bf09a56d30885f985950faa1daa18e8899c32e' into froyo-plus-aosp

* commit 'b5bf09a56d30885f985950faa1daa18e8899c32e':
  Allow more time for HttpPost watchdog timeout
2010-04-28 09:32:24 -07:00
Marc Blank
8ed23be08f am f7369ad5: Merge "Shutdown all connections when sync service is hung" into froyo
Merge commit 'f7369ad51f0eb2c231715975de13e4af37c58eb4' into froyo-plus-aosp

* commit 'f7369ad51f0eb2c231715975de13e4af37c58eb4':
  Shutdown all connections when sync service is hung
2010-04-28 09:32:21 -07:00
Andy Stadler
78d3c6022c am b915c3c0: Merge "Skip security check when account id is unknown." into froyo
Merge commit 'b915c3c018c8c4ba063514c3bd9ce05d3f08aa93' into froyo-plus-aosp

* commit 'b915c3c018c8c4ba063514c3bd9ce05d3f08aa93':
  Skip security check when account id is unknown.
2010-04-28 09:32:10 -07:00
Marc Blank
b5bf09a56d Merge "Allow more time for HttpPost watchdog timeout" into froyo 2010-04-27 23:25:15 -07:00
Marc Blank
f7369ad51f Merge "Shutdown all connections when sync service is hung" into froyo 2010-04-27 23:17:41 -07:00
Marc Blank
8f9e872eaf Allow more time for HttpPost watchdog timeout
* The current timeout is triggering more often than it should, which
  causes delays and inefficiency.  Increase it from 10 to 30 seconds.

Bug: 2615293
Change-Id: I54b74cc7ad9f1c8286af49b957584670c071640c
2010-04-27 23:13:32 -07:00
Marc Blank
2341e096e6 Shutdown all connections when sync service is hung
* When a sync thread receives an alarm due to a missed socket timeout
  on an HttpPost, we try to abort the HttpPost.
* At times, however, the HttpPost cannot be aborted and the thread
  hangs indefinitely.
* In this CL, we try to break this vicious cycle by shutting down our
  ClientConnectionManager when this case is detected.  This should, in
  turn, close all of our socket connections, causing the sync threads
  to generate IOExceptions and terminate.
* After appropriate IOException waits, new sync threads should then be
  able to run normally.

Bug: 2615293
Change-Id: Idea6c3653cd60822d6260e0c5a7dad790ee25858
2010-04-27 22:49:50 -07:00
Andy Stadler
b915c3c018 Merge "Skip security check when account id is unknown." into froyo 2010-04-27 22:21:00 -07:00
Makoto Onuki
e333b68c9e Skip security check when account id is unknown.
Doing the check caused:
   IllegalArgumentException: Unknown URI content://com.android.email.provider/account/-1
       at com.android.email.provider.EmailProvider.query(EmailProvider.java:1092)
       at android.content.ContentProvider$Transport.query(ContentProvider.java:163)
       at android.content.ContentResolver.query(ContentResolver.java:245)
       at com.android.email.activity.MessageList.isSecurityHold(MessageList.java:1146)

Bug 2635060

Change-Id: I80e7c00ef2dd74ceae24a88daf43a0681124a9d4
2010-04-27 17:28:39 -07:00
Kenny Root
5a705d632a am 4713110b: Merge "Import revised translations" into froyo
Merge commit '4713110b02195dbe5cba41d012a0a432f8460c55' into froyo-plus-aosp

* commit '4713110b02195dbe5cba41d012a0a432f8460c55':
  Import revised translations
2010-04-27 15:26:15 -07:00
Kenny Root
4713110b02 Merge "Import revised translations" into froyo 2010-04-27 15:23:51 -07:00
Kenny Root
178e51fcd8 Import revised translations
Change-Id: Ic6ff953da67dceea3631416546fa44e9b0949ae6
2010-04-27 13:35:56 -07:00
Marc Blank
29270f3823 am 422ceb0e: Merge "Don\'t enable calendar sync if sync_events is disabled" into froyo
Merge commit '422ceb0efd3d1605e6a9d8b25f408cbdd85bfc15' into froyo-plus-aosp

* commit '422ceb0efd3d1605e6a9d8b25f408cbdd85bfc15':
  Don't enable calendar sync if sync_events is disabled
2010-04-27 12:03:02 -07:00
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
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