AOSP/Calendar - CalendarAppWidgetService fully converted with bp file
This is the fully converted and touched-up Kotlin
file after the automatic converter was run. The
converter failed to assign certain variables to be
nullable and even did not add the "override" modifier.
One interesting issue was the "buildAppWidgetModel()"
static method whose static visibility was failing
compilation and unit tests. The fix to this was to
add the "internal" modifier to the companion object
that stored the JVM static methods in Kotlin.
Test: manual - build tests, unit tests, and
CTS tests were conducted using the following
commands:
$ make Calendar
$ make CalendarTests -j
$ adb install -r -t -d out/target/product/bonito/
testcases/CalendarTests/arm64/CalendarTests.apk
Success
$ 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.202
OK (22 tests)
General CTS Tests:
$ tools/cts-tradefed
cts-tf > run cts -m CtsProviderTestCases
================= Results ==================
=============== Consumed Time ==============
arm64-v8a CtsProviderTestCases: 7m 44s
Total aggregated tests run time: 7m 44s
============== TOP 1 Slow Modules ==============
arm64-v8a CtsProviderTestCases: 0.81 tests/sec [376 tests / 464727 msec]
============== Modules Preparation Times ==============
arm64-v8a CtsProviderTestCases => prep = 6929 ms || clean = 2179 ms
Total preparation time: 6s || Total tear down time: 2s
=======================================================
=============== Summary ===============
Total Run time: 9m 14s
1/1 modules completed
Total Tests : 376
PASSED : 362
FAILED : 0
IGNORED : 6
ASSUMPTION_FAILURE: 8
============== End of Results ==============
Change-Id: Ic23ffc6c4db458574d417751f531d17cec8723c4
2 files changed