Camera2: Do not issue autofocus cancel if preview stopped

942890667aa08cc3c1305d7ba64c1340df1219db introduced the option to not
issue autofocus cancel if the preview was stopped. Extend it to the case
where the preview is stopped because the camera was called as an intent
(ie from MMS client)

Change-Id: I30032d8375665ecf6be471bf480c1f118d25423b
Revert "Camera: Overrides the focus mode for ZSL"

This reverts commit 348d34ec72b6d76b4bce15d2f070da034927018d.

Change-Id: I45724e3039646a0694b68cfd3892273ec3d959f2
Signed-off-by: Josue Rivera <prbassplayer@gmail.com>
Camera: Don't do cancel_af till all CBs are received in burst shot

Doing cancel_af in the first jpeg CB while
burst shot is going on, is changing the
camera state to IDLE and allowing next
takePicture() which is resulting in crash
as this call reaches HAL when camera is in
picture taking state.

Change-Id: Idd146060a73161bcc30c34756fb53662bb1f0902
CRs-Fixed: 593352
Fix up some things

Change-Id: I1a5eb4bbefc6986d321950dde03b355dde56eeba
Signed-off-by: Josue Rivera <prbassplayer@gmail.com>