summaryrefslogtreecommitdiffstats
path: root/core/java/android/hardware
diff options
context:
space:
mode:
authorDianne Hackborn <hackbod@google.com>2015-03-17 17:00:24 -0700
committerDianne Hackborn <hackbod@google.com>2015-03-19 11:10:55 -0700
commit8ad2af7e5b28f71e7bdfc1bb097937c6c1d22b18 (patch)
tree9b954b257d7c6e8ea50a4b7fb32e69cad5a0ad99 /core/java/android/hardware
parent27eac1d58fe0b7ca3a2e27f5ed64eff232745f45 (diff)
downloadframeworks_base-8ad2af7e5b28f71e7bdfc1bb097937c6c1d22b18.zip
frameworks_base-8ad2af7e5b28f71e7bdfc1bb097937c6c1d22b18.tar.gz
frameworks_base-8ad2af7e5b28f71e7bdfc1bb097937c6c1d22b18.tar.bz2
First stab at device idle mode.
Introduce a new device idle controller service that monitor's the device state and determines when to go in to idle mode. When in idle mode, all we do right now is turn off network access the same as we do for power save mode. Many more things should come in the future -- stopping the alarm manager from scheduling (most) alarms, telling GmsCore for it to stop doing stuff, etc. Battery stats now has state tracking for devie idle mode, as well as events for the reasons we can come out of idle mode (significant motion or the device becoming active). Also added new events noting when packages are installed. Renamed the "low power" event in battery stats to "power save" because the former was just way too confusing. Finally, fix buffer size reading kernel wake locks. (Stupidly, just increasing the buffer size. Ideally we should try to be smarter and grow our buffer to fit the data available, but I'll leave that for another time.) Change-Id: I0be2062466c83ee9d890c6cf5a228d9cc4090eca
Diffstat (limited to 'core/java/android/hardware')
-rw-r--r--core/java/android/hardware/display/DisplayManager.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/core/java/android/hardware/display/DisplayManager.java b/core/java/android/hardware/display/DisplayManager.java
index b077e06..12e1963 100644
--- a/core/java/android/hardware/display/DisplayManager.java
+++ b/core/java/android/hardware/display/DisplayManager.java
@@ -472,7 +472,8 @@ public final class DisplayManager {
/**
* Creates a virtual display.
*
- * @see #createVirtualDisplay(String, int, int, int, Surface, int, VirtualDisplay.Callback)
+ * @see #createVirtualDisplay(String, int, int, int, Surface, int,
+ * VirtualDisplay.Callback, Handler)
*/
public VirtualDisplay createVirtualDisplay(@NonNull String name,
int width, int height, int densityDpi, @Nullable Surface surface, int flags) {