Shifting a signed 32-bit value by 31 bits is implementation-defined
behavior, so we change the value to unsigned.
Bug: 147147992
Test: TreeHugger
Change-Id: Iaefb85f77e5a9f8e7cd361a25a1c05fffc35ccb1
When a library is double loadable, there may be 2 singleton objects in
the same process. Using the pid as an identifier is not sufficient. This
CL adds a bit to the identifier based on which side the library is
loaded.
Test: atest CtsMediaTestCases -- \
--module-arg CtsMediaTestCases:size:small
Bug: 147147992
Change-Id: If3b52e4491ced58ee71bb55f0fc4c3c17569c0f3
bufferpool tries to manage memory consumption as low as 15MB usually.
Since it is too harsh for graphic input buffer use cases, if # of
buffers are under certain threshold make bufferpool ignore total memory
consumption.
Bug: 141605804
Change-Id: I20bd0438fede018e26984e0e3bc9a2007b0bc29b
BufferPoolAccessor cached the pid via a static constructor. If the
process forks after this, then multiple processes generating unique ids
using the same pid value. This resulted in connection ID collisions.
use getpid(), which already caches and resets appropriately across fork().
Bug: 142423602
Bug: 133186424
Test: boot, watch log connectionIds, collision-induced failures are gone
Hidl will crash if hidl call failed and return value was not checked.
Check hidl call return values.
Bug: 132182836
Change-Id: I910025a7b3c508b3c8f289a5286abbcc77e2d9b8
Hidl oneway call works as synchronous call when it is called from same
process. Avoid lock while calling hidl oneway interfaces.
Bug: 121047202
Change-Id: I20c29640414edd70e414af749c0b3f96efda8ca3
When an invalidation is pending, assure buffer status messages are
processed even though there is no active thread. Per process
invalidator thread periodically processes buffer status messages for
pending invalidations.
Bug: 112203066
Change-Id: If6bdebe7cd1b9af1ac3eadf57aabe27f57996c9f
Fix bufferpool carsh sporadically on invalidation. use android::sp
instead of android::wp for caching IObserver hidl interface.
Bug: 112203066
Change-Id: I69aafa11cc617f9ae36cce88283a3294fcab9bbd
Implementation is currently identical to 1.0 impl.
The update will be applied afterwards.
Bug: 112203066
Change-Id: If19af34121f5c9736ab4e8ccf7b1716d0be05c81