History log of /packages/apps/Calendar/src/com/android/calendar/Utils.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
35dbc7a1131d7cb22faa0b2b86f5d93bee45ce0b 05-Oct-2012 Sara Ting <sarating@google.com> Workaround Email bug that does not set email body correctly, when emailing guests.

Bug:7289773
Change-Id: I11a455a42c1d0d592f10cc6f6ad370eb86e610e2
/packages/apps/Calendar/src/com/android/calendar/Utils.java
6427090cf0d69c2409f5bb7b0d8d6aba31027cc0 27-Sep-2012 Michael Chan <mchan@android.com> Fixed NPE in matrixCursorFromCursor

Bug: 7239584
Change-Id: I587b63587d020622c008fb7580cd7a713292c50d
/packages/apps/Calendar/src/com/android/calendar/Utils.java
dacfb663d63253880090151fde87bd9da9a59347 21-Aug-2012 Sara Ting <sarating@google.com> Adding util method to get release version.

Change-Id: I7b2f7ad1d179135aab211dabce5e64dcbe924f1b
/packages/apps/Calendar/src/com/android/calendar/Utils.java
537f43d0eb9e86133ea8ed95862dfdbd788bba67 03-Aug-2012 Michael Chan <mchan@android.com> Adjust colors only for JB and above

Bug: 6834504
Change-Id: Iac4c5b1f28dd9efa0f71d29bd6d37732b0076452
/packages/apps/Calendar/src/com/android/calendar/Utils.java
44e8cc54ee10f3dbbd7a00d01fbd2b9913f21b56 18-Jun-2012 Michael Chan <chanm@google.com> am 6e354ae4: am 877f5203: Merge "Add quick response when email guests in notification" into jb-dev

* commit '6e354ae475cc765598b8520afa742c0a6541eb9d':
Add quick response when email guests in notification
e98dca7e0042f7b36788b0e5d8dc6e94048c895c 16-Jun-2012 Michael Chan <chanm@google.com> Add quick response when email guests in notification

Bug: 6682390
Change-Id: Iee013a88fde397f67f51583bd488d029f12d1a87
/packages/apps/Calendar/src/com/android/calendar/Utils.java
fac2d1594f7ecae8e50dc7790ce67de0c9b70d22 31-May-2012 Sara Ting <sarating@google.com> Make notifications code ICS compatible.

Change-Id: Ie91183c8fd8cb48d5f5acc40335e6e123d34d56f
/packages/apps/Calendar/src/com/android/calendar/Utils.java
247a2f141c2b70d1ed36dfba708667edd86d4b61 14-May-2012 Sara Ting <sarating@google.com> Fix notification's email button to close notification shade.

Bug:6480080
Change-Id: Iaf0f5d99ea3738a348ac2b15bef8e242d5df0cd7
/packages/apps/Calendar/src/com/android/calendar/Utils.java
c999316fd5a6a8c6291a885e0e239cedf86b59b2 09-May-2012 Isaac Katzenelson <isaack@android.com> Fix today icon in search activity

Bug: 6465067 Today icon missing date when searching in landscape mode
Change-Id: I7ea2654c67edc2cfd1dc21d6d97705320b593e94
/packages/apps/Calendar/src/com/android/calendar/Utils.java
85e3cef67e8d775afa8b08e8bffdd77fac007762 30-Apr-2012 Sara Ting <sarating@google.com> Fix NPE in Utils.matrixCursorFromCursor().

Bug: 6145376
Change-Id: I91f50431fa9311f64608cdc0438efe5b7b598ae4
/packages/apps/Calendar/src/com/android/calendar/Utils.java
ddbc002f3471e224fc112d406116e396ee1c50ae 27-Apr-2012 Sara Ting <sarating@google.com> Query by profile id when it exists for attendee info in event view.

Bug: 6324575
Change-Id: I2613d4ff9edef02495d3b5e636a697c137784527
/packages/apps/Calendar/src/com/android/calendar/Utils.java
059117da0141f5e3c6ce479dd87c6f8d8365e7e1 25-Apr-2012 Sara Ting <sarating@google.com> Fix for bug 6394170: fixing display for multiday all day events.

Change-Id: I186f1a48598fa5e387f715c64f261f6563aeea0d
/packages/apps/Calendar/src/com/android/calendar/Utils.java
d9d123dfa366f3217e8f5fbca06b92ab674384b9 24-Apr-2012 Sara Ting <sarating@google.com> Moved code creating the Intent for emailing attendees to Utils.java to be shared by upcoming notifications work.

Change-Id: Iec3879f3224e4a6132291c0958125e1974fe41c4
/packages/apps/Calendar/src/com/android/calendar/Utils.java
23acd2668d65c2282f7aa922b4e86a7713d9b2fa 20-Apr-2012 Sara Ting <sarating@google.com> Fix for bug 5045587: Recurrence and timezone labels should have 40% opacity.

Change-Id: I8b4061f2a1815c8b3bdbbbd8d439bf4b6cf9dbe8
/packages/apps/Calendar/src/com/android/calendar/Utils.java
4e92627c5eb10de50c49c57e116b080d48360c70 19-Apr-2012 Sara Ting <sarating@google.com> Fixed missing event name from the event info details, and changed datetime description to display "Today at <time>" or "Tomorrow at <time>".

Change-Id: I5d529214f65eba38b661d074704ed3ef5e6b5428
/packages/apps/Calendar/src/com/android/calendar/Utils.java
75f53668f94c3ced9d3cc8583d7e45ce725ff9de 10-Apr-2012 Sara Ting <sarating@google.com> Shorten date/time info in event info to display in one line.

1) Don't show the year if it is the current year, 2) shorten day/month names for multiday events, 3) display "Today" or "Tomorrow" when possible, 4) use short timezone string. (b/6285801)

Change-Id: Idc4646c15f90ea6803cdff7cde985550501f62cf
/packages/apps/Calendar/src/com/android/calendar/Utils.java
4bd4a5ccc3efcc282964e789e1e81577c64561c9 20-Mar-2012 Isaac Katzenelson <isaack@android.com> Support for today's day of month in the today button

Bug: 5429738 Today icon should display the current day number
Change-Id: Iaf4a2d6f983190b02cc4666492cf9a4dded190e9
/packages/apps/Calendar/src/com/android/calendar/Utils.java
f9411fefba89504c90a7bd8da5472cac538e916a 11-Feb-2012 Michael Chan <mchan@android.com> New color adjustment algorithm that are compatible with light colors.
This is not final.

Change-Id: Ifd0a8a81a98ae1d131706fd5845b4e1001661ee6
/packages/apps/Calendar/src/com/android/calendar/Utils.java
d019261079bc40e500e7c1082e78a93bdf4ad588 17-Nov-2011 Isaac Katzenelson <isaack@android.com> Merge "Fix agenda list view location" into ics-mr1
c1fae4df6202ac82c3facd76e5f33c7cbacb39d1 07-Nov-2011 Isaac Katzenelson <isaack@android.com> Fix agenda list view location

Changed AgendaWindowAdapter to move to a specific time/event id instead
of moving to the day of the event.
Stop fling motion when the today button is pressed.

Bug 5424040 ICS: On opening, Agenda view should scroll to
nearest upcoming or in progress event
5547705 AgendaListView keeps scrolling after pressing
the "today" button.

Change-Id: I8982b4d9254a077e83df48c857c418063b9ea691
/packages/apps/Calendar/src/com/android/calendar/Utils.java
99704a2787158bf670fa4a7b4e4f89ace10afa00 11-Nov-2011 Michael Chan <mchan@android.com> b/5233576 Fixed the problem where long desc are not showing

Change-Id: Ic12e5e0158021996d0b3822803a4dad8fb10d904
/packages/apps/Calendar/src/com/android/calendar/Utils.java
7ef2981ab9ad32a6818b36cefbd39f070ba708ed 26-Oct-2011 Isaac Katzenelson <isaack@android.com> Support for 7 inch devices

Changed layout directory names
Added values directories
Added config values to support event info behavior

Change-Id: I78d14e952250008cc453ed7b2ff3ec638eea6eac
/packages/apps/Calendar/src/com/android/calendar/Utils.java
4ecf0648e68bc9339a3d64745008a4617f7bedda 18-Oct-2011 Isaac Katzenelson <isaack@android.com> Change alpha for declined events text

Change-Id: I21fdbd7ae15abc9ad9c45251703b0f051836927e
/packages/apps/Calendar/src/com/android/calendar/Utils.java
e6109c584d27a6c25df1819a5c6ec444e789ce61 15-Oct-2011 Isaac Katzenelson <isaack@android.com> Add opacity to declined event's text

Bug: 5438462 Draw opacity on declined event titles
Change-Id: I01794649e9b756d5ccca32d04ac2429db890cdfb
/packages/apps/Calendar/src/com/android/calendar/Utils.java
4ba19dfbd8eccc5a22c3e064a9810336ef73f658 22-Sep-2011 RoboErik <epastern@google.com> b/5358974 Make pressing up button return to previous time

Change-Id: I6e831416e70df0e1ddc78d9ef002146046fd7ea0
/packages/apps/Calendar/src/com/android/calendar/Utils.java
3c40e07972c989719723e24db6d5d8812200823b 14-Sep-2011 RoboErik <epastern@google.com> Use new whitening for declined events.

Change-Id: I289a2651eb7c87768c12719123d74d935ea35ddc
/packages/apps/Calendar/src/com/android/calendar/Utils.java
17c0cea5c4e5eee7b6c1676038e9223dd971007b 20-Aug-2011 Michael Chan <mchan@android.com> Fix warnings

Change-Id: Ia28012de0cba552cee8e312c122ae5a3e672c541
/packages/apps/Calendar/src/com/android/calendar/Utils.java
4eb3432c5b0109376bcce9236da71e6fb4324b90 20-Aug-2011 RoboErik <epastern@google.com> b/5159645 Show day of week in day view

Change-Id: I422e6f26b6b9210894f46deb3ecbd1899717ea82
/packages/apps/Calendar/src/com/android/calendar/Utils.java
5d89406c7ca7974b5fe61b21c82634f8726439ef 13-Aug-2011 Michael Chan <mchan@android.com> Fix warnings

Change-Id: Ifce8eed10172b6a41b945abb5a18613f975587dd
/packages/apps/Calendar/src/com/android/calendar/Utils.java
ac73e694de44e59d1b1c1af098c6f96b962ed020 28-Jul-2011 RoboErik <epastern@google.com> Merge "b/5076961 Fixes up search patterns"
50f10944eddba97e6730bbdc7545672d0eeec08c 26-Jul-2011 RoboErik <epastern@google.com> b/5076961 Fixes up search patterns

The Search screen won't work correctly until b/5086888 is fixed.

Change-Id: I7b483da506feed45dd4e57b48639a8c75da8ee71
/packages/apps/Calendar/src/com/android/calendar/Utils.java
3864be025ed7fa5bcb33c7adaae9267d5b34f17f 26-Jul-2011 RoboErik <epastern@google.com> b/3362680 fix up register/deregister for AllInOneActivity

Also fixes back stack for up key

Change-Id: I8f789db685e352eaf1172bc7e1712c34476e2c4f
/packages/apps/Calendar/src/com/android/calendar/Utils.java
14e82b453a95456277fa5c40189c9b253a8e487f 19-Jul-2011 RoboErik <epastern@google.com> b/5022394, b/4977860 Add 'Week N' and Home Time

Change-Id: I312e9f152a1b373e9940515d79235880c9d45655
/packages/apps/Calendar/src/com/android/calendar/Utils.java
bbb5b556996dfe989ef5267bfb3ba707bb740070 19-Jul-2011 RoboErik <epastern@google.com> Fix build break in calendar

Change-Id: Ie2e0364db2157d4610648e3c5ea086073e99341a
/packages/apps/Calendar/src/com/android/calendar/Utils.java
11e781944710bb127b0d9b51e5159c1fd100abda 19-Jul-2011 RoboErik <epastern@google.com> Merge "b/5039455 Makes cal color adjust everywhere we display cal colors"
2aeb8d988aa4b65d3402374832613ab977e009dc 10-Jul-2011 Michael Chan <mchan@android.com> Add UI to select calendar visibility on the phone

Bug:4731309
Change-Id: I09975d9a79e407df6e4eb41f4cb7e4e0f42ddd48
/packages/apps/Calendar/src/com/android/calendar/Utils.java
4acb2fd087308dea146b8b10f5278c59df387680 19-Jul-2011 RoboErik <epastern@google.com> b/5039455 Makes cal color adjust everywhere we display cal colors

Change-Id: I108b112d1ef73c596e99429ced9b408733c08db1
/packages/apps/Calendar/src/com/android/calendar/Utils.java
42dabd1e1e89b0d4af5afb776c6ecc53f6ae9fba 13-Jul-2011 RoboErik <epastern@google.com> Update widget to use Agenda style layout

Change-Id: I24f4aa877a2bc1e92617eb70827462ba382280ad
/packages/apps/Calendar/src/com/android/calendar/Utils.java
c0f6efee87520ce0c8b52246129169f94850177b 12-Jul-2011 RoboErik <epastern@google.com> Make up button specify the current app

Otherwise it asks which Calendar if you have the open source
and google versions both installed.

Change-Id: Ibf386a2baa77bc3cb9e2933fdf00e6a0654848f6
/packages/apps/Calendar/src/com/android/calendar/Utils.java
092caec951caa0fabcd51729678e3ddcd6ca2f03 23-Jun-2011 RoboErik <epastern@google.com> DNA in mini-month!

Now in ColorVision!

Also a bunch of fixes to how we figure out
the x position for drawing stuff and some visual tweaks to get
closer to the design.

Change-Id: Ifc285ebd854c0f3a33902fe5fde73290ead4c9e0
/packages/apps/Calendar/src/com/android/calendar/Utils.java
a27a886892fe3ec5edbc63c0b58e0a988623011a 24-Jun-2011 RoboErik <epastern@google.com> api comment fixes

Change-Id: I711673a21a5314cd3ddf374fd764bda79cb0c6da
/packages/apps/Calendar/src/com/android/calendar/Utils.java
064beb957ae443760118023a40fd7001eb11c1a1 17-Jun-2011 RoboErik <epastern@google.com> Update authorities and actions based on package

Change-Id: I1ddef4bb6dde3d375b5cd2c37042df7fb1986af7
/packages/apps/Calendar/src/com/android/calendar/Utils.java
a7c0390d9c5dd4ff730de505682687fae5f5ced0 14-Jun-2011 RoboErik <epastern@google.com> Rename Calendar.java to CalendarContract.java

Change-Id: Ia6692454099322f6891b326b2c1ad919c13026b7
/packages/apps/Calendar/src/com/android/calendar/Utils.java
636269c7220a2b12e090cab43a91eb34922eb61f 09-Jun-2011 Andy McFadden <fadden@android.com> More Calendar unbundling

Move CalendarUtils from the framework to the app.

Use java.util.Calendar APIs rather than LocaleData.

Bug 4575374

Change-Id: Ie5063f451bd1b8ece92acbadea708428cd725be4
/packages/apps/Calendar/src/com/android/calendar/Utils.java
71b9ce3a20ebaff8f7e40fc0e5ec2a388bcc394c 06-May-2011 Isaac Katzenelson <isaack@android.com> Show overlap time in BusyBits in month view

Change-Id: Ic298843a17f54eb4bb4d977d369d257926753d62
/packages/apps/Calendar/src/com/android/calendar/Utils.java
72a9459e1f4cec02ad9e8dbdf824d66920b762ee 05-May-2011 Isaac Katzenelson <isaack@android.com> Improved algorithm for BusyBits

Change-Id: I543d10c18e1968b3197d8d78c75182bba7bd8a2c
/packages/apps/Calendar/src/com/android/calendar/Utils.java
c18dd7aea8c8ee06dd34f268ea9e0e9e7c235b7f 19-Apr-2011 Isaac Katzenelson <isaack@android.com> Support events that span multiple days in "Busy Bits"

Change-Id: Ieccdc0b47e5ab474298512dd6b14832b5774d470
/packages/apps/Calendar/src/com/android/calendar/Utils.java
82400dd70331df7885dd59b809c4bc0667046320 15-Apr-2011 Isaac Katzenelson <isaack@android.com> Support for "Busy Bits" in month view

Change-Id: I80e4ab5c55113c3f15c396443c29351bb2dc60fa
/packages/apps/Calendar/src/com/android/calendar/Utils.java
ff5c4345f794ec12b0a92f284434ddc1c88ff3a8 15-Apr-2011 Isaac Katzenelson <isaack@android.com> Config file support for "show details in month"

Change-Id: Ib1249e21da0dbded9f459e11baee424d1ba2ad0e
/packages/apps/Calendar/src/com/android/calendar/Utils.java
5b2a907fa3a983f74bb48da86846e351c2a464d0 09-Apr-2011 Isaac Katzenelson <isaack@android.com> Removing icon and hide/show controls from action bar

Change-Id: I3883787e0eabcf41b91d451ca50f30970e87175b
/packages/apps/Calendar/src/com/android/calendar/Utils.java
0b1bd10dbf90e55821a555c68a8a444854e31252 07-Apr-2011 Isaac Katzenelson <isaack@android.com> Fix event info layout and removing icon from bar for phone

Change-Id: Ifff52390c9c0d5fcfdf5f1c4001aab4a7edc7b42
/packages/apps/Calendar/src/com/android/calendar/Utils.java
9da910f65de0a325d4268d88f0cf2e2fd653f24a 15-Mar-2011 RoboErik <epastern@google.com> b/4102024 Fix allday event launching from widget

Widget was sending times in the wrong tz for allday events when
launching form a tap on an event in the widget. This fixes that
as well as another bug with deciding when to update where the
tz was being adjusted twice and the next trigger time was wrong.

Change-Id: Ic60fc1c6d29c6ce6572ac31836bea4f89877c1a2
/packages/apps/Calendar/src/com/android/calendar/Utils.java
b9b34ea19f7b74f6d9dceccc19cc110d68291c74 04-Mar-2011 Michael Chan <mchan@android.com> Clean up

Change-Id: I90d04b6a44642cca4e7065f3d0ed7cd2a5b70b1d
/packages/apps/Calendar/src/com/android/calendar/Utils.java
cfa204ba5c59eb6ebd4b54788ceb31010e4a37a0 23-Feb-2011 RoboErik <epastern@google.com> b/3459404 Fix format of minimonth view in other languages

Change-Id: I352c9770f0b4da8dbd91c53e2b95770d20ea57cb
/packages/apps/Calendar/src/com/android/calendar/Utils.java
63cd053150e00fde045b019dbe0f48b8a9ed3559 26-Jan-2011 Erik <epastern@google.com> b/3395354 Make month view always go to correct time

Also makes month views not animate if they're moving more
than two visible ranges and fixes a bug with popups not
being created after pressing home and then launching an
event from the widget.

Change-Id: I5cf32170227f839e14af018141efe0224d324497
/packages/apps/Calendar/src/com/android/calendar/Utils.java
ec047f19da78f4feaa5b9866846b375b454cd547 20-Jan-2011 Erik <epastern@google.com> Fix color chip where it was still a bar

Change-Id: Idd6ca8b5c88a0d895d96127b45f2b1315c279599
/packages/apps/Calendar/src/com/android/calendar/Utils.java
ca4786769151f97069980443ce43d9c4f867ac5b 20-Jan-2011 Erik <epastern@google.com> Some visuals work

Change-Id: I62822bde98012218dbcae561371539aeff259980
/packages/apps/Calendar/src/com/android/calendar/Utils.java
b60218a31d948ea0a549daf6464063d20b48421f 15-Dec-2010 Michael Chan <mchan@android.com> Allow week view when launching from Widget.

Previously only Agenda and Day views were valid "detail" views.
Now, week view is also valid for XL devices

Change-Id: Ibe9b0564e1379a28f9291b9851f4168de9e27170
/packages/apps/Calendar/src/com/android/calendar/Utils.java
91b01ed605e36fc5a7a924c226597a62c789b50d 23-Nov-2010 Erik <epastern@google.com> Fix support for arbitrary week lengths

Change-Id: I11bf2b2070ba78d426d4bac49f693d0c816f64a0
/packages/apps/Calendar/src/com/android/calendar/Utils.java
40bcd101b212c9863c3110c05a487a7ae6ebc3ca 17-Nov-2010 Erik <epastern@google.com> Finishes making full month use list view

This is the last piece to get parity with the old month view code
using a list view for rendering the month. This version should be
much faster. Also fixes a couple more bugs with home time zone.

Change-Id: I7661ef7cf0290d714d7c053155ad6048355d8a3e
/packages/apps/Calendar/src/com/android/calendar/Utils.java
d885c1a5876735bbf2c0086956101bd70bac37e7 26-Aug-2010 Michael Chan <mchan@android.com> Controls the numbers of hours shown via vertical pinch gesture

Change-Id: I3e951424bb4f8aae30e06dd64c59db3b74dc66a8
/packages/apps/Calendar/src/com/android/calendar/Utils.java
29190975b9238dd6841f822f82f2fb83b0557f36 27-Oct-2010 Daisuke Miyakawa <dmiyakawa@google.com> Fix shrinking-multi-day-event bug.

Bug: 3099492
Change-Id: I74d266ce00e025a7e19279deb52ed62cf15a82f1
/packages/apps/Calendar/src/com/android/calendar/Utils.java
d644b0df14ae6e204369b3454d16976fba32f15c 22-Oct-2010 Daisuke Miyakawa <dmiyakawa@google.com> Add "Show week view" option in GeneralPreference.

Bug: 3116916
Change-Id: I1bed5599cf40826c189f27966c8c827f4531755c
/packages/apps/Calendar/src/com/android/calendar/Utils.java
981874e61ecf29a96a77601a3172b2503b6537ee 06-Oct-2010 Erik <roboerik@android.com> Work on making month view a list view

This reworks mini month view to use a list view for scrolling to
improve efficiency. Also has some code prep for extending to
full month view and redoes some of the visuals to be closer to
the design doc.

Change-Id: I83d1b5bc8c2386094357225f9638a4830fec955e
/packages/apps/Calendar/src/com/android/calendar/Utils.java
7b92da258a480284dcc15a518ea570072329a31d 23-Sep-2010 Erik <roboerik@android.com> b/2988876 Stop crash on orientation change

EditEventFragment was triggering a fragment swap in onPause, which
isn't supported. This fixes the behavior of Edit to handle moving
the fragment around correctly. This change makes the behavior save
the event when back is pressed and restore the event if the user
goes home and returns. On orientation change changes get lost,
however. Another change will be made to fix this.

Change-Id: Iaef5eac6668a8e0ee4859f69e5a77ecb9a7a15a3
/packages/apps/Calendar/src/com/android/calendar/Utils.java
a48b9d426236d8d26bd99602bf0a84315b3f1b09 23-Sep-2010 Erik <roboerik@android.com> Manual merge of tz settings changes.

Merges changes I4ad92a73 and Ia7260f4d. This moves Calendar to
using the hidden TimeZoneUtils API and properly displaying and
updating the home time zone in settings.

Change-Id: I51a80da0963ba5924a09e920f158cdc1c158fb2c
/packages/apps/Calendar/src/com/android/calendar/Utils.java
4b441bd6544fe6d11be75f974a41afd8fa040a4f 16-Sep-2010 Daisuke Miyakawa <dmiyakawa@google.com> Make settings screen support two pane mode.

1) Rename CalendarPreferenceActivity to GeneralPreferences, and
add CalendarSettingsActivity for top-level Activity.

We should retain previous logs for CalendarPreferenceActivity,
and we shouldn't call it "Activity" any more, as it is Fragment.

I'm not sure whether the new "CalendarSettingsActivity" should
be named so, or renaming it to "CalendarPreferenceActivity"
to keep consistency around naming.

2) Add necessary xmls.

Some of them are derived from Settings app, which already has
new two pane structure, so refering its logic seems enough for now.

Change-Id: I6a0b04bb824d06c2842cbd8127e2860c45350987
/packages/apps/Calendar/src/com/android/calendar/Utils.java
35d1362a75eac7cebbe9de23d08fea08c4aac817 08-Sep-2010 Erik <roboerik@android.com> resolved conflicts for merge of 864d1139 to master

Change-Id: Id6c7daeccf202c6d0c73c8a536e09d39173288d4
c497d7df6e1b8d88748e6691af3923c9be9be8e9 08-Sep-2010 Erik <roboerik@android.com> Fix some bugs from gb merges for tz

Not everything needed was merged through. This fixes the bugs
caused by that. After this change a non-functional option to set
a home time zone will be in master.

Change-Id: Ie180d93cb77e576840a6349aa1d8908ddaf12fa9
/packages/apps/Calendar/src/com/android/calendar/Utils.java
275232dae58bb24e3360a779ada9d24601a99bcf 08-Sep-2010 Erik <roboerik@android.com> resolved conflicts for merge of 9ccb1dd0 to master

Change-Id: Ifcc5c862dca3f296c87aa63dfa5bd6c54026d79a
1427657d0bf7e69b831aa495828f67b45b69fd99 04-Sep-2010 Erik <roboerik@android.com> Adds a convenience function for formatting dates in a tz

This adds a convenience function for Calendar that formats a time
range in Calendar's current tz. This change is dependent on I16b3e939.
DO NOT SUBMIT before I16b3e939.

Change-Id: I58cf40f637a6c184ffe501002c4f17eb300f5dbb
/packages/apps/Calendar/src/com/android/calendar/Utils.java
3dc5e908a825b879978ba523d9099dc2255da9a5 07-Sep-2010 Erik <roboerik@android.com> Adds a method for setting a new home tz

This allows us to write a new home tz to preferences and
the local cache (and eventually the db) in a single call.
Also updates preferences activity to use this method when
the user changes the settings.

Change-Id: I25a04a3d630388a1ea8c0db64c55eb5500a7b8a4
/packages/apps/Calendar/src/com/android/calendar/Utils.java
e0df53bf0718e31e865efbfd474e0a41b3e67802 03-Sep-2010 Erik <roboerik@android.com> resolved conflicts for merge of 38ace6e5 to master

Change-Id: Ie436a86f1dd20fc7af56e0e39349e9d6fabfb2c6
235d59cf61769ec8ab777d81cd1ceb2e7530f439 03-Sep-2010 Erik <roboerik@android.com> Adds a getTimeZone helper function to utils

getTimeZone allows Calendar to get the correct timezone to display
in. An asynchronous query still needs to be added once the provider
supports the new tz feature.

Change-Id: I3fcb67067d9f8bace8420574fd57cab7bd3bf154
/packages/apps/Calendar/src/com/android/calendar/Utils.java
dd95df57c8c5a58a85c4c0effad5652dec14f621 27-Aug-2010 Erik <roboerik@android.com> Move EditEventFragment into AllInOneActivity

This change makes AllInOneActivity be the launch point for edit event
and causes it to take over as a full screen view. This way we can
handle message passing between edit event and the rest of calendar
as well as maintain the actionbar items.

Also fixes b/2954347

Change-Id: Ib28e5382abbfe4f72a183c0945f27e61b7fd176e
/packages/apps/Calendar/src/com/android/calendar/Utils.java
24fac46d6b87ce21d5e6a4b1c0fdcaa83d408997 31-Aug-2010 Brad Fitzpatrick <bradfitz@android.com> Rename SharedPreferences$Editor.startCommit() to apply()

Change-Id: I59102c9340ad337485ca227242688ca85d377000
/packages/apps/Calendar/src/com/android/calendar/Utils.java
e461a474a2aba88a0f879512de11a9c1e17df034 26-Aug-2010 Mason Tang <masontang@google.com> Changed to use SharedPreferences#startCommit() for asynchronous commit

Change-Id: I1a0a772b394c3cb7ea8906c580a1e13bad9d2fde
/packages/apps/Calendar/src/com/android/calendar/Utils.java
3ea333d41c04fd5f3a5d45f540c17894874429e8 25-Aug-2010 Mason Tang <masontang@google.com> Added day separators in the widget

- Also substantially refactored the widget service
- Moved much of the string logic into CalendarAppWidgetModel
- Changed the behavior so we do everything in one pass over the cursor and an
additional de-bucketing pass after
- Added a hard limit to the query for maximum events to return
- TODO write unit tests for new behavior

Change-Id: I2ddc2951f9b626e093f02dd365a70f56681eb931
/packages/apps/Calendar/src/com/android/calendar/Utils.java
f4ad4757de32ace6971cf4c3db7c395aa249001a 24-Aug-2010 Mason Tang <masontang@google.com> Moved all edits to shared preferences to an asynchronous service

- This addresses b/2942834
- Should improve responsiveness a bit

Change-Id: Ief02c66ac4c1a132f1dc23853015b5b286807ce7
/packages/apps/Calendar/src/com/android/calendar/Utils.java
fbce65e53c7a111955f638db5bf8bee35381e5b7 16-Aug-2010 Erik <roboerik@android.com> Moved EditEvent into a sub package.

Change-Id: I4bba4ec6651ec90f8d0a7c83c76340ed080178f0
/packages/apps/Calendar/src/com/android/calendar/Utils.java
4c8871bf5dee3b3586b375aee98effde31b781a8 10-Aug-2010 Mason Tang <masontang@google.com> Merged event timezone support from Gingerbread

- Manually merged the change since edit event has changed significantly from GB

Change-Id: I12ff70401d2e24b73df1c09092de89e6cbe00e5e
/packages/apps/Calendar/src/com/android/calendar/Utils.java
124d08889f978b9108cfce8a777dcf2e8bbc96a6 05-Aug-2010 Mason Tang <masontang@google.com> Cleanup of Utils, removed unused functions

Change-Id: If990de6545ca495721b5197881f81d96013d0d9c
/packages/apps/Calendar/src/com/android/calendar/Utils.java
d7c7f2ab6fdb55451ead2d54819ba8f37af2d0a7 02-Aug-2010 Mason Tang <masontang@google.com> Added support for specifying a timezone for an individual event (DO NOT MERGE)

- Changed the EditEvent view to support configuring a timezone
- Added a custom TimezoneAdapter

Change-Id: I03b34cf0d5c137e3429ac14b75e88f2b5fcc0a37
/packages/apps/Calendar/src/com/android/calendar/Utils.java
d6734dbbd704cdb1bc331d1bd74b7a3be58f69ff 22-Jul-2010 Michael Chan <mchan@android.com> - Save/Restore viewType across rotation and quitting
- Read desired viewType from intent (from Widget for example)
- Added a new viewType DETAIL for detail viewing which is the last of Agenda or Day. This is typically triggered from widget and tapping on a day in month view)
- Added SelectedTime (not in use right now)
- Removed Calendar AllInOne Icon in launcher. Back to just one Calendar.
- Fix the problem the time not displaying properly after rotation
- Cleaned up the old detailview stuff, yuck.
- Removed unused code from CalendarApplication and CalendarData.

Change-Id: I78a2172da282fedfc2559cde529a4f034430912b
/packages/apps/Calendar/src/com/android/calendar/Utils.java
9138ce8a14924612c014da2b6e727b4117ba1a92 28-Jun-2010 Mason Tang <masontang@google.com> Added basic support for searching events

- Reusing agenda view for displaying search results
- Currently not fragment-ized

Change-Id: I687b61ca86f92a54c1e402b881edd83111806161
/packages/apps/Calendar/src/com/android/calendar/Utils.java
8e3d430a020744faa21bf4ca24f1a99c36ec5c4f 13-Jul-2010 Mason Tang <masontang@google.com> Added support for app-configurable week start day

- Users can now optionally override the system locale specified week start day

Change-Id: I44b37743abb719c80b0d79b47d8a308edc9732c9
/packages/apps/Calendar/src/com/android/calendar/Utils.java
79f228124de7d98146ca526d743436f6419e2365 24-Jun-2010 Erik <roboerik@android.com> Moves EditEvent into a fragment

Change-Id: Ifcf4683ff8122102d4b8917aacb7a7d5df5751ae
/packages/apps/Calendar/src/com/android/calendar/Utils.java
dc75d7711c7786e3a0c0752d6dca4dbc3e63895b 24-Jun-2010 Erik <roboerik@android.com> Clean up Utils

Removed an unused method from Utils.

Change-Id: I0aafe006e4f874bb0f10909592d83260574f463f
/packages/apps/Calendar/src/com/android/calendar/Utils.java
bed0275111ecc6c4a3a638f90a9bac13bee594f4 27-Apr-2010 Michael Chan <mchan@android.com> AsyncQueryService
Helper class that performs ContentProvider operations in a Service

Features:
- Executes the operation in a background Sservice which minimizes the chance of the operation getting lost because the caller (Activity) is killed.
- Designed for easy migration from AsyncQueryHandler.
- In additional to query/insert/update/delete, it also supports batch mode i.e. ContentProviderOperation
- Undo support in the form for delayed operation with cancel

Todo:
- Add wake lock

Change-Id: Id3b24a34e5af11da448bace585911bcd7d4553c5
/packages/apps/Calendar/src/com/android/calendar/Utils.java
eb10fa8bee049e0052b5cb53dcfbdaccef9f2740 10-Apr-2010 Erik <roboerik@android.com> Change to TextUtils.equals instead of .equals

Could crash on a NPE for an empty string without this.

Change-Id: I1f88889580cfd30f82e867f403e9466a1d7d7819
/packages/apps/Calendar/src/com/android/calendar/Utils.java
a144f86b41170e8ee7fe8d966cc51c5fc90cd44a 30-Mar-2010 Erik <roboerik@android.com> b/2555049 Will only query accounts once when entering Calendars screen

There was noticeable jitter on entering the Calendars screen including
misregistering taps due to the cursor requerying repeatedly during a
sync. This change makes it so we only query on accounts once and then
will requery every five seconds for about a minute. The view will only
be updated if a change has occurred.

Change-Id: I53610836e78d970d452d4c9724a2d3525cd85482
/packages/apps/Calendar/src/com/android/calendar/Utils.java
ff6be831fc682374be6b78c13ecf5daca81f86d9 12-Mar-2010 Michael Chan <mchan@android.com> b/2494603 Improve UI to disambiguate calendars with the same name

Added checks for calendars with duplicated names and if found will now
include the owner e-mail with the display name. Also did some minor
layout changes for German ( b/2516982 ). And started a tests class for
Utils.

Change-Id: I567c6552a8c17b2c7e73d23312ac60f5dc85a1ec
/packages/apps/Calendar/src/com/android/calendar/Utils.java
eca5d33e4230cf6ac3acfe3fabf853f9275f98ca 09-Mar-2010 Erik <roboerik@android.com> b/2496655 Changed launcher to use a default detailed view.

prefs for Calendar seems to have lost a detailed view setting. Changed launcher
to use a default one if it isn't found. Also, a bug fix in getPathSegments()
cause an off by one error for one of our checks which caused us to always go to
the current time. Updated timeFromintentInMillis to fix this.

Change-Id: I78bc380590b8bfae6c475f5e302a4e6a5d082258
/packages/apps/Calendar/src/com/android/calendar/Utils.java
76727b7a9cf780f200414548b9d454bf9a701e3e 27-Feb-2010 Erik <roboerik@android.com> Quick fix to add safer time checking for time from intents.
/packages/apps/Calendar/src/com/android/calendar/Utils.java
1ef7f3ae2831dce8fa5e350f78ac4258c1a0a605 24-Feb-2010 Erik <roboerik@android.com> b/2412594 Added an implicit intent filter to the Calendar Launcher.

Added an implicent intent filter to the Calendar launcher so it will no longer be tied
to the package name. And added functionality to allow a data uri to be passed giving a
time to start the calendar at as well as allowing "VIEW" as an extra with "DAY" to go
to the day view directly.
/packages/apps/Calendar/src/com/android/calendar/Utils.java
a17725e24d51b7a6f002dd5afd3270c8eeea0dbe 17-Feb-2010 Jeff Hamilton <jham@android.com> Always use a consistent name for SharedPreferences.

The code was relying on the package name for
SharedPreferences, which is problematic if running
under a new package name.

Also, remove the use of the shared user ID.

Change-Id: I9d2c8c78588d7b9868318153d0788addb84f11a6
/packages/apps/Calendar/src/com/android/calendar/Utils.java
45efa09d6e06f5569b2c0ae0dae0436dbfe6cb28 04-Feb-2010 Michael Chan <mchan@android.com> Save the last calendar used for event creation as the default for creating the next event.

This was done to remove the google dependency.

Change-Id: I14051f1098d3e78ffa76ef2890b9595809c5d186
/packages/apps/Calendar/src/com/android/calendar/Utils.java
ad36a3c3cde7a2ec6d3a35d2529d46f03bd8d59d 28-Jan-2010 Michael Chan <mchan@android.com> First step in unbundling Calendar

Change-Id: I12cf0e4141c069514dec78344592532848983abc
/packages/apps/Calendar/src/com/android/calendar/Utils.java
56adc7b3f9e62ada7f3708c5c7228e8ac5af1755 22-Jan-2010 Takaoka G. Tadashi <takaoka@google.com> Add color setting for Saturday and Sunday in month view

This also get the colors (in ja_JP locale) slightly lighter than before.

Bug: 1614177
/packages/apps/Calendar/src/com/android/calendar/Utils.java
e8aa59d4575d712601a133a9263acc23adbc8c17 15-Sep-2009 Michael Chan <mchan@android.com> b/2106929 Resume to previous calendar view.
/packages/apps/Calendar/src/com/android/calendar/Utils.java
23f400cdb34b08d9003f4a96fca5976ad632e4ce 14-Aug-2009 Michael Chan <mchan@android.com> Fixed a bunch of problems when moving among agenda/day/week/month views.

b/1438315 Fixed problems introduced in the new back behavior.
b/2077287 Fixed the problem where you sometimes end up in 1969 when switch among the agenda/day/week/month views.
b/2076791 The selected date is preserved when switch to various views.
Removed scroll bar in agenda view as the header was not a static list of events anymore
Cleaned up some TODOs.
/packages/apps/Calendar/src/com/android/calendar/Utils.java
c6023058da92fc25a87499aa0e8132a1700fd0fd 28-Aug-2009 Michael Chan <mchan@android.com> Revert the new back behavior change. It was causing views to not go to the right time.
b/2077287 b/2076791
/packages/apps/Calendar/src/com/android/calendar/Utils.java
b1cd1850c8234e7c17ecbbb9c73e1ce804a75789 15-Aug-2009 Michael Chan <mchan@android.com> b/1438315 Fixed back behavior for Calendar.

When traversing among the Agenda, Day, Week, and Month views, only one instance of each view
will be saved in the activity stack. For example, if one were to go to Agenda, Day, Week, Day,
then Agenda, pressing the back multiple times from Agenda view will yield the following: Day,
Week, then Home.
/packages/apps/Calendar/src/com/android/calendar/Utils.java
146de36083f6ce8b7e8a1f974d3990594a36bfec 04-Mar-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //depot/cupcake/@135843
/packages/apps/Calendar/src/com/android/calendar/Utils.java
2cb8df4a54d65554c34faa79d8b2a46a86ff7b52 04-Mar-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //depot/cupcake/@135843
/packages/apps/Calendar/src/com/android/calendar/Utils.java
319052089cab383fed2528946b71b45b7af524da 11-Feb-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //branches/cupcake/...@130745
/packages/apps/Calendar/src/com/android/calendar/Utils.java
a9ea5e1627ce3b2ecc72a3dca7ae732593b0a424 18-Dec-2008 The Android Open Source Project <initial-contribution@android.com> Code drop from //branches/cupcake/...@124589
/packages/apps/Calendar/src/com/android/calendar/Utils.java
a390cbfd25a5f3b2f002df725b7580bc78bd9edf 21-Oct-2008 The Android Open Source Project <initial-contribution@android.com> Initial Contribution
/packages/apps/Calendar/src/com/android/calendar/Utils.java