summaryrefslogtreecommitdiffstats
path: root/services/jni/com_android_server_PowerManagerService.h
Commit message (Collapse)AuthorAgeFilesLines
* Move power manager to a new package.Jeff Brown2012-06-181-34/+0
| | | | Change-Id: I5f5a6435e64354b7d6535e8e9a63934ba7a3f448
* frameworks/base refactoring.Mathias Agopian2012-02-171-1/+1
| | | | | | First step. Move libui includes to their new home: androidfw. Change-Id: Ic042b52fdba72f30edc3cc6339bf30b4c1b99662
* Input dispatcher ANR handling enhancements.Jeff Brown2010-09-121-12/+2
| | | | | | | | | | | | | | | | | | | | | | | This change is essentially a rewrite of the main input dispatcher loop with the target identification folded in. Since the input dispatcher now has all of the window state, it can make better decisions about when to ANR. Added a .5 second deadline for processing app switch keys. This behavior predates Gingerbread but had not previously been ported. Fixed some timing inaccuracies in the ANR accounting that could cause applications to ANR sooner than they should have. Added a mechanism for tracking key and motion events that have been dispatched to a window so that appropriate cancelation events can be synthesized when recovering from ANR. This change helps to keep applications in sync so they don't end up with stuck buttons upon recovery from ANRs. Added more comments to describe the tricky parts of PollLoop. Change-Id: I13dffca27acb436fc383980db536abc4d8b9e6f1
* Throttle userActivity calls from input dispatcher.Jeff Brown2010-08-161-0/+2
| | | | | | | Results in an approximately 60% reduction in InputDispatcher thread CPU time. (Went from 3% to 1% when measured with CPU frequency scaling disabled.) Change-Id: Ia6e6087a719ee518fe37b428a871c7240bd4143f
* More native input dispatch work.Jeff Brown2010-07-031-0/+42
Removed old input dispatch code. Refactored the policy callbacks. Pushed a tiny bit of the power manager state down to native. Fixed long press on MENU. Made the virtual key detection and cancelation a bit more precise. Change-Id: I5d8c1062f7ea0ab3b54c6fadb058c4d5f5a9e02e