summaryrefslogtreecommitdiff
path: root/core/java/android/inputmethodservice/InputMethodService.java
diff options
context:
space:
mode:
authorEvan Severson <evanseverson@google.com>2021-10-06 08:28:51 -0700
committerEvan Severson <evanseverson@google.com>2022-01-26 20:06:41 -0800
commit0cefec2d4f766082a653bd45bfb1e64b2ed8ffb1 (patch)
treed44d6ca16edaa26b0d6f52e24286650617f5764c /core/java/android/inputmethodservice/InputMethodService.java
parentb628834dc38e71f477d2bd0fa9710635e3b71e0b (diff)
Refactor SensorPrivacyService to separate state from service
This refactoring will let us have alternative implementations for the state of microphone/camera. It also seperates the storage of the other feature that is known as the "Sensor mute" so that the reuse of this service doesn't get too convoluted. Also extract the persitable state from the state implementation so that alternative implementations can resuse the persistence code. Some smaller changes: * Start the sensor use dailog as user 0 always since system UI requires user 0 * Use SystemClock.elapsedRealTime() instead of network time since it's guaranteed to my monotonic. This will also change that intervals used in telemetry aren't going to measure time the device is powered off. Ignore-AOSP-First: New OWNERS file Test: atest CtsSensorPrivacyTestCases SensorPrivacyServiceMockingTest Bug: 200649586 Change-Id: I4c23c2509d7d1bdf49360fc9bbadb79ccd451dcc
Diffstat (limited to 'core/java/android/inputmethodservice/InputMethodService.java')
0 files changed, 0 insertions, 0 deletions