summaryrefslogtreecommitdiffstats
path: root/cmds/svc
Commit message (Collapse)AuthorAgeFilesLines
* Track client requests through location manager.Dianne Hackborn2010-09-131-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 Lockwood2009-11-181-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 Zhu2009-08-131-0/+6
| | | | ensure screen is not asleep if stayon is requested.
* auto import from //depot/cupcake/@135843The Android Open Source Project2009-03-038-0/+544
|
* auto import from //depot/cupcake/@135843The Android Open Source Project2009-03-038-544/+0
|
* Code drop from //branches/cupcake/...@124589The Android Open Source Project2008-12-174-29/+176
|
* Initial ContributionThe Android Open Source Project2008-10-216-0/+397