• Home
  • History
  • Annotate
  • only in /frameworks/base/cmds/svc/src/com/
History log of /frameworks/base/cmds/svc/src/com/
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
7e9f4eb2608148436cef36c9969bf8a599b39e72 11-Sep-2010 Dianne Hackborn <hackbod@google.com> Track client requests through location manager.

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
ndroid/commands/svc/PowerCommand.java
0e39ea83c5578e0d55e120c91ff7cfeeb0c1cb2f 18-Nov-2009 Mike Lockwood <lockwood@android.com> Fixes for proximity sensor behavior:

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>
ndroid/commands/svc/PowerCommand.java
401ad721aded1e3e57ff51b8c2f98578b588ac43 14-Aug-2009 Guang Zhu <guangzhu@google.com> Modify svc power command so it pokes the wake lock when called. This will ensure screen is not asleep if stayon is requested.
ndroid/commands/svc/PowerCommand.java
9066cfe9886ac131c34d59ed0e2d287b0e3c0087 04-Mar-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //depot/cupcake/@135843
ndroid/commands/svc/DataCommand.java
ndroid/commands/svc/PowerCommand.java
ndroid/commands/svc/Svc.java
ndroid/commands/svc/WifiCommand.java
d83a98f4ce9cfa908f5c54bbd70f03eec07e7553 04-Mar-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //depot/cupcake/@135843
ndroid/commands/svc/DataCommand.java
ndroid/commands/svc/PowerCommand.java
ndroid/commands/svc/Svc.java
ndroid/commands/svc/WifiCommand.java
f013e1afd1e68af5e3b868c26a653bbfb39538f8 18-Dec-2008 The Android Open Source Project <initial-contribution@android.com> Code drop from //branches/cupcake/...@124589
ndroid/commands/svc/DataCommand.java
ndroid/commands/svc/PowerCommand.java
ndroid/commands/svc/Svc.java
ndroid/commands/svc/WifiCommand.java
54b6cfa9a9e5b861a9930af873580d6dc20f773c 21-Oct-2008 The Android Open Source Project <initial-contribution@android.com> Initial Contribution
ndroid/commands/svc/PowerCommand.java
ndroid/commands/svc/Svc.java