Hook up AOD knobs to Settings.Global

This cl creates AlwaysOnDisplayPolicy, which get values for the
following knobs(go/aod-experiments) from Settings.Global:
1. screen_brightness_array
2. dimming_scrim_array
3. prox_screen_off_delay
4. prox_cooldown_trigger
5. prox_cooldown_period

Also update code to make sure AlwaysOnDisplayPolicy is used
everywhere.

Bug: 64899561
Test: runtest -x AlwaysOnDisplayPolicyTest

Change-Id: I2e83ff980771e67177e4964bd83aa68b2bdca65f
This commit is contained in:
jackqdyulei
2017-08-24 16:14:34 -07:00
parent 6a1dad9194
commit 8443dd0e76
11 changed files with 255 additions and 22 deletions

View File

@@ -54,7 +54,8 @@ LOCAL_STATIC_JAVA_LIBRARIES := \
SystemUI-proto \
SystemUI-tags \
legacy-android-test \
testables
testables \
truth-prebuilt \
LOCAL_JAVA_LIBRARIES := android.test.runner telephony-common android.car