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

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

Time service / strategy config refactoring

Change the TimeDetectorService / TimeDetectorStrategy relationship so
that the service goes via the strategy to access config. The strategy
also interacts with config via the ServiceConfigAccessor rather than
hiding it behind the Environment interface. This matches the
implementation in the equivalent time zone detector code.

This refactoring revealed a bug the equals() method of
ConfigurationInternal, which has been fixed.

Test: atest services/tests/servicestests/src/com/android/server/timedetector/TimeDetectorInternalImplTest.java
Test: atest services/tests/servicestests/src/com/android/server/timedetector/TimeDetectorStrategyImplTest.java
Test: Treehugger
Bug: 262280071
Change-Id: I4f95ca03178baa5a5fe647f6fef40a6f1394a6cf
Merged-In: I4f95ca03178baa5a5fe647f6fef40a6f1394a6cf
(cherry picked from commit d748d91a)
parent ab312208
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