OSDN Git Service

android-x86/frameworks-av.git
5 years agoMerge cherrypicks of [6072696, 6072074, 6072757, 6072120, 6072121, 6072122, 6072123...
android-build-team Robot [Wed, 16 Jan 2019 18:57:05 +0000 (18:57 +0000)]
Merge cherrypicks of [607269660720746072757607212060721216072122607212360725756072576607257760725786072579607219360721316072194607207660722106072759607276060726986072699607270060727016072702607270360727046072905607290660729076072761] into oc-m8-release

Change-Id: Ia2c2924ff42d1a800a482b1d492124ba45ad5368

5 years agoAudioFlinger: put effect desc lookup under mutex for createEffect
Andy Hung [Thu, 10 Jan 2019 21:27:31 +0000 (13:27 -0800)]
AudioFlinger: put effect desc lookup under mutex for createEffect

Test: native poc
Bug: 122309228
Change-Id: I48333c69f5c1b1bf1b98f57eb813ec39e074f3a7
Merged-In: I9d339a7d6d81161065e1adaf427dd2d3430436c2
(cherry picked from commit a41770b682117fdfc20236fbc45d975099f9147a)

5 years agoRESTRICT AUTOMERGE: aaudio: improve test_atomic_fifo
Phil Burk [Mon, 3 Dec 2018 18:10:21 +0000 (10:10 -0800)]
RESTRICT AUTOMERGE: aaudio: improve test_atomic_fifo

Check for the effects of setting a bogus counter.
Check for writes to memory surrounding the FIFO.
Check for negative array indices.

Bug: 120789744
Test: this is a test
Change-Id: Ia30cdef7f9d60f0a98b9af964cb3b3159df37dc9
(cherry picked from commit 31a8d44075f37f75d5912d79a43d777587b2d695)

5 years agoRESTRICT AUTOMERGE: aaudio: Fix converting negative FIFO counters to index
Phil Burk [Mon, 3 Dec 2018 22:16:46 +0000 (14:16 -0800)]
RESTRICT AUTOMERGE: aaudio: Fix converting negative FIFO counters to index

The index into the FIFO is calculated by using:

    counter % capacity

But the counter is signed and when it is negative the
modulo can have a negative result. That can cause
a negative array index and an access out of bounds.

This is not normally a problem because the counter
is 64 bits and it will not overflow until the audio
has run for a few million years. But a hacker might
be able to modify this internal counter and force
an error.

The solution involves casting to a uint64_t before doing
the modulo.

Note that there may still be a discontinuity when the
counter wraps from -1 to 0. But that will not result
in an out-of-bounds access. It may cause a noise but
an app could simply create a noise directly. So that is
not considered an exploit.

Bug: 120789744
Test: test_atomic_fifo.cpp
Change-Id: I6fe57bcb44528d29b5edb817c592e5e9a8aaf8eb
(cherry picked from commit d1fc53ca84b3d8d074fb27e192dea8204c1fb221)

5 years agoRESTRICT AUTOMERGE: aaudio: fix FIFO wrapround frame counts
Phil Burk [Sat, 21 Apr 2018 00:24:38 +0000 (17:24 -0700)]
RESTRICT AUTOMERGE: aaudio: fix FIFO wrapround frame counts

The number of frames in the second part was incorrect
when it wrapped past the end of the FIFO.

Bug: 78139448
Bug: 120789744
Test: adb shell aaudio_loopback -c2 -C2 -tm -m2 -Pl -pn
Change-Id: Ib6a22f30f0ee5321444c6d6137d9488943c34f3d
(cherry picked from commit 685607be811e6d5fffc407d71a2703de9c351969)

5 years agoMerge cherrypicks of [5313290, 5313323, 5313343, 5313415, 5313291, 5313441, 5313557...
android-build-team Robot [Fri, 19 Oct 2018 16:33:42 +0000 (16:33 +0000)]
Merge cherrypicks of [53132905313323531334353134155313291531344153135575313344531338353133845313324531332553133265313294531329553132965313498] into oc-m8-release

Change-Id: If45233ec1637604dcb769efb42ed3acb1b2857a0

5 years agoCTS error while media dump()
ray-cy.lee [Tue, 7 Mar 2017 10:25:15 +0000 (18:25 +0800)]
CTS error while media dump()

MediaExtractor should not dump information. CTS is
checking and failing due to the dump.

Bug: 114770654
Change-Id: Ie5bae5de39545dede6da4198240b4f38c50050b7
(cherry picked from commit c20825bd3b751cffcd8d7e66e97c3b1a91ef21e0)

5 years agoMerge cherrypicks of [4995494, 4995495, 4995496, 4995497, 4997652, 4997881, 4997052...
android-build-team Robot [Tue, 11 Sep 2018 23:09:01 +0000 (23:09 +0000)]
Merge cherrypicks of [49954944995495499549649954974997652499788149970524997883499551849976534997654] into oc-m8-release

Change-Id: Ifeba25ced72566a9a3c9d67c288a8e23e4709187

5 years agoFix race condition for cas sessions -- DO NOT MERGE
Chong Zhang [Fri, 24 Aug 2018 21:49:33 +0000 (14:49 -0700)]
Fix race condition for cas sessions -- DO NOT MERGE

Change the session to shared_ptr and use atomic_load/store.

Test: POC; CTS MediaCasTest; CTS MediaDrmClearkeyTest#
testClearKeyPlaybackMpeg2ts
bug: 113027383

Change-Id: I75f4cb33a022f28d45918442d64c5c46df2640ef
(cherry picked from commit 58b9e7d73c9e2a7a7ff11a4584fd1e1105669831)

5 years agoMerge cherrypicks of [4787660, 4787680, 4787071, 4787700, 4787592, 4787701, 4787720...
android-build-team Robot [Thu, 16 Aug 2018 01:24:50 +0000 (01:24 +0000)]
Merge cherrypicks of [47876604787680478707147877004787592478770147877204787721478707247870734787074478707547870764787077478774047877604787722478772347877244787725478772647877274787728478772947877304787731] into oc-m8-release

Change-Id: Ib832d8162af176e40f54cc889d1872cd6b88990b

5 years agoFix information disclosure in mediadrmserver
Jeff Tinker [Tue, 24 Jul 2018 21:13:13 +0000 (14:13 -0700)]
Fix information disclosure in mediadrmserver

Test:POC provided in bug
Bug:79218474
Change-Id: Iba12c07a5e615f8ed234b01ac53e3559ba9ac12e
(cherry picked from commit c1bf68a8d1321d7cdf7da6933f0b89b171d251c6)

5 years agoCheck for overflow of crypto size
Marco Nelissen [Tue, 31 Jul 2018 22:12:51 +0000 (15:12 -0700)]
Check for overflow of crypto size

Bug: 111603051
Test: CTS
Change-Id: Ib5b1802b9b35769a25c16e2b977308cf7a810606
(cherry picked from commit d1fd02761236b35a336434367131f71bef7405c9)

5 years agoMerge cherrypicks of [4691111, 4689862, 4690575, 4690576, 4690577, 4690578, 4689866...
android-build-team Robot [Fri, 3 Aug 2018 19:21:17 +0000 (19:21 +0000)]
Merge cherrypicks of [46911114689862469057546905764690577469057846898664689868468986946898704691132468945646899634691133469113446911564691157469115946911614690581468996446894604691112469058246905834691165469116646911674691168469116946911704691211469121246912134691214469121546912164691217469121846912194691232469123346912344691235469123646912374691238469123946912404691241469124346912454691247469124946912504691291469129246912934691294469129546912964691255468947646894774689478469122346912244691136468947946894804691137469122546912264691227469137146912284691328468996746911384691139469114046914334689968468996946913954691230469129746912984691299469130046913964691397469139846913994691400469140146914024691403469140446914054691406469140746914084691409469141046914714691472469147346914744691475469147646914774691478469147946914804691481469148246914834691484469148546914864691487469148846911434691144469151146911134689482469153346911454691146469114746911484691536] into sparse-4732991-L01200000196794104

Change-Id: I066b69b810f0a1acd43176472ac2a3f87c429873

5 years agoM3UParser: handle missing EXT-X-MEDIA URIs
Robert Shih [Thu, 12 Jul 2018 23:17:45 +0000 (16:17 -0700)]
M3UParser: handle missing EXT-X-MEDIA URIs

Bug: 111381540
Test: http://devimages.apple.com.edgekey.net/streaming/examples/bipbop_16x9/bipbop_16x9_variant.m3u8
Change-Id: I57f6cea59ce4c25267385289ab805eefe74b04ac
(cherry picked from commit b8c3a74de55a76e2ee21c731828a8afca7aa4ae0)

5 years agoAllow kPortModeDynamicANWBuffer for kBufferTypeANWBuffer in useBuffer
Toshikazu Saito [Tue, 10 Jul 2018 06:38:38 +0000 (15:38 +0900)]
Allow kPortModeDynamicANWBuffer for kBufferTypeANWBuffer in useBuffer

Test: play contents
Bug: 77486542
Change-Id: I422d49a137889c417d855ebef954f882f67821ed
(cherry picked from commit d8cbab144398d0e9b3cdc2f8c42b4ea0c921e355)

5 years agoMediaExtractor: stop rendering when an error occurs
akirilov [Mon, 9 Jul 2018 22:28:01 +0000 (15:28 -0700)]
MediaExtractor: stop rendering when an error occurs

Bug: 68664359
Bug: 110435401

Test: cts-tradefed run cts -m CtsSecurityTestCases -t android.security.cts.StagefrightTest#testStagefright_bug_68664359
Test: cts-tradefed run cts -m CtsSecurityTestCases -t android.security.cts.StagefrightTest#testStagefright_bug_110435401

Change-Id: Icff96fcaa76a5871e7f175b0384d47d5dca7313f
Merged-In: If1322524fcfebc6c5f139288f044b0189da66c1b
(cherry picked from commit 9bc021a323873091ea98f77b3b3dc4732d1c92e6)

5 years agoFix possible out of bounds read
Marco Nelissen [Fri, 1 Jun 2018 17:48:25 +0000 (10:48 -0700)]
Fix possible out of bounds read

Bug: 78656554
Test: manual
Change-Id: I677f827483dcc80afac57fd7ef6807e633542252
(cherry picked from commit 3762e0615273f25b059556d5b5f65102e9c55c35)

5 years agoOMXNodeInstance: Allow dynamic native handle mode for input buffers
Sanjay Singh [Wed, 23 May 2018 11:35:13 +0000 (17:05 +0530)]
OMXNodeInstance: Allow dynamic native handle mode for input buffers

Some camera implementation uses Dynamic native handle to send input
buffers to OMX HAL. Therefore, these buffers should be allowed.

Bug: 77486542
Bug: 80174666
Bug: 80210572
Bug: 80252747
Test: sts-tradefed run sts -m StsHostTestCases -t android.security.sts.Poc18_06#testPocBug_77486542
Test: adb shell am instrument -e size small -w 'android.media.cts/android.support.test.runner.AndroidJUnitRunner'
Test: adb shell am instrument -e class android.hardware.cts.CameraTest -w 'android.camera.cts/android.support.test.runner.AndroidJUnitRunner'
Test: adb shell am instrument -e class android.hardware.multiprocess.camera.cts.CameraEvictionTest -w 'android.camera.cts/android.support.test.runner.AndroidJUnitRunner'
Test: Exercise secure playback with Play Movies app.
Test: Record video with Camera app and play it back with Photos app

Change-Id: I1e4eb72e070f4e60ff4df94f9b9d161361828477
(cherry picked from commit bda339098d273066fe50d4cb77503bac5ea4ede0)

5 years agoM3UParser: make url on demand
Robert Shih [Fri, 1 Jun 2018 22:09:21 +0000 (15:09 -0700)]
M3UParser: make url on demand

Bug: 77823362
Test: adb shell am start -a android.intent.action.VIEW -d http://10.42.0.1:8080
Change-Id: Ieaf8a13985277eee5b085ed243205a597627cf5e
(cherry picked from commit 26e236bd426770869644a9962778dedea7bf59be)

5 years agoSpeed up id3v2 unsynchronization
Robert Shih [Wed, 9 May 2018 22:16:17 +0000 (15:16 -0700)]
Speed up id3v2 unsynchronization

Instead of doing many overlapping memmoves, do a single copy pass
that skips over the inserted unsynchronization bytes. For some
files this reduces parsing time from minutes to milliseconds.

Similar to commit 72a43b68da but for v2.2 and v2.3.

Bug: 78029004
Test: poc
Change-Id: I735b7051e77a093d86fb7a3e46209875946225ed
(cherry picked from commit f9d87cc850a589b9b0cc3658cf222187822bcc00)

5 years agoFix security vulnerability in CryptoHal
Jeff Tinker [Thu, 19 Apr 2018 23:23:21 +0000 (16:23 -0700)]
Fix security vulnerability in CryptoHal

CryptoHal was not checking that the memory heap set by setHeap
was the same one that was actually used for the decrypt call, allowing
the caller to spoof the decrypt call into accessing arbitrary memory.

bug:76221123
test: mediadrmserverpoc included in the bug & GTS media tests
Change-Id: I35214a1a6d0a4b864123e147d1a1adc2377bfbc5
Merged-in: I4ae6d1080be406bf53e3617c59c75206cc5066c6
(cherry picked from commit 9a9c3ab4d76f03f3abb3756bca9cdfe55c74326a)

5 years agoomx: restrict useBuffer according to buffer type and port mode
Wonsik Kim [Tue, 1 May 2018 20:18:11 +0000 (13:18 -0700)]
omx: restrict useBuffer according to buffer type and port mode

Bug: 77486542
Test: sts-tradefed run sts -m StsHostTestCases -t android.security.sts.Poc18_06#testPocBug_77486542
Test: adb shell am instrument -e size small -w 'android.media.cts/android.support.test.runner.AndroidJUnitRunner'
Test: Exercise secure playback with Play Movies app.
Test: Record video with Camera app and play it back with Photos app

Change-Id: Ief2d2d4d0445074c0ecdc723b1b25997a7631389
(cherry picked from commit 7d54e8f905784fddcc4c37fd094d4e18a73767bc)

5 years agoaaudio: use weak pointer to prevent UAF
Phil Burk [Tue, 1 May 2018 20:03:52 +0000 (13:03 -0700)]
aaudio: use weak pointer to prevent UAF

Avoid using the mServiceEndpoint smart pointer
from multiple threads.

Bug: 74122779
Test: see bug for test instructions
Merged-In: Idaf9e32a163b25e51bde35d6f5ea10a372b5d916
Change-Id: Idaf9e32a163b25e51bde35d6f5ea10a372b5d916
(cherry picked from commit 92c3e26338637a7ddac54988187c89fb0fe49430)

5 years agoAdd minimum size check for ImageGrid atom
Chong Zhang [Thu, 19 Apr 2018 17:59:17 +0000 (10:59 -0700)]
Add minimum size check for ImageGrid atom

bug: 73927042
Change-Id: I25dc3aeabe95bd907a418b12b2d06f3691cb1b42
(cherry picked from commit ef75163eb891b5259c0f5c2fc20fca2a5a47b7b7)

5 years agoSanitize effect descriptors for AudioPolicyService binder calls.
Andy Hung [Thu, 12 Apr 2018 18:06:56 +0000 (11:06 -0700)]
Sanitize effect descriptors for AudioPolicyService binder calls.

Zero initialize structs before parcel read, if status is not checked.
Sanitize parcel read audio_port_config.

Test: Audio CTS, See bug for POC
Bug: 73126106
Merged-in: Iece43eb463385927e6babcf93654eea8aaebc29c
Change-Id: Iece43eb463385927e6babcf93654eea8aaebc29c
(cherry picked from commit 498bdcc90bc470a79bf8943cbac64502f7c1c091)

5 years agoAdd check preventing div0 issue
Ryszard Grzesica [Tue, 29 Dec 2015 05:28:44 +0000 (06:28 +0100)]
Add check preventing div0 issue

There might be a scenario while period is zero or after including
precision would be zero, prevent from division in that case and
return false (to use previously used period).

Bug: 73898703
bug: 74067957
Test: run playback as stability test

Change-Id: I3fad1060b095b7b5ea4c1f9cb3f9d42a4c503560
(cherry picked from commit 27e47ce3c3bbc0b4dc629163de7ebbba7e80b149)

5 years agoInit gain config to prevent uninit leak.
jiabin [Fri, 6 Apr 2018 00:16:20 +0000 (17:16 -0700)]
Init gain config to prevent uninit leak.

In AudioPortConfig, we only initialize index for audio_gain_config, but
not other fields. That may cause uninit leak at listAudioPorts and
listAudioPatches.

Bug: 77238250
Bug: 77238762
Test: try repo steps at the bug description.
Change-Id: I57e3bd0598f9aa698a6fa3d3c0218b046de34e2f
(cherry picked from commit ebe0777edcf3b9c6bde9771d65399e2363dc6e40)

5 years agoRefactor MediaPlayerBase's notify
Pawin Vongmasa [Sun, 17 Dec 2017 10:31:18 +0000 (02:31 -0800)]
Refactor MediaPlayerBase's notify

Test: make cts -j123 && cts-tradefed run cts-dev -m \
CtsMediaTestCases --compatibility:module-arg \
CtsMediaTestCases:include-annotation:\
android.platform.test.annotations.RequiresDevice

Bug: 70546581
Change-Id: Ia3a8eb99c2faf6935c63800ba08f65970cede48e
(cherry picked from commit 082e4f75a383f957a6ed9186ca0692b694e1ce45)

6 years agoMerge cherrypicks of [3782287, 3782954, 3783025, 3783026, 3783027, 3783028, 3783029...
android-build-team Robot [Thu, 22 Mar 2018 20:42:47 +0000 (20:42 +0000)]
Merge cherrypicks of [3782287378295437830253783026378302737830283783029378303037831643783165378316737831683783170378317137831723782288378303137821963782955] into oc-m4-release

Change-Id: I6f635dc6b30831b46d040ca15149692f851fbb47

6 years agofix crash due to no output format available -- DO NOT MERGE
Chong Zhang [Tue, 20 Mar 2018 20:37:22 +0000 (13:37 -0700)]
fix crash due to no output format available -- DO NOT MERGE

Output format should arrive before we get first frame, but if
it doesn't, better fail it than crash.

bug: 69924594
bug: 75978033
Change-Id: I057ba49c8f83b9a301d409510717039ad894c391
(cherry picked from commit 6cb243cd2bb4d2fb41d12394fe5731ba098fc2ef)

6 years agoHandle overflow in android::HeifDataSource::readAt
Sungtak Lee [Mon, 5 Mar 2018 23:21:33 +0000 (15:21 -0800)]
Handle overflow in android::HeifDataSource::readAt

Bug: 73782357
Change-Id: I03a5b4c5ddaf2664f342973da7f1a79f29cd7be5
(cherry picked from commit 237f9034c6cbe5cbafb0cd4c862d9dddfbdf7389)

6 years agobetter mpeg2 TS elementary stream Access Unit parsing
Ray Essick [Tue, 6 Mar 2018 23:55:29 +0000 (15:55 -0800)]
better mpeg2 TS elementary stream Access Unit parsing

mpeg2 es stream access units have a 3 byte prefix and a 1 byte start
code. Searching for the next access unit started after the prefix
instead of after the start byte.

Bug: 74114680
Test: ran POC before/after
(cherry picked from commit 371066d073c5db289b0f38b9d2bfd3e326c78c66)

Change-Id: I1d3190550db6d921cb5ea4907300125bb9dfba12

6 years agoHandle bad bitrate index in mp3dec.
Dongwon Kang [Fri, 23 Feb 2018 16:59:27 +0000 (08:59 -0800)]
Handle bad bitrate index in mp3dec.

Reference:
  https://www.mp3-tech.org/programmer/frame_header.html

Test: run poc with and without this patch.
Bug: 71868329
Change-Id: Ibf6196eba0b99459e84989ac8c13db57c816c572
(cherry picked from commit 8b638123760bd93958f6cc2f5c7c4f5dbd0a754a)

6 years agoheif: use width and height for decoder -- DO NOT MERGE
Chong Zhang [Tue, 27 Feb 2018 20:43:06 +0000 (12:43 -0800)]
heif: use width and height for decoder -- DO NOT MERGE

The display dimensions from MPEG4Extractor is applied on top
of width and height for scaling, it's not for cropping. For
bitmap uses we have to use width and height, the frame from
media server is not scaled.

This required porting over some fixes from master to fix the
display size vs. image size reporting, otherwise images with
grids may show a black border at the bottom or right.

bug: 73172046
Test: test app in bug; open folders with heif files in Photos
and Downloads; CTS MediaMetadataRetrieverTest.
Change-Id: I3d7f1492d08d48876836ccc05b6eb4de0d0c0f9a
(cherry picked from commit 49d4aa0a7407ea6632c4a3441c7a4d922d003ea5)

6 years agoSnap for 4657601 from 18cd9b58775e53b2ec1ffe571d165ad8fddfeff4 to oc-m4-release
android-build-team Robot [Wed, 21 Mar 2018 21:27:10 +0000 (21:27 +0000)]
Snap for 4657601 from 18cd9b58775e53b2ec1ffe571d165ad8fddfeff4 to oc-m4-release

Change-Id: I0c31b784dd0d395de8f9b6c0327b4b44b87f8ce3

6 years agoSnap for 4603989 from 87d12ea5e997a12c9edd5139082aec0feacacb27 to oc-m2-release
android-build-team Robot [Thu, 15 Mar 2018 16:59:37 +0000 (16:59 +0000)]
Snap for 4603989 from 87d12ea5e997a12c9edd5139082aec0feacacb27 to oc-m2-release

Change-Id: I3b178a779a03034cb0b2863d64134524bfc2b412

6 years agoMerge cherrypicks of [3661626, 3661980, 3662429, 3661545, 3661546, 3661579, 3661580...
android-build-team Robot [Mon, 26 Feb 2018 23:53:13 +0000 (23:53 +0000)]
Merge cherrypicks of [36616263661980366242936615453661546366157936615803662430366154736615483661549366155036625783662579366258036625813662582366258336615973661598366155136615523661553366155436615553662596366259736625983662599366258436625853662586366261636626173662618] into oc-m4-release

Change-Id: Ica7cfbd0adc314077bf1eb2d6c405cc0857a3f7e

6 years agoM3UParser: detect variant streams without EXT-X-STREAM-INF
Robert Shih [Fri, 9 Feb 2018 20:19:35 +0000 (12:19 -0800)]
M3UParser: detect variant streams without EXT-X-STREAM-INF

Bug: 68399439
Change-Id: I95207b40f23a5f927da7154f9a952046118b5cad
(cherry picked from commit f3e0afb82f104d6e9986779ba2cf548c6aab1092)

6 years agoRefactor MediaPlayerBase's notify
Pawin Vongmasa [Sun, 17 Dec 2017 10:31:18 +0000 (02:31 -0800)]
Refactor MediaPlayerBase's notify

Test: make cts -j123 && cts-tradefed run cts-dev -m \
CtsMediaTestCases --compatibility:module-arg \
CtsMediaTestCases:include-annotation:\
android.platform.test.annotations.RequiresDevice

Bug: 70546581
Change-Id: Ia3a8eb99c2faf6935c63800ba08f65970cede48e
(cherry picked from commit 082e4f75a383f957a6ed9186ca0692b694e1ce45)

6 years agoCheck NAL size before looking inside
Ray Essick [Tue, 6 Feb 2018 19:25:31 +0000 (11:25 -0800)]
Check NAL size before looking inside

Add a check to ensure we have a non-zero size for a NAL while
parsing before we crack said NAL open to see what type it is.

Bug: 72117051
Test: compilation
Change-Id: Iaa3ebb2daae5d9225060a11e9adbb6757a168656
Merged-In: I607c67a320b33b991476db30d78223cf4386c0e8
(cherry picked from commit e0c020969d88891b0b71bb938778e9ca762e8035)

6 years agoPrevent MediaPlayerService::Client's use-after-free
Pawin Vongmasa [Tue, 12 Dec 2017 09:56:40 +0000 (01:56 -0800)]
Prevent MediaPlayerService::Client's use-after-free

Test: make cts -j123 && cts-tradefed run cts-dev -m \
CtsMediaTestCases --compatibility:module-arg \
CtsMediaTestCases:include-annotation:\
android.platform.test.annotations.RequiresDevice

Bug: 70546581
Merged-In: Ia142a7735c6685eb67b2c00917c0ed5ea7e0da9e
Change-Id: Ia142a7735c6685eb67b2c00917c0ed5ea7e0da9e
(cherry picked from commit d27ad6bae3215db0ed174f5f036339c9515fbba7)
(cherry picked from commit 028cf0973f928503e89124c3f6493a5226826ed9)

6 years agoSnap for 4565141 from 72f790b906d5e45215df0c00fd897ac084841b00 to oc-m4-release
android-build-team Robot [Mon, 26 Feb 2018 18:05:53 +0000 (18:05 +0000)]
Snap for 4565141 from 72f790b906d5e45215df0c00fd897ac084841b00 to oc-m4-release

Change-Id: Ib1d6b1b1232c98be9316d170a93b033fd173be8f

6 years agoMerge cherrypicks of [3614756, 3614757, 3614861, 3614758, 3614759, 3615200, 3615201...
android-build-team Robot [Wed, 14 Feb 2018 17:18:19 +0000 (17:18 +0000)]
Merge cherrypicks of [36147563614757361486136147583614759361520036152013615202361520336152043614670361467136151083615109] into oc-mr1-release

Change-Id: I6a648f5e33bb4046978e2724cbc2da045247774f

6 years agoM3UParser: detect variant streams without EXT-X-STREAM-INF
Robert Shih [Fri, 9 Feb 2018 20:19:35 +0000 (12:19 -0800)]
M3UParser: detect variant streams without EXT-X-STREAM-INF

Bug: 68399439
Change-Id: I95207b40f23a5f927da7154f9a952046118b5cad
(cherry picked from commit f3e0afb82f104d6e9986779ba2cf548c6aab1092)

6 years agoPrevent MediaPlayerService::Client's use-after-free
Pawin Vongmasa [Tue, 12 Dec 2017 09:56:40 +0000 (01:56 -0800)]
Prevent MediaPlayerService::Client's use-after-free

Test: make cts -j123 && cts-tradefed run cts-dev -m \
CtsMediaTestCases --compatibility:module-arg \
CtsMediaTestCases:include-annotation:\
android.platform.test.annotations.RequiresDevice

Bug: 70546581
Merged-In: Ia142a7735c6685eb67b2c00917c0ed5ea7e0da9e
Change-Id: Ia142a7735c6685eb67b2c00917c0ed5ea7e0da9e
(cherry picked from commit d27ad6bae3215db0ed174f5f036339c9515fbba7)
(cherry picked from commit 028cf0973f928503e89124c3f6493a5226826ed9)

6 years agoMerge cherrypicks of [3581037, 3581038, 3580473, 3580624, 3580656, 3580657, 3580658...
android-build-team Robot [Thu, 8 Feb 2018 04:16:49 +0000 (04:16 +0000)]
Merge cherrypicks of [358103735810383580473358062435806563580657358065835803823580474358047535810393581040358047635802063581527358095535809563580957358095835809593580960358096135809623580963358096435809653580966358156735815683581569358157035815713580625358062635815873581513358151435815153580477358158835806593580660358038335803843580478358071935804793580480358138535815283581041358104235810433581044358104535810463581607358038535804813580482358048335806613580662358066335806643580665358048435804853581608358160935816103581611358161235815893581613358048635815193581627358162835815293581530358153135816293581630] into oc-mr1-release

Change-Id: I04f3b4a89e01913b77321b06b7605be6eb35532b

6 years agoCheck NAL size before looking inside
Ray Essick [Tue, 6 Feb 2018 19:25:31 +0000 (11:25 -0800)]
Check NAL size before looking inside

Add a check to ensure we have a non-zero size for a NAL while
parsing before we crack said NAL open to see what type it is.

Bug: 72117051
Test: compilation
Change-Id: Iaa3ebb2daae5d9225060a11e9adbb6757a168656
Merged-In: I607c67a320b33b991476db30d78223cf4386c0e8
(cherry picked from commit e0c020969d88891b0b71bb938778e9ca762e8035)

6 years agolibmedia: Fix null pointer crash in secure buffer allocation.
Santhosh Behara [Mon, 16 Oct 2017 11:53:54 +0000 (17:23 +0530)]
libmedia: Fix null pointer crash in secure buffer allocation.

Add null pointer check for native_handle as it is null if
secure memory allocation fails.

Author: Vasantha Balla<vballa@codeaurora.org>

Test: fix the bug
Bug: 71053053
Merged-In: I204ca69b9808448788c83a1ae5a642618eca8973
Change-Id: I204ca69b9808448788c83a1ae5a642618eca8973
(cherry picked from commit fad26c14c7e68c3fe40bda8fd5692b8dbfac1000)
(cherry picked from commit ddd508e96da76a3e2de3d8dfef16e4d0d07fbf9b)

6 years agoMerge cherrypicks of [3478238, 3478653, 3478239, 3478580, 3478612, 3478240, 3478654...
android-build-team Robot [Thu, 18 Jan 2018 22:44:57 +0000 (22:44 +0000)]
Merge cherrypicks of [347823834786533478239347858034786123478240347865434786553478656347949434794953478933347893434794963479497347949834781603478161347816234788763478877347887834782413478163347816434781653478166347816734781683478169347999034799913479992348001034800113480012] into oc-m2-release

Change-Id: I227f784a6fe35ba1a507ef003a13560a5cf13700

6 years agoFix use of uninitialized value in libmediadrm
Jeff Tinker [Fri, 12 Jan 2018 01:46:16 +0000 (17:46 -0800)]
Fix use of uninitialized value in libmediadrm

bug:70526702
test:gts media tests

Change-Id: I29a67dad01ca8c8f649ba12cf08cc86b7eb56523
(cherry picked from commit 2442047f5c6d368f69fa81917f5aabc9b3c342a0)

6 years agoAACExtractor: check bounds during seek
Robert Shih [Thu, 11 Jan 2018 22:38:23 +0000 (14:38 -0800)]
AACExtractor: check bounds during seek

Bug: 70239507
Test: stagefright -a poc.aac
Change-Id: I61225a04c76fe8855bd2591fb14b734099fa3be6
(cherry picked from commit 0790581021d89ae1d7242e5eb1197bfd12725c85)

6 years agoFix potential buffer overflow in mediadrmserver
Jeff Tinker [Thu, 11 Jan 2018 08:14:53 +0000 (00:14 -0800)]
Fix potential buffer overflow in mediadrmserver

bug:71389378
test: gts media tests

Change-Id: Ic7d4b456bc874b92fbe202e3dafb7ceac747ebc7
(cherry picked from commit 5231cc164fe040a3ab5fcb28baae4e0a4f9fdf4c)

6 years agoMerge cherrypicks of [3478311, 3478390, 3478133, 3478175, 3478391, 3478392, 3478393...
android-build-team Robot [Thu, 18 Jan 2018 19:09:13 +0000 (19:09 +0000)]
Merge cherrypicks of [3478311347839034781333478175347839134783923478393347813434781353478213347821434782153478233347823434782353478251347825234782533478254347839434783953478396347839734783983478399347840034784013478402347840334782923478293347831234781363477911] into oc-mr1-release

Change-Id: Id70027005744d19b11e7dfe10b6c92b92368e450

6 years agoFix use of uninitialized value in libmediadrm
Jeff Tinker [Fri, 12 Jan 2018 01:46:16 +0000 (17:46 -0800)]
Fix use of uninitialized value in libmediadrm

bug:70526702
test:gts media tests

Change-Id: I29a67dad01ca8c8f649ba12cf08cc86b7eb56523
(cherry picked from commit 2442047f5c6d368f69fa81917f5aabc9b3c342a0)

6 years agoAACExtractor: check bounds during seek
Robert Shih [Thu, 11 Jan 2018 22:38:23 +0000 (14:38 -0800)]
AACExtractor: check bounds during seek

Bug: 70239507
Test: stagefright -a poc.aac
Change-Id: I61225a04c76fe8855bd2591fb14b734099fa3be6
(cherry picked from commit 0790581021d89ae1d7242e5eb1197bfd12725c85)

6 years agoFix potential buffer overflow in mediadrmserver
Jeff Tinker [Thu, 11 Jan 2018 08:14:53 +0000 (00:14 -0800)]
Fix potential buffer overflow in mediadrmserver

bug:71389378
test: gts media tests

Change-Id: Ic7d4b456bc874b92fbe202e3dafb7ceac747ebc7
(cherry picked from commit 5231cc164fe040a3ab5fcb28baae4e0a4f9fdf4c)

6 years agoSnap for 4527419 from 41c800b90de31114108a985e5d11ba94a45fcd78 to oc-m2-release
android-build-team Robot [Fri, 5 Jan 2018 18:59:19 +0000 (18:59 +0000)]
Snap for 4527419 from 41c800b90de31114108a985e5d11ba94a45fcd78 to oc-m2-release

Change-Id: Id75f7f95aa8dcd8870d3a4923ebae4bff874822d

6 years agoSnap for 4485699 from 7bb7dfb72a0011f63063879df90ef67dece5c0c9 to oc-m2-release
android-build-team Robot [Wed, 3 Jan 2018 22:35:46 +0000 (22:35 +0000)]
Snap for 4485699 from 7bb7dfb72a0011f63063879df90ef67dece5c0c9 to oc-m2-release

Change-Id: I27928751484e794b4584ab4ad87068646923ad87

6 years agoMerge cherrypicks of [3365569, 3365570, 3366860, 3366878, 3365571, 3365572, 3366918...
android-build-team Robot [Thu, 14 Dec 2017 21:23:21 +0000 (21:23 +0000)]
Merge cherrypicks of [336556933655703366860336687833655713365572336691833655733365589336559033669383366902336557433655753365576336557733669583365824336559133669593366960336696133669623366963336696433669653366919336696633669673366968336696933669703367018336701933655923365593336698533658253366988336698933669903366991336699233669933366994336700433670053367006336700733670083367009336701033670113367012336701333670143367015336701633670173367038336703933670403367041336704233670443367045336704633670493367050336705233670533367054336705533670563366920336692133669223367079] into oc-mr1-release

Change-Id: I7466a52ccba8f87d545545ac8ede0214ae05f50e

6 years agoDO NOT MERGE : Always set sys.usb.ffs.mtp.ready during configure
Jerry Zhang [Mon, 23 Oct 2017 19:03:40 +0000 (12:03 -0700)]
DO NOT MERGE : Always set sys.usb.ffs.mtp.ready during configure

Sometimes, due to a race, the configure
will fail even though descriptors are actually
written because MtpServer did not die properly.
MtpServer lifetime is fixed properly in master
with multiplexed io, but to work around the
issue here, we set the property at all times.

Also reduce the timeout to leave room for
UsbDeviceManager.

Bug: 67844294
Test: Plug/replug device on sled with usb debugging off x50
Test: Verify that the race is hit, but projection still starts
Test: Verify that all other usb configurations still work
Change-Id: I39dd4d3db95e087f065d58ba80ca980559920c99
(cherry picked from commit 9dc10038b05cc59457ba0a10d90a3b3faddd34c3)

6 years agoApply input buffer validation also to AVC and MPEG4 encoders
Dongwon Kang [Tue, 21 Nov 2017 01:55:24 +0000 (17:55 -0800)]
Apply input buffer validation also to AVC and MPEG4 encoders

Input buffer validation is existing only on VPX encoders. This patch
applies the checking also to the other sw video encoders.

Bug: 69065651 Bug: 27569635
Test: run poc with and without the patch.
Test: pass post submit media CTS tests after disabling hw encoders.

Merged-In: I1358df64352577fd6d41cd4bfec18be37c98fe6f
Change-Id: I1358df64352577fd6d41cd4bfec18be37c98fe6f
(cherry picked from commit fed57366c58aa69ad8f1df5191d6bf48e58d86a8)

6 years agohttplive: check for malformed EXT-X-STREAM-INF
Robert Shih [Sat, 2 Dec 2017 00:12:08 +0000 (16:12 -0800)]
httplive: check for malformed EXT-X-STREAM-INF

Bug: 68342866
Test: adb shell am start -a android.intent.action.VIEW -d http://localhost:1137/index.html
Change-Id: I479f9e0b7ca828d048ef88b23b4948e3c1472b3c
(cherry picked from commit e3bd8dd81e51b4d02484e7eec0d725ba9c254c68)

6 years agocamera: Drop pending preview for enableZsl shots
Chien-Yu Chen [Mon, 23 Oct 2017 22:59:49 +0000 (15:59 -0700)]
camera: Drop pending preview for enableZsl shots

If the device support ZSL, drop pending preview buffers to reduce
the chance the rendering preview frames newer than the still frame
during takePicture().

Test: CTS
Bug: 67497723
Change-Id: I5f253a402a6302d31777ad4ca2878ef0d0d1ae44
Merged-In: I5f253a402a6302d31777ad4ca2878ef0d0d1ae44
(cherry picked from commit 63068520622543b57c8607612a4f44fbbef6a021)

6 years agoIAudioPolicyService: Add attribute tags sanitization
Kevin Rocard [Mon, 13 Nov 2017 19:15:27 +0000 (11:15 -0800)]
IAudioPolicyService: Add attribute tags sanitization

When audio_attributes_t was read from the binder parcel,
the string tags field was copied without checking that
it contained a '\0'.

This could lead to read past the end when tags were used.

This patch always adds a '\0' at the end of the buffer when
deserializing.

Bug: 68953950
Test: manual playback/record
Test: send binder payload without \0 in tags attribute, check that only
      AUDIO_ATTRIBUTES_TAGS_MAX_SIZE - 1 char are printed.
Change-Id: I285258cbf7cfaf26b191d1f31b3b1e2d724c4934
Merged-In: I285258cbf7cfaf26b191d1f31b3b1e2d724c4934
Signed-off-by: Kevin Rocard <krocard@google.com>
(cherry picked from commit 39fdbd097a147b5c719dac9ad2759e6c44eb3a4e)

6 years agoMerge cherrypicks of [3310659, 3311062, 3310913, 3310647, 3310648, 3310649, 3310650...
android-build-team Robot [Tue, 5 Dec 2017 01:14:46 +0000 (01:14 +0000)]
Merge cherrypicks of [331065933110623310913331064733106483310649331065033106513311172331060133111093311193331121333112143311215331121633112173311218331121933112203311221331122233112233311063331122533112523311253331125433112553311256331125833112593311261331126233112633311264331126533112673311268331126933112703311271331131233113133311315331131733113203311322] into oc-m4-release

Change-Id: I9889bdd57684e647f5e7df18d384084c0940edf1

6 years agocamera: Drop pending preview for enableZsl shots
Chien-Yu Chen [Mon, 23 Oct 2017 22:59:49 +0000 (15:59 -0700)]
camera: Drop pending preview for enableZsl shots

If the device support ZSL, drop pending preview buffers to reduce
the chance the rendering preview frames newer than the still frame
during takePicture().

Test: CTS
Bug: 67497723
Change-Id: I5f253a402a6302d31777ad4ca2878ef0d0d1ae44
Merged-In: I5f253a402a6302d31777ad4ca2878ef0d0d1ae44
(cherry picked from commit 63068520622543b57c8607612a4f44fbbef6a021)

6 years agoMerge cherrypicks of [3276508, 3277765, 3277766, 3277904, 3276473, 3278009, 3278010...
android-build-team Robot [Tue, 28 Nov 2017 03:34:29 +0000 (03:34 +0000)]
Merge cherrypicks of [327650832777653277766327790432764733278009327801032777673277768327776932777703276509327651032780113278012327801332780143278099327810032781013278102327810332781043278105327810632778003276474327801532780163278017327811832781193278120327812132781223277946327790532779473277906327775132781233277752327811032777713277907327809532779083278111327777232764753276476] into oc-mr1-release

Change-Id: I086dbaeb2bd57353678a0c5ccde32cf0881051b3

6 years agoavoid 32-bit integer overflow
Ray Essick [Thu, 12 Oct 2017 17:15:31 +0000 (10:15 -0700)]
avoid 32-bit integer overflow

change calculation to scale encoder delay and padding when sample rate
changes to use 64-bit math and avoid possible 32-bit overflow.

Bug: 67737022
Test: re-ran affected use case
Change-Id: I6e37341256f3f0e3274ffdd3bad284eaacac25ab
(cherry picked from commit 73e95a9bd43724058651cb11c58dbe3fae651d56)
(cherry picked from commit e0d1b3816e73629029f552da5df31ef31bde2c19)

6 years agoAccess AVCDEC context after create fail check
Naveen Kumar P [Wed, 4 Oct 2017 04:40:39 +0000 (10:10 +0530)]
Access AVCDEC context after create fail check

Bug: 66969281
Change-Id: I7c293417079da991cfad675a2d5563423d751610
(cherry picked from commit 8e6a6fe2e1542b3333ffecb7307a5de671c8a785)

6 years agoAccess HEVC context after create fail check
Naveen Kumar P [Wed, 4 Oct 2017 04:25:14 +0000 (09:55 +0530)]
Access HEVC context after create fail check

Bug: 66969193
Change-Id: Icd1c8d78986e3795ba7f1c1d50ebeb90d77f6178
(cherry picked from commit 2bee8317ecfa5dca3c43d99db40491c4e28f832d)

6 years agoSoftAVCDec: Handle zero length input without EOS
Harish Mahendrakar [Thu, 5 Oct 2017 08:48:26 +0000 (14:18 +0530)]
SoftAVCDec: Handle zero length input without EOS

When a zero length input buffer is sent to SoftAVC decoder
without EOS set in nFlags, SoftAVC decoder plugin was
entering an infinite loop. Fixed it by returning from
onQueueFilled for such cases.

Bug: 66969349
Test: Tested using poc associated with the bug
Change-Id: I79cebc8f5b40c51256aba83a08deb547b220c4d7
(cherry picked from commit 21943c05f0ee2350647a6fa5ee17aa3c68859383)

6 years agoAdd EFFECT_CMD_SET_PARAM parameter checking to Preset Reverb
Mikhail Naganov [Tue, 24 Oct 2017 21:44:43 +0000 (14:44 -0700)]
Add EFFECT_CMD_SET_PARAM parameter checking to Preset Reverb

Bug: 67647856
Test: Added CTS tests
Change-Id: I027ce8f7a1cdb8406ca423aaae7c45b6b76617f0
(cherry picked from commit ee804dfa15cc2d34e5d67a9b437cd023349d633b)

6 years agoFix edge case when applying id3 unsynchronization
Marco Nelissen [Mon, 9 Oct 2017 21:59:43 +0000 (14:59 -0700)]
Fix edge case when applying id3 unsynchronization

Bug: 63100526
Test: opened poc, other files
Change-Id: I0a51a2a11d0ea84ede0c075de650a7118f0e00c5
(cherry picked from commit 3e70296461c5f260988ab21854a6f43fdafea764)

6 years agoValidate decryption key length to decrypt function.
Edwin Wong [Sat, 7 Oct 2017 01:21:06 +0000 (18:21 -0700)]
Validate decryption key length to decrypt function.

Cherry picked from http://go/ag/3038278.

AesCtrDecryptor::decrypt() doesn't check whether the size of "key"
is equal to 16 bytes,  which may lead to an OOB read problem in the
context of mediadrmserver.

Add DecryptsWithEmptyKey and DecryptsWithKeyTooLong unit tests.

Test: ClearKeyDrmUnitTest
  adb shell LD_LIBRARY_PATH="/vendor/lib/mediadrm"
  /data/nativetest/ClearKeyDrmUnitTest/ClearKeyDrmUnitTest

bug: 63982768
Change-Id: I1f22c9df2b051972b2c532608b7f203e3ce77926
(cherry picked from commit 379b672b189aa72ce0103b485019022f3e292c36)

6 years agoProtect against possible race conditions
Pawin Vongmasa [Thu, 28 Sep 2017 12:31:11 +0000 (05:31 -0700)]
Protect against possible race conditions

Test: make cts -j123 && cts-tradefed run cts-dev -m \
CtsMediaTestCases --compatibility:module-arg \
CtsMediaTestCases:include-annotation:\
android.platform.test.annotations.RequiresDevice

Test: Run the poc in b/38234812

Bug: 38234812
Change-Id: I28322e5a812c02c8e449ab8773715f60b9f5d976
(cherry picked from commit f9c81464b9494082fa7cdff9f70c5402e8ac78c0)

6 years agoSnap for 4448085 from 1648c8d1519adeaccc5ee7d31eccc9fcfb9a07be to oc-m4-release
android-build-team Robot [Mon, 13 Nov 2017 19:50:20 +0000 (19:50 +0000)]
Snap for 4448085 from 1648c8d1519adeaccc5ee7d31eccc9fcfb9a07be to oc-m4-release

Change-Id: I341f638a5c91d3bd0e002d0bacd1ed21b2e795aa

6 years agoSnap for 4442250 from 1648c8d1519adeaccc5ee7d31eccc9fcfb9a07be to oc-m2-release
android-build-team Robot [Thu, 9 Nov 2017 21:39:42 +0000 (21:39 +0000)]
Snap for 4442250 from 1648c8d1519adeaccc5ee7d31eccc9fcfb9a07be to oc-m2-release

Change-Id: Iad6f44973fd55758650c54e92d11be9c8ec7c73c

6 years agoMerge cherrypicks of [3196053, 3195996, 3195997, 3195998, 3196073, 3196093, 3196113...
android-build-team Robot [Thu, 9 Nov 2017 05:44:32 +0000 (05:44 +0000)]
Merge cherrypicks of [319605331959963195997319599831960733196093319611331959343195999319607431961333196134319591431959153195916] into oc-mr1-release

Change-Id: I95acbaa82a1bc595d122bab54fb7a4e25e37d4ff

6 years agoCamera NDK: fix bug in lock order
Yin-Chia Yeh [Tue, 7 Nov 2017 01:16:22 +0000 (17:16 -0800)]
Camera NDK: fix bug in lock order

AImage::close() can be called by AImageReader while holding
AImageReader::mLock.
Also fix ACaptureFailure double free issue.

Test: AR test app + CTS stress
Bug: 68885255
Change-Id: I17037e3e30e0f53b35ca538a3f321693c539cbdc
Merged-In: I17037e3e30e0f53b35ca538a3f321693c539cbdc
(cherry picked from commit a10ab5bfd1ca27128fdbe43ce58a68e92b2896a1)

6 years agoSnap for 4431872 from 18d2294a4cd46cc285a95436c503b46184217451 to oc-m2-release
android-build-team Robot [Fri, 3 Nov 2017 22:43:26 +0000 (22:43 +0000)]
Snap for 4431872 from 18d2294a4cd46cc285a95436c503b46184217451 to oc-m2-release

Change-Id: I087b1ab329d21621c28397ab98bb5f8c8e30f4b1

6 years agoMerge cherrypicks of [3156476, 3155698, 3156194, 3156639, 3156018, 3156477, 3156098...
android-build-team Robot [Thu, 2 Nov 2017 04:50:45 +0000 (04:50 +0000)]
Merge cherrypicks of [3156476315569831561943156639315601831564773156098315609931561003156101315610231583933155699315570031561953156196315601931560203158394] into oc-mr1-release

Change-Id: I107302823b3d3d6a219bdf2caa8909e185ae227a

6 years agoaaudio: fix loss of sync with HW FIFO index
Phil Burk [Thu, 26 Oct 2017 19:11:47 +0000 (12:11 -0700)]
aaudio: fix loss of sync with HW FIFO index

This fixes a problem with intermittent severe distortion
and variable latency after restarting a stream.

Bug: 68003241
Test: write_sine_callback -pl -m2 -n2 -s5 -c2 -l100
Merged-In: Id7418adb86f2869ac74936cfbd365815a0a0e923
Change-Id: Id7418adb86f2869ac74936cfbd365815a0a0e923
(cherry picked from commit 999e110dac3783df71e5606be1d86f1b122145c0)

6 years agoSnap for 4417144 from 02151bca26d22b6e9d1f7f6acba6f05042758da2 to oc-m2-release
android-build-team Robot [Thu, 26 Oct 2017 20:09:28 +0000 (20:09 +0000)]
Snap for 4417144 from 02151bca26d22b6e9d1f7f6acba6f05042758da2 to oc-m2-release

Change-Id: I12c3384feae3ae3721a96bee30bf9377bcb9e8e4

6 years agoSnap for 4411005 from c347c2eaf87c640d664f623f90a3ec6383bfe4f7 to oc-mr1-release
android-build-team Robot [Mon, 23 Oct 2017 02:34:35 +0000 (02:34 +0000)]
Snap for 4411005 from c347c2eaf87c640d664f623f90a3ec6383bfe4f7 to oc-mr1-release

Change-Id: I8dc053f7aa057562253b2d0879c23afef32fec36

6 years agoFix build am: 48caffe6fe am: 1da4542abd -s ours am: ab486b087e am: 04b334a98d am...
Marco Nelissen [Fri, 20 Oct 2017 17:44:43 +0000 (17:44 +0000)]
Fix build am: 48caffe6fe am: 1da4542abd  -s ours am: ab486b087e am: 04b334a98d am: f231e8b680 am: 31b9dbb43b am: d799181f51 am: 7edb039dde am: 7cc9d6763e am: 5ff79c2a46 am: 6abd03fa5d am: 7947199a58
am: 490e643cc1

Change-Id: I7480b25c2dca3b4ea23d470927004a7735e99512

6 years agoMerge "OMXNodeInstance: use a lock in freeNode" into lmp-dev am: 288566faba -s ours...
Lajos Molnar [Fri, 20 Oct 2017 17:43:06 +0000 (17:43 +0000)]
Merge "OMXNodeInstance: use a lock in freeNode" into lmp-dev am: 288566faba  -s ours am: 2a5e425ab4 am: 96c2fafc29 am: b9da9fc1aa am: ee22f8a68e am: efd26f8a61 am: 2d073bdd1e am: f5eb536d90 am: 27bdac8e05 am: fab889e9e6 am: 44a79a8db8 am: bdbb380663
am: 102b970dfb

Change-Id: I39ac02c1bca2764988c92b13ec4f83cedd7b8fa7

6 years agoMerge "Soundtrigger service: fix cross deadlock with audio policy service" into lmp...
Eric Laurent [Fri, 20 Oct 2017 17:41:18 +0000 (17:41 +0000)]
Merge "Soundtrigger service: fix cross deadlock with audio policy service" into lmp-dev am: 1a721bb633  -s ours am: 5a1dae0cea  -s ours am: fa5253c8bc  -s ours am: 021923a373  -s ours am: c798254fba  -s ours am: 37e801176e  -s ours am: 63b868e27b  -s ours am: 68d7af9137  -s ours am: 4efb8774ab  -s ours am: 94a417ca10  -s ours am: 8fc33c4f75  -s ours am: ec248b8ddd  -s ours
am: 8334241619  -s ours

Change-Id: Ibbb5bbadc73c6977d3adc41ba009c597bb30bd48

6 years agoFix build am: 48caffe6fe am: 1da4542abd -s ours am: ab486b087e am: 04b334a98d am...
Marco Nelissen [Fri, 20 Oct 2017 17:40:43 +0000 (17:40 +0000)]
Fix build am: 48caffe6fe am: 1da4542abd  -s ours am: ab486b087e am: 04b334a98d am: f231e8b680 am: 31b9dbb43b am: d799181f51 am: 7edb039dde am: 7cc9d6763e am: 5ff79c2a46 am: 6abd03fa5d
am: 7947199a58

Change-Id: Ib6d53bed55ea0dfdea977451fdaaffc5230068fa

6 years agoMerge "Soundtrigger service: fix cross deadlock with audio policy service" into lmp...
Eric Laurent [Fri, 20 Oct 2017 17:39:00 +0000 (17:39 +0000)]
Merge "Soundtrigger service: fix cross deadlock with audio policy service" into lmp-mr1-dev am: b6b4443dbb am: 74684f638b am: af5ce97781 am: 7190597c26 am: 5de64b02a3  -s ours am: 2ed01f0006  -s ours am: 1ade78dc5d  -s ours am: c75c947a42  -s ours am: 849a10fce0  -s ours am: faee2cdf2d  -s ours am: 836b713352  -s ours
am: 24e679966e  -s ours

Change-Id: Icb2e6e40f83b2cb6b63f81c2ae43fe3d2fb58a36

6 years agoMerge "OMXNodeInstance: use a lock in freeNode" into lmp-dev am: 288566faba -s ours...
Lajos Molnar [Fri, 20 Oct 2017 17:38:54 +0000 (17:38 +0000)]
Merge "OMXNodeInstance: use a lock in freeNode" into lmp-dev am: 288566faba  -s ours am: 2a5e425ab4 am: 96c2fafc29 am: b9da9fc1aa am: ee22f8a68e am: efd26f8a61 am: 2d073bdd1e am: f5eb536d90 am: 27bdac8e05 am: fab889e9e6 am: 44a79a8db8
am: bdbb380663

Change-Id: Ic2b6af7ef99ef64ec5788e33da457ea06e26b1db

6 years agoMerge "OMXNodeInstance: use a lock in freeNode" into lmp-mr1-dev am: 60719598d5 am...
Lajos Molnar [Fri, 20 Oct 2017 17:36:48 +0000 (17:36 +0000)]
Merge "OMXNodeInstance: use a lock in freeNode" into lmp-mr1-dev am: 60719598d5 am: cdf0a102d9 am: 57ac76182e am: 36950f753b am: a4cc48a3ae am: f3b4e5d222 am: 73a7e98790 am: 0b306b0517 am: bef1ae9f4d am: 6c930ece3c  -s ours am: 40f6d8a086
am: 29f32408c6

Change-Id: Ic3e2840753f5c07f951dd37ffe8c37cacd2b9851

6 years agoMerge "Soundtrigger service: fix cross deadlock with audio policy service" into lmp...
Eric Laurent [Fri, 20 Oct 2017 17:36:44 +0000 (17:36 +0000)]
Merge "Soundtrigger service: fix cross deadlock with audio policy service" into lmp-dev am: 1a721bb633  -s ours am: 5a1dae0cea  -s ours am: fa5253c8bc  -s ours am: 021923a373  -s ours am: c798254fba  -s ours am: 37e801176e  -s ours am: 63b868e27b  -s ours am: 68d7af9137  -s ours am: 4efb8774ab  -s ours am: 94a417ca10  -s ours am: 8fc33c4f75  -s ours
am: ec248b8ddd  -s ours

Change-Id: I254dc5daa9e38e99ce5ae687e2953a8db8f725cf

6 years agoFix build am: 48caffe6fe am: 1da4542abd -s ours am: ab486b087e am: 04b334a98d am...
Marco Nelissen [Fri, 20 Oct 2017 17:33:31 +0000 (17:33 +0000)]
Fix build am: 48caffe6fe am: 1da4542abd  -s ours am: ab486b087e am: 04b334a98d am: f231e8b680 am: 31b9dbb43b am: d799181f51 am: 7edb039dde am: 7cc9d6763e am: 5ff79c2a46
am: 6abd03fa5d

Change-Id: Iec6b0ffc5c6d47b85e3d5c0838ed67811696ad37

6 years agoMerge "Soundtrigger service: fix cross deadlock with audio policy service" into lmp...
Eric Laurent [Fri, 20 Oct 2017 17:33:17 +0000 (17:33 +0000)]
Merge "Soundtrigger service: fix cross deadlock with audio policy service" into lmp-mr1-dev am: b6b4443dbb am: 74684f638b am: af5ce97781 am: 7190597c26 am: 5de64b02a3  -s ours am: 2ed01f0006  -s ours am: 1ade78dc5d  -s ours am: c75c947a42  -s ours am: 849a10fce0  -s ours am: faee2cdf2d  -s ours
am: 836b713352  -s ours

Change-Id: Ib504331838fb576686547c925c9266c729e47022

6 years agoMerge "OMXNodeInstance: use a lock in freeNode" into lmp-dev am: 288566faba -s ours...
Lajos Molnar [Fri, 20 Oct 2017 17:32:21 +0000 (17:32 +0000)]
Merge "OMXNodeInstance: use a lock in freeNode" into lmp-dev am: 288566faba  -s ours am: 2a5e425ab4 am: 96c2fafc29 am: b9da9fc1aa am: ee22f8a68e am: efd26f8a61 am: 2d073bdd1e am: f5eb536d90 am: 27bdac8e05 am: fab889e9e6
am: 44a79a8db8

Change-Id: Ie99043ef52945872e51aecf603ee4a1e7100daed

6 years agoMerge "OMXNodeInstance: use a lock in freeNode" into lmp-mr1-dev am: 60719598d5 am...
Lajos Molnar [Fri, 20 Oct 2017 17:31:54 +0000 (17:31 +0000)]
Merge "OMXNodeInstance: use a lock in freeNode" into lmp-mr1-dev am: 60719598d5 am: cdf0a102d9 am: 57ac76182e am: 36950f753b am: a4cc48a3ae am: f3b4e5d222 am: 73a7e98790 am: 0b306b0517 am: bef1ae9f4d am: 6c930ece3c  -s ours
am: 40f6d8a086

Change-Id: I95971b8e76a4b6941fcb892787c9990bcdb5256c

6 years agoMerge "Soundtrigger service: fix cross deadlock with audio policy service" into lmp...
Eric Laurent [Fri, 20 Oct 2017 17:30:49 +0000 (17:30 +0000)]
Merge "Soundtrigger service: fix cross deadlock with audio policy service" into lmp-dev am: 1a721bb633  -s ours am: 5a1dae0cea  -s ours am: fa5253c8bc  -s ours am: 021923a373  -s ours am: c798254fba  -s ours am: 37e801176e  -s ours am: 63b868e27b  -s ours am: 68d7af9137  -s ours am: 4efb8774ab  -s ours am: 94a417ca10  -s ours
am: 8fc33c4f75  -s ours

Change-Id: I8b37d6a44110f341cb2100764a6d36c3c1fdfa9d

6 years agoMerge "Soundtrigger service: fix cross deadlock with audio policy service" into lmp...
Eric Laurent [Fri, 20 Oct 2017 17:29:07 +0000 (17:29 +0000)]
Merge "Soundtrigger service: fix cross deadlock with audio policy service" into lmp-mr1-dev am: b6b4443dbb am: 74684f638b am: af5ce97781 am: 7190597c26 am: 5de64b02a3  -s ours am: 2ed01f0006  -s ours am: 1ade78dc5d  -s ours am: c75c947a42  -s ours am: 849a10fce0  -s ours
am: faee2cdf2d  -s ours

Change-Id: I44a1b689d2b395e477b5b9e145228e31ebf8b870

6 years agoMerge "OMXNodeInstance: use a lock in freeNode" into lmp-mr1-dev am: 60719598d5 am...
Lajos Molnar [Fri, 20 Oct 2017 17:27:38 +0000 (17:27 +0000)]
Merge "OMXNodeInstance: use a lock in freeNode" into lmp-mr1-dev am: 60719598d5 am: cdf0a102d9 am: 57ac76182e am: 36950f753b am: a4cc48a3ae am: f3b4e5d222 am: 73a7e98790 am: 0b306b0517 am: bef1ae9f4d
am: 6c930ece3c  -s ours

Change-Id: I46be3e647e626302ed089aeb9867ef760bb40661

6 years agoSnap for 4407597 from a671979428d39d9ea780500aaf2142f0833c133f to oc-mr1-release
android-build-team Robot [Fri, 20 Oct 2017 07:12:05 +0000 (07:12 +0000)]
Snap for 4407597 from a671979428d39d9ea780500aaf2142f0833c133f to oc-mr1-release

Change-Id: I4a54eec6f1e55e21a04f1229104a819ab90c7604