Camera: Make sure metering regions are valid in capture result

- Make sure ZoomRatioMapper doesn't produce metering rectangles
  with negative width/height
- If HAL or any framework component produces metering rectangles
  with negative width/height, overwrite it to have 0 width/height.

Test: manual testing, cameraservice_test
Bug: 243985907
Change-Id: I04ca487c64f7db3e7ece209def2d1d03bc4a4238
4 files changed