Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[proximity] On-demand proximity sensor activation. Fixes JB#34789 MER…
…#1562 MCE code has built-in assumption that proximity sensor is either not used at all, or it is constantly powered on. The former basically means that in-call proximity blanking is not available. And the latter can cause direct (the sensor itself) or indirect (might block suspend) power drain, or make it more likely for lower level sensor handling glitches to surface. Make it possible to select on-demand proximity sensor activation. When selected, proximity sensor is powered up: - While the device in a state where it might be needed (calls, alarms, etc). - When events that could lead to display wakeup are received (powerkey presses, doubletaps, etc). As the sensor state is not available immediately after requesting sensor powerup, implement on-proximity action queue which can be used to schedule actions to be taken when the sensor has reached a stable state. Signed-off-by: Simo Piiroinen <simo.piiroinen@jollamobile.com>
- Loading branch information
Showing
10 changed files
with
927 additions
and
171 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.