AOSP/Calendar - AllInOneActivity fully converted with bp file

This is the fully converted and touched-up Kotlin
file after the automatic converter was run. I decided
to tweak CalendarController as well so that Int is
used in the place of the deprecated Integer type.
The override modifier had to be added manually.
Moreover, the converter did not make certain variables
and parameters nullable which caused both compile and
runtime errors. For instance, the parameter "Object"
had to be changed to "Any?" in order to avoid a null
pointer exception that caused the app to crash upon
opening. Furthermore, I came the realization that
casting from Float to Int cannot be done using the
"as Int" expression; instead, invoking the ".toInt()"
function is necessary to avoid casting exceptions.

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.21

	OK (22 tests)

    General CTS Tests:
    $ tools/cts-tradefed
    cts-tf > run cts -m CtsProviderTestCases

================= Results ==================
=============== Consumed Time ==============
    arm64-v8a CtsProviderTestCases: 17m 53s
Total aggregated tests run time: 17m 53s
============== TOP 1 Slow Modules ==============
    arm64-v8a CtsProviderTestCases: 0.35 tests/sec [376 tests / 1073330 msec]
============== Modules Preparation Times ==============
    arm64-v8a CtsProviderTestCases => prep = 8936 ms || clean = 2335 ms
Total preparation time: 8s  ||  Total tear down time: 2s
=======================================================
=============== Summary ===============
Total Run time: 19m 36s
1/1 modules completed
Total Tests       : 376
PASSED            : 362
FAILED            : 0
IGNORED           : 6
ASSUMPTION_FAILURE: 8
============== End of Results ==============

Change-Id: I83f47550fd74764e8d24bb55e54ca764d6bc808b
2 files changed