WhisperSystems/RedPhone — pull request #49 by emblem (2012-11-03 04:56:45+00:00)
Title: Refactor Wakelocks

This is the first step in adding proximity based locking

- Moves the WakeLock and KeyGuard handling into a new LockManager class.
- Adds the AccelerometerListener class from Android's PhoneApp.
- Add WifiLock and partial lock support
- Use the Wifi manager to ensure we keep the radio on high power
- Use a partial lock to keep the CPU on even when the user
presses the power button