replicant-frameworks_native/libs/ui
Jeff Brown fd749c63b0 Fix policy issues when screen is off.
Rewrote interceptKeyBeforeQueueing to make the handling more systematic.
Behavior should be identical except:
- We never pass keys to applications when the screen is off and the keyguard
  is not showing (the proximity sensor turned off the screen).
  Previously we passed all non-wake keys through in this case which
  caused a bug on Crespo where the screen would come back on if a soft key
  was held at the time of power off because the resulting key up event
  would sneak in just before the keyguard was shown.  It would then be
  passed through to the dispatcher which would poke user activity and
  wake up the screen.
- We propagate the key flags when broadcasting media keys which
  ensures that recipients can tell when the key is canceled.
- We ignore endcall or power if canceled (shouldn't happen anyways).

Changed the input dispatcher to not poke user activity for canceled
events since they are synthetic and should not wake the device.

Changed the lock screen so that it does not poke the wake lock when the
grab handle is released.  This fixes a bug where the screen would come
back on immediately if the power went off while the user was holding
one of the grab handles because the sliding tab would receive an up
event after screen turned off and release the grab handles.

Fixed a couple of issues where media keys were being handled inconsistently
or not at all, particularly in the case of the new PAUSE, PLAY
and RECORD keys.

Bug: 3144874
Change-Id: Ie630f5fb6f128cfdf94845f9428067045f42892c
2010-11-01 15:00:25 -07:00
..
tests Add test stubs for newly added methods. 2010-10-24 15:25:53 -07:00
Android.mk Add logging of various important graphics events 2010-09-13 23:16:58 -07:00
EGLUtils.cpp
EventHub.cpp am 2ef36763: am 860c2df4: Merge "Add unit tests for native input and fix bugs identified." into gingerbread 2010-10-24 14:36:23 -07:00
EventRecurrence.cpp
FramebufferNativeWindow.cpp Add logging of various important graphics events 2010-09-13 23:16:58 -07:00
GraphicBuffer.cpp Move binder magic from the Surface class to GraphicBuffer. 2010-10-10 13:09:46 -07:00
GraphicBufferAllocator.cpp when a zero dimension buffer is allocated, turn the allocation into 2010-04-15 15:23:25 -07:00
GraphicBufferMapper.cpp
GraphicLog.cpp Fix sim-eng build on Hardy 2010-09-16 16:28:13 -07:00
Input.cpp Add support for secure views. 2010-09-08 11:50:55 -07:00
InputDispatcher.cpp Fix policy issues when screen is off. 2010-11-01 15:00:25 -07:00
InputManager.cpp Input dispatcher ANR handling enhancements. 2010-09-12 16:52:03 -07:00
InputReader.cpp am 2ef36763: am 860c2df4: Merge "Add unit tests for native input and fix bugs identified." into gingerbread 2010-10-24 14:36:23 -07:00
InputTransport.cpp Ensure input dispatcher and native looper handles EINTR. 2010-09-16 17:04:52 -07:00
IOverlay.cpp
KeyCharacterMap.cpp Add keycodes and meta-key modifiers to support external keyboards. 2010-10-15 16:00:07 -07:00
KeyLayoutMap.cpp
KeyLayoutMap.h
MODULE_LICENSE_APACHE2
NOTICE
Overlay.cpp
PixelFormat.cpp remove unused pixel format 2010-08-19 13:11:42 -07:00
Rect.cpp Add ANativeWindow API for directly drawing to the surface bits. 2010-07-09 16:58:19 -07:00
Region.cpp