summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator.cpp
diff options
context:
space:
mode:
authorNeil Fuller <nfuller@google.com>2019-11-23 11:33:57 +0000
committerNeil Fuller <nfuller@google.com>2019-11-27 16:34:53 +0000
commit3aedd4923850b2c93bbc25d8a055af23e403f687 (patch)
tree4e51450e4f4f7981d2adad49aa614586038c1a60 /tools/aapt2/java/JavaClassGenerator.cpp
parent9e5de85e21d9373bc8248827bc12e3e995b57c98 (diff)
Add a new method to set time
Before this change there are a various components that set the system clock by directly calling AlarmManager.setTime(). This change exposes a new method on TimeDetector to use when setting the device time manually (e.g. via settings) and modifies some callers to use it. The intent is to later restrict the number of distinct processes that can manipulate the device system clock directly so that all time changes go through the time detector service, which can enforce policy, log the reasons for changes, and so on. Bug: 140712361 Test: atest com.android.server.timedetector Change-Id: I9300dba868ed61249d0848b0dd4b953996161bda Merged-In: I9300dba868ed61249d0848b0dd4b953996161bda (cherry picked from commit e376756b0c0e3164300c3fd624f9221181e82553)
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator.cpp')
0 files changed, 0 insertions, 0 deletions