CameraHAL: Fix for CTS test #testFocusDistances

- The 'focusStatus' variable in 'doAutoFocus()'
  is uninitialized in the case where the camera
  client sets focus lock in CAF mode. Depending
  on the current stack content this method might
  try to set CAF focus again and wait for a focus
  callback, which will inevitably timeout.
- Fix for random fails during CTS test
  #testFocusDistances.

Change-Id: Iafa84bbf5b7119d77f1f666a6a88c613b657541e
Signed-off-by: Emilian Peev <epeev@mm-sol.com>
1 file changed