Camera: Cache and defer Surface binder IPC calls
Try to cache and defer Surface related IPC configuration
calls. Specifically:
1) Avoid retrieving the consumer name until dump
2) Cache and re-use the surface consumer usage value
3) Configure the producer max undequeued buffer count
instead of the total buffer count
Additionally, raise the stream configuration thread
prioirty during the binder IPC intensive stream/surface
setup.
Bug: 323292530
Test: Manual using camera application,
adb shell dumpsys media.camera
Merged-In: Ibf4149a2b1fb8e5a5e357fa6e2360c70a743413d
Change-Id: Ibf4149a2b1fb8e5a5e357fa6e2360c70a743413d
(cherry picked from commit 3b93acb2bbd834ebd8fbdc2112b8987aaab75ce2)
18 files changed