av: merge from caf branch kk_2.7_rb1.9

6b4889c libmedia: Add QC enhancements to MediaProfiles.
1a65f74 frameworks/av: rendering statistics for Stagefright.
07d727d framework\av: libstagefright: Update NOTICE file.
7386cca libstagefright: For interlace, set decoder in arbitrary mode
b59df55 Camcoder: Add missing timelapse recording resolutions to map variable.
14b0bb4 libstagefright: adjust AV sync late margin based on property
37c4b69 audio: enable tunnel mode based on flags
5c72cc4 audio: AudioTrack constructor initialization
d750c1b audio: Fix a/v sync issue for playback over BT
614218b libstagefright: In thumbnail mode set EOS on first frame
db48e41 stagefright: Enable HFR feature during recording video.
0a57435 Add checks before removing an active buffer in OMXNodeInstance
83a0304 frameworks/av: Initial bringup of voip and vocoders
43ebc94 audioflinger:Set correct device while creating effects
61fcb0e audio: Do not apply effect on multichannel content
71d2a0f audio: Adding support for SRS effects
de0fe54 libstagefright: Flush the pending buffers when EOS is received
e255ced audioflinger: Fix monkey crash in audioflinger set parameter.
d0486c8 frameworks/av: Fix for failure in CTS MediaRecorderTest cases
282215b libstagefright: Fix crash in media server mpeg2 playback. -There is a check in dequeueAccessUnitMPEGAudio function inESQueue that  time stamp returned by fetchTimeStamp is alwaysgreater than 0 -In the current scenario, valid time stamp set on the firstframe is  getting replaced in the sub sequent code by -1. -Fix is to reset the flag after first frame is identified CRs-Fixed: 512218
8477fb3 libstagefright: notify updated stride to NativeWindow for DRC  -Notify updated stride after resolution switch to NativeWindow  to re-interpret the buffer layout  -CRs-fixed: 534910
bbef82f libstagefright: Reset the decoder while performing seek
74d2234 frameworks/av: AAC CSD support for MediaCodec path
d261633 audioflinger: Fix for removing noise while resuming playback after pause
1de27ae frameworks/av: fix meta MIME type failure in MPEG4Writer
1ac2a4f libstagefright: post video events dynamically - calculate amount of time to delay video event after renderusing the formula: delay = (us between frames)-(us taken by event)-(lateness)
10d8a41 libvideoeditor: use vWidth and vHeight for buffer allocation
edd2149 libstagefright: Fallback to software encoder for high resolutions
4b11241 libstagefright: Use proper ctts offset
3ed6218 ExtendedCodec: Enable timestamp reordering for MPEG4 codec type clips
1e99c43 libstagefright: optimize thumbnail generation path
264605f libstagefright: Add interlaced video support
6f986a5 audio: Use High Quality resampler
b9256f9 audio: Remove assert for corrupt clips for AMRNB
77ee73f audio: Fix crash in flinger during monkey runs
79bb230 audio: check for divide by zero possibilities
3f5fc47 audio: Fix for crash in sound recorder during device switch
1309484 audio: Use 64 bit offsets only when needed.
901d504 audio: Fix to prevent deadlock in AudioEffects
d53cb41 audio: Correct the condition that checks for wma version
c22d1f1 audio: Fix for race conditions in direct audio track
9c5c992 audio: Add pause support for hardware omx component
d84dc0c audio : init rc to avoid effect's fault state
cd09793 frameworks/av: fix for testAACEncoder CTS testcase
7e337b7 frameworks/av: Add support for Quality Of Experience (QOE) events in MediaPlayer
00ac40a frameworks/av: Enable subsystem re-start for LPA/Tunnel
eef7b8d libmediaplayerservice: Add support for DashPlayer
4e3e8af frameworsk/av: SSR bring-up
994f1f8 frameworks/av: Define MSM Audio parameters
36538bc frameworks/av: Compile AudioParameter as shared library
ea4cd83 libstagefright: Add support for H/W AAC decoder
dd6dc86 frameworks/av: Use the correct macro for AV enhancement
6cbb409 frameworks/av: port fixes in LPA effects
ca5aeaf frameworks/av: port fixes in LPA and Tunnel mode playback draft -2
4714b67 frameworks/av: port fixes in LPA and Tunnel mode playback
05fb2fc frameworks/av: Add support for LPA and Tunnel Playback
ddd975a libstagefright: fix metadata key sizes
391d1c7 audio: add support for MSM audio formats
81ea7b0 libstagefright: For interlace, set decoder in arbitrary mode
3e12e11 libstagefright:enable extended codec/format support
983b502 libstagefright:add enhancements for extended format support
144f479 frameworks/av: Add support for FM feature
6b76765 Camera: Dont process dataCalllback if recording is stopped
b349244 Camera: Disable TakePicture related messages in stopPreview, stopRecording This change fixes the race condition and avoid the deadlock in abnormal snapshot stop I.e, Observed DeadLock when Data or Notify Callbacks is sent to App after StopPreview is triggered and so disabling the corresponding take picture messages. (Changes cherrypicked from commit 962b0856465e7abbd5900fffa68112363b8e5360
6c48b8f Camera: Fix deadlock due to mLock in pcb and takepicture.
904691f Camera: Add support for ZSL burst mode.
f2c785b Camera: Enable Histogram feature.
21d6e59 MediaProfiles: Add support for camcorder video resolutions.

Change-Id: I2bbeec06ac457eb9a6fb92e3aa8fc5ead3372809
Signed-off-by: Domenico Marino <johnlemon.lol@gmail.com>

Conflicts:
	include/media/MediaProfiles.h
	include/media/stagefright/OMXCodec.h
	libvideoeditor/vss/stagefrightshells/src/VideoEditorVideoDecoder.cpp
	media/libmedia/MediaProfiles.cpp
	media/libmediaplayerservice/Android.mk
	media/libmediaplayerservice/MediaPlayerFactory.cpp
	media/libstagefright/ACodec.cpp
	media/libstagefright/Android.mk
	media/libstagefright/AudioSource.cpp
	media/libstagefright/MPEG4Writer.cpp
	media/libstagefright/OMXCodec.cpp
	media/libstagefright/StagefrightMetadataRetriever.cpp
	media/libstagefright/Utils.cpp
	media/libstagefright/codecs/amrnb/dec/SoftAMR.cpp
	services/camera/libcameraservice/CameraService.cpp
	services/camera/libcameraservice/CameraService.h
	services/camera/libcameraservice/api1/CameraClient.cpp
screenrecord: Raise time limit to 30 minutes

Change-Id: I4e3466e7cf83b80dea48d4b2ca24ad9ead96f321