Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Track client requests through location manager. | Dianne Hackborn | 2010-09-13 | 1 | -1/+1 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | This fixes a problem where applications could ask the location manager to do very heavy-weight things (like... say... update location every minute), which would get accounted against the system instead of the application because ultimately it is the system making the heavy calls (wake locks, etc). To solve this, we introduce a new class WorkSource representing the source of some work. Wake locks and Wifi locks allow you to set the source to use (but only if you are system code and thus can get the permission to do so), which is what will be reported to the battery stats until the actual caller. For the initial implementation, the location manager keeps track of all clients requesting periodic updates, and tells its providers about them as a WorkSource param when setting their min update time. The network location provider uses this to set the source on the wake and wifi locks it acquires, when doing work because of the update period. This should also be used elsewhere, such as in the GPS provider, but this is a good start. Change-Id: I2b6ffafad9e90ecf15d7c502e2db675fd52ae3cf | ||||
* | Fixes for proximity sensor behavior: | Mike Lockwood | 2009-11-18 | 1 | -1/+1 |
| | | | | | | | | | | Add optional flag to Wakelock.release() to specify whether we should wait for proximity sensor to go negative before turning on the screen. Clear the "waiting for proximity sensor to go negative" state when the power key is pressed. Part of the fix for b/2243198 (Black screen lockup after ending call) Change-Id: I813fdb7aa4192cd3384a25be9e59d7d4b90da53a Signed-off-by: Mike Lockwood <lockwood@android.com> | ||||
* | Modify svc power command so it pokes the wake lock when called. This will ↵ | Guang Zhu | 2009-08-13 | 1 | -0/+6 |
| | | | | ensure screen is not asleep if stayon is requested. | ||||
* | auto import from //depot/cupcake/@135843 | The Android Open Source Project | 2009-03-03 | 8 | -0/+544 |
| | |||||
* | auto import from //depot/cupcake/@135843 | The Android Open Source Project | 2009-03-03 | 8 | -544/+0 |
| | |||||
* | Code drop from //branches/cupcake/...@124589 | The Android Open Source Project | 2008-12-17 | 4 | -29/+176 |
| | |||||
* | Initial Contribution | The Android Open Source Project | 2008-10-21 | 6 | -0/+397 |