• Home
  • History
  • Annotate
  • only in /packages/providers/CalendarProvider/src/
History log of /packages/providers/CalendarProvider/src/
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
25b0f0ee070a5fff18cfcaffa86cb1607941c8a5 26-May-2010 Jeff Hamilton <jham@android.com> Add a PRE_BOOT_COMPLETED receiver.

It runs the first time after an OTA and either creates
the database or runs the upgrade path on it. This may
take a significatn amount of time so it's done before
the boot animation completes.

Bug: 2713849
Change-Id: Ie7ac396bd82577cd421daa102ad05c0abf55b6f0
om/android/providers/calendar/CalendarDatabaseHelper.java
om/android/providers/calendar/CalendarUpgradeReceiver.java
om/android/providers/calendar/EventLogTags.logtags
10b51a19b296eac6c43608a7a57fb910b0e5e8bc 28-Apr-2010 Fabrice Di Meglio <fdimeglio@google.com> Fix for bug #2634470 (Force close in FRF26)

- make deleteEventInternal() not launching a thread for checking alarms when used in a batch

Change-Id: I72f8fe9ba1561623732f02bcbfb3d92dd4fde097
om/android/providers/calendar/CalendarProvider2.java
1dc2919361bc56af0c5ea763845fae49d289839a 27-Apr-2010 Fabrice Di Meglio <fdimeglio@google.com> Fix bug #2622128 (Can't delete Exchange event exception)

- use DELETE status during instances expansion

It was previously only checking if the eventStatus was not STATUS_CANCELED for inserting
the instance. Now it should be not DELETED as well.

Change-Id: Ifc870ad5026c9680593e4adf63596852c056b3eb
om/android/providers/calendar/CalendarProvider2.java
34a320093a689fa326c1b2b2b6a26771f0ba7400 13-Apr-2010 Fabrice Di Meglio <fdimeglio@google.com> Merge "Fix bug #2590414 (android.database.sqlite.DatabaseObjectNotClosedException: Application did not close the cursor or database object that was opened here)" into froyo
e3730b9dce00439666e7ef324a28263a0ee92032 12-Apr-2010 Erik <roboerik@android.com> b/2440161 Made UTC override timezone for allday events

Exchange events had an incorrect timezone set for allDay events and we were setting
sec, min, hour to zero on that timezone. This change will make it override any tz
set and force allDay events to be in UTC.

Change-Id: I14fbdcc14bae2ef45b2e5e0c70e68e4c26136d7b
om/android/providers/calendar/CalendarDatabaseHelper.java
1f755da44aeecdc84d0e957d55178f942dfdb15d 12-Apr-2010 Fabrice Di Meglio <fdimeglio@google.com> Fix bug #2590414 (android.database.sqlite.DatabaseObjectNotClosedException: Application did not close the cursor or database object that was opened here)

- close Cursor as needed
- code formatting

Change-Id: Ia4d00392927eabbd2e69cc6181b9809656fc5299
om/android/providers/calendar/CalendarProvider2.java
7b40dde3168f4af2c757cb43955aa3bfe1668666 08-Apr-2010 Erik <roboerik@android.com> b/2560858 Upgrade will clean up allDay events

Added an upgrade step that will clean up allDay events in the database. This
will set times to have hms be 0 for allday events and try to format duration
into P<#>D. This doesn't fix other problems, such as fields having a value
when they shouldn't.

Change-Id: Ifb1e28bd2e536324e73558ce79da44f7c5b550d7
om/android/providers/calendar/CalendarDatabaseHelper.java
679d544f38aa33d00c12884b987d8f8af2a6a6d3 09-Apr-2010 Fabrice Di Meglio <fdimeglio@google.com> A better and simplier fix for bug #2556677 (pre-froyo->froyo calendar schema upgrade mangles CalendarMetaData schema, causing strange instance expansion issues)

We need to clean the Instance table and recreate the CalendarMetaData table
when database version is between 59 and 66 included.

Change-Id: If105ce3629685d40bc5966bb3cdd7ca613a29f7e
om/android/providers/calendar/CalendarDatabaseHelper.java
1599ceb270bc70f81dcaf8ecf4568453d7dddd9e 08-Apr-2010 Fabrice Di Meglio <fdimeglio@google.com> Fix bug #2556677 (pre-froyo->froyo calendar schema upgrade mangles CalendarMetaData schema,
...causing strange instance expansion issues)

- force recreation of CalendarMetaData table for versions 59 (start of the problem) to 66 included
- clean Instance table (we need to have it recomputed)
- update schema version to 67
- moved code of upgradeToVersion56() and upgradeResync() to their correct location

Change-Id: Ie95b11cc75ec2200ce32deaee49e0a7c6114acf7
om/android/providers/calendar/CalendarDatabaseHelper.java
6c7b032aa9d84c703f6c02982837ecb8a1ac509a 06-Apr-2010 Michael Chan <mchan@android.com> b/2278475 Refresh calendar widget at midnight

Change-Id: Ie7340c5b79733c9124bbeff9de72fa0d776644dc
om/android/providers/calendar/CalendarAppWidgetService.java
d5aa3cc17ecda3d72882d9a2e6c48577892df903 29-Mar-2010 Ken Shirriff <kens@google.com> Upgrade sync state database for calendar if necessary.

bug 2549250

Change-Id: I9957cc5385363aeac93f2bea20453bab3e8446a8
om/android/providers/calendar/CalendarDatabaseHelper.java
d5475a8c72d98644718dbecdb5dce8bfedc18b4b 18-Mar-2010 Ken Shirriff <kens@google.com> Fix recurrence expansion with COUNT.

The problem was the first instance was not getting counted if it fell to the left
of the expansion range, resulting in one extra instance getting created on the end.

Also provide unittests for recurrence expansion and remove some dead code.

bug 2515885

Change-Id: Idcc46ef45c860c26fd6cff5b9ae6d5d160d3ed00
om/android/providers/calendar/RecurrenceProcessor.java
1030436aca59c5123ac90e325e8dbd7e04143909 18-Mar-2010 Ken Shirriff <kens@google.com> Make instance expansion specific to a calendar.

In the old code, canceling of recurrence instances due to exceptions was
based on the sync_id and time. If two calendars happened to have events
with the same sync_id and time, the wrong cancellations could happen.

In this change, sync_id:calendar_id is used to track instances and cancellations
to ensure uniqueness.

bug 2425227

Change-Id: I0b79340f3f45a124f3e3850754c5e5c9cb2bd5a0
om/android/providers/calendar/CalendarProvider2.java
25e5cdec4e39982fedcce0733d2b8ad1aa665b19 18-Mar-2010 Fabrice Di Meglio <fdimeglio@google.com> Fix bug #2519159 (com.android.providers.calendar.CalendarProvider2Test:testChangeTimezoneDB is failing)

- update visibility for method getTimezoneDatabaseVersion()
- update CalendarProvider2 make file (add guava) and clean tests make files

Change-Id: I61a0f1a8fb164e6f28137eb816555b3a96dc8a80
om/android/providers/calendar/CalendarProvider2.java
e604c19770482e181aa60a611b861ce5d8ed67d7 16-Mar-2010 Ken Shirriff <kens@google.com> Make sure values are set correctly when inserting event.

For a recurrence, dtend must be null. This change enforces that,
as well as some other conditions on the value.
Includes unittest.

bug 2513213

Change-Id: I04a1b7bd2f91e579177dd80741b4487409e903fc
om/android/providers/calendar/CalendarProvider2.java
2c32ee7d6feec2b6823dbaa3778e8f4b10102214 12-Mar-2010 Erik <roboerik@android.com> Looks like db version wasn't updated with the last change

Upped the DATABASE_VERSION to 66.

Change-Id: I6431eeee24560925ea9774a79bc89faeae19d826
om/android/providers/calendar/CalendarDatabaseHelper.java
a6357118c223d00ed722ecd40ecdda92d705d211 12-Mar-2010 Erik <roboerik@android.com> b/2497120 Added method for rebuilding db in upgrade failure

We're getting crashes from experimental testers that look like the user
downgraded then upgraded their phone without doing a data wipe. Added a
catch for this that will wipe and rebuild the db if the upgrade fails like
this.

Change-Id: I8d2f28dd7a4a312f56573e3fffd2d8e3a2539350
om/android/providers/calendar/CalendarDatabaseHelper.java
48de6f3f474a66bca2d9398f4697d13ab9857ad3 12-Mar-2010 Ken Shirriff <kens@google.com> Merge "Fix cursor leak."
ae2599e63fe5e153ba735564ef3c0898d4f3c833 12-Mar-2010 Ken Shirriff <kens@google.com> Fix cursor leak.

Cursor was not getting closed if cursor returned zero results.

bug 2510590

Change-Id: I39e65056e2639f1afe7872a2bd14c5cbf7ca8e67
om/android/providers/calendar/CalendarProvider2.java
bf897b03effb752368a98cfb89e6b90cfdde50fc 12-Mar-2010 Marc Blank <mblank@google.com> Add an organizerCanRespond column to Calendar table (with default 1)

* Partially addresses the referenced bug
* Exchange calendars will have this column set to 0
* When set to zero, the UI should not display the organizer's attendee status

Bug: 2507842
Change-Id: I1181a6eb3575a70b4587a94de35fc4abf6fb00c8
om/android/providers/calendar/CalendarDatabaseHelper.java
cf9dc6b9bd031b1f6f811a32326ee85429c94deb 10-Mar-2010 Marc Blank <mblank@google.com> Update database version and add upgracde code for previous change

Change-Id: Iec862424c552a30622a49f2b3eed81a714bcb503
om/android/providers/calendar/CalendarDatabaseHelper.java
1b7ecf93653da26f9aaf50bec329f29827129be3 10-Mar-2010 Marc Blank <mblank@google.com> Merge "Add _sync_mark to view_events view"
a450a5220c7aa7a2693cd23d8d21a0dfe5614067 10-Mar-2010 Marc Blank <mblank@google.com> Add _sync_mark to view_events view

Change-Id: I86d30f538a4c8e60136a244133cb9c7aec2353b4
om/android/providers/calendar/CalendarDatabaseHelper.java
646444fdde3bde0a2ac948e021bc52b07c1d4a18 05-Mar-2010 Erik <roboerik@android.com> b/2440161 Added time checks for allDay events.

allDay events where sec, min, hour are not 0 are being added into the db
which causes an exception to be thrown. Added in checks to cp2 that will
correct events with this mistake and warn instead.

Change-Id: I09485114be605b2b2dbb2c4897dc908e5c609cf5
om/android/providers/calendar/CalendarProvider2.java
48f38786c5eef920ff47bf08718be3ff94b68993 06-Mar-2010 Fabrice Di Meglio <fdimeglio@google.com> Fix bug #2490708 (NPE in CalendarSyncAdapter when adding and deleting an Event)

- clean events from the Events/Attendees table is they are local

Change-Id: I4dd21db96034bde2cda9f8f1dd553033c5a25ff4
om/android/providers/calendar/CalendarProvider2.java
e1a154bbccfd224a90647ab16f5c52fc96b4339d 05-Mar-2010 Fabrice Di Meglio <fdimeglio@google.com> Merge "Fix bug #2485358 (add more logging to CalendarProvider2)"
26d0bf3c34f170f9398ac32bf04b87d4957a4441 04-Mar-2010 Ken Shirriff <kens@google.com> Move calendar wipeData to the test.

This method is only used by the test, so it doesn't make sense to have
it in the CalendarDatabaseHelper. This also caused test failures when
Proguard filtered out this method.

bug 2487351
om/android/providers/calendar/CalendarDatabaseHelper.java
ab42ec67e77c398ac94ff1cf561fadd9f6b48dcb 03-Mar-2010 Fabrice Di Meglio <fdimeglio@google.com> Fix bug #2485358 (add more logging to CalendarProvider2)

Change-Id: I1bac8559d75e712b0a9c66c352ea971fc153367b
om/android/providers/calendar/CalendarProvider2.java
8888a5a92dc717a485a1b934347f804c264b57f5 01-Mar-2010 Ken Shirriff <kens@google.com> Replace android.pim.DateException with com.android.providers.calendar.DateException.

Since DateException is only used by the calendar provider, it should be in the provider
code. Then android.pim.DateException can be removed.

Also get rid of tests for DateUtils methods that are no longer used.
(The tests are the only thing that use these methods.)
om/android/providers/calendar/CalendarProvider2.java
om/android/providers/calendar/DateException.java
om/android/providers/calendar/Duration.java
om/android/providers/calendar/RecurrenceProcessor.java
550cfa4e2ebb03ec0f28b8bbfd466eef8811ef74 02-Mar-2010 Marc Blank <mblank@google.com> Merge "Handle rename of _SYNC_LOCAL_ID to _SYNC_DATA in Calendar"
c12fe4704e12519756b8da1a3f9199f2013e48f0 02-Mar-2010 Marc Blank <mblank@google.com> Handle rename of _SYNC_LOCAL_ID to _SYNC_DATA in Calendar

* This is being used as a discretionary column by Exchange calendar
sync, so rename to avoid association with old usage

Change-Id: Ifdcc0be10d45d261760ebd36bb6bc270c3f70699
om/android/providers/calendar/CalendarDatabaseHelper.java
om/android/providers/calendar/CalendarProvider2.java
9e318a560b6a56e4d8e1a4b2c89cf5d5a922254b 01-Mar-2010 Erik <roboerik@android.com> Another fix for widget launching Calendar when no accounts/events exist.

Widget wasn't setting a data string when no events existed, which caused it to be
ignored by calendar. I've moved things around so the data uri always gets set and
only the time field is optionally added to it.
om/android/providers/calendar/CalendarAppWidgetService.java
59759558e9dcce17a0f36770180c2a599c399076 28-Feb-2010 Marc Blank <mblank@google.com> Make sure _SYNC_LOCAL_ID is in the entity projection map

* This column was excluded from the projection map, presumably via an
oversight.
* The Exchange sync adapter requires this for sending meeting invite
change emails to attendees
* Remove two superfluous casts, and add an @Override to run

Change-Id: If515f9fc4ad0a2fcd59f93f644f6c104bdbd14e9
om/android/providers/calendar/CalendarProvider2.java
192b1807d4b6265a4f7581580bd6172dae3fc1b1 27-Feb-2010 Marc Blank <mblank@google.com> Don't delete attendees until Event is finally deleted

* Exchange (and potentially other sync adapters) needs to send cancellation
notices when Events are deleted; this requires that Attendee information
remain intact until the Event is actually deleted (rather than being marked
deleted)
* The change is to move the deletion of Attendee rows until the Event is
actually deleted
* There are also some IDE-compatible formatting changes and a little cleanup

Bug: 2474733
Change-Id: I1fcdfc58bb3341f77b1f1087029db39749851f5e
om/android/providers/calendar/CalendarProvider2.java
7fbdc1fa9e9ea1603948722f8ce971f075da4bb5 27-Feb-2010 Erik <roboerik@android.com> Added flag to ensure intent is always handled.

Currently, if the user presses home from within Calendar and then taps the widget it goes
to the last view the user had up. With this flag it will instead handle the intent from
the widget and go to the start of the next event.
om/android/providers/calendar/CalendarAppWidgetService.java
997e2e5cb006682bc1a82441304994b458d9745d 27-Feb-2010 Erik <roboerik@android.com> Quick fix to allow starting calendar without a time specified.
om/android/providers/calendar/CalendarProvider2.java
48587d3291c4db7f0942e1bff55b88cfa7764ba0 24-Feb-2010 Erik <roboerik@android.com> b/2412594 Changed widget to use an implicit intent.

Added an implicent intent filter to the Calendar launcher so it will no longer be tied
to the package name. The widget is now using that intent to launch the Calendar so it
doesn't have to use a hardcoded package name. Also added uri matching for a time to be
specified as part of the data field in the intent.
om/android/providers/calendar/CalendarAppWidgetService.java
om/android/providers/calendar/CalendarProvider2.java
157f659b2d1df5dfbba59ae010875487b6507446 26-Feb-2010 Marc Blank <mblank@google.com> Merge "Add lastSyncedAttendeeStatus to CalendarProvider2 database"
162c7c9bbd53b623fbe913b376e7f7f42915bb59 25-Feb-2010 Marc Blank <mblank@google.com> Add lastSyncedAttendeeStatus to CalendarProvider2 database

* This column is intended to be used by those sync adapters that need to
recognize a change in the user's attendee status; it is uninitialized,
so its value, until modified, will be retrieved as zero (no status)
* This column is not used directly by the provider, so that its semantics
are not defined outside of a particular sync adapter

Change-Id: Ibddc6cf3bf7df04e79c8ce919b54f1af5310b4ab
om/android/providers/calendar/CalendarDatabaseHelper.java
156ad29fe71eaae73cddad9b17690d1cc8225136 25-Feb-2010 Ken Shirriff <kens@google.com> Use SQL query parameters for reminder lookup.

Due to a complex issue with manifest typing in SQL, a cast is requierd.

bug 2458259 2464440
om/android/providers/calendar/CalendarProvider2.java
2d1b3d70a6ebce8194932f8a8355d97a89da113f 19-Feb-2010 Fabrice Di Meglio <fdimeglio@google.com> Fix bug #2438401 (Froyo calendar is missing many entries)

We want to keep unsynced calendars from being visible in the UI:

- filter events by sync_event state when doing Instance expansion thru getEntries()
- keep events in the Events table (better than erasing them when a calendar is not syncable)
- change events_view View to be able to get the sync_event state
- add database schema upgrade for the Events view
- clean some comments

Change-Id: I9382fe572db371dfa33b200b6dfd870265c6ffcc
om/android/providers/calendar/CalendarDatabaseHelper.java
om/android/providers/calendar/CalendarProvider2.java
9323bb1bbb247bac4871595a3de387ec7568897e 23-Feb-2010 Ken Shirriff <kens@google.com> Partially revert "Use SQL query arguments."

Due to database bug 2463913, query arguments don't work in this case.
bug 2458259

Also improve comments.

This reverts commit dc538177512191886cc40bc5e5125aae9bb197aa.
om/android/providers/calendar/CalendarProvider2.java
241041ee4735c62083ca9a8c1879bb7655fce19e 23-Feb-2010 Ken Shirriff <kens@google.com> Fix *#*#CAL#*#*

Was using Events._sync_dirty instead of _sync_dirty
om/android/providers/calendar/CalendarDebug.java
5bbabdd2f8732a844f28fe545dc2fbf97b2b47e9 22-Feb-2010 Erik <roboerik@android.com> b/2458172 Changed launch intent for widget.

Changed the intent path for launching Calendar from com.android.calendar to com.google.android.calendar.
This change reflects package name changes.
om/android/providers/calendar/CalendarAppWidgetService.java
2cc859cab85391a240b9c3f28c935d919c8ceb8c 01-Feb-2010 Ken Shirriff <kens@google.com> Unbundling: remove deprecated deleteRow().

Delete calendar through resolver rather than using cursor operation that
isn't in SDK.
om/android/providers/calendar/CalendarProvider2.java
dc538177512191886cc40bc5e5125aae9bb197aa 19-Feb-2010 Ken Shirriff <kens@google.com> Use SQL query arguments.

Using static strings makes the SQL cache happy.
om/android/providers/calendar/CalendarProvider2.java
f8de1a9391de5d8b6a6a0ae7c55e1a2c318d6c05 16-Feb-2010 Fabrice Di Meglio <fdimeglio@google.com> Fix bug #2331761 (Instances of a recurring event are missing)

by detecting and ignoring malformed recurrences

Change-Id: Ia669dad297edebd1a34eff839fc0235459f319b1
om/android/providers/calendar/CalendarProvider2.java
9535627bf6295cd94447beb83e1aac41f50c3600 12-Feb-2010 Erik <roboerik@android.com> b/2441483 Dropped url requirement in CP2.

CP2 will now pass in a null argument when no url is available. This means Sync adapters
are not required to supply a url feed for their calendars and should handle sync status
changes on their own if they don't.
om/android/providers/calendar/CalendarProvider2.java
f09652d7327e45711f0e5b210e4df9c4c4c78ac4 13-Feb-2010 Fabrice Di Meglio <fdimeglio@google.com> Fix for bug 2431102 (illegal argument exception / negative CalendarId)

Change-Id: I552083eddd716353f5525eb8ef35ca8b2f7aa598
om/android/providers/calendar/CalendarProvider2.java
46f3f01b132f97b51ec1f4670769dda499cd9da5 12-Feb-2010 Ken Shirriff <kens@google.com> Remove dependencies on gsf-client and google-common.

Use HashMap and HashSet instead of com.google.android.collect.Maps/Sets. Remove dead code.
bug 2425037
om/android/providers/calendar/CalendarProvider2.java
c874ed5c6cc0fcc6ac06ae7d20db0eab7d749608 11-Feb-2010 Ken Shirriff <kens@google.com> Fix instance expansion.

Was getting a constraint violation due to using insert instead of replace.
bug 2439297
om/android/providers/calendar/CalendarDatabaseHelper.java
om/android/providers/calendar/CalendarProvider2.java
dbaad88527665d5144a8a178fa822f58d2bc7d05 11-Feb-2010 Erik <roboerik@android.com> Quick fix for databases where events are missing a timezone.

Added a check to see if a timezone was returned for an event. If one wasn't it uses
UTC as a default timezone.
om/android/providers/calendar/CalendarDatabaseHelper.java
be0733e7f38cabc7eedcb2ee0ed9ab7005439a2f 10-Feb-2010 Erik <roboerik@android.com> b/2434881 Dropped not null requirement for dtstart2,dtend2

Calendar was crashing for certain events that contained a null entry in dtend.
Removed the requirement that dtend2 be non-null.
om/android/providers/calendar/CalendarDatabaseHelper.java
ae4f20e120d3107cef20be860a612c9c23816295 08-Feb-2010 Erik <roboerik@android.com> b/1522903 First step in converting allday events to local timezone

This is the first change for converting allDay events to use the local
timezone instead of being in UTC timezones. This will make dealing with
alarms on allDay events easier to manage and allow us to remove a large
number of checks throughout the code to deal with allDay events
differently.
om/android/providers/calendar/CalendarDatabaseHelper.java
754b6d0e96c7df4cb649a48cde21b72c3dcedf4a 09-Feb-2010 Erik <roboerik@android.com> Quick fix for missing version number.

In the db update from vs 60 to 61 the version number didn't get changed, this fixes any
issues this could create.
om/android/providers/calendar/CalendarDatabaseHelper.java
ae270e35e14b5c7a756050cb8dcccf5771743850 03-Feb-2010 Fabrice Di Meglio <fdimeglio@google.com> Fix bug 1025931 (need to reprocess events table when timezone db changes)

Change-Id: I4a196c2bf03fcae6cb53807940b7b59345fd4fb8
om/android/providers/calendar/CalendarCache.java
om/android/providers/calendar/CalendarDatabaseHelper.java
om/android/providers/calendar/CalendarProvider2.java
83512315d187baad2c9dc3ed686cc23676c9f463 30-Jan-2010 Ken Shirriff <kens@google.com> Unbundling: use URI instead of direct provider call for scheduling alarms.

See bug 2407593
om/android/providers/calendar/CalendarProvider2.java
om/android/providers/calendar/CalendarReceiver.java
1edaf77a7ef2fbad6b6116dd75591e0aeaff3a16 28-Jan-2010 Ken Shirriff <kens@google.com> Use DateUtils constants.

I thought these weren't in the SDK, but they are.

This partially reverts "Unbundling: remove dependencies on SyncStateContentProviderHelper and DateUtils from CalendarProvider2.", commit c4e53191b570e09959c5723f4d253977ba48f2d0.
om/android/providers/calendar/CalendarProvider2.java
9f9651d0ccd02a4156a02698fa5fb943ea7dc034 28-Jan-2010 Ken Shirriff <kens@google.com> Merge "Unbundling: Remove SECRET_CODE_ACTION import."
d3c602b07427cfeb90f9796d36f90cbf91dbc9f0 28-Jan-2010 Ken Shirriff <kens@google.com> Unbundling: Remove SECRET_CODE_ACTION import.

The receiver is called only for this action, so it doesn't need to explicitly check.
om/android/providers/calendar/CalendarDebugReceiver.java
00635105a4c45bb38324fd098ac66d491930fa8e 28-Jan-2010 Ken Shirriff <kens@google.com> Remove old CalendarProvider and CalendarSyncAdapter.

CalendarProvider2 has replaced CalendarProvider and the
CalendarSyncAdapter in com.google.android.syncadapters has replaced
this CalendarSyncAdapter.
om/android/providers/calendar/CalendarProvider.java
om/android/providers/calendar/CalendarReceiver.java
om/android/providers/calendar/CalendarSyncAdapter.java
om/android/providers/calendar/CalendarSyncAdapterService.java
om/android/providers/calendar/VCal.java
c4e53191b570e09959c5723f4d253977ba48f2d0 26-Jan-2010 Ken Shirriff <kens@google.com> Unbundling: remove dependencies on SyncStateContentProviderHelper and DateUtils from CalendarProvider2.
om/android/providers/calendar/CalendarProvider2.java
8f4ccb20cce4cd09bd9e0c777d2d5cd92a2c9b78 28-Jan-2010 Ken Shirriff <kens@google.com> Fix calendar reminders.

This is a port to CalendarProvider2 of:

b/2224837 Clean up Alerts/Notifications
Also eliminated stale entries from the Calendar Notification list and keep the message and reminder count in the Notification shade up to date. Before you would see entries for events, instances, or reminders that have been changed or deleted.
Change-Id: I7f02fe378e5907e60b8ba5a99577fda444d69a32

bug 2390838
om/android/providers/calendar/CalendarProvider2.java
3654f1fa28d8018620de3a5275abeb81b228ee79 27-Jan-2010 Ken Shirriff <kens@google.com> Merge "Unbundling: copy calendarEmailAddressFromFeedUrl method"
e74157e34e174c923032a4b93ad298d0f234879c 27-Jan-2010 Ken Shirriff <kens@google.com> Fix CalendarAlerts query.

The alert code expects the color column, which requires the query to be joined with
the calendars table. Also add a unittest.

bug 2390762
om/android/providers/calendar/CalendarProvider2.java
d39cfe09aa7e752cdc7512ae58d90d49d4b5ef9e 26-Jan-2010 Ken Shirriff <kens@google.com> Unbundling: copy calendarEmailAddressFromFeedUrl method
om/android/providers/calendar/CalendarDatabaseHelper.java
5be95052daa6c35fa2f634086897b84259eae288 22-Jan-2010 Ken Shirriff <kens@google.com> Replace calendar authority with constant.

bug 2388178
om/android/providers/calendar/CalendarReceiver.java
b57f228c23d3672c1f08153f3fcc88ced2011714 22-Jan-2010 Ken Shirriff <kens@google.com> Change hardcoded calendar authority strings to use constants.

This will allow the authority to be changed in the future.

bug 2388178
om/android/providers/calendar/CalendarProvider.java
om/android/providers/calendar/CalendarProvider2.java
a6101d927be2fc5cccfcd93009e4a155e255884d 21-Jan-2010 Doug Zongker <dougz@android.com> relocate GoogleLoginService

Change-Id: I5932a668cdfd4a444d6e95a5d8d670c51215339b
om/android/providers/calendar/CalendarProvider.java
om/android/providers/calendar/CalendarSyncAdapter.java
cc2f3a9448fba7a6ee0e4c7d6e2aef21be294af8 21-Jan-2010 Ken Shirriff <kens@google.com> Merge "Add calendar database upgrade code."
8335a18ac6024f302b50e6f473ad4058cc355c85 20-Jan-2010 Ken Shirriff <kens@google.com> Optimize instance database operations by using selectionArgs.
om/android/providers/calendar/CalendarProvider2.java
56120dd505f0b89776ae71e93ed4e208e1f15e1d 20-Jan-2010 Ken Shirriff <kens@google.com> Disable debug logging by default.
om/android/providers/calendar/CalendarProvider2.java
636b4fb283b9d2802afd179b20a24f2f5035ee69 16-Jan-2010 Ken Shirriff <kens@google.com> Use fixed sql selects for performance.
om/android/providers/calendar/CalendarProvider2.java
ad37c99d051aa4e2508b940c8dec91ee87f53056 15-Jan-2010 Ken Shirriff <kens@google.com> Add calendar database upgrade code.

This switches the CalendarProvider2 code to use the calendar.db database
and upgrade it in place. The upgrade code from versions 57 and 58 is
copied from CalendarProvider.
om/android/providers/calendar/CalendarDatabaseHelper.java
43556fa5610bd302cb80aa5ddc98af1e2f2d8b18 14-Jan-2010 Ken Shirriff <kens@google.com> b/2363376 Fixed month view loading error.

Converted table expansion request dates to ms format so that it would take the proper
action in the month view.

This is I25aafacf applied to CalendarProvider2.
om/android/providers/calendar/CalendarProvider2.java
25aafacfdc4cd610e45333df94b0b2e81d9ff696 09-Jan-2010 Erik <roboerik@android.com> b/2363376 Fixed month view loading error.

Converted table expansion request dates to ms format so that it would take the proper
action in the month view.
om/android/providers/calendar/CalendarProvider.java
83c55844974ca611a553e704663ed845d84c7930 06-Jan-2010 Ken Shirriff <kens@google.com> Add trigger to keep event account correct.

When an event is inserted, the _sync_account and _sync_account_type will
be updated from the Calendars table.
om/android/providers/calendar/CalendarDatabaseHelper.java
348f0a5b9ef74356c32562ec4136e875fdb6811e 08-Jan-2010 Ken Shirriff <kens@google.com> Fix SQL broken by busybits change.
om/android/providers/calendar/CalendarDatabaseHelper.java
90185cd0857fa5fdc50e8e12c41af6fd4d887934 08-Jan-2010 Erik Pasternak <roboerik@android.com> Merge "b/2293263 Finished removing busyBits."
dbd797d59294d72d7ea9226d10128674b634aaad 08-Jan-2010 Erik <roboerik@android.com> b/2293263 Finished removing busyBits.

Removed the rest of the references to busyBits and refactored writeLocked to drop unused
fields (were previously part of busybits). Added revision update code for the db and
removed busybit db code from CalendarDatabaseHelper.
om/android/providers/calendar/CalendarDatabaseHelper.java
om/android/providers/calendar/CalendarProvider.java
om/android/providers/calendar/CalendarProvider2.java
om/android/providers/calendar/MetaData.java
df799b13349cecbe6be73bb3fe4d6d45adb2e951 08-Jan-2010 Doug Zongker <dougz@android.com> migrate CalendarProvider from gservices to secure settings

Change-Id: I5f116235473a117477daad8fbf34920392599e00
om/android/providers/calendar/CalendarSyncAdapter.java
982cbfe8b4e5af45b06fc5c18ff9e0868378ee40 06-Jan-2010 Ken Shirriff <kens@google.com> Fix calendar projection.
om/android/providers/calendar/CalendarProvider2.java
1ae4c22f15c107cd9f9cd8babaa11005e45e4647 05-Jan-2010 Ken Shirriff <kens@google.com> CalendarProvider2 fixes.

Add support for deleting a selection. Use the event view where appropriate.
Fix problems with conflicting column names. Add unittests. Add some missing
columns to projections. Remove unneeded Calendar joins.
om/android/providers/calendar/CalendarDatabaseHelper.java
om/android/providers/calendar/CalendarProvider2.java
6db535b458146a279bebd4a51d56c1bdfc204528 24-Dec-2009 Erik <roboerik@android.com> b/2293263 Replaced busybit functionality with eventday functionality.

Stripped out references to busybits and replaced with code to request only whether an event
exists for each day. In MetaData only minimal changes were made to prevent breaking the
build as I'm not certain all of the effects it has yet. Will do more complete removal of
busybits along with other references.
om/android/providers/calendar/CalendarProvider.java
om/android/providers/calendar/CalendarProvider2.java
om/android/providers/calendar/MetaData.java
ef8089b54085b860089a88dfe860e27cb13bb1c3 04-Jan-2010 Fred Quintana <fredq@google.com> clean up the location of the gdata helper objects
om/android/providers/calendar/CalendarProvider.java
om/android/providers/calendar/CalendarSyncAdapter.java
266045e9a016d2252b2532881799b8edf27f5327 19-Nov-2009 Michael Chan <mchan@android.com> b/2224837 Clean up Alerts/Notifications

Also eliminated stale entries from the Calendar Notification list and keep the message and reminder count in the Notification shade up to date. Before you would see entries for events, instances, or reminders that have been changed or deleted.

Change-Id: I7f02fe378e5907e60b8ba5a99577fda444d69a32
om/android/providers/calendar/CalendarProvider.java
2ad2455fcf8cea805b3824c9df1dfd37ae1bcf92 15-Dec-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change I86397f6c into eclair-mr2

* changes:
moved the hidden sync helpers out of the framework
b5cb2522cdb260f21c983d9584d6f72b4f85879b 11-Dec-2009 Fred Quintana <fredq@google.com> moved the hidden sync helpers out of the framework
om/android/providers/calendar/CalendarProvider.java
om/android/providers/calendar/CalendarSyncAdapter.java
om/android/providers/calendar/CalendarSyncAdapterService.java
595242cb01dc0d2d90b01613ff195b2be7b2559e 12-Dec-2009 Ken Shirriff <kens@google.com> Add multiple account support to CalendarProvider2.

This appends the account information to the appropriate query
om/android/providers/calendar/CalendarDatabaseHelper.java
om/android/providers/calendar/CalendarProvider2.java
9a72b890f28b1c1f2ae870c4c46aa160ef156aa1 10-Dec-2009 Fred Quintana <fredq@google.com> hardcode the google sync gservices settings for now
om/android/providers/calendar/CalendarSyncAdapter.java
29b5eb9f7400cc3e9edfe21df758780c1f64dc57 09-Dec-2009 Ken Shirriff <kens@google.com> Remove default calendar code.

This has been moved to CalendarSyncAdapter.
om/android/providers/calendar/CalendarProvider2.java
19fb3af2ec12621bca575f5518c2ba3831cb3600 07-Dec-2009 Fred Quintana <fredq@google.com> changed to use the new EntityIterator interface
removed the queryEntity case from CalendarProviderTest since it is no longer relevant (we moved on to CalendarProvider2 before fully switching to the Entity reading approach)
om/android/providers/calendar/CalendarProvider.java
om/android/providers/calendar/CalendarProvider2.java
a7f687007ff4d0c30726bf86f717fde88f51b453 23-Nov-2009 Ken Shirriff <kens@google.com> CalendarProvider2: clean up the code for updating individual events.

This is a bit ugly; the ContentProviderOperation generates an _id=n selection string,
rather than the /id URL that is normally used, so we need to handle it here as a special
case for the sync adapter.
om/android/providers/calendar/CalendarProvider2.java
2fb3bc8f9ded55c0e379e1eaed2e036a5670b63a 04-Dec-2009 Ken Shirriff <kens@google.com> CalendarProvider2: support extended properties delete

This is needed for syncing extended properties.
Also check for unsupported selection args.
Also clean up comments.
om/android/providers/calendar/CalendarProvider2.java
02e5564690b3bb30d4f9cebfff7e4b94009098ba 25-Nov-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change I5a7cf57f into eclair-mr2

* changes:
New calendar sync framework: code review changes, support delete, support multiple calendars, remove triggers.
7c58d880e23e401e472f0dbe87b01bbfaf8ac692 24-Nov-2009 Fred Quintana <fredq@google.com> moved the gdata library to vendor/google
om/android/providers/calendar/CalendarProvider.java
om/android/providers/calendar/CalendarSyncAdapter.java
860f89a0e6ffda7050b5d86b25850b0c2234252a 23-Nov-2009 Fred Quintana <fredq@google.com> move SubscribedFeeds to GSF
om/android/providers/calendar/CalendarSyncAdapter.java
7e3ec5f2025164fca508f81a5a01940bc912e064 02-Nov-2009 Ken Shirriff <kens@google.com> New calendar sync framework: code review changes, support delete, support multiple calendars, remove triggers.
om/android/providers/calendar/CalendarDatabaseHelper.java
om/android/providers/calendar/CalendarProvider2.java
om/android/providers/calendar/CalendarReceiver.java
8ec98208827ff649612891c486be2d132a812f25 16-Nov-2009 Ken Shirriff <kens@google.com> Add database upgrade for ExtendeProperties trigger.

This should have been in Change I55eb40e7. We don't currently use these triggers,
but I'm fixing them both for correctness and so I can add unittests to this code.
om/android/providers/calendar/CalendarProvider.java
55eb40e72a9cfd416926ecd55a49256b759e86b9 14-Nov-2009 Ken Shirriff <kens@google.com> Fix ExtendedProperties trigger.

Currently, inserts or deletes of ExtendedProperties don't mark the event as dirty.
om/android/providers/calendar/CalendarProvider.java
935606cfd0c168349ef51949050a4229b0240826 10-Nov-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change I12bbe40a into eclair-mr2

* changes:
Add new CalendarProvider2 for new sync framework.
ca3a90c264663857a44024123181f97e9b41acf5 29-Oct-2009 Mike Cleron <mcleron@google.com> am b0b1eb16: New widgets

Merge commit 'b0b1eb163e763258c94785906b7517ad54b3bb8d' into eclair-mr2

* commit 'b0b1eb163e763258c94785906b7517ad54b3bb8d':
New widgets
9f005e4843925efe4fa8434361c4ad4ad384ed4c 27-Oct-2009 Ken Shirriff <kens@google.com> Add new CalendarProvider2 for new sync framework.

This provider operates directly, rather than through a TempProviderSyncAdapter.
om/android/providers/calendar/CalendarDatabaseHelper.java
om/android/providers/calendar/CalendarProvider2.java
om/android/providers/calendar/SQLiteContentProvider.java
b0b1eb163e763258c94785906b7517ad54b3bb8d 27-Oct-2009 Mike Cleron <mcleron@google.com> New widgets
om/android/providers/calendar/CalendarAppWidgetService.java
1cbb86593128799a05d17d61c21d62b19f124707 19-Oct-2009 Ken Shirriff <kens@google.com> Add Calendar URL to EntityIterator.

This adds the Calendar URL to the Entity query for CalendarProvider.
om/android/providers/calendar/CalendarProvider.java
ef2d8bbc06d7613983637f54c2790c7349b765d4 09-Oct-2009 Ken Shirriff <kens@google.com> Fix CalendarProvider test race.

The CalendarProvider has a background thread to do timezone updates. This
background thread causes problems with unittests because it may try to access
the database after it has been closed. This change prevents the background
thread from being created when testing.
om/android/providers/calendar/CalendarProvider.java
bde29af962d7e3d073dc9bcae4ee2e9609a2eeb3 03-Oct-2009 Fred Quintana <fredq@google.com> account manager api review changes
om/android/providers/calendar/CalendarSyncAdapter.java
71c41a7c5048dd17d093a66dc46cded2c4f854ea 30-Sep-2009 Costin Manolache <costin@google.com> Remove GAIA string
om/android/providers/calendar/CalendarProvider.java
om/android/providers/calendar/CalendarSyncAdapter.java
9ac1b4e5645b1c76e8d8adc46920ee82c9ddbf71 29-Sep-2009 Debajit Ghosh <debajit@google.com> fix old typo in calendar subscription logic -- we want subscriptions for sync'd calendars, not selected calendars.
remove unused imports.
om/android/providers/calendar/CalendarProvider.java
om/android/providers/calendar/CalendarSyncAdapter.java
253d7965816118357422dd8e07a8506aaea76148 28-Sep-2009 Ken Shirriff <kens@google.com> Add checks to moveToFirst() calls.

The code assumed in multiple places that moveToFirst() would always succeed.
This caused several crashes.
om/android/providers/calendar/CalendarProvider.java
f2329e1c1c56cdcf587e634811280c0358a61e61 28-Sep-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 27333 into eclair

* changes:
convert id to full-selfattendance as well. check for null before doing conversion. fix typo where we were inserting an extra / as part of conversion.
9df37987987ab65c675181b71211f33a2e31192a 28-Sep-2009 Debajit Ghosh <debajit@google.com> convert id to full-selfattendance as well.
check for null before doing conversion.
fix typo where we were inserting an extra / as part of conversion.
om/android/providers/calendar/CalendarSyncAdapter.java
0a806bc86641c558552f7a827b99a9d9d2893463 26-Sep-2009 Ken Shirriff <kens@google.com> Add calendar organizer to event on create.

When an event is created, the CalendarProvider should add the organizer field.
This data is client-only, and is not sent to the server.

Also change behavior of SELF_ATTENDEE_STATUS to create Attendees entry for
the owner (email in the calendar URL) rather than for the _sync_account
(the user accessing the calendar). It appears the old behavior was
wrong for shared calendars.
om/android/providers/calendar/CalendarProvider.java
eecfe7eb5eac739aeb34f90344ac600393c7775f 27-Sep-2009 Debajit Ghosh <debajit@google.com> process the proxy's new hint that it is hiding guests.
also convert some getLong()s to getInt()s for some boolean bits.
om/android/providers/calendar/CalendarProvider.java
om/android/providers/calendar/CalendarSyncAdapter.java
a68e844e8e78368607aba494ac69816667b108b5 26-Sep-2009 Ken Shirriff <kens@google.com> Add hasAttendeeData support.

This flag indicates that the full feed (rather than the full-selfattendance) is being
used, so the attendees table contains all the attendees, rather than just self.
om/android/providers/calendar/CalendarProvider.java
om/android/providers/calendar/CalendarSyncAdapter.java
f9a4fecbb78809854df0d43b26541fe2b00078fe 19-Sep-2009 Debajit Ghosh <debajit@google.com> handle calendars with an access level of "root".
om/android/providers/calendar/CalendarSyncAdapter.java
e1ecd58c710cf02805a1893b65257af3c6bbb39d 11-Sep-2009 Ken Shirriff <kens@google.com> Support only primary account for calendar.

The CalendarProvider needs to filter out non-primary accounts from
the Calendars table.
om/android/providers/calendar/CalendarProvider.java
57d5c04c28cec6148e497682b6086de99383dd06 09-Sep-2009 Michael Chan <mchan@android.com> b/2092525 Fixed the organizer column in CalendarProvider. Edit Menu should appear again.
om/android/providers/calendar/CalendarProvider.java
0939d60cb31b7f9e46b4f597a899d7ec12e244c9 22-Aug-2009 Ken Shirriff <kens@google.com> Add calendar sliding window gservices setting.

The GOOGLE_CALENDAR_SYNC_WINDOW_DAYS setting will control how often
the sliding window is advanced.
om/android/providers/calendar/CalendarSyncAdapter.java
363e04c2ab2e268293bf4024b8b3bdb55daa38f1 22-Aug-2009 Ken Shirriff <kens@google.com> Fix initial calendar feed.

Feed should be full, not full-selfattendance.

bug=2071618
om/android/providers/calendar/CalendarProvider.java
5a7bd8a55ee01059f08d2f67415f2d083d1aa19a 21-Aug-2009 Fred Quintana <fredq@google.com> add the reset() method to EntityIterator
om/android/providers/calendar/CalendarProvider.java
c8de4c624a701d943ba5d2139e19a9fc226d60df 21-Aug-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 22192 into eclair

* changes:
Fix selfAttendanceStatus.
7c46027dc3768105d428e30b2e91ede3ad718356 21-Aug-2009 Ken Shirriff <kens@google.com> Fix selfAttendanceStatus.

Add ownerAccount to temp provider projection so the calendar's owner
can be obtained. This is needed for determining which attendee status
is relevant.

bug=2065008
om/android/providers/calendar/CalendarSyncAdapter.java
101f8d28e1143914b6f51d6614d53f815d8207c5 20-Aug-2009 Ken Shirriff <kens@google.com> Fix handleInstanceQuery.

handleInstanceQuery takes either days or ms as argument depending on a
flag, but didn't expand the instances correctly with days.

Also added documentation of which arguments are ms and which arguments
are days

bug=2066228
om/android/providers/calendar/CalendarProvider.java
34e416864a59b6205e33bfef4644a510d8b9abe2 18-Aug-2009 Ken Shirriff <kens@google.com> Add new columns to calendar database.

The columns are guestsCanModify, guestsCanInviteGuests,
guestsCanSeeGuests, organizer. The first three come from the database
feed, and the second is derived from the feed URL.
om/android/providers/calendar/CalendarProvider.java
om/android/providers/calendar/CalendarSyncAdapter.java
2d873adcbf7fa6525cae8b566ea6000cda4ea413 17-Aug-2009 Fred Quintana <fredq@google.com> make syncadapter set whether the account is syncable
om/android/providers/calendar/CalendarSyncAdapter.java
1db8ada1abdc990b8d88aa17155bb8347228887a 16-Aug-2009 Fred Quintana <fredq@google.com> do not merge: cherrypicked 1de41c66e767c009663496c899c62caf0e6c5ad7 and 63ccd6a02c219452ea6a16d899e56b4bf500f044 from master branch
om/android/providers/calendar/CalendarProvider.java
om/android/providers/calendar/CalendarSyncAdapter.java
75542165b96bfc13b044e06f2f9a838c407915eb 13-Aug-2009 Debajit Ghosh <debajit@google.com> Revving the calendar gdata ua version, so we can differentiate cupcake and eclair requests in the proxy.
om/android/providers/calendar/CalendarSyncAdapter.java
2c4b82d2a294c1612299641c163279a9062d4f09 10-Aug-2009 Ken Shirriff <kens@google.com> Implement sliding window sync.

For calendar sync, events are only synced up to the end of the window.
Daily the window is advanced, and new events in the gap are synced.

Currently sliding window is disabled unless gservices property
google_calendar_sync_window_day is set.
om/android/providers/calendar/CalendarSyncAdapter.java
bb00086ca3714705ffd6ae43c4435906a6dd4688 08-Aug-2009 Ken Shirriff <kens@google.com> Revert "Implement sliding window sync."

This reverts commit 860f62af2c6c6d14bf6c2038b9a2896a83c1d37d.
om/android/providers/calendar/CalendarSyncAdapter.java
f88fe24a7e976cf247a736f7b26681134c4108ca 08-Aug-2009 Ken Shirriff <kens@google.com> Add calendar guest notifications.

Set gCal:sendEventNotifications in the gdata feed to cause notifications
to be sent to guests.

BUG=2025098
om/android/providers/calendar/CalendarSyncAdapter.java
860f62af2c6c6d14bf6c2038b9a2896a83c1d37d 13-Jun-2009 Ken Shirriff <kens@google.com> Implement sliding window sync.

For calendar sync, events are only synced up to the end of the window. Occasionally
the window is advanced, and new events in the gap are synced.

Currently sliding window is disabled unless sync.slidingwindows system property
is set to true.
om/android/providers/calendar/CalendarSyncAdapter.java
528c9df78825d8dbf77c8e538d9afe899bd5fb97 07-Aug-2009 Ken Shirriff <kens@google.com> Enhance AbstractGDataSyncAdapter methods for sliding sync.

Add the feedSyncData to updateQueryParameters and updateProvider for the use of
sliding sync code.

This change needs to be submitted in conjunction with the vendor/google/frameworks change.
om/android/providers/calendar/CalendarSyncAdapter.java
0c16d2e013277ee0d3330f131433be9acad57338 07-Aug-2009 Michael Chan <mchan@android.com> Changed CalendarProvider to allow arbitrary deletion of the attendees table i.e. allow the use of where clause
om/android/providers/calendar/CalendarProvider.java
1928c8b7ee1317c56b45b129c4db2df4e94843ba 06-Aug-2009 Ken Shirriff <kens@google.com> Fix bad URIs. Also use URI constants in several places

The URIs should be calendar/... not calendars/... to match
the constants in Calendar.java
om/android/providers/calendar/CalendarProvider.java
50172248ffabb4eb45a444f4428c1a4388176937 06-Aug-2009 Ken Shirriff <kens@google.com> Calendar attendees: Add HAS_ATTENDEE_DATA

The HAS_ATTENDEE_DATA boolean will be set if the server has provided attendee data,
i.e. if the sync URL is /full/ and not /full-selfattendance/
om/android/providers/calendar/CalendarSyncAdapter.java
698f00cfe74fbda100bd0e4b143c61dd21d5061d 04-Aug-2009 Ken Shirriff <kens@google.com> Attendee database changes for calendar.

Fetch attendees from server when upgrading database to new version.
Add ownerAccount and hasAttendeeData fields to database.
Move calendarEmailAddressFromFeedUrl from CalendarProvider to CalendarSyncAdapter.
om/android/providers/calendar/CalendarProvider.java
om/android/providers/calendar/CalendarSyncAdapter.java
70687d36e77994cba08ad20238afa8104f4344aa 05-Aug-2009 Ken Shirriff <kens@google.com> Revert "Attendee database changes for calendar."

This reverts commit 97173e6dc7b109a38d16e8cf7c8831304a7bdc92.
om/android/providers/calendar/CalendarProvider.java
om/android/providers/calendar/CalendarSyncAdapter.java
97173e6dc7b109a38d16e8cf7c8831304a7bdc92 04-Aug-2009 Ken Shirriff <kens@google.com> Attendee database changes for calendar.

Fetch attendees from server when upgrading database to new version.
Add ownerAccount and hasAttendeeData fields to database.
Move calendarEmailAddressFromFeedUrl from CalendarProvider to CalendarSyncAdapter.
om/android/providers/calendar/CalendarProvider.java
om/android/providers/calendar/CalendarSyncAdapter.java
32508f96af7162d67e67b46e56a798f86ef1b6c9 29-Jul-2009 Ken Shirriff <kens@google.com> Enable multiple attendees in calendar.
om/android/providers/calendar/CalendarProvider.java
2c8c25e703c71573f696a16d84e6c2d5664ff18e 29-Jul-2009 Ken Shirriff <kens@google.com> Allow attendee changes.

The provider formerly blocked attendee changes except from sync
(through the temp provider). We are now supporting attendee
changes on the phone.
om/android/providers/calendar/CalendarProvider.java
52d1a2fce81e6f104b02130deb34663b2d1c8af5 28-Jul-2009 Ken Shirriff <kens@google.com> Calendar attendees: change feed

Use the full feed rather than full-selfattendance in order to get
the full list of attendees.
om/android/providers/calendar/CalendarSyncAdapter.java
41f9de3652292f89a102e684a7313af862f3365b 17-Jul-2009 Android (Google) Code Review <android-gerrit@google.com> am 5eab8c54: Merge change 7630 into donut

Merge commit '5eab8c543cfdfae0a1f18742e4e026bdaa948eaa'

* commit '5eab8c543cfdfae0a1f18742e4e026bdaa948eaa':
b/1915565 Fixed ANR when snoozing or dismissing calendar notifications
5eab8c543cfdfae0a1f18742e4e026bdaa948eaa 17-Jul-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 7630 into donut

* changes:
b/1915565 Fixed ANR when snoozing or dismissing calendar notifications
345f3dcaa75b5b0271afce8185f488b515b3f20f 17-Jul-2009 Michael Chan <mchan@android.com> b/1915565 Fixed ANR when snoozing or dismissing calendar notifications

DB calls are all moved from the UI thread to a background thread.
om/android/providers/calendar/CalendarProvider.java
0e0c5700ba7a169ae2c6741ca3fc4c0102ca9dfa 16-Jul-2009 Michael Chan <mchan@android.com> Added localization for the default calendar name: Default
om/android/providers/calendar/CalendarProvider.java
54741d97aac8c54c754c534c5e27eb07fa910d47 16-Jul-2009 Michael Chan <mchan@android.com> am 1d3f6700: b/1972231 Fixed the problem where the calendar was not showing the next event when launched from widget

Merge commit '1d3f6700d351506a828ff83dbdee6b4110d4ca68'

* commit '1d3f6700d351506a828ff83dbdee6b4110d4ca68':
b/1972231 Fixed the problem where the calendar was not showing the next event when launched from widget
1d3f6700d351506a828ff83dbdee6b4110d4ca68 15-Jul-2009 Michael Chan <mchan@android.com> b/1972231 Fixed the problem where the calendar was not showing the next event when launched from widget
om/android/providers/calendar/CalendarAppWidgetService.java
d5c41a495bb4cfbe95112e40d27d251445b32f6d 01-Jul-2009 Michael Chan <mchan@android.com> Added support for querying calendar event instances by day in additional to by time-millis.
om/android/providers/calendar/CalendarProvider.java
26f271e1a70599a710470624b2f6d0b934b97a17 29-Jun-2009 Ken Shirriff <kens@google.com> Add Entity support for CalendarProvider

This adds entityQuery to Calendar. This will be used by the
new sync framework.

bug=1943877
om/android/providers/calendar/CalendarProvider.java
7adda6577abfee912ee70134fc965c75a5c63109 23-Jun-2009 Fred Quintana <fredq@google.com> support for changes to the sync settings and control API
om/android/providers/calendar/CalendarProvider.java
om/android/providers/calendar/CalendarSyncAdapter.java
46cb0859f11a244e7136f1b92554148cf74fc732 12-Jun-2009 Ken Shirriff <kens@google.com> Add calendar info debug screen.

Dialing *#*#CAL#*#* will bring up a list of all the calendars,
the number of events in each, and the number of unsynced events
in each.
om/android/providers/calendar/CalendarDebug.java
om/android/providers/calendar/CalendarDebugReceiver.java
9972624a725e6134acdc98263d2bf251877774fe 13-Jun-2009 Ken Shirriff <kens@google.com> Move meta feed handling to CalendarSyncAdapter

The meta feed code is moved from CalendarProvider to CalendarSyncAdapter.
The feed is now updated by a sync, rather than a magic query.
bug=1886271
om/android/providers/calendar/CalendarProvider.java
om/android/providers/calendar/CalendarSyncAdapter.java
46fe9cfe702e4decd0589ef76516cfaeccf03d48 19-May-2009 Android (Google) Code Review <android-gerrit@google.com> am b250d293: Merge change 1722 into donut

Merge commit 'b250d29335bae367be26a6f00a04f9e04ff0d135'

* commit 'b250d29335bae367be26a6f00a04f9e04ff0d135':
Handle null timezone.
b250d29335bae367be26a6f00a04f9e04ff0d135 18-May-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 1722 into donut

* changes:
Handle null timezone.
2cc5ff176e83304114ad87d516ce3cf44cbc43e8 15-May-2009 Ken Shirriff <kens@google.com> am b42d4014: Fixed bug 1850510: missing recurrence exception event

Merge commit 'b42d40142b446c40b8917fcc54812f17639b20de'

* commit 'b42d40142b446c40b8917fcc54812f17639b20de':
Fixed bug 1850510: missing recurrence exception event
a50a5e80e5f2acb58959c620d82ab4ab3b4fa167 15-May-2009 Ken Shirriff <kens@google.com> Handle null timezone.

If an event has null timezone, set the timezone to the device's timezone.

bug=1604419
om/android/providers/calendar/CalendarSyncAdapter.java
b42d40142b446c40b8917fcc54812f17639b20de 14-May-2009 Ken Shirriff <kens@google.com> Fixed bug 1850510: missing recurrence exception event

The old code skipped an exception if the original recurrence instance
wasn't present. The benefit of this is that exceptions will disappear
as soon as a recurrence is deleted or truncated. (After talking to the
server, the exception will be tombstoned, so this is an optimization.)

The problem with the old code is if the original recurrence instance is
outside the expansion window, it will not be present in the list, so the
exception will be erroneously dropped.

This fix just removes the code to drop exceptions when the original instance
is not present. If the old behavior is desirable, the code will need to
expand the original recurrence around the original instance time (not the
current window) to see if it is present.

This change also adds a couple additional regression tests. It also changes
an existing test to add the server-side cancel message (since otherwise the
test won't pass after this change). Some additional logging is added to
the unittest when the test fails.
om/android/providers/calendar/CalendarProvider.java
24a0b5f0b2a5f5b2d09098cab996f2e362127ec5 04-May-2009 Ken Shirriff <kens@google.com> am 1016808: Add incremental instance expansion.

Merge commit '1016808b6ab82f62f61c464e5566598eb32c30d1'

* commit '1016808b6ab82f62f61c464e5566598eb32c30d1':
Add incremental instance expansion.
1016808b6ab82f62f61c464e5566598eb32c30d1 01-May-2009 Ken Shirriff <kens@google.com> Add incremental instance expansion.

The idea is for modifications to a recurrence or recurrence exception, instead
of discarding the entire instance table, only the instances related to that
recurrence are deleted, and then the instances related to that recurrence
are re-created.

bug=1655299
om/android/providers/calendar/CalendarProvider.java
bad84b293c08903c63be69bbc30355cb1e6af495 30-Apr-2009 Fred Quintana <fredq@google.com> decouple SyncAdapter from ContentProvider
om/android/providers/calendar/CalendarProvider.java
om/android/providers/calendar/CalendarSyncAdapterService.java
467c3fd8ca37c6b518ef477f976038be9b5b45a6 30-Apr-2009 Ken Shirriff <kens@google.com> am a8b23f2: Refactor expandInstanceRangeLocked

Merge commit 'a8b23f2b386e3e0be20ef06522292314de8cbc78'

* commit 'a8b23f2b386e3e0be20ef06522292314de8cbc78':
Refactor expandInstanceRangeLocked
a8b23f2b386e3e0be20ef06522292314de8cbc78 30-Apr-2009 Ken Shirriff <kens@google.com> Refactor expandInstanceRangeLocked

Split into getEvents to perform database lookup and
performInstanceExpansion to do the actual instance expansion. Remove some
dead code. Clean up try/catch so an error will just affect the specific
bad event.
om/android/providers/calendar/CalendarProvider.java
7267f8da4c5300723cfc4746eccc551551e2c363 29-Apr-2009 Android (Google) Code Review <android-gerrit@google.com> am f2132e5: Merge change 366 into donut

Merge commit 'f2132e50346563e2051a10fe4b98b42bc0315e86'

* commit 'f2132e50346563e2051a10fe4b98b42bc0315e86':
Filter bad calendar events.
17726c77f5b8c53d82cafc21844f24e0b1893d0d 23-Apr-2009 Fred Quintana <fredq@google.com> change the sync framework and users to understand Account
om/android/providers/calendar/CalendarProvider.java
om/android/providers/calendar/CalendarSyncAdapter.java
91bb0d86e0d335a48e19aabaec0a2da4dd74ec5a 23-Apr-2009 Jean-Baptiste Queru <jbq@google.com> Merge donut into master
0dd176ed633b197ef68c0c0206d067930091e832 21-Apr-2009 Ken Shirriff <kens@google.com> Filter bad calendar events.

Events expanded beyond 2038 were causing eventStatus crashes.

Events past 2038 were getting inserted into the database with a dtstart of -1
and lastDate of NULL. This caused the SQL query in expandInstanceRangeLocked
to pick up the event. Then, because dtendMillis was < end, the code assumed
it must be a recurrence exception and canceled it. The later code that
removes recurrence exceptions ignored the event because it wasn't a recurrence
exception, leaving the cancel in the ContentValues, causing a database error.
Thus, multiple errors had to exist to cause this bug.

The bug is no longer active, since some of the steps in the chain of events
have already been fixed. This change fixes the step that assumes the
event is a recurrence exception, which will make the code more robust.

Bug: 1705312
om/android/providers/calendar/CalendarProvider.java
0d3310586b605b18e2fa098f2f6520b183c1d16c 20-Apr-2009 Ken Shirriff <kens@google.com> Document instance invariants

Add comments to document invariants in expandInstanceRangeLocked
om/android/providers/calendar/CalendarProvider.java
d66a5e3494014c7529f06628e2d7e556fec3de32 21-Apr-2009 Fred Quintana <fredq@google.com> adding concept of features to accounts
om/android/providers/calendar/CalendarProvider.java
c97817cd150b786c7d18c484758802080b07f9ca 07-Apr-2009 Jeff Sharkey <jsharkey@android.com> Make Calendar widget treat multi-day events the same as allDay.

Events that start mid-day and span multiple days are not assigned the allDay flag, and were being treated as normal events. This caused us to show the same event on the calendar widget for several days, until half-way through the multi-day event.

This change treats any events with duration longer than a single day as allDay events, which triggers a widget change at the event start instead of half-way through the event.

http://b/issue?id=1772674
om/android/providers/calendar/CalendarAppWidgetService.java
1d468494e94945da5259655965a660bb5e6ead88 09-Apr-2009 Fred Quintana <> AI 145177: phase two of the AccountManager
- added an AccountManagerActivity, a base Activity that can be
used by activities that are launched by AccountAuthenticator
intents. This makes it easy for an Activity to send a result
using an AccountAuthenticatorResponse
- added debug strings to the AccountAuthenticatorCache
- improved the API for the AccountAuthenticatorResponse and
made it Parcelable so that it can be passed to an Activity
via an Intent
- changed the AccountManager to use Futures for the
asynchronous calls and to notify the user via a callback
when the request is complete
- changed the AccountManager to convert any errors that are
returned into Exceptions
- added constants for the error codes that are passed across
the IAccountManagerResponse and
IAccountAuthenticatorResponse interfaces
- added a dump() method to the AccountManagerService so that
it can display the list of active sessions and registered
authenticators
- added an way to interrogate the AccountManagerService for
the list of registered authenticators
- removed more methods from the GoogleLoginServiceHelper and
GoogleLoginServiceBlockingHelper and changed the callers to
use the AccountManager

Automated import of CL 145177
om/android/providers/calendar/CalendarProvider.java
170c196a4093b7448f002ad785b1baabaefcb493 02-Apr-2009 Jeffrey Sharkey <> AI 144202: am: CL 144137 am: CL 144136 Make calendar widget correctly launch Calendar app instead of creating a second task stack.
Fixes the following issues:
- Calendar widget and calendar icon always launch to a specific calendar view--the view last selected by user.
- Launching from both widget and app icon clears any existing activity stacks.
- We correctly keeps the stack history when switching between activities using long-press-home-hardkey
Original author: jsharkey
Merged from: //branches/cupcake/...
Original author: android-build
Merged from: //branches/donutburger/...

Automated import of CL 144202
om/android/providers/calendar/CalendarAppWidgetService.java
8b0cc096a1842d8926aaf4dbfbfb2fab32fbf38f 02-Apr-2009 Jeffrey Sharkey <> AI 144100: am: CL 144068 am: CL 144067 Make Calendar widget launch into last-shown-mode to match behavior of Calendar app icon.
Original author: jsharkey
Merged from: //branches/cupcake/...
Original author: android-build
Merged from: //branches/donutburger/...

Automated import of CL 144100
om/android/providers/calendar/CalendarAppWidgetService.java
9ecfcc3659d7ecc9f60526cdc28fdd968abe6b79 02-Apr-2009 Jeffrey Sharkey <> AI 144137: am: CL 144136 Make calendar widget correctly launch Calendar app instead of creating a second task stack.
Fixes the following issues:
- Calendar widget and calendar icon always launch to a specific calendar view--the view last selected by user.
- Launching from both widget and app icon clears any existing activity stacks.
- We correctly keeps the stack history when switching between activities using long-press-home-hardkey
Original author: jsharkey
Merged from: //branches/cupcake/...

Automated import of CL 144137
om/android/providers/calendar/CalendarAppWidgetService.java
aebc7114a0ec468f291c8a7ff5480a77a277822f 01-Apr-2009 Jeffrey Sharkey <> AI 144068: am: CL 144067 Make Calendar widget launch into last-shown-mode to match behavior of Calendar app icon.
Original author: jsharkey
Merged from: //branches/cupcake/...

Automated import of CL 144068
om/android/providers/calendar/CalendarAppWidgetService.java
00dc6e1bfb8f1b4ba58293b26c79220967ee3304 26-Mar-2009 Jeffrey Sharkey <> Automated import from //branches/donutburger/...@142721,142721
om/android/providers/calendar/CalendarAppWidgetService.java
61a469794653c4337f5abcd44adff88cd52c9e4e 26-Mar-2009 Jeffrey Sharkey <> Automated import from //branches/master/...@142762,142762
om/android/providers/calendar/CalendarAppWidgetService.java
c47ce7e19a78ef7e535ffbc2f70ddb3e85a2c81d 25-Mar-2009 Fred Quintana <> Automated import from //branches/master/...@142414,142414
om/android/providers/calendar/CalendarProvider.java
de1faa11dfee3d4735e6a5ffdd6b26e67e697cc1 25-Mar-2009 Ken Shirriff <> Automated import from //branches/master/...@141764,141764
om/android/providers/calendar/CalendarSyncAdapter.java
8c33a8a31acea5699e504be861f5606f675d42ff 25-Mar-2009 Ken Shirriff <> Automated import from //branches/donutburger/...@141761,141761
om/android/providers/calendar/CalendarSyncAdapter.java
a48e5d04d39da396156925cb4a78f751c9dbf59e 25-Mar-2009 Jack Veenstra <> Automated import from //branches/donutburger/...@141279,141279
om/android/providers/calendar/CalendarProvider.java
e89a281b2d8df22d88b495695e56085af54fbd04 25-Mar-2009 Jack Veenstra <> Automated import from //branches/master/...@141282,141282
om/android/providers/calendar/CalendarProvider.java
42f855964bcd903e870e10c0dd63090a089c4e4a 25-Mar-2009 Jeffrey Sharkey <> Automated import from //branches/donutburger/...@141103,141103
om/android/providers/calendar/AppWidgetShared.java
om/android/providers/calendar/CalendarAppWidgetProvider.java
om/android/providers/calendar/CalendarAppWidgetService.java
8f87d81901d960abd19a06c97ae4487f9fb1c0a0 25-Mar-2009 Jeffrey Sharkey <> Automated import from //branches/master/...@141104,141104
om/android/providers/calendar/AppWidgetShared.java
om/android/providers/calendar/CalendarAppWidgetProvider.java
om/android/providers/calendar/CalendarAppWidgetService.java
d494a83e74787664ad68c086b8b4025ae4d4cf20 25-Mar-2009 Jack Veenstra <> Automated import from //branches/master/...@140912,140912
om/android/providers/calendar/CalendarProvider.java
818f28c9ba4fd9fd303931795e6d97d3322d2947 25-Mar-2009 Jack Veenstra <> Automated import from //branches/donutburger/...@140910,140910
om/android/providers/calendar/CalendarProvider.java
9c459b0193d1eb92ade63ef887cdfe08367266e0 25-Mar-2009 Debajit Ghosh <> Automated import from //branches/donutburger/...@140817,140817
om/android/providers/calendar/CalendarProvider.java
om/android/providers/calendar/CalendarSyncAdapter.java
9dc22df9b910e2a40750c7f5860574995fdbb572 25-Mar-2009 Debajit Ghosh <> Automated import from //branches/master/...@140820,140820
om/android/providers/calendar/CalendarProvider.java
om/android/providers/calendar/CalendarSyncAdapter.java
fccf362949c516d6810314d8e51d70375c05943f 19-Mar-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //branches/cupcake_rel/...@140373
om/android/providers/calendar/CalendarAppWidgetProvider.java
om/android/providers/calendar/CalendarAppWidgetService.java
om/android/providers/calendar/CalendarProvider.java
383907963c93e41e1cd88b760c7c5e620ccd77bc 13-Mar-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //branches/cupcake_rel/...@138607
om/android/providers/calendar/AppWidgetShared.java
om/android/providers/calendar/CalendarAppWidgetProvider.java
om/android/providers/calendar/CalendarAppWidgetService.java
8c72707f905724d37c9aa8965129b5dedbdcbe22 11-Mar-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //branches/cupcake/...@137873
om/android/providers/calendar/CalendarAppWidgetProvider.java
om/android/providers/calendar/CalendarGadgetProvider.java
om/android/providers/calendar/CalendarProvider.java
om/android/providers/calendar/TimeChangeReceiver.java
93ac3484c10a93c016ed8158a6f09a558acd4dc8 09-Mar-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //branches/cupcake/...@137197
om/android/providers/calendar/CalendarProvider.java
14b93523154ba865156107bb2f3a97b998175170 05-Mar-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //depot/cupcake/@136594
om/android/providers/calendar/CalendarGadgetProvider.java
om/android/providers/calendar/TimeChangeReceiver.java
cf013ece751816a07396845858f1c7037ead464f 04-Mar-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //depot/cupcake/@135843
om/android/providers/calendar/CalendarGadgetProvider.java
om/android/providers/calendar/CalendarProvider.java
om/android/providers/calendar/CalendarReceiver.java
om/android/providers/calendar/CalendarSyncAdapter.java
om/android/providers/calendar/Duration.java
om/android/providers/calendar/MetaData.java
om/android/providers/calendar/RecurrenceProcessor.java
om/android/providers/calendar/TimeChangeReceiver.java
om/android/providers/calendar/VCal.java
11d37e08e1fbd651f09a3960c5a063cda55e8f4e 04-Mar-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //depot/cupcake/@135843
om/android/providers/calendar/CalendarProvider.java
om/android/providers/calendar/CalendarReceiver.java
om/android/providers/calendar/CalendarSyncAdapter.java
om/android/providers/calendar/Duration.java
om/android/providers/calendar/MetaData.java
om/android/providers/calendar/RecurrenceProcessor.java
om/android/providers/calendar/VCal.java
ca9b36fc9a01a2b8b3c1ad3c4e8fb22dc82b5869 03-Mar-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //depot/cupcake/@132589
om/android/providers/calendar/CalendarGadgetProvider.java
om/android/providers/calendar/CalendarProvider.java
om/android/providers/calendar/CalendarReceiver.java
om/android/providers/calendar/CalendarSyncAdapter.java
om/android/providers/calendar/RecurrenceProcessor.java
om/android/providers/calendar/TimeChangeReceiver.java
d99ea592f918f8e71029c1c77bc257cca30e4a64 03-Mar-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //depot/cupcake/@137055
om/android/providers/calendar/CalendarGadgetProvider.java
om/android/providers/calendar/CalendarProvider.java
om/android/providers/calendar/CalendarReceiver.java
om/android/providers/calendar/CalendarSyncAdapter.java
om/android/providers/calendar/RecurrenceProcessor.java
om/android/providers/calendar/TimeChangeReceiver.java
21aa15bc1c446b904c7de507dfdce6fcced858cf 19-Feb-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //branches/cupcake/...@132276
om/android/providers/calendar/CalendarProvider.java
om/android/providers/calendar/RecurrenceProcessor.java
e978e449ab8062e72c60d38043a60f87afac6f14 13-Feb-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //branches/cupcake/...@131421
om/android/providers/calendar/CalendarProvider.java
om/android/providers/calendar/Duration.java
om/android/providers/calendar/RecurrenceProcessor.java
a01542cd5a9d1f6a328a11ae806f05eda133d60a 11-Feb-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //branches/cupcake/...@130745
om/android/providers/calendar/CalendarProvider.java
om/android/providers/calendar/RecurrenceProcessor.java
bac373a84429fd2a38f7de37d215749d80eb78ba 16-Jan-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //branches/cupcake/...@126645
om/android/providers/calendar/CalendarProvider.java
om/android/providers/calendar/CalendarSyncAdapter.java
3cb9756c37e3e39dc488a98223ad8808f19c3c16 10-Jan-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //branches/cupcake/...@125939
om/android/providers/calendar/CalendarProvider.java
ae7b7b563f4a00891fac35b94109592f9137e027 18-Dec-2008 The Android Open Source Project <initial-contribution@android.com> Code drop from //branches/cupcake/...@124589
om/android/providers/calendar/CalendarProvider.java
om/android/providers/calendar/CalendarSyncAdapter.java
om/android/providers/calendar/RecurrenceProcessor.java
om/android/providers/calendar/VCal.java
b558dececce20291e0a0195a4bd9835f4a8a1918 21-Oct-2008 The Android Open Source Project <initial-contribution@android.com> Initial Contribution
om/android/providers/calendar/CalendarProvider.java
om/android/providers/calendar/CalendarReceiver.java
om/android/providers/calendar/CalendarSyncAdapter.java
om/android/providers/calendar/Duration.java
om/android/providers/calendar/MetaData.java
om/android/providers/calendar/RecurrenceProcessor.java
om/android/providers/calendar/VCal.java