summaryrefslogtreecommitdiffstats
path: root/tests/src
Commit message (Collapse)AuthorAgeFilesLines
* b/5309787 support allowedAvailability in calendar appRoboErik2011-10-281-2/+1
| | | | | | Also adds support for Tentative availability. Change-Id: Idea9424c54e2f08d020e63566567b9f0b176a5b5
* Rename Calendar.java to CalendarContract.javaRoboErik2011-06-141-3/+3
| | | | Change-Id: Ia6692454099322f6891b326b2c1ad919c13026b7
* Minor tweaks to support Calendar unbundlingAndy McFadden2011-06-081-2/+3
| | | | | | | | | | | A collection of minor changes: - stop using VMRuntime.getRuntime().setMinimumHeapSize() - access the View's context through getContext() - don't use VisibleForTesting Bug 4575374 Change-Id: I7328cd95728e96e3c772a96350c63271ee61ba8a
* Merge "Rename "transparency" to "availability" Rename "visibility" to ↵Michael Chan2011-06-021-2/+2
|\ | | | | | | "accessLevel""
| * Rename "transparency" to "availability"Michael Chan2011-05-311-2/+2
| | | | | | | | | | | | Rename "visibility" to "accessLevel" Change-Id: I902fd9fbae34217faacc763fd201cb6e355f343a
* | Remove obsolete CalendarTests suite.Brett Chabot2011-06-011-39/+0
|/ | | | Change-Id: I14732c347d92e1bdb56a7bd68d14cd2307db5c12
* Progress toward alert method supportAndy McFadden2011-05-161-43/+44
| | | | | | | | | | This replaces some of the "lists of minutes" with a list of objects that also specify the alert method. There should be no externally visible effects. Bug 4419019 Change-Id: Ia555252c5c44019eaf4f1a569703a2eab6740acc
* Merge "Update calendars table to v300"RoboErik2011-05-111-3/+3
|\
| * Update calendars table to v300RoboErik2011-05-101-3/+3
| | | | | | | | | | | | See change I515b3e0a for more details Change-Id: Iee64f3868e4109ceb1cebf0503fdf7b818ffe305
* | Show overlap time in BusyBits in month viewIsaac Katzenelson2011-05-111-3/+2
|/ | | | Change-Id: Ic298843a17f54eb4bb4d977d369d257926753d62
* Improved algorithm for BusyBitsIsaac Katzenelson2011-05-051-85/+82
| | | | Change-Id: I543d10c18e1968b3197d8d78c75182bba7bd8a2c
* Support events that span multiple days in "Busy Bits"Isaac Katzenelson2011-04-191-12/+37
| | | | Change-Id: Ieccdc0b47e5ab474298512dd6b14832b5774d470
* Support for "Busy Bits" in month viewIsaac Katzenelson2011-04-181-0/+88
| | | | Change-Id: I80e4ab5c55113c3f15c396443c29351bb2dc60fa
* Sort and uniquify remindersAndy McFadden2011-04-141-5/+5
| | | | | | | | | | | Reminders are now sorted before display, and sorted+uniquified before being saved. Also, removed a redundant function. Bug 3409286 Change-Id: I858708c166bad686cbc2db826d964612bc9f29d8
* Clean upMichael Chan2011-03-031-3/+1
| | | | Change-Id: I90d04b6a44642cca4e7065f3d0ed7cd2a5b70b1d
* b/3370035 Fixed the date header of the widget to match the app/home timezoneMichael Chan2011-01-191-20/+10
| | | | Change-Id: Ifbbec14c73a106537ba123c464cc17e61c659bea
* Adds saving/restoring on rotation to EditEventFragmentErik2010-11-291-34/+25
| | | | | | | | As part of this the CalendarEventModel needed to be serializable which required switching its Uri to a String and then parsing it when used as a Uri. Change-Id: I36a95ca1dce444e08cc6b5339d0b6441b1d0dfd2
* Work on making month view a list viewErik2010-10-151-0/+35
| | | | | | | | | 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
* Adds home tz support to cal widgetErik2010-10-011-9/+8
| | | | | | | This change also requires change Ia7b3ad66 to the provider to send a broadcast when the time zone changes. Change-Id: I0bf98dc5adc849328a3b5bf0d8ac17329239c9f6
* New Edit Event layoutErik2010-08-251-31/+29
| | | | | | | | | Some large changes to EditEvent including a new two-pane layout, an attendance widget, and a list of attendees with remove buttons. This also removes a lot of the excess layout code and cleans up the theme code. Change-Id: I87ab3511f7bb6501f2aa4bf6d33b5d4f8e6f4936
* Added day separators in the widgetMason Tang2010-08-251-326/+99
| | | | | | | | | | | - 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
* Moved EditEvent into a sub package.Erik2010-08-161-1/+8
| | | | Change-Id: I4bba4ec6651ec90f8d0a7c83c76340ed080178f0
* Added support for scrolling list views in the widgetMason Tang2010-08-111-28/+33
| | | | | | | | | - Click behavior on widget is still wonky - "No events" view is a hack, and doesn't look quite right - Event selection behavior still not finalized, relevant unit tests disabled for now Change-Id: I693854d794d8d3777b856d2cd51cf27d2936b8df
* Fixed widget tests so that they always run in Pacific timezoneMason Tang2010-08-041-0/+20
| | | | Change-Id: I82db0a8b3743f1346bd3e720188163cfc4d23a73
* Moved the widget into its own package, lowercased existing package namesMason Tang2010-07-271-2/+4
| | | | Change-Id: If3c8b3cf6b88d107e3a9315de3bec1675e41bfea
* Added basic support for searching eventsMason Tang2010-07-211-0/+13
| | | | | | | - Reusing agenda view for displaying search results - Currently not fragment-ized Change-Id: I687b61ca86f92a54c1e402b881edd83111806161
* Added a new event button to the calendar widgetMason Tang2010-07-161-0/+46
| | | | Change-Id: Id5f632acfc620a0a72ae3cc66da80550d6208d29
* Added support for app-configurable week start dayMason Tang2010-07-161-8/+10
| | | | | | - Users can now optionally override the system locale specified week start day Change-Id: I44b37743abb719c80b0d79b47d8a308edc9732c9
* Refactored so that the widget is now with the app, not the providerMason Tang2010-06-241-0/+505
| | | | | | | | | | | | | - CalendarAppWidgetReceiver now functions as the broadcast receiver for: * android.intent.action.TIMEZONE_CHANGED * android.intent.action.TIME_SET * android.intent.action.PROVIDER_CHANGED (content://com.android.calendar) - CalendarAppWidgetService has been refactored to use IntentService for serializing widget updates - AppWidgetShared has been preserved for managing wake locks - CalendarAppWidgetModel was pulled out into its own class Change-Id: If7641aba278acc8ad00f14acd289ddbcbb1d5bcf
* Switches EditEventHelper to use AsyncQueryServiceErik2010-06-231-87/+81
| | | | | | | | | | This change backgrounds the batch save used in EditEventHelper and the queries in the EditEventActivity. It also creates an abstract CalendarActivity with a call for lazy creation/access of an AsyncQueryService object from the activity. Also changes setting duration to prefer using the start and end to a pre-existing change to fix b/2789706. Change-Id: If7fe94086f2a5dcfa34dd208358fada370d0bfde
* Tagged a bunch of tests as smoke testsMichael Chan2010-06-225-15/+39
| | | | Change-Id: I39df0e3772c00cccca0d3277c05a254feea4fed2
* Changes to DeleteEventHelper to make it asyncErik2010-06-221-4/+5
| | | | | | | | This changes DeleteEventHelper to be able to use a CalendarEventModel when doing deletes and to use all asynchronous calls for creating deletes/inserts/queries. Change-Id: I83fbf1ec0e58ddfc7913b18bf20737bf60c04c47
* AsyncQueryServiceMichael Chan2010-06-211-0/+628
| | | | | | | | | | | | | | | 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
* Creates an EditEventView with as little app logic as possibleErik2010-06-161-49/+28
| | | | | | | | | | | This is work on separating the UI and the logic for Calendar. The view should be responsible only for updating a model in response to user interaction and notifying the controller when it is finished. All other work should be handled at the fragment or activity level. This version does not introduce the use of fragments. They will come in the next version. It does make all the event queries asynchronous. Change-Id: If967c77f39bbbe09490a5fe5e78151e828c8e6cf
* Updates to EditEventHelperErik2010-06-011-16/+32
| | | | | | | | | This makes some changes to EditEventHelper and the tests to address bugs found while working on the view component. Also adds some extra functionality that was missing, such as building a model from an intent and setting default reminders. Change-Id: I3b3f3df1b17b7863e791ea1eff4f4f139bee235f
* Creates a model for events and moves edit event methods into a helperErik2010-05-211-0/+1504
| | | | | | | | | | | | This is a step towards separating the UI and the logic for Calendar. This creates a standard model for representing events programatically. This model allows all the fields necessary for updating and managing an event in the db and a few early helper methods for working with them. EditEventHelper contains most of the logic from the previous EditEvent activity redone to use the new event model and without reliance on any UI elements and with db access minimized. It will still need to be modified to use a service for db access. Change-Id: Ic8f68269b75f43a0f2fd6408196176592d32e699
* b/2635283 UtilsTest.java was missing copyright notice.Erik2010-04-271-0/+16
| | | | Change-Id: I159fa1439cf38a24f7c4ed4ddf9245fda00dc674
* fix Java package name for calendar launch performance testGuang Zhu2010-04-011-1/+1
| | | | | | | | the package name cited in the test class does not agree with the actual path leading to the .java file. while this has not been a problem for our build system, it confuses IDEs and also package rename mechanism in the build system Change-Id: I5754b99a4ccf58530daf2ae2f40cac7b35c9aed5
* b/2494603 Improve UI to disambiguate calendars with the same nameMichael Chan2010-03-161-0/+63
| | | | | | | | | 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
* b/2377547 Fixed a test hard codes the "current year". So come happy new year ↵Michael Chan2010-01-201-1/+1
| | | | | | and the test fails. Change-Id: I4f8731cc8c23965e87a01fe1132b0478ee5713ad
* findbug fixesMichael Chan2009-05-142-2/+2
| | | | | | | | | | | | | | | | modified: src/com/android/calendar/AgendaActivity.java modified: src/com/android/calendar/AgendaAdapter.java modified: src/com/android/calendar/CalendarActivity.java modified: src/com/android/calendar/CalendarApplication.java modified: src/com/android/calendar/CalendarView.java modified: src/com/android/calendar/DeleteEventHelper.java modified: src/com/android/calendar/EditEvent.java modified: src/com/android/calendar/Event.java modified: src/com/android/calendar/EventInfoActivity.java modified: src/com/android/calendar/IcsImportActivity.java modified: src/com/android/calendar/MonthActivity.java modified: tests/src/com/android/calendar/FormatDateRangeTest.java modified: tests/src/com/android/calendar/WeekNumberTest.java
* auto import from //depot/cupcake/@135843The Android Open Source Project2009-03-034-0/+527
|
* auto import from //depot/cupcake/@135843The Android Open Source Project2009-03-034-504/+0
|
* auto import from //depot/cupcake/@132589The Android Open Source Project2009-03-031-68/+45
|
* auto import from //depot/cupcake/@137055The Android Open Source Project2009-03-021-45/+68
|
* Code drop from //branches/cupcake/...@124589The Android Open Source Project2008-12-172-9/+13
|
* Initial ContributionThe Android Open Source Project2008-10-214-0/+500