diff options
author | Mahi Kolla <mahikolla@google.com> | 2021-07-12 19:02:47 +0000 |
---|---|---|
committer | Mahi Kolla <mahikolla@google.com> | 2021-07-12 19:34:12 +0000 |
commit | 301173aaec7a75b03302bd6e8fe33a3072aa6039 (patch) | |
tree | 28562e0cd5b3830e3ff592c1c25c213cca910740 /Android.bp | |
parent | 42e4b43133c4f866e0729438fb38bebc6d03b0a4 (diff) | |
download | Calendar-301173aaec7a75b03302bd6e8fe33a3072aa6039.tar.gz |
AOSP/Calendar - Add Kotlin code for MonthWeekEventsView.kt. Also uploaded corresponding Android.bp file
This class contained a lot of calculations which resulted in needing to add .toFloat() or .toInt() to these expressions. In addition, as a subclass of SimpleWeekView, some of the methods and variables needed override modifiers. A few changes were made in SimpleWeekView such as variable declarations to accomodate the way the variables are used in MonthWeekEventsView.
Test: manual (ran build and unit tests) and CTS testing suite
$ source build/envsetup.sh
$ lunch aosp_bonito-userdebug
$ make Calendar
$ adb install -r -d -t out/target/product/bonito/product/app/Calendar/Calendar.apk
$ make CalendarTests -j
$ adb install -r -d -t out/target/product/bonito/testcases/CalendarTests/arm64/CalendarTests.apk
$ adb shell am instrument -w com.android.calendar.tests
com.android.calendar.FormatDateRangeTest:.
com.android.calendar.UtilsTests:..................
com.android.calendar.WeekNumberTest:.
com.android.calendar.widget.CalendarAppWidgetServiceTest:..
Test results for InstrumentationTestRunner=......................
Time: 0.15
OK (22 tests)
CTS TESTING:
$ tools/cts-tradefed
cts-tf > run cts -m CtsProviderTestCases
============================================
================= Results ==================
=============== Consumed Time ==============
arm64-v8a CtsProviderTestCases: 7m 28s
Total aggregated tests run time: 7m 28s
============== TOP 1 Slow Modules ==============
arm64-v8a CtsProviderTestCases: 0.84 tests/sec [376 tests / 448391 msec]
============== Modules Preparation Times ==============
arm64-v8a CtsProviderTestCases => prep = 12537 ms || clean = 2820 ms
Total preparation time: 12s || Total tear down time: 2s
=======================================================
=============== Summary ===============
Total Run time: 9m 26s
1/1 modules completed
Total Tests : 376
PASSED : 362
FAILED : 0
IGNORED : 6
ASSUMPTION_FAILURE: 8
============== End of Results ==============
============================================
Change-Id: I9941c06d860aefc3382f5314c817da44ac0db088
Diffstat (limited to 'Android.bp')
-rw-r--r-- | Android.bp | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -46,6 +46,7 @@ exclude_srcsd = [ exclude_srcsm = [ "src/**/calendar/month/MonthListView.java", + "src/**/calendar/month/MonthWeekEventsView.java", "src/**/calendar/month/SimpleWeekView.java", "src/**/calendar/month/SimpleDayPickerFragment.java", "src/**/calendar/AsyncQueryServiceHelper.java", |