summaryrefslogtreecommitdiff
path: root/core/java/android/inputmethodservice/InputMethodService.java
diff options
context:
space:
mode:
authorSteven Ng <stevenckng@google.com>2021-12-16 12:05:29 +0000
committerSteven Ng <stevenckng@google.com>2022-01-19 19:25:50 +0000
commit4263ab66370efd4bdfee4ab8e2738e0984f33fb3 (patch)
tree9f4fb2b851c65367ba3fc62bc2af21132bee11ea /core/java/android/inputmethodservice/InputMethodService.java
parentd0719926c734406ab97945fa3416eb4239dbee9b (diff)
[Night] Add a new night theme trigger: bedtime
This CL expands the existing UiModeManager APIs to allow users activate dark mode at their configured bedtime schedule on supported devices, i.e. devices with Digital Wellbeing preinstalled. The CL added granular types for NIGHT_MODE_CUSTOM. There are two types 1. MODE_NIGHT_CUSTOM_TYPE_SCHEDULE This is the type for a schedule set up by users via the Settings app. 2. MODE_NIGHT_CUSTOM_TYPE_BEDTIME This is the type for a bedtime schedule set up by users via the Digital Wellbeing bedtime settings. Unlike MODE_NIGHT_CUSTOM_TYPE_SCHEDULE, Android framework doesn't have any information of the bedtime schedule. The activation of dark theme lives inside Digital Wellbeing Test: unit tests: atest FrameworksUiServicesTests:UiModeManagerServiceTest CTS: atest CtsAppTestCases:UiModeManagerTest Manual testing via a system app integration Bug: 210975231 Change-Id: I3b16e649a048f8a485b9e9d6464d4f251839320d
Diffstat (limited to 'core/java/android/inputmethodservice/InputMethodService.java')
0 files changed, 0 insertions, 0 deletions