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
Since these were combined into libhidlbase.
Bug: 135686713
Test: build only (libhwbinder/libhidltransport are empty)
Change-Id: I6cc85a91afb603e31b85090917f9f3b59d82a4d1
Hidl will crash if hidl call failed and return value was not checked.
Check hidl call return values.
Bug: 132182836
Change-Id: I910025a7b3c508b3c8f289a5286abbcc77e2d9b8