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: I4e83011c54114265b422e9430aa8612574f04e4a
Merge remote-tracking branch 'upstream/kk4.4-caf' into kk4.4-caf