a6f7b25c3d160be02cb7384f154a1f77a8faaffa |
|
10-Apr-2017 |
Salvador Martinez <dehboxturtle@google.com> |
Added dialog to notify user of thermal shutdown tldr; Have the phone check when it reboots if it last shut down due to heat. If so, we should show the user an notification and dialog giving them more details. - Added hidden api to allow apps to query system_server for the reason the phone last rebooted - Added notification that is shown when the phone is booted if the last shutdown was due to excessive heat. - Added dialog to provide more details about the shutdown if the notification is tapped. - Added tests to verify that file is read and as expected. - Updated code for high temperature warning that is shown while the phone is running to avoid mixups in the future. Test: FrameworksServiceTests Bug: 30994946 Change-Id: Ic25f42539911c89ba7f1834e206f7931d65c2865
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/android/BridgePowerManager.java
|
455e90add22835d0744fc0f5c2feb5fcaf03b28f |
|
10-Feb-2017 |
jackqdyulei <jackqdyulei@google.com> |
Add BatterySaverPolicy for power save mode The BatterySaverPolicy is designed to consolidate all battery saver knobs into a central location. Usually it is consistent to mLowPowerModeEnabled unless it gets different data for specific service. By adding these knobs, we can effectively tune the battery saver. This cl sets up the framework for BatterySaverPolicy and updates following service to get battery saver data from BatterySaverPolicy 1. GnssLocationProvider 2. VibratorService 3. WindowManagerService 4. BackupManagerService 5. SoundTriggerService 6. NetworkPolicyManagerService Screen brightness will come in a following cl. Bug: 34693888 Test: FrameworksServicesTests Change-Id: I6b040e93391614b44d136a485faa4a332c396e51
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/android/BridgePowerManager.java
|
86b66c5ef6f2170c1da74beba550b82a858ea09a |
|
18-Mar-2016 |
Tony Mantler <nicoya@google.com> |
Fix build Change-Id: I590db57366a40aa011ee02e6e34e64cd2e7d1115
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/android/BridgePowerManager.java
|
a79795a89293094aa1278104ec6099bd428db38a |
|
20-Oct-2015 |
Deepanshu Gupta <deepanshu@google.com> |
Fix build Change-Id: I0e85f40955bfbf25e917f27c210c2f6f24d885a0
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/android/BridgePowerManager.java
|
82e780743046e620b724c28023b580e0e624bb15 |
|
03-Aug-2015 |
Yusuke Sato <yusukes@google.com> |
am b98e2353: am 158560ad: Merge "Distinguish user-requested shutdown from power-related ones" * commit 'b98e235364c2b221521f622c546733b2862e4677': Distinguish user-requested shutdown from power-related ones
|
705ffd1efe529bb291e90fa06e92c8090ee98627 |
|
22-Jul-2015 |
Yusuke Sato <yusukes@google.com> |
Distinguish user-requested shutdown from power-related ones With this patch, when the user requested shutdown, PowerManagerService sets sys.powerctl is set to "shutdown,userrequested", and init runs fsck on shutdown. When shutdown is triggered due to a low power state etc., the service sets the property to "shutdown,", and init immediately shuts down the system without running the command. This is a follow-up CL for http://r.android.com/158525. Bug: 21853106 Change-Id: Iae72990130fe9aa479c802f77301438190dbbfb3
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/android/BridgePowerManager.java
|
a503b62b1597ba6f5fcff537cecbe2dad1d088f7 |
|
15-Jul-2015 |
Dianne Hackborn <hackbod@google.com> |
Fix build. Change-Id: Ib165c32d1d87e971902b4dd7300ccebd65e71a7d
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/android/BridgePowerManager.java
|
cffef341f957b55c166065f0c4be258279aa8a8c |
|
25-Mar-2015 |
Bryce Lee <brycelee@google.com> |
Implement isScreenBrightnessBoosted in BridgePowerManager. Change-Id: I7da132c7522e5c352e14123f059b900008d94c95 (cherry picked from commit 40a4f4a61fbb2172901eda763bf928ae9b1b5300)
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/android/BridgePowerManager.java
|
e4df25eded03c110e5feca6ba811ae10dd03735c |
|
24-Mar-2015 |
Dianne Hackborn <hackbod@google.com> |
Fix build. Change-Id: Ib0b9ffb9cbf53df3d76b8de6619d09ba18b4d345
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/android/BridgePowerManager.java
|
5ce1cb240b13db98fbdc21e1ef069b5f9cec8d72 |
|
07-Nov-2014 |
Jeff Brown <jeffbrown@google.com> |
Move device admin max screen off timeout to internal interface. The setting was previously exposed in IPowerManager but it doesn't need to be there. Bug: 17656076 Change-Id: If3ed0cbe89f67c60aa00376be0c54b1bd9656144
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/android/BridgePowerManager.java
|
e333e674a758c39885d4d9779a1aad387fb0e6aa |
|
28-Oct-2014 |
Jeff Brown <jeffbrown@google.com> |
Add a function to boost screen brightness temporarily. When PowerManager.boostScreenBrightness() is called, the screen brightness is set to maximum for 5 seconds. This action is also considered to be user activity. Bug: 17934954 Change-Id: I1cb4a03a60705c6c1c5cc9ff84b1c5dbd2932fcd
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/android/BridgePowerManager.java
|
8d4e6cb06005a2ce994360340a6191f0690db8f4 |
|
14-Sep-2014 |
John Spurlock <jspurlock@google.com> |
Saver: PowerManager call to set low power mode. - Add an explicit power manager call to set the low power mode state, instead of trying manage everything around a single setting. - When low-power mode is triggered by falling below the configured threshold, it does not update the setting. - The "is-enabled" api returns setting || below configured trigger. - Move the snooze management into the new api call. - Callers (sysui + settings) updated to use the api instead of the setting. - Handles the case where the level does an unpowered leap out of the low battery level. (Possible if powered in-between while the device is off) Bug:17460535 Change-Id: Ic030504c9cad9868a7137abbe837b170da37852b
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/android/BridgePowerManager.java
|
da8738fabdc0fda6a02606d4d678f399e5d50f29 |
|
06-Jun-2014 |
Amith Yamasani <yamasani@google.com> |
Add missing abstract method override in BridgePowerManager. Change-Id: I28a24f33f8a598e487ec21861e918a39a8875d43
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/android/BridgePowerManager.java
|
e6652217647af133de6981e59abac16a3e908166 |
|
21-May-2014 |
Jeff Brown <jeffbrown@google.com> |
am c2871696: am 6099fd21: Merge "Fix build." into klp-modular-dev * commit 'c28716964c4525bf9a291404d7f14e74de23f36f': Fix build.
|
61116acdc617f0da4ce3019d9332b289b6a5a0ea |
|
21-May-2014 |
Jeff Brown <jeffbrown@google.com> |
Fix build. Change-Id: I00f040ab16cf8a3b7a995b4626d49e70b97fb294
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/android/BridgePowerManager.java
|
79d88d138c07835d349f7c74f380eaeb7cac8d0b |
|
11-Apr-2014 |
Narayan Kamath <narayan@google.com> |
am 73e78c75: am af42a91c: Fix another build breakage. * commit '73e78c75b770b3af0d48acac9c8565f7b4d035ff': Fix another build breakage.
|
af42a91c118941d463b474574bf34bf05822350d |
|
11-Apr-2014 |
Narayan Kamath <narayan@google.com> |
Fix another build breakage. Caused by 037c33eae74bee2774897d969d48947f9abe254f, which was submitted without a checkbuild. Change-Id: I0d48f6b941cc98a30904cdfbd7bcb56ed509734e
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/android/BridgePowerManager.java
|
ddf286282d8a30d27184e8304bac6fca03f88b72 |
|
05-Apr-2014 |
Deepanshu Gupta <deepanshu@google.com> |
Fix sdk build Change-Id: Ic08b57fdf2a653071a403bcc2c6b239a19363f72
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/android/BridgePowerManager.java
|
852472d9aa39eb4591eac43487ac3e0944e1daf6 |
|
24-Mar-2014 |
Dianne Hackborn <hackbod@google.com> |
Fix build. Change-Id: I1dd79e932a551bd537d2c71e8fca29a299c9312f
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/android/BridgePowerManager.java
|
84cd55e8bc67b5dc9e834b4691b710c6f133d493 |
|
26-Feb-2014 |
Jeff Davidson <jpd@google.com> |
Fix SDK build broken by ag/423985 Change-Id: I85480683531468b7a8a83749d9366f5cc334bd24
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/android/BridgePowerManager.java
|
24e4f21e78ffb7a46db3e03add5df99da3f1c945 |
|
19-Oct-2013 |
Nick Kralevich <nnk@google.com> |
fix build. In frameworks/base commit 1125235da15a5655e1fdf3b5f24df48dafccee90, the IPowerManager interface was updated to add updateWakeLockUids, but this file was not updated. Fixed. Change-Id: I8d5def02b7cadf5a154634bdff18cacb84b718f4
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/android/BridgePowerManager.java
|
c363be85de7b6cd67762b0f7fb2392fe421c553e |
|
03-Oct-2013 |
Marco Nelissen <marcone@google.com> |
Update fake powermanager to new interface Change-Id: I6f14498d7002b4720293a1c77f4fbb66869c36fb
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/android/BridgePowerManager.java
|
282e181b58cf72b6ca770dc7ca5f91f135444502 |
|
24-Jan-2014 |
Adam Lesinski <adamlesinski@google.com> |
Revert "Move frameworks/base/tools/ to frameworks/tools/" This reverts commit 9f6a119c8aa276432ece4fe2118bd8a3c9b1067e.
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/android/BridgePowerManager.java
|
738ffdc9da55db3127146df1b3fcb15b5163a335 |
|
16-Oct-2013 |
Marco Nelissen <marcone@google.com> |
Add a method to set a list of uids for a wake lock Cherrypicked from master. b/9464621 Change-Id: Ia6a9d36d55129ae87d3ec070fbf10dc02f4b6cb4
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/android/BridgePowerManager.java
|
7e6f2ee4d22bc40c5aa1f01a6bacb91a34cab3c0 |
|
03-Oct-2013 |
Marco Nelissen <marcone@google.com> |
Fix layoutlib build Change-Id: Ica9f506ae06311d9bcd98bc11e64a8699d4f88cb
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/android/BridgePowerManager.java
|
9f6a119c8aa276432ece4fe2118bd8a3c9b1067e |
|
28-Aug-2013 |
Mike Lockwood <lockwood@google.com> |
Move frameworks/base/tools/ to frameworks/tools/ Change-Id: I3ffafdab27cc4aca256c3a5806b630795b75d5c8
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/android/BridgePowerManager.java
|
19849d3c9a9def039f25323f95f98902e3feac60 |
|
21-May-2013 |
Dianne Hackborn <hackbod@google.com> |
Fix build. Change-Id: I3dc503a3cd30276ac10582db44732d96b68230ee
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/android/BridgePowerManager.java
|
c428aae6429c3fd5e2037c3793af399d9f6e23bf |
|
04-Oct-2012 |
Dianne Hackborn <hackbod@google.com> |
Fix issue #7267494, issue #7212347 7267494 Calendar is not syncing Check for whether a content provider is dead before returning it. This is kind-of a band-aid, but probably the right thing to do; I'm just not sure exactly the full details of why this problem is happening. Hopefully this "fixes" it, though I don't have a way to repro to tell. 7212347 System power off dialog is only visible to user 0 Make it visible. Also turn on some battery debugging stuff and clean it up so we can just keep it. Change-Id: I5add25bf2a763c8dfe1df23bc5c753a9ea5d157a
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/android/BridgePowerManager.java
|
1e3b98d47df596d0c4eadbdf60143709f8465b28 |
|
01-Oct-2012 |
Jeff Brown <jeffbrown@google.com> |
New internal API to eliminate poke locks. Added a new WindowManager.LayoutParams inputFeatures flag to disable automatic user activity behavior when an input event is sent to a window. Added a new WindowManager.LayoutParams field userActivityTimeout. Bug: 7165399 Change-Id: I204eafa37ef26aacc2c52a1ba1ecce1eebb0e0d9
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/android/BridgePowerManager.java
|
edce6a797878792de2b0bde4360f3171b9e9d9d2 |
|
01-Oct-2012 |
Jeff Brown <jeffbrown@google.com> |
Remove clearUserActivityTimeout(). This function is not implemented and not needed. Bug: 7165399 Change-Id: Ib1c50fabad6292ccf670404ba70aeb1242c4614d
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/android/BridgePowerManager.java
|
120664816a9bf325b618d8dd40febae2e3636ec8 |
|
29-Sep-2012 |
Jeff Brown <jeffbrown@google.com> |
Get rid of preventScreenOn(). Bug: 7165399 Change-Id: I1968265ecd74fff4d85efd2ca03b1983425ea518
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/android/BridgePowerManager.java
|
62c82e4d92cc0b856059f905d81885f7808a0e7d |
|
26-Sep-2012 |
Jeff Brown <jeffbrown@google.com> |
Make DreamManagerService more robust. Clearly isolated the DreamManagerService and DreamController responsibilities. DreamManagerService contains just enough logic to manage the global synchronous behaviors. All of the asynchronous behaviors are in DreamController. Added a new PowerManager function called nap() to request the device to start napping. If it is a good time to nap, then the PowerManagerService will call startDream() on the DreamManagerService to start dreaming. Fixed a possible multi-user issue by explicitly tracking for which user a dream service is being started and stopping dreams when the current user changes. The user id is also passed to bindService() to ensure that the dream has the right environment. Fix interactions with docks and the UI mode manager. It is important that we always send the ACTION_DOCK_EVENT broadcast to the system so that it can configure audio routing and the like. When docked, the UI mode manager starts a dock app if there is one, otherwise it starts a dream. This change resolves issues with dreams started for reasons other than a user activity timeout. Bug: 7204211 Change-Id: I3193cc8190982c0836319176fa2e9c4dcad9c01f
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/android/BridgePowerManager.java
|
9630704ed3b265f008a8f64ec60a33cf9dcd3345 |
|
28-Jul-2012 |
Jeff Brown <jeffbrown@google.com> |
Power manager rewrite. The major goal of this rewrite is to make it easier to implement power management policies correctly. According, the new implementation primarily uses state-based rather than event-based triggers for applying changes to the current power state. For example, when an application requests that the proximity sensor be used to manage the screen state (by way of a wake lock), the power manager makes note of the fact that the set of wake locks changed. Then it executes a common update function that recalculates the entire state, first looking at wake locks, then considering user activity, and eventually determining whether the screen should be turned on or off. At this point it may make a request to a component called the DisplayPowerController to asynchronously update the display's powe state. Likewise, DisplayPowerController makes note of the updated power request and schedules its own update function to figure out what needs to be changed. The big benefit of this approach is that it's easy to mutate multiple properties of the power state simultaneously then apply their joint effects together all at once. Transitions between states are detected and resolved by the update in a consistent manner. The new power manager service has is implemented as a set of loosely coupled components. For the most part, information only flows one way through these components (by issuing a request to that component) although some components support sending a message back to indicate when the work has been completed. For example, the DisplayPowerController posts a callback runnable asynchronously to tell the PowerManagerService when the display is ready. An important feature of this approach is that each component neatly encapsulates its state and maintains its own invariants. Moreover, we do not need to worry about deadlocks or awkward mutual exclusion semantics because most of the requests are asynchronous. The benefits of this design are especially apparent in the implementation of the screen on / off and brightness control animations which are able to take advantage of framework features like properties, ObjectAnimator and Choreographer. The screen on / off animation is now the responsibility of the power manager (instead of surface flinger). This change makes it much easier to ensure that the animation is properly coordinated with other power state changes and eliminates the cause of race conditions in the older implementation. The because of the userActivity() function has been changed so that it never wakes the device from sleep. This change removes ambiguity around forcing or disabling user activity for various purposes. To wake the device, use wakeUp(). To put it to sleep, use goToSleep(). Simple. The power manager service interface and API has been significantly simplified and consolidated. Also fixed some inconsistencies related to how the minimum and maximum screen brightness setting was presented in brightness control widgets and enforced behind the scenes. At present the following features are implemented: - Wake locks. - User activity. - Wake up / go to sleep. - Power state broadcasts. - Battery stats and event log notifications. - Dreams. - Proximity screen off. - Animated screen on / off transitions. - Auto-dimming. - Auto-brightness control for the screen backlight with different timeouts for ramping up versus ramping down. - Auto-on when plugged or unplugged. - Stay on when plugged. - Device administration maximum user activity timeout. - Application controlled brightness via window manager. The following features are not yet implemented: - Reduced user activity timeout for the key guard. - Reduced user activity timeout for the phone application. - Coordinating screen on barriers with the window manager. - Preventing auto-rotation during power state changes. - Auto-brightness adjustment setting (feature was disabled in previous version of the power manager service pending an improved UI design so leaving it out for now). - Interpolated brightness control (a proposed new scheme for more compactly specifying auto-brightness levels in config.xml). - Button / keyboard backlight control. - Change window manager to associated WorkSource with KEEP_SCREEN_ON_FLAG wake lock instead of talking directly to the battery stats service. - Optionally support animating screen brightness when turning on/off instead of playing electron beam animation (config_animateScreenLights). Change-Id: I1d7a52e98f0449f76d70bf421f6a7f245957d1d7
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/android/BridgePowerManager.java
|
a421f6c0ba8c354e2a81830e6402654bbf732780 |
|
22-Feb-2012 |
Xavier Ducrohet <xav@android.com> |
Fix sdk layout rendering in JB. Since JB, com.android.internal.R does not contain all the resources, instead only the ones that are accessed through Java. This means we need to dynamically generate IDs for resources that are private and only accessed from other XML resources. This is done through the DynamicIdMap class. Also add a PolicyManager and a PowerManager since those are now needed by ViewRootImpl?!? Change-Id: If2ae8ad79502fa084d852664a44aefd46e01aec6
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/android/BridgePowerManager.java
|