cameraservice: Change the error mapping for ERROR_CAMERA_DEVICE.

In case of API1-HAL3, if HAL reports CAMERA3_MSG_ERROR_DEVICE, it
is getting mapped to CAMERA_ERROR_UNKNOWN in the service layer.
But this particular error code is not handled properly even in
applications like GoogleCamera (Android default camera app).

For example if camera deamon gets killed when GoogleCamera is
previewing, since its not handling the error properly, preview
freeze is seen for long time followed by mediaserver crash if
any user interaction happens meanwhile. Ideally, app should
close gracefully based on the error received.

so that app and mediaserver gets closed gracefully.

Change-Id: Idad9d23262e28e85b020b5bacdaad7c77fe16372
1 file changed