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
Loading
Please register or sign in to comment