Fix Surface HDR meta reset

Camera hal uses IMapper to set HDR metadata instead of
Surface APIs. However, Surface would overwrite it with default
value, causing HDR metadata lost. We use flags to track
whether Surface APIs have been called or not. And, we overwrite
metadata when those APIs have been called.

Bug: 255389049
Test: hdr test pass
Change-Id: I6d14d4bfc7fae18ba7b2fde9bf371a7d80255319
2 files changed