b144227742ada7fd693684a5bd2d53abd8e7c499 |
|
18-Dec-2017 |
Neil Fuller <nfuller@google.com> |
Add support for time zone notifications Add support for time zone notifications to RulesManagerService. This change adds new intents that are broadcast after a time zone rules update is staged / unstaged. This will allow another component on the device to handle notifications telling the user to restart the device. Bug: 69443060 Test: atest FrameworksServicesTests Test: Manual install Change-Id: I4fc4b5715380d84d87cdb43c05aee2f8f9c5d277
/frameworks/base/services/core/java/com/android/server/timezone/RulesManagerServiceHelperImpl.java
|
a7d21f8c321ae7149b68625a5c8502abe005ed7b |
|
05-Dec-2017 |
Neil Fuller <nfuller@google.com> |
Tidy up changes for timezone update code Tidy up changes for timezone update code: 1) Remove some TODOs 2) Fix some logging 3) Remove ClockHelper in favor of java.time.Clock / SystemClock.elapsedRealtimeClock() No functional changes intended. Bug: 31008728 Test: PTS: run pts -m PtsTimeZoneTestCases Change-Id: Ib1ae04cbadfe71e4e340a0572e82f0bc3f68ef30
/frameworks/base/services/core/java/com/android/server/timezone/RulesManagerServiceHelperImpl.java
|
6995c57d8ef7e9b1a11c4dbdcfa7dd9d2fc88911 |
|
25-Jul-2017 |
Neil Fuller <nfuller@google.com> |
Remove TODO related to WakeLocks There's no need to keep a WakeLock in the RulesManager - if the device goes to sleep it should continue the work when it wakes up again. All I/O is handled via AtomicFile and should be robust to corruption, etc. and this reduces the likelihood of issues caused by sudden sleeps. Bug: 31008728 Test: make Change-Id: I3d5076ca7d2f39076f76bdb745cedde214eac21b
/frameworks/base/services/core/java/com/android/server/timezone/RulesManagerServiceHelperImpl.java
|
17ee5dbc05424b24377b3ee326de39184cfce290 |
|
18-Jul-2017 |
Neil Fuller <nfuller@google.com> |
Remove a TODO associate with starting a thread Switching to an alternative method to run something off thread. Bug: 31008728 Test: Internal automated testing / manual tests Change-Id: Ia33ca29e8d83028a21af1dca22de75dd43eee119
/frameworks/base/services/core/java/com/android/server/timezone/RulesManagerServiceHelperImpl.java
|
87b1128ddc44afeafb946a32d63abef68d8b3dc1 |
|
23-Jun-2017 |
Neil Fuller <nfuller@google.com> |
Add dumpsys support to RulesManagerService Override the dump method so RuleManagerService can dump its state into logs. Crude argument support has been added for dumping specific fields in an easy to process way (for test scripts to use). Tested with: make -j30 FrameworksServicesTests adb install -r -g \ "out/target/product/angler/data/app/FrameworksServicesTests/FrameworksServicesTests.apk" adb shell am instrument -e package com.android.server.timezone -w \ com.android.frameworks.servicestests \ "com.android.frameworks.servicestests/android.support.test.runner.AndroidJUnitRunner" Test: See above. Test: Manual; adb shell dumpsys timezone [-format_state piscotz] Bug: 31008728 Change-Id: I0ad83aa245232ed0b983ceacd8accfb876824d6f
/frameworks/base/services/core/java/com/android/server/timezone/RulesManagerServiceHelperImpl.java
|
54525bf939ded4429aa3b7dd46954ed20bfa9320 |
|
22-Jun-2017 |
Neil Fuller <nfuller@google.com> |
Switch to streaming data for time zone update Switch to streaming data for time zone update rather than loading it into memory first. Also make sure that the ParcelFileDescriptor passed to the service is closed in all cases. make -j30 FrameworksServicesTests adb install -r -g \ "out/target/product/angler/data/app/FrameworksServicesTests/FrameworksServicesTests.apk" adb shell am instrument -e package com.android.server.timezone -w \ com.android.frameworks.servicestests \ "com.android.frameworks.servicestests/android.support.test.runner.AndroidJUnitRunner" Test: See above Test: Manual Bug: 31008728 Change-Id: Ia1e27b204697caee62deb2a3d682800350bca800
/frameworks/base/services/core/java/com/android/server/timezone/RulesManagerServiceHelperImpl.java
|
68f666693a465eb8a66d9252b7b7ac035b9f0b7b |
|
16-Mar-2017 |
Neil Fuller <nfuller@google.com> |
Add (disabled) time zone update system server impl This commit builds on top of prior API commits. It adds code to the system server, but in a disabled way. The system server is responsible for monitoring two (configured) package names: one for the "updater app" (provided by the platform) and one for the "data app" (provided by the OEM). When either package changes the updater app is triggered via a privileged intent. The updater is then required to communicate with the data app and report back to the system server. Unit tests are included for the major components. To run: make -j30 FrameworksServicesTests adb install -r -g "out/target/product/angler/data/app/FrameworksServicesTests/FrameworksServicesTests.apk" adb shell am instrument -e package com.android.server.timezone -w com.android.frameworks.servicestests \ "com.android.frameworks.servicestests/android.support.test.runner.AndroidJUnitRunner" Test: See above. Bug: 31008728 Merged-In: I8f82cdcc2b574778a7e0d0184270f305b69ee17b Change-Id: I8f82cdcc2b574778a7e0d0184270f305b69ee17b
/frameworks/base/services/core/java/com/android/server/timezone/RulesManagerServiceHelperImpl.java
|