Pin and Unpin Libraries During Camera Open

Previously, libraries were only locked during CameraDevice::Create which could cause locked libraries to get out of sync with the experiment flag. This CL checks the experiment flag during CreateCameraSessionDevice and mlocks/munlocks as needed.

This CL also provides a mechanism to limit the amount of madvising by requesting a HwlMemoryConfig from the HWL.

Bug: 341164335
Test: m, logcat
Change-Id: I75ebf6727aa429488e89e21dfe136685aee0cdf3
9 files changed
tree: 716fe718dd297e7a7d6a7da0caf950d11f2535fc
  1. common/
  2. devices/
  3. .clang-format
  4. Android.bp
  5. METADATA
  6. OWNERS
  7. PREUPLOAD.cfg