Fix linter / errorprone issues

Fix some issues with newly added parcelable objects: lint and a
parcelling issue.

Also update the associated tests to use existing infrastructure.

Bug: 236612872
Test: build / treehugger
Test: atest core/tests/coretests/src/android/app/time/
Change-Id: Ib7d3589ac8b4c022dc9fb20e0bdc6fa67a46c9b9
6 files changed