platform_hardware_interfaces/sensors/2.0/multihal
Stan Rokita 5098f0a9ca Bound pending write events queue to avoid OOM
Bound the pending write events queue to a large amount of events in
total (100,000) so that we do not have out of memory crashes when the
sensors framework locks up. Events are 80B of memory each. So this
change caps are pending writes event queue to 8MB of memory.

Bug: 143302327
Test: atest android.hardware.sensors@2.0-halproxy-unit-tests &&
vts-tradefed run commandAndExit vts --skip-all-system-status-check
--primary-abi-only --skip-preconditions --module VtsHalSensorsV2_0Target

Change-Id: I5d0a7f382e3f61fbbe2c74b5c9cf13560432b84c
2019-11-04 14:33:06 -08:00
..
include Bound pending write events queue to avoid OOM 2019-11-04 14:33:06 -08:00
tests Add Sensors Multihal support for Hal 2.0 2019-10-29 11:08:38 -07:00
Android.bp Add Sensors Multihal support for Hal 2.0 2019-10-29 11:08:38 -07:00
android.hardware.sensors@2.0-multihal.xml Add Sensors Multihal support for Hal 2.0 2019-10-29 11:08:38 -07:00
android.hardware.sensors@2.0-service-multihal.rc Add Sensors Multihal support for Hal 2.0 2019-10-29 11:08:38 -07:00
HalProxy.cpp Bound pending write events queue to avoid OOM 2019-11-04 14:33:06 -08:00
OWNERS Add Sensors Multihal support for Hal 2.0 2019-10-29 11:08:38 -07:00
ScopedWakelock.cpp Add Sensors Multihal support for Hal 2.0 2019-10-29 11:08:38 -07:00
service.cpp Add Sensors Multihal support for Hal 2.0 2019-10-29 11:08:38 -07:00