summaryrefslogtreecommitdiffstats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* Calendar: Fix the unit test failure.yingying2015-10-182-18/+32
| | | | | | | | | | | As there maybe some edit for DateUtils API on the different android version, and it make the test cases' expected result maybe not same as the actual result. So we will print the warning in the log for the test result if this test case used to test the date format. CRs-fixed: 652947 Change-Id: Ie2aa984191fb8b5b6c7316235672630291717ed4
* Fix for build breakage.James Kung2013-04-021-3/+1
| | | | Change-Id: I2704acc52076c7fadf5bdbd54955868dbc95e90a
* Further test fixes.Sam Blitzstein2013-03-074-41/+44
| | | | | | | Some tests had expected vs actual flipped in assertEquals calls. Also fixed a few small remaining test failures. Change-Id: Icb2a2e107a6673e58f860158302e98698a3618d5
* Resolving test errors.Sam Blitzstein2013-03-065-218/+208
| | | | | | | | | | | Bug: 6917799 Bug: 4903558 Bug: 3495689 Bug: 3466973 Bug: 3465425 Bug: 3066073 Bug: 3465363 Change-Id: I32888bb812ee286bec9a37326d02c80106b4575d
* Merge "Allow coordinates in event location." into ics-ub-calendar-burgundySara Ting2012-11-271-1/+124
|\
| * Allow coordinates in event location.Sam Blitzstein2012-11-271-1/+124
| | | | | | | | | | Bug: 7479596 Change-Id: Iceec6ba9dc04da5d7f1e08747ddc000a9ea52f90
* | Fix buildMichael Chan2012-11-201-16/+15
|/ | | | Change-Id: I3480b0c51dc15f7e87118959afc7f8e0dca7c53a
* Merge "Adding alert scheduling to app, to allow unbundled app's alerts to ↵Sara Ting2012-11-164-56/+439
|\ | | | | | | work on more devices." into ics-ub-calendar-burgundy
| * Adding alert scheduling to app, to allow unbundled app's alerts to work on ↵Sara Ting2012-11-164-56/+439
| | | | | | | | | | | | | | more devices. Bug:7383861 Change-Id: I5dcffb8ac586966b21e938728be0393e6776f704
* | Added new notification actions for map and call.Sam Blitzstein2012-11-151-1/+1
|/ | | | | Bug: 7525552 Change-Id: I6a175a270f4049897ee73c005f4f73420fc635d9
* resolved conflicts for merge of 013fda07 to ics-ub-calendar-burgundySara Ting2012-08-311-20/+1
|\ | | | | | | Change-Id: Ia398c0dc2d7eed35e9d1f172e23e0f5c38923be3
| * Removed use of notification framework's cancelAll so we don't affect ↵Sara Ting2012-08-311-27/+1
| | | | | | | | | | | | | | SyncAdapter's alerts. Bug:7076340 Change-Id: If4e864099850389cda6e0e5786560102bab9aed6
* | Notifications: made alarm scheduling testable, and a couple minor fixes.Sara Ting2012-08-101-115/+244
|/ | | | | | | | | - Added tests for scheduling next notification refresh time - Fixed priority of single expired event notifications (fixed from DEFAULT to MIN) - Fixed automatic demoting of allday events (refresh time wasn't correct) Bug:6282451 Change-Id: I160736827fc0b1017e2d001cb0fdb8f7d0502339
* Fix unbundled build of tests.Sara Ting2012-08-021-2/+2
| | | | Change-Id: I18247a51d4ab1d29df73246c5d3cfa6ac876d20e
* Fix some NPE and comparison errors.Michael Chan2012-06-121-8/+16
| | | | | | Not all the tests are fixed. Change-Id: I24a4b2c2525570e294facd030b4e86d6762f8485
* Only fetch vibrate pref once per group of alerts.Sara Ting2012-05-221-6/+105
| | | | Change-Id: Ic7f3f065c6d5aaa221eba4cd91341d5b25e53455
* Notifications: adding more tests.Sara Ting2012-05-211-18/+381
| | | | | | Also fixed one minor issue where with recurring allday events, we didn't pick the next day's one 15 min into today. Change-Id: Id9ef504e52d9f4ab0fa2eea09bc7404b8994238f
* Notification tests for rebalancing priority buckets.Sara Ting2012-05-171-0/+141
| | | | Change-Id: I3f6e1a1a52de70304fa4a9d49d0f2c4e3e535a3a
* Add tests for notificationMichael Chan2012-05-173-57/+345
| | | | | Bug: 6282451 Change-Id: I53816be140f9f331cf84cd4ebb4c5d0d535df645
* Create events with event set to confirmed instead of tentativeMichael Chan2012-04-262-2/+3
| | | | | Bug: 6383944 Change-Id: I83e742fe4a054dc9e985613a59997fa7f9d8358d
* Fix for bug 6394170: fixing display for multiday all day events.Sara Ting2012-04-251-0/+10
| | | | Change-Id: I186f1a48598fa5e387f715c64f261f6563aeea0d
* Fix for bug 5045587: Recurrence and timezone labels should have 40% opacity.Sara Ting2012-04-231-16/+48
| | | | Change-Id: I8b4061f2a1815c8b3bdbbbd8d439bf4b6cf9dbe8
* Fixed missing event name from the event info details, and changed datetime ↵Sara Ting2012-04-191-3/+20
| | | | | | description to display "Today at <time>" or "Tomorrow at <time>". Change-Id: I5d529214f65eba38b661d074704ed3ef5e6b5428
* Shorten date/time info in event info to display in one line.Sara Ting2012-04-183-2/+566
| | | | | | 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
* Fix a few unit test failures.Sara Ting2012-04-031-11/+15
| | | | Change-Id: I50ef1c3ede2d243c523d76a6178c03c7fb9e57cd
* Replace libphonenumber with a simple parserAndy McFadden2011-11-161-0/+66
| | | | | | | | | | | | Getting libphonenumber to be part of an unbundled app is not worth the effort when the preferred fix is to the framework anyway. This reverts to the previous behavior for non-US regions, and replaces calls to libphonenumber with a simple parser that will handle the USA reasonably well. Bug 5578068 Change-Id: I019745212fa798e63b78ee10a2e022197417ed70
* b/5309787 support allowedAvailability in calendar appRoboErik2011-10-281-2/+1
| | | | | | Also adds support for Tentative availability. Change-Id: Idea9424c54e2f08d020e63566567b9f0b176a5b5
* Remove calendar-common from test makefileAndy McFadden2011-07-131-1/+1
| | | | | | | The test jar doesn't need it, and Dalvik gets confused when there's two copies of the same classes from different places. Change-Id: I625460a13cd4e9652cdd36aff2ea97079e3a8a26
* Relocate common Calendar classesAndy McFadden2011-07-081-2/+2
| | | | | | | | | | Move some classes from android.pim to com.android.calendarcommon. Switch Calendar app to build unbundled. Bug 4575374 Change-Id: I3c344364b8fa82be1fbc21b0d1d2628957d8d07e
* Rename Calendar.java to CalendarContract.javaRoboErik2011-06-141-3/+3
| | | | Change-Id: Ia6692454099322f6891b326b2c1ad919c13026b7
* More Calendar unbundlingAndy McFadden2011-06-091-0/+4
| | | | | | | | | | | | A few minor items: - Remove an unnecessary import, missed in previous checkin. - Drop guava from libs (not currently needed). - Add commented-out build lines for the benefit of anyone who wants to experiment. Bug 4575374 Change-Id: I5669e41008a97810f9c23247447e91637c54bc22
* 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