OSDN Git Service

android-x86/frameworks-av.git
9 years agoam 7f6655df: (-s ours) am 17580294: am 8b0b1f77: (-s ours) am 31703583: (-s ours...
Dan Stoza [Wed, 1 Apr 2015 19:28:11 +0000 (19:28 +0000)]
am 7f6655df: (-s ours) am 17580294: am 8b0b1f77: (-s ours) am 31703583: (-s ours) Merge "DO NOT MERGE libstagefright: Stop using IGBC::BufferItem"

* commit '7f6655dfa1bf2e7740129ca99e08fe0b8bdc290e':
  DO NOT MERGE libstagefright: Stop using IGBC::BufferItem

9 years agoam 2c0e26fe: (-s ours) am 1eedd9ae: am b4c7472f: (-s ours) am e7988c6c: (-s ours...
Dan Stoza [Wed, 1 Apr 2015 19:28:09 +0000 (19:28 +0000)]
am 2c0e26fe: (-s ours) am 1eedd9ae: am b4c7472f: (-s ours) am e7988c6c: (-s ours) Merge "DO NOT MERGE libcameraservice: Stop using IGBC::BufferItem"

* commit '2c0e26fe42771b7fae55f139c504c129b4a9748d':
  DO NOT MERGE libcameraservice: Stop using IGBC::BufferItem

9 years agoam 17580294: am 8b0b1f77: (-s ours) am 31703583: (-s ours) Merge "DO NOT MERGE libsta...
Dan Stoza [Wed, 1 Apr 2015 18:43:23 +0000 (18:43 +0000)]
am 17580294: am 8b0b1f77: (-s ours) am 31703583: (-s ours) Merge "DO NOT MERGE libstagefright: Stop using IGBC::BufferItem"

* commit '175802940e30d2ae7bbf36656f08d47067c0a069':
  DO NOT MERGE libstagefright: Stop using IGBC::BufferItem

9 years agoam 1eedd9ae: am b4c7472f: (-s ours) am e7988c6c: (-s ours) Merge "DO NOT MERGE libcam...
Dan Stoza [Wed, 1 Apr 2015 18:43:21 +0000 (18:43 +0000)]
am 1eedd9ae: am b4c7472f: (-s ours) am e7988c6c: (-s ours) Merge "DO NOT MERGE libcameraservice: Stop using IGBC::BufferItem"

* commit '1eedd9aedb99d067db8b52077d156ada76333eba':
  DO NOT MERGE libcameraservice: Stop using IGBC::BufferItem

9 years agoam 8b0b1f77: (-s ours) am 31703583: (-s ours) Merge "DO NOT MERGE libstagefright...
Dan Stoza [Wed, 1 Apr 2015 18:34:40 +0000 (18:34 +0000)]
am 8b0b1f77: (-s ours) am 31703583: (-s ours) Merge "DO NOT MERGE libstagefright: Stop using IGBC::BufferItem"

* commit '8b0b1f77606c3e81b9a5d5d2b78fdac68df33ada':
  DO NOT MERGE libstagefright: Stop using IGBC::BufferItem

9 years agoam b4c7472f: (-s ours) am e7988c6c: (-s ours) Merge "DO NOT MERGE libcameraservice...
Dan Stoza [Wed, 1 Apr 2015 18:34:39 +0000 (18:34 +0000)]
am b4c7472f: (-s ours) am e7988c6c: (-s ours) Merge "DO NOT MERGE libcameraservice: Stop using IGBC::BufferItem"

* commit 'b4c7472f8e05e600b1097b61288dc20aa19c002c':
  DO NOT MERGE libcameraservice: Stop using IGBC::BufferItem

9 years agoam 31703583: (-s ours) Merge "DO NOT MERGE libstagefright: Stop using IGBC::BufferItem"
Dan Stoza [Wed, 1 Apr 2015 18:26:41 +0000 (18:26 +0000)]
am 31703583: (-s ours) Merge "DO NOT MERGE libstagefright: Stop using IGBC::BufferItem"

* commit '3170358336dbe466cd3e9a5517e8e579b47cd084':
  DO NOT MERGE libstagefright: Stop using IGBC::BufferItem

9 years agoam e7988c6c: (-s ours) Merge "DO NOT MERGE libcameraservice: Stop using IGBC::BufferItem"
Dan Stoza [Wed, 1 Apr 2015 18:26:40 +0000 (18:26 +0000)]
am e7988c6c: (-s ours) Merge "DO NOT MERGE libcameraservice: Stop using IGBC::BufferItem"

* commit 'e7988c6cafb09e58b28db42e9cef3b6d106ae21f':
  DO NOT MERGE libcameraservice: Stop using IGBC::BufferItem

9 years agoMerge "DO NOT MERGE libstagefright: Stop using IGBC::BufferItem"
Dan Stoza [Wed, 1 Apr 2015 18:23:29 +0000 (18:23 +0000)]
Merge "DO NOT MERGE libstagefright: Stop using IGBC::BufferItem"

9 years agoMerge "DO NOT MERGE libcameraservice: Stop using IGBC::BufferItem"
Dan Stoza [Wed, 1 Apr 2015 18:17:46 +0000 (18:17 +0000)]
Merge "DO NOT MERGE libcameraservice: Stop using IGBC::BufferItem"

9 years agoMerge "audio flinger: fix standby on output with HW A/V sync"
Eric Laurent [Wed, 1 Apr 2015 18:09:18 +0000 (18:09 +0000)]
Merge "audio flinger: fix standby on output with HW A/V sync"

9 years agoDO NOT MERGE libstagefright: Stop using IGBC::BufferItem
Dan Stoza [Fri, 20 Mar 2015 19:50:03 +0000 (12:50 -0700)]
DO NOT MERGE libstagefright: Stop using IGBC::BufferItem

Switches all uses of IGraphicBufferConsumer::BufferItem (and
BufferQueue::BufferItem) to the BufferItem in libgui.

Similar to I0ddd38df37500cfd6b21d1e768ed14e39c5cd9fc, but not a
cherry-pick.

Change-Id: I9b16c81bd3bdacdba86eb8fb9b216b295a44b1cb

9 years agoDO NOT MERGE libcameraservice: Stop using IGBC::BufferItem
Dan Stoza [Thu, 12 Mar 2015 22:21:16 +0000 (15:21 -0700)]
DO NOT MERGE libcameraservice: Stop using IGBC::BufferItem

Switches all uses of IGraphicBufferConsumer::BufferItem (and
BufferQueue::BufferItem) to the BufferItem in libgui. Depends on
frameworks/native I699ed0a6837076867ca756b28d1ffb2238f7a0d9.

Cherry-pick of I187b3a7d05196b6289596afac8fb9a9d4aebff76

Change-Id: Ib15af6b8f72f97aef66a5e91e55a24d292dfa6fc

9 years agoMerge "mediaplayer: ensure secure decoders are instantiated before starting source"
Chong Zhang [Wed, 1 Apr 2015 17:13:51 +0000 (17:13 +0000)]
Merge "mediaplayer: ensure secure decoders are instantiated before starting source"

9 years agomediaplayer: ensure secure decoders are instantiated before starting source
Lajos Molnar [Tue, 31 Mar 2015 17:06:48 +0000 (10:06 -0700)]
mediaplayer: ensure secure decoders are instantiated before starting source

Bug: 19984798
Change-Id: Iff13cf03c4ce3141380f4d7ab4a2b1045c5ce747

9 years agoRevert "mediaplayer: ensure secure decoders are instantiated before starting source"
Bart Sears [Wed, 1 Apr 2015 05:24:58 +0000 (05:24 +0000)]
Revert "mediaplayer: ensure secure decoders are instantiated before starting source"

Reverting a CL that auto-merged from lmp-mr1-dev

This reverts commit 68fca636ac961c181ee71a49f151c71b564258d0.

Change-Id: I797955c4745710452516b0d487529c95e2d1893e

9 years agoam 8f46a007: am 6bedacad: am d513b7da: am 31878abb: am 68fca636: mediaplayer: ensure...
Lajos Molnar [Wed, 1 Apr 2015 03:07:56 +0000 (03:07 +0000)]
am 8f46a007: am 6bedacad: am d513b7da: am 31878abb: am 68fca636: mediaplayer: ensure secure decoders are instantiated before starting source

* commit '8f46a007b2f2f70e48df32d5633912481441220b':
  mediaplayer: ensure secure decoders are instantiated before starting source

9 years agoam 6bedacad: am d513b7da: am 31878abb: am 68fca636: mediaplayer: ensure secure decode...
Lajos Molnar [Wed, 1 Apr 2015 02:19:28 +0000 (02:19 +0000)]
am 6bedacad: am d513b7da: am 31878abb: am 68fca636: mediaplayer: ensure secure decoders are instantiated before starting source

* commit '6bedacad9a67bb8eca5b3073ad41bb002207e623':
  mediaplayer: ensure secure decoders are instantiated before starting source

9 years agoam d513b7da: am 31878abb: am 68fca636: mediaplayer: ensure secure decoders are instan...
Lajos Molnar [Wed, 1 Apr 2015 01:45:22 +0000 (01:45 +0000)]
am d513b7da: am 31878abb: am 68fca636: mediaplayer: ensure secure decoders are instantiated before starting source

* commit 'd513b7da73be6013daa321e1f8c2e488dec65dcd':
  mediaplayer: ensure secure decoders are instantiated before starting source

9 years agoMerge "Reject sample rate changes for fast tracks"
Andy Hung [Wed, 1 Apr 2015 01:41:41 +0000 (01:41 +0000)]
Merge "Reject sample rate changes for fast tracks"

9 years agoam 31878abb: am 68fca636: mediaplayer: ensure secure decoders are instantiated before...
Lajos Molnar [Wed, 1 Apr 2015 01:38:03 +0000 (01:38 +0000)]
am 31878abb: am 68fca636: mediaplayer: ensure secure decoders are instantiated before starting source

* commit '31878abbbfb5348c81870f8f68183e2a57cb7c09':
  mediaplayer: ensure secure decoders are instantiated before starting source

9 years agoam 68fca636: mediaplayer: ensure secure decoders are instantiated before starting...
Lajos Molnar [Wed, 1 Apr 2015 01:31:59 +0000 (01:31 +0000)]
am 68fca636: mediaplayer: ensure secure decoders are instantiated before starting source

* commit '68fca636ac961c181ee71a49f151c71b564258d0':
  mediaplayer: ensure secure decoders are instantiated before starting source

9 years agoaudio flinger: fix standby on output with HW A/V sync
Eric Laurent [Tue, 31 Mar 2015 03:51:47 +0000 (20:51 -0700)]
audio flinger: fix standby on output with HW A/V sync

Fix a bug in audio HAL pause logic on output threads with
HW A/V sync preventing the HAL to enter standby when
the audio track is stopped and detroyed.

Bug: 19980184.

Change-Id: Ia497dad23159038b447fcbc18a67bb61b70b79cc

9 years agoReject sample rate changes for fast tracks
Andy Hung [Sat, 28 Mar 2015 01:39:59 +0000 (18:39 -0700)]
Reject sample rate changes for fast tracks

This is needed for a SoundPool fix.

Bug: 19970735
Change-Id: I46b69e059aabf0d06b16b31ea436bb71f7146750

9 years agoMerge "camera2: Enforce client eviction on user switch."
Ruben Brunk [Tue, 31 Mar 2015 22:28:11 +0000 (22:28 +0000)]
Merge "camera2: Enforce client eviction on user switch."

9 years agoMerge "Do CRC check for MPEG2TS PSI sections"
Jinsuk Kim [Tue, 31 Mar 2015 21:36:15 +0000 (21:36 +0000)]
Merge "Do CRC check for MPEG2TS PSI sections"

9 years agomediaplayer: ensure secure decoders are instantiated before starting source
Lajos Molnar [Tue, 31 Mar 2015 17:06:48 +0000 (10:06 -0700)]
mediaplayer: ensure secure decoders are instantiated before starting source

Bug: 19984798
Change-Id: Iff13cf03c4ce3141380f4d7ab4a2b1045c5ce747

9 years agocamera2: Enforce client eviction on user switch.
Ruben Brunk [Sat, 21 Mar 2015 05:15:57 +0000 (22:15 -0700)]
camera2: Enforce client eviction on user switch.

Bug: 19186859
Change-Id: I172a2ce46c8e8a131ae7e8dd99d60c5f4f0d6668

9 years agoMerge "Camera: iterate through all encoders for finding max video size"
Yin-Chia Yeh [Tue, 31 Mar 2015 18:24:57 +0000 (18:24 +0000)]
Merge "Camera: iterate through all encoders for finding max video size"

9 years agoCamera: iterate through all encoders for finding max video size
Yin-Chia Yeh [Fri, 27 Mar 2015 18:35:31 +0000 (11:35 -0700)]
Camera: iterate through all encoders for finding max video size

Bug: 19712132
Change-Id: I5c1fc748fcc756f6665c31951f8af8a37ff4254d

9 years agoam fadd74c3: (-s ours) am 5132e9ce: am 81e776d0: am 2a2642d8: am 42431438: DO NOT...
Eric Laurent [Tue, 31 Mar 2015 17:13:19 +0000 (17:13 +0000)]
am fadd74c3: (-s ours) am 5132e9ce: am 81e776d0: am 2a2642d8: am 42431438: DO NOT MERGE - audio policy: fix DeviceVector::getDevicesFromType()

* commit 'fadd74c3ad6ec3dbe955a9425434eb5e01acc819':
  DO NOT MERGE - audio policy: fix DeviceVector::getDevicesFromType()

9 years agoam 5132e9ce: am 81e776d0: am 2a2642d8: am 42431438: DO NOT MERGE - audio policy:...
Eric Laurent [Tue, 31 Mar 2015 17:06:36 +0000 (17:06 +0000)]
am 5132e9ce: am 81e776d0: am 2a2642d8: am 42431438: DO NOT MERGE - audio policy: fix DeviceVector::getDevicesFromType()

* commit '5132e9ceb4c8c8c7e27cabefbad52d9749184912':
  DO NOT MERGE - audio policy: fix DeviceVector::getDevicesFromType()

9 years agoam 81e776d0: am 2a2642d8: am 42431438: DO NOT MERGE - audio policy: fix DeviceVector...
Eric Laurent [Tue, 31 Mar 2015 17:01:26 +0000 (17:01 +0000)]
am 81e776d0: am 2a2642d8: am 42431438: DO NOT MERGE - audio policy: fix DeviceVector::getDevicesFromType()

* commit '81e776d00ddf3bfa6c5cf3368418c21bef66262e':
  DO NOT MERGE - audio policy: fix DeviceVector::getDevicesFromType()

9 years agoam 2a2642d8: am 42431438: DO NOT MERGE - audio policy: fix DeviceVector::getDevicesFr...
Eric Laurent [Tue, 31 Mar 2015 16:54:31 +0000 (16:54 +0000)]
am 2a2642d8: am 42431438: DO NOT MERGE - audio policy: fix DeviceVector::getDevicesFromType()

* commit '2a2642d85c4c992965055f87a8145b26df8f16a6':
  DO NOT MERGE - audio policy: fix DeviceVector::getDevicesFromType()

9 years agoam 42431438: DO NOT MERGE - audio policy: fix DeviceVector::getDevicesFromType()
Eric Laurent [Tue, 31 Mar 2015 16:46:55 +0000 (16:46 +0000)]
am 42431438: DO NOT MERGE - audio policy: fix DeviceVector::getDevicesFromType()

* commit '424314382b6e2064df1c7c445038a11104be84c7':
  DO NOT MERGE - audio policy: fix DeviceVector::getDevicesFromType()

9 years agoDO NOT MERGE - audio policy: fix DeviceVector::getDevicesFromType()
Eric Laurent [Tue, 31 Mar 2015 01:59:03 +0000 (18:59 -0700)]
DO NOT MERGE - audio policy: fix DeviceVector::getDevicesFromType()

Fix device type comparison in DeviceVector::getDevicesFromType():
AUDIO_DEVICE_BIT_IN bit must be excluded from type comparison
and used as an orthogonal match criterium.

Manual cherry-pick from master 4c91f90

Bug: 19957479

Change-Id: Ica9f440384bcb85e669864bd29504a4fda862ce7

9 years agoDo CRC check for MPEG2TS PSI sections
Jinsuk Kim [Fri, 20 Mar 2015 00:23:18 +0000 (09:23 +0900)]
Do CRC check for MPEG2TS PSI sections

CRC checking helps the parser avoid getting wrong values from
corrupted data in the stream transmitted over a noisy channel.

Bug: 19821428
Change-Id: I7f589a66a781298c039124a4bd1c9453e77b1bf3

9 years agoMerge "audio policy: fix IOProfile::isCompatibleProfile()"
Eric Laurent [Mon, 30 Mar 2015 19:39:10 +0000 (19:39 +0000)]
Merge "audio policy: fix IOProfile::isCompatibleProfile()"

9 years agofix build break in clang
Chong Zhang [Mon, 30 Mar 2015 19:33:56 +0000 (12:33 -0700)]
fix build break in clang

Change-Id: Iff2ca5d1e800d30943de12191bfe6c43d6a2c7f6

9 years agoaudio policy: fix IOProfile::isCompatibleProfile()
Eric Laurent [Fri, 27 Mar 2015 02:00:00 +0000 (19:00 -0700)]
audio policy: fix IOProfile::isCompatibleProfile()

Handle composite devices in IOProfile::isCompatibleProfile()
by just checking the type in this case, not the address which is relevant
only if a single device type is passed as input.

Also remove warning.

Bug: 19762960.
Change-Id: Iaecb7fcfbf7ad39b1e33cb460922f7c069a34a00

9 years agoMerge "audio policy: fix DeviceVector::getDevicesFromType()"
Eric Laurent [Mon, 30 Mar 2015 16:38:05 +0000 (16:38 +0000)]
Merge "audio policy: fix DeviceVector::getDevicesFromType()"

9 years agoMerge "HLS: faster switching and pause/resume on low buffer"
Chong Zhang [Fri, 27 Mar 2015 22:37:47 +0000 (22:37 +0000)]
Merge "HLS: faster switching and pause/resume on low buffer"

9 years agoHLS: faster switching and pause/resume on low buffer
Chong Zhang [Tue, 17 Mar 2015 23:27:56 +0000 (16:27 -0700)]
HLS: faster switching and pause/resume on low buffer

- when upswitching, discard excessive buffering on low
  bandwidth variant, switch to new variant earlier

- when downswitching, report newly found IDR positions
  continuously, and switch as soon as new fetcher passes
  playback position. This allows us to skip time-consuming
  resumeUntil() of old fetcher most of the time

- implement pause/resume on low buffering, and notify
  buffering percentage

- buffering parameter tuning, separate pause/resume/ready
  buffer level and up/down switch buffer level, boost up
  fetcher buffering significantly

bug: 19567254

Change-Id: I750dfcc6f861d78d16a71f501beb86d8129cb048

9 years agoam 76a19722: Merge branch \'lmp-mr1-ub-dev\' of https://googleplex-android.googlesour...
Martin Hibdon [Fri, 27 Mar 2015 01:39:25 +0000 (01:39 +0000)]
am 76a19722: Merge branch \'lmp-mr1-ub-dev\' of https://googleplex-android.googlesource.com/_direct/platform/frameworks/av into lmp-mr1-ub-dev

* commit '76a19722646bbfe29bcab2a1062848799b35c9c8':

9 years agoam fb7b0f3d: (-s ours) am 9550d4f8: am 8fe49c83: am c42c4b52: am 424324b3: am 2fdd16b...
Eric Laurent [Fri, 27 Mar 2015 01:39:22 +0000 (01:39 +0000)]
am fb7b0f3d: (-s ours) am 9550d4f8: am 8fe49c83: am c42c4b52: am 424324b3: am 2fdd16b3: DO NOT MERGE - audio policy service: fix possible memory overflow

* commit 'fb7b0f3d27c53096708cea23aa4dc7e829ef36d7':

9 years agoaudio policy: fix DeviceVector::getDevicesFromType()
Eric Laurent [Thu, 26 Mar 2015 01:15:31 +0000 (18:15 -0700)]
audio policy: fix DeviceVector::getDevicesFromType()

Fix device type comparison in DeviceVector::getDevicesFromType():
AUDIO_DEVICE_BIT_IN bit must be excluded from type comparison
and used as an orthogonal match criterium.

Change-Id: Ie7378723f5a3d613b1b045ccdda69650a9d655fc

9 years agoMerge branch 'lmp-mr1-ub-dev' of https://googleplex-android.googlesource.com/_direct...
Martin Hibdon [Fri, 27 Mar 2015 01:23:46 +0000 (01:23 +0000)]
Merge branch 'lmp-mr1-ub-dev' of https://googleplex-android.googlesource.com/_direct/platform/frameworks/av into lmp-mr1-ub-dev

9 years agoam 9550d4f8: am 8fe49c83: am c42c4b52: am 424324b3: am 2fdd16b3: DO NOT MERGE - audio...
Eric Laurent [Fri, 27 Mar 2015 01:08:54 +0000 (01:08 +0000)]
am 9550d4f8: am 8fe49c83: am c42c4b52: am 424324b3: am 2fdd16b3: DO NOT MERGE - audio policy service: fix possible memory overflow

* commit '9550d4f8769ad8adf3c1c495bcb2168bea3c506f':

9 years agoam 8fe49c83: am c42c4b52: am 424324b3: am 2fdd16b3: DO NOT MERGE - audio policy servi...
Eric Laurent [Fri, 27 Mar 2015 00:49:00 +0000 (00:49 +0000)]
am 8fe49c83: am c42c4b52: am 424324b3: am 2fdd16b3: DO NOT MERGE - audio policy service: fix possible memory overflow

* commit '8fe49c83b84964557b14cff9c8513e46aeee6d18':

9 years agoam c42c4b52: am 424324b3: am 2fdd16b3: DO NOT MERGE - audio policy service: fix possi...
Eric Laurent [Fri, 27 Mar 2015 00:34:54 +0000 (00:34 +0000)]
am c42c4b52: am 424324b3: am 2fdd16b3: DO NOT MERGE - audio policy service: fix possible memory overflow

* commit 'c42c4b526422fada02f3522a08143f738e9e60af':
  DO NOT MERGE - audio policy service: fix possible memory overflow

9 years agoFix seek issue
Marco Nelissen [Thu, 26 Mar 2015 21:16:17 +0000 (14:16 -0700)]
Fix seek issue

The removed code was original added to fix a deadlock, but is no longer needed.

Bug: http://b/19947213
Change-Id: I4dd9d6fdf5eb6c0fb654953569dc87b820579f84

9 years agoam 67b7360b: (-s ours) am 82fd850e: am 414af268: am c42c4b52: am 424324b3: am 2fdd16b...
Eric Laurent [Wed, 25 Mar 2015 22:21:22 +0000 (22:21 +0000)]
am 67b7360b: (-s ours) am 82fd850e: am 414af268: am c42c4b52: am 424324b3: am 2fdd16b3: DO NOT MERGE - audio policy service: fix possible memory overflow

* commit '67b7360bf52280efa4652420656b2ceddcd7c1bd':
  DO NOT MERGE - audio policy service: fix possible memory overflow

9 years agoam 82fd850e: am 414af268: am c42c4b52: am 424324b3: am 2fdd16b3: DO NOT MERGE - audio...
Eric Laurent [Wed, 25 Mar 2015 22:11:09 +0000 (22:11 +0000)]
am 82fd850e: am 414af268: am c42c4b52: am 424324b3: am 2fdd16b3: DO NOT MERGE - audio policy service: fix possible memory overflow

* commit '82fd850ece75f53110d5c04b49646e5035b8cd24':
  DO NOT MERGE - audio policy service: fix possible memory overflow

9 years agoam 414af268: am c42c4b52: am 424324b3: am 2fdd16b3: DO NOT MERGE - audio policy servi...
Eric Laurent [Wed, 25 Mar 2015 22:00:47 +0000 (22:00 +0000)]
am 414af268: am c42c4b52: am 424324b3: am 2fdd16b3: DO NOT MERGE - audio policy service: fix possible memory overflow

* commit '414af268fbc23e877680e084aeb64a4bed79c0a6':
  DO NOT MERGE - audio policy service: fix possible memory overflow

9 years agoam c42c4b52: am 424324b3: am 2fdd16b3: DO NOT MERGE - audio policy service: fix possi...
Eric Laurent [Wed, 25 Mar 2015 20:28:52 +0000 (20:28 +0000)]
am c42c4b52: am 424324b3: am 2fdd16b3: DO NOT MERGE - audio policy service: fix possible memory overflow

* commit 'c42c4b526422fada02f3522a08143f738e9e60af':
  DO NOT MERGE - audio policy service: fix possible memory overflow

9 years agoam 424324b3: am 2fdd16b3: DO NOT MERGE - audio policy service: fix possible memory...
Eric Laurent [Wed, 25 Mar 2015 20:25:03 +0000 (20:25 +0000)]
am 424324b3: am 2fdd16b3: DO NOT MERGE - audio policy service: fix possible memory overflow

* commit '424324b327cc0b022ff8d10e03158b4594489ee7':
  DO NOT MERGE - audio policy service: fix possible memory overflow

9 years agoam 2fdd16b3: DO NOT MERGE - audio policy service: fix possible memory overflow
Eric Laurent [Wed, 25 Mar 2015 20:19:07 +0000 (20:19 +0000)]
am 2fdd16b3: DO NOT MERGE - audio policy service: fix possible memory overflow

* commit '2fdd16b3cbe1c1e53d1c4b305f4c0174b995ad1a':
  DO NOT MERGE - audio policy service: fix possible memory overflow

9 years agoDO NOT MERGE - audio policy service: fix possible memory overflow
Eric Laurent [Fri, 6 Feb 2015 18:44:24 +0000 (10:44 -0800)]
DO NOT MERGE - audio policy service: fix possible memory overflow

Add limit on number of audio ports and patches requested by
listaudioPorts() and listAudioPatches().

Bug: 19261727.
Change-Id: I21dfdf11cf805734cc3b7b2a85762c5598f60580
(cherry picked from commit 1d670b11313250442455a22f1056ad649d607fb2)

9 years agoRemove deprecation FIXMEs for TRANSFER_OBTAIN mode
Glenn Kasten [Fri, 20 Mar 2015 18:30:00 +0000 (11:30 -0700)]
Remove deprecation FIXMEs for TRANSFER_OBTAIN mode

Change-Id: I7f43aabdb092e1465d79cd0eea5944fff18b93db

9 years agoMerge "Camera: fix release fence logic"
Yin-Chia Yeh [Wed, 25 Mar 2015 00:17:50 +0000 (00:17 +0000)]
Merge "Camera: fix release fence logic"

9 years agoCamera: fix release fence logic
Yin-Chia Yeh [Thu, 5 Mar 2015 23:01:36 +0000 (15:01 -0800)]
Camera: fix release fence logic

According to spec, HAL will set release_fence to acquire_fence
when error happened (usually during flush call). Camera service
should not refer to the acquireFence anyhow since per spec HAL
needs to set it to -1 if acquireFence has been waited on.

Change-Id: I809355d0c8c71f78f657e37d19221fd1f5bdc90b

9 years agoMerge "Camera: fix metadata assertion"
Yin-Chia Yeh [Wed, 25 Mar 2015 00:05:59 +0000 (00:05 +0000)]
Merge "Camera: fix metadata assertion"

9 years agoCamera: fix metadata assertion
Yin-Chia Yeh [Tue, 24 Mar 2015 23:51:41 +0000 (16:51 -0700)]
Camera: fix metadata assertion

Bug: 19897963
Change-Id: I6b383c4750f31691a1c02e927bbeb0c1998a9eff

9 years agoMerge "AudioFlinger: call SPDIF wrapper from AudioFlinger"
Phil Burk [Tue, 24 Mar 2015 22:51:26 +0000 (22:51 +0000)]
Merge "AudioFlinger: call SPDIF wrapper from AudioFlinger"

9 years agoMerge "camera: update CameraModule"
Yin-Chia Yeh [Tue, 24 Mar 2015 22:41:04 +0000 (22:41 +0000)]
Merge "camera: update CameraModule"

9 years agoMerge "AudioRecord TRANSFER_OBTAIN can be used with FAST flag"
Glenn Kasten [Tue, 24 Mar 2015 21:48:03 +0000 (21:48 +0000)]
Merge "AudioRecord TRANSFER_OBTAIN can be used with FAST flag"

9 years agoMerge "AudioRecord::read() can be non-blocking to match AudioTrack"
Glenn Kasten [Tue, 24 Mar 2015 20:41:37 +0000 (20:41 +0000)]
Merge "AudioRecord::read() can be non-blocking to match AudioTrack"

9 years agoMerge "Make sure waitRelative is called when waitTime != INT64_MAX"
Wally Yau [Tue, 24 Mar 2015 20:32:27 +0000 (20:32 +0000)]
Merge "Make sure waitRelative is called when waitTime != INT64_MAX"

9 years agoAudioFlinger: call SPDIF wrapper from AudioFlinger
Phil Burk [Wed, 11 Feb 2015 21:40:50 +0000 (13:40 -0800)]
AudioFlinger: call SPDIF wrapper from AudioFlinger

Create an interface layer between the AudioFlinger and the HAL
that manages the wrapping and format conversion.

Removed unnecessary includes.
Handle rate conversion in getRenderPosition().
Try to open HAL with encoded format before wrapping with SPDIF.

Bug: 17566660
Change-Id: I00ad888ca15ff0f85b85efb8167c7f5ea761a244
Signed-off-by: Phil Burk <philburk@google.com>
9 years agoMerge "set() in AudioRecord and AudioTracks needs no lock"
Glenn Kasten [Tue, 24 Mar 2015 19:42:30 +0000 (19:42 +0000)]
Merge "set() in AudioRecord and AudioTracks needs no lock"

9 years agoMerge "Remove AudioRecord::notificationFrames()"
Glenn Kasten [Tue, 24 Mar 2015 19:16:53 +0000 (19:16 +0000)]
Merge "Remove AudioRecord::notificationFrames()"

9 years agoMerge "AudioFlinger: prevent retrograde timestamps for direct mode"
Phil Burk [Tue, 24 Mar 2015 19:00:07 +0000 (19:00 +0000)]
Merge "AudioFlinger: prevent retrograde timestamps for direct mode"

9 years agocamera: update CameraModule
Chien-Yu Chen [Tue, 24 Feb 2015 18:28:19 +0000 (10:28 -0800)]
camera: update CameraModule

1. Add more accessor methods to CameraModule to prevent exposing
raw module pointer
2. Use KeyedVector to replace array

Bug: 19897963

Change-Id: I111cc093f09f5fb3c4b13693d5d0687e1f441058

9 years agoMerge "media: add ResourceManagerService"
Ronghua Wu [Tue, 24 Mar 2015 16:47:09 +0000 (16:47 +0000)]
Merge "media: add ResourceManagerService"

9 years agoMerge "MediaSync: support MediaSync in native code."
Wei Jia [Tue, 24 Mar 2015 16:29:21 +0000 (16:29 +0000)]
Merge "MediaSync: support MediaSync in native code."

9 years agoMake sure waitRelative is called when waitTime != INT64_MAX
Wally Yau [Tue, 24 Mar 2015 16:10:58 +0000 (09:10 -0700)]
Make sure waitRelative is called when waitTime != INT64_MAX

b/19870971

(cherry picked from commit c600af1459c455583e071e653f0d998032aa423e)

Change-Id: Ic6bb54067d76c96ff6fc45431dc2d72db9f0a3a8

9 years agoMerge "Report key request message type for unprefixed EME"
Jeff Tinker [Tue, 24 Mar 2015 00:05:43 +0000 (00:05 +0000)]
Merge "Report key request message type for unprefixed EME"

9 years agomedia: add ResourceManagerService
Ronghua Wu [Wed, 11 Mar 2015 22:10:32 +0000 (15:10 -0700)]
media: add ResourceManagerService

Bug: 19620911
Change-Id: Iea173d310d31781bc50effe3d9bd6553cb5139eb

9 years agoAudioRecord::read() can be non-blocking to match AudioTrack
Glenn Kasten [Fri, 20 Mar 2015 17:58:21 +0000 (10:58 -0700)]
AudioRecord::read() can be non-blocking to match AudioTrack

Change-Id: I23b9466b81ab6037d0bccd5e6f5974b7bd4aeacb

9 years agoset() in AudioRecord and AudioTracks needs no lock
Glenn Kasten [Fri, 20 Mar 2015 16:01:44 +0000 (09:01 -0700)]
set() in AudioRecord and AudioTracks needs no lock

Change-Id: I9d61b3d117e9b21fbbfad772d8981a5abb8fafae

9 years agoRemove AudioRecord::notificationFrames()
Glenn Kasten [Fri, 20 Mar 2015 15:55:02 +0000 (08:55 -0700)]
Remove AudioRecord::notificationFrames()

This API was unused, and is not present in AudioTrack

Change-Id: I66a1eedc149af085269c0f438c3c8d4e226a0e5b

9 years agoAudioRecord TRANSFER_OBTAIN can be used with FAST flag
Glenn Kasten [Wed, 18 Mar 2015 19:57:28 +0000 (12:57 -0700)]
AudioRecord TRANSFER_OBTAIN can be used with FAST flag

Change-Id: I001ba1a88150dddf79d99baf5927f31799745eef

9 years agoAudioFlinger: prevent retrograde timestamps for direct mode
Phil Burk [Thu, 19 Mar 2015 21:30:21 +0000 (14:30 -0700)]
AudioFlinger: prevent retrograde timestamps for direct mode

Prevent retrograde motion in the HAL or drivers from making it
up through the AudioFlinger to the app.

Bug: 19604395
Change-Id: I11d6c0f7cab69e75fd4b4a2a90f64960b4bb6d5a
Signed-off-by: Phil Burk <philburk@google.com>
9 years agoLogging
Glenn Kasten [Fri, 20 Mar 2015 16:05:01 +0000 (09:05 -0700)]
Logging

Move log of latency to where it is first computed.
Log more parameters when a fast track is denied by client.
Log session ID in destructor.
Remove obsolete ALOGV that were for debugging a particular problem.
Log more parameters of set().

Change-Id: I0156bceaf397f2faa053214572c57136705685ee

9 years agoMerge "Fix position when restoring streaming audio track"
Andy Hung [Mon, 23 Mar 2015 18:55:48 +0000 (18:55 +0000)]
Merge "Fix position when restoring streaming audio track"

9 years agoMerge "Update AudioRecord comments to match AudioTrack"
Glenn Kasten [Mon, 23 Mar 2015 18:29:32 +0000 (18:29 +0000)]
Merge "Update AudioRecord comments to match AudioTrack"

9 years agoMerge "Update AudioTrack constructor and set() comments"
Glenn Kasten [Mon, 23 Mar 2015 18:29:19 +0000 (18:29 +0000)]
Merge "Update AudioTrack constructor and set() comments"

9 years agoMerge "Update AudioTrack code to match AudioRecord"
Glenn Kasten [Mon, 23 Mar 2015 18:14:39 +0000 (18:14 +0000)]
Merge "Update AudioTrack code to match AudioRecord"

9 years agoMerge "Update AudioTrack comments to match AudioRecord"
Glenn Kasten [Mon, 23 Mar 2015 17:59:04 +0000 (17:59 +0000)]
Merge "Update AudioTrack comments to match AudioRecord"

9 years agoMerge "AudioTrack::dump() comment"
Glenn Kasten [Mon, 23 Mar 2015 17:29:23 +0000 (17:29 +0000)]
Merge "AudioTrack::dump() comment"

9 years agoMerge "AudioRecord::releaseBuffer() buffer is const *, like AudioTrack"
Glenn Kasten [Mon, 23 Mar 2015 17:21:03 +0000 (17:21 +0000)]
Merge "AudioRecord::releaseBuffer() buffer is const *, like AudioTrack"

9 years agoMerge "Remove dead AudioTrack::setAttributesFromStreamType()"
Glenn Kasten [Mon, 23 Mar 2015 16:57:00 +0000 (16:57 +0000)]
Merge "Remove dead AudioTrack::setAttributesFromStreamType()"

9 years agoMerge "Deprecate AudioRecord::getInput() and AudioTrack::getOutput()"
Glenn Kasten [Mon, 23 Mar 2015 16:36:52 +0000 (16:36 +0000)]
Merge "Deprecate AudioRecord::getInput() and AudioTrack::getOutput()"

9 years agoMerge "namespace does not need a closing semicolon"
Glenn Kasten [Mon, 23 Mar 2015 16:22:35 +0000 (16:22 +0000)]
Merge "namespace does not need a closing semicolon"

9 years agoMerge "Declare and initialize in one statement"
Glenn Kasten [Mon, 23 Mar 2015 16:09:01 +0000 (16:09 +0000)]
Merge "Declare and initialize in one statement"

9 years agoMerge "Move AudioTrack::isOffloaded() and isDirect() variants"
Glenn Kasten [Mon, 23 Mar 2015 16:05:18 +0000 (16:05 +0000)]
Merge "Move AudioTrack::isOffloaded() and isDirect() variants"

9 years agoMerge "Whitespace"
Glenn Kasten [Mon, 23 Mar 2015 15:56:19 +0000 (15:56 +0000)]
Merge "Whitespace"

9 years agoMerge "Add FIXME to deprecate AudioTrack::getMinFrameCount()"
Glenn Kasten [Mon, 23 Mar 2015 15:47:44 +0000 (15:47 +0000)]
Merge "Add FIXME to deprecate AudioTrack::getMinFrameCount()"

9 years agoMerge "Update AudioRecord comments to match AudioTrack"
Glenn Kasten [Mon, 23 Mar 2015 15:39:37 +0000 (15:39 +0000)]
Merge "Update AudioRecord comments to match AudioTrack"

9 years agoMerge "Fix typos"
Glenn Kasten [Mon, 23 Mar 2015 15:30:42 +0000 (15:30 +0000)]
Merge "Fix typos"