replicant-frameworks_native/libs/ui
Jeff Brown f6149c3229 Fix bugs related to cheek event suppression.
Two issues:

1. First, due to an inverted conditional in the input dispatcher, we were
   reporting touches as long touches and vice-versa to the power manager.

2. Power manager user activity cheek event suppression also suppresses touch
   events (but not long touch or up events).  As a result, if cheek event
   suppression was enabled, touches would not poke the user activity timer.
   However due to the above logic inversion, this actually affected long
   touches.  Net result, if cheek suppression was enabled in the power manager
   and you held your thumb on the screen long enough, the phone would
   go to sleep!

Cheek event suppression is commonly turned on when making a phone call.
Interestingly, it does not seem to get turned off afterward...

This change fixes the logic inversion and exempts touches from the cheek
suppression.  The reason we do the latter is because the old behavior
was actually harmful in other ways too: a touch down would be suppressed
but not a long touch or the touch up.  This would cause bizarre behavior
if you touched the screen while it was dimmed.  Instead of brightening
immediately, it would brighten either when you lifted your finger or
300ms later, whichever came first.

Bug: 3154895
Change-Id: Ied9ccec6718fbe86506322ff47a4e3eb58f81834
2010-11-01 20:51:58 -07:00
..
tests Add unit tests for native input and fix bugs identified. 2010-10-23 03:52:57 -07:00
Android.mk Add logging of various important graphics events 2010-09-13 23:16:58 -07:00
EGLUtils.cpp added EGLUtils::strerror 2009-08-07 16:37:21 -07:00
EventHub.cpp Add unit tests for native input and fix bugs identified. 2010-10-23 03:52:57 -07:00
EventRecurrence.cpp auto import from //depot/cupcake/@135843 2009-03-03 19:31:44 -08:00
FramebufferNativeWindow.cpp Add logging of various important graphics events 2010-09-13 23:16:58 -07:00
GraphicBuffer.cpp fix live wallpapers on Droid 2010-06-30 15:43:47 -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 fix [2168531] have software-only gralloc buffer side-step the HAL 2009-10-06 17:00:25 -07:00
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 bugs related to cheek event suppression. 2010-11-01 20:51:58 -07:00
InputManager.cpp Input dispatcher ANR handling enhancements. 2010-09-12 16:52:03 -07:00
InputReader.cpp Add unit tests for native input and fix bugs identified. 2010-10-23 03:52:57 -07:00
InputTransport.cpp Ensure input dispatcher and native looper handles EINTR. 2010-09-16 17:04:52 -07:00
IOverlay.cpp some work to try to reduce the code size of some native libraries 2009-05-26 16:12:20 -07:00
KeyCharacterMap.cpp auto import from //depot/cupcake/@135843 2009-03-03 19:31:44 -08:00
KeyLayoutMap.cpp auto import from //depot/cupcake/@135843 2009-03-03 19:31:44 -08:00
KeyLayoutMap.h auto import from //depot/cupcake/@135843 2009-03-03 19:31:44 -08:00
MODULE_LICENSE_APACHE2 auto import from //depot/cupcake/@135843 2009-03-03 19:31:44 -08:00
NOTICE auto import from //depot/cupcake/@135843 2009-03-03 19:31:44 -08:00
Overlay.cpp Adding resizeInput and setAttributes for overlay 2009-07-29 17:53:38 -07:00
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 Remove a dependency of Region (libui) on Parcel (libbinder). 2010-02-17 20:26:47 -08:00