Clear duration when creating exception

When creating a single-instance exception to a recurring event,
we're expecting to have a DTEND but no DURATION.  We were
neglecting to clear DURATION.

Also, don't act as a sync adapter when creating an exception in
the non-sync-adapter test.

Bug 5116044

Change-Id: I16d4e927cb1876a636ec9d6b0c2736df4a25af23
Correct allowedReminders defaults

This reduces the default set of allowed reminders to {default,alert},
and adds an upgrade step that expands the set to include email when
the calendar is a Google calendar.

Bug 5117661

Change-Id: I094858b16cc1f0ca8bd0aefd48124997079800b3
Test null projections

This adds a test that issues various queries with null projections
to confirm that the database structure matches expectations.

This also fixes the Reminders projection.

Bug 4878015

Change-Id: I1acdd35699d0132eadec3b13abe8011449f764d5
Comment out failing assert

The test is failing, but it's not something we're going to fix for
this release, so we don't want it throwing exceptions in CTS.

Bug 2361048

Change-Id: I5a8336836cd4805438e8b3585cdbee244b8e88b9
Reconcile with gingerbread-release gingerbread-mr4-release

Change-Id: I8e15abd3f33eecd285c108257dd4d89ee6b1423f
Merge "Comment out failing assert"
Merge "Test null projections"
Move Calendar provider tests to CTS

The CalendarCts tests now live in CTS.

Bug 2361048

Change-Id: Id25e0fbd4f08b3679b18a45729ea820cb2fd7231
Fix backfill of _sync_id

If we receive an exception to a recurring event before we receive
the event, we back-fill the originalSyncId when the event finally
arrives.  The sql command that did this wasn't specifying the
calendar, which caused problems when different calendars had
(unrelated) events with identical _sync_ids.

Bug 5137544

Change-Id: I63d1eb4f531aa59044c93418e0c6d4828918b156
Don't reject updates to malformed events

We want to prevent apps from inserting bad data into the database,
but we need to be a bit more lenient when the bad data is already
present.  When processing an update, we now only validate the merged
data if the original event looks okay.

Bug 5173841

Change-Id: Id5ec755eb0d8ef6e96a9d67857b4c5dbb2ef4741
Update provider for EMMA from CTS

The provider now accepts a "secret" request to dump EMMA coverage
data.

The commands in tests/EMMA_README were updated for the new world
order, in which the tests live in CTS rather than being one with
the provider itself.  This also converts the commands from direct
execution to a shell function, and adds a second function that can
be used to de-EMMA the provider.

Bug 2361048

Change-Id: I38b494cc65a15523207f95d2e622756cc393b665
Remove testEntityQuery

An equivalent test now lives in CTS.  The test here makes some
assumptions about event IDs that are not valid with autoincrement,
so I'm just removing it.

Bug 5086664

Change-Id: I6a56152ca8c5d45d246ad5affbba03848db3dc63
Handle onAccountsUpdated off the main thread

The AccountManager is posting onAccountsUpdated to the main thread.
We want to handle it on a separate thread.

Bug 5103871

Change-Id: Ieda5651b0dabd19cc97394ae2a690ca2be237b9a
Import revised translations.

Change-Id: If855d88fc59c5705ce8460fe71aa873b05c619fb
Merge "Import revised translations."
Add boot message when upgrading database.

Change-Id: I33c880714f6e3da4a726d8890a64944f9e8953ba
Import revised translations.

Change-Id: I58a553673d3e1fbeef77eb261c3ea238c0fef42e
Set android:exported="false" on some entries

Reduce the visibility of some intents.

Bug 2761308

Change-Id: I5a3a6143e44d8a9bbdf07c44f34e4745c594816c
Import revised translations.

Change-Id: I4f0a70c1978457479a1fe0fa62f6041d00838f77
Import revised translations.

Change-Id: I01f5dfccf2642a1424e13d587b47d4c5c8f1015d