Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 85f8b089 authored by Neil Fuller's avatar Neil Fuller
Browse files

Tidy up clock adjustment code / logging

Tidy up some of the clock adjustment code. On a structural
level this removes a few unusual/edge cases that wouldn't
yield particularly useful results:

1) Looking for a UTC-based time zone in a country known not to
use UTC (unlikely to yield a result).
2) Adjusting the system clock when all that is known is the country
(this would previously have set the device to the time zone
the device is using, so probably a no-op).

In the actual adjustment code, rather than adjust the current
device system clock, the time from the NITZ signal is used instead.
The original purpose of this code was apparently to handle NITZ
data where the network is pushing out local time rather than
UTC so it makes sense to base the time off the NITZ data.

This change also makes some non-functional logging changes.

Test: atest FrameworksTelephonyTests
Bug: 63743683
Bug: 37494871
Change-Id: Id0fd20cbe9cf97911ec43eee847aa84b1b32b42f
parent 103fc28e
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment