QCamera2: HAL3: Fix ERROR_REQUEST/ERROR_BUFFER bugs

- ERROR_REQUEST shouldn't be called twice for a single requset
- ERROR_BUFFER notify should be called if a buffer's status is set to
ERROR.
- During flush, if some buffers have been returned, instead of trigger
ERROR_REQUEST, trigger ERROR_RESULT and ERROR_BUFFER (for remaining
buffers).

Test: Camera CTS
Bug: 155353799
Change-Id: Id74c4c3d35c75b5fd5fb20ee72c63a3a1c88f836
1 file changed
tree: 7744a4fae5977175c7516fff55f6a59c00100512
  1. msm8998/
  2. Android.mk
  3. CleanSpec.mk