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
libstagefright: Make timed text for audio only files work on start

The basic problem is for an audio-only track adding the subtitle track through
the Android api does not kick off the text driver when you call start

Change-Id: I86d206551fa783c225c1867122148c68ef41404a
Merge remote-tracking branch 'cyan/cm-11.0' into cm-11.0-vivo