Neil Fuller 2ff5ec1aad Add a Y2038 check into the time_detector
Add a Y2038 check into the time_detector and add infrastructure to allow
command-line testing to confirm it works.

This is before removing a Y2038 check from NITZ parsing code in the
telephony process. After this change, Androdi will consistently block
>= Y2038 suggestions, not just time signals that come in via telephony.

The initial checks attempt to limit the restriction to devices with
32-bit ABIs, since the main issue we're aware of is that time_t is a
32-bit signed int under bionic, hence there could be issues with that
type in 32-bit processes on 32-bit / mixed 32/64-bit devices.

Bug: 204193177
Test: adb shell cmd time_detector suggest_network_time --reference_time 2480587 --unix_epoch_time 1646473966056
Test: Run with 32-bit + 64-bit only builds, inspect adb shell dumpsys time_detector
Merged-In: Ib9d6472f5ca7a62d59b3224f1845846f99a0b52d
Change-Id: Ib9d6472f5ca7a62d59b3224f1845846f99a0b52d
2022-05-10 10:01:58 +00:00
2022-02-17 19:04:02 +00:00
2022-02-09 15:30:51 -08:00
2022-02-09 20:21:35 +00:00
2021-05-13 08:24:32 +00:00
2021-11-08 22:02:15 -08:00
2022-02-09 10:11:56 -05:00
2021-11-04 14:44:07 +00:00
2021-10-13 15:39:02 -07:00
2022-01-04 08:57:28 +00:00
…
2022-02-18 19:27:16 +00:00
2022-01-05 13:13:50 +00:00
…
2021-04-14 22:48:32 +00:00
Description
No description provided
21 GiB
Languages
Java 73.7%
Kotlin 14%
PowerBuilder 5.8%
C++ 5.2%
AIDL 1%