DO NOT MERGE: CameraService: Fix permissions check issues

Bug: 15677063
Change-Id: I012c111fff90fefd9eb0fef7c9d6034f00c9c6df
camera: allow device to append camera parameters

Overload using include/camera/CameraParametersExtra.h in device
tree to add device specific camera parameters.

Change-Id: Ie79380f4e49661348df4b2028ddf48daa67fca2d
media: Match quality definitions with what the framework expects

These ids are used internally in order to parse the media codecs
quality definitions and pass them along to the frameworks/base component.

These ids must match the ones present in f/b/media/java/android/media/CamcorderProfile.java

If the hardware is a qualcomm, the match if OK. Otherwise though, they are
off-by-one which causes crashes in the camera app when selecting a low
resolution.

Change-Id: Ife21a49314fee687d70f90deb618c6b138601d96