replicant-frameworks_native/libs/ui
Nick Pelly c81bb207c6 Fix failure to open AVRCP input device due to EPERM.
Sleep for 100us and try to open the input device again if it fails, with a
maximum of 10 attempts.

We need the retry logic because setting permissions on a new input device is
racy. The init process watches for new input device (via uevent) and sets the
permission on them in devices.c:make_device(). However at the same time
EventHub.cpp watches for new input devices from the system_server process, and
immediately tries to open them. I can't see a simple way to avoid this race
condition.

As best as I can tell this race condition has always exisited.
There must have been some timing change that happened recently that causes us
to hit this race condition much more often. See repro notes in referenced bug.

Bug: 2375632
2010-01-20 19:56:24 -08:00
..
tests fix [2182249] [MR1] valgrind error in surface flinger 2009-10-15 18:08:15 -07:00
Android.mk fix [2170319] gmail bulk operation checkbox latency on passion 2009-10-07 16:44:10 -07:00
Camera.cpp Add zoom functions and sendCommand. 2009-10-06 13:25:10 -07:00
CameraParameters.cpp Change FLASH_MODE_VIDEO_LIGHT to FLASH_MODE_TORCH. 2009-09-28 13:51:59 -07:00
EGLUtils.cpp added EGLUtils::strerror 2009-08-07 16:37:21 -07:00
EventHub.cpp Fix failure to open AVRCP input device due to EPERM. 2010-01-20 19:56:24 -08:00
EventRecurrence.cpp
FramebufferNativeWindow.cpp Revert change incorrectly submitted as part of change #32153. 2009-11-05 15:49:22 -08:00
GraphicBuffer.cpp fix[2228133] pixelflinger ignores the "vertical stride" leading to artifacts when playing back video 2009-11-02 17:48:33 -08:00
GraphicBufferAllocator.cpp fix [2168531] have software-only gralloc buffer side-step the HAL 2009-10-06 17:00:25 -07:00
GraphicBufferMapper.cpp fix [2168531] have software-only gralloc buffer side-step the HAL 2009-10-06 17:00:25 -07:00
ICamera.cpp Add zoom functions and sendCommand. 2009-10-06 13:25:10 -07:00
ICameraClient.cpp resolved conflicts for merge of 04c7d0f8 to master 2009-07-08 17:26:05 -07:00
ICameraService.cpp
IOverlay.cpp
ISurface.cpp fix [2167050] glTexImage2D code path buggy in SurfaceFlinger 2009-10-06 17:00:25 -07:00
ISurfaceComposer.cpp get rid of references to MemoryDealer in SurfaceFlinger 2009-07-02 18:50:51 -07:00
ISurfaceFlingerClient.cpp fix a bug that caused the PixelFormat viewed by Surface to be wrong. 2009-08-19 17:46:26 -07:00
KeyCharacterMap.cpp
KeyLayoutMap.cpp
KeyLayoutMap.h
LayerState.cpp
MODULE_LICENSE_APACHE2
NOTICE
Overlay.cpp Adding resizeInput and setAttributes for overlay 2009-07-29 17:53:38 -07:00
PixelFormat.cpp
Rect.cpp
Region.cpp should fix sim build 2009-07-06 18:07:26 -07:00
SharedBufferStack.cpp fix [2170319] gmail bulk operation checkbox latency on passion 2009-10-07 16:44:10 -07:00
Surface.cpp fix some aspects of [2258746] native crash in launcher2 2009-11-13 15:26:29 -08:00
SurfaceComposerClient.cpp fix [2170319] gmail bulk operation checkbox latency on passion 2009-10-07 16:44:10 -07:00