Camera2: Fix for unsupported resolutions by codec.

Currently, logic for unsupported resolution for a codec is
hardcoded and is limited to only H263 and 1280x720 resolution.
Ideally, we should read capabilities of each codec from
mediaprofiles.xml and check it against selected profile.
Toast message is posted if any unsupported resolution is
selected.

Also skip setparameter call to HAL during recording,
when orientation gets changed.

Change-Id: Ife7dde725882d8217fadff7b56687cdad2c72ae4
Camera: revert CodeAurora's panorama angle handling

I'm not sure what the code is trying to fix, but break landscape
devices' panorama display

Ported from cm-10.2

Change-Id: Ifa922b043f578353b778065e2123005a57185dfd
Camera2: Preview needs to be stopped when changing resolution

This was done in startPreview as a hack, but was removed in
f729b85e12cfa2674048d8cce2f724014b8fc910. Specifically add it
back when the resolution is changed.

Change-Id: I306abd788bafdff4e6fba7eec4e6ff05bb3cc47c