summaryrefslogtreecommitdiff
path: root/core/java/android
diff options
context:
space:
mode:
authorKenny Guy <kennyguy@google.com>2017-11-14 21:04:58 +0000
committerKenny Guy <kennyguy@google.com>2017-11-21 14:44:26 +0000
commitcfe7b70e99467069c813449a1792958906dffbb3 (patch)
tree92187351a4e093a39ad0bf9f45dd1d8cb9f2156c /core/java/android
parenta2dfa95e75524d8b6eb019c701bc6142413d6fdf (diff)
Daily idle job for writing out brightness events.
Schedule a job for idle + charging to kick off writing out brighness slider events. While writing events discard ones outside our time window. Bug: 69405990 Test: Manual using adb to kick off job. Test: runtest -c com.android.server.display.BrightnessTrackerTest frameworks-services Change-Id: Ibc79d1c80ced26827d6f985bc70ae165df106a42
Diffstat (limited to 'core/java/android')
-rw-r--r--core/java/android/hardware/display/DisplayManagerInternal.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/core/java/android/hardware/display/DisplayManagerInternal.java b/core/java/android/hardware/display/DisplayManagerInternal.java
index e845359a35c4..cd551bd42e0f 100644
--- a/core/java/android/hardware/display/DisplayManagerInternal.java
+++ b/core/java/android/hardware/display/DisplayManagerInternal.java
@@ -174,6 +174,11 @@ public abstract class DisplayManagerInternal {
public abstract boolean isUidPresentOnDisplay(int uid, int displayId);
/**
+ * Persist brightness slider events.
+ */
+ public abstract void persistBrightnessSliderEvents();
+
+ /**
* Describes the requested power state of the display.
*
* This object is intended to describe the general characteristics of the