Migrate Time class to use Calendar APIs.

Migrate the internal Time class from using the android.text.format.Time
APIs to using the java.util.Calendar APIs.

Note: The dst flag was removed in this CL because all member variables
were made private and can only be accessed by getters and setters. This
prevents unexpected behavior to occur around the dst transition border
with the current usages of #normalize and #toMillis. See
APPLY_DST_CHANGE_LOGIC flag documentation for more information.

Bug: 159019762
Test: atest TimeTest
Test: atest CalendarCommonTests
Test: atest CalendarProviderTests
Test: atest CtsCalendarProviderTestCases
Test: atest CtsCalendarcommon2TestCases
Change-Id: I31562d335a23b1f96888c121937b12daf0af3325
7 files changed