OSDN Git Service

android-x86/frameworks-av.git
9 years agoMerge "Fix WAVExtractor to output full audio frames only" into lmp-dev
Lajos Molnar [Sat, 9 Aug 2014 01:53:46 +0000 (01:53 +0000)]
Merge "Fix WAVExtractor to output full audio frames only" into lmp-dev

9 years agoMerge "NuPlayer: getSelectedTrack" into lmp-dev
Robert Shih [Sat, 9 Aug 2014 01:47:09 +0000 (01:47 +0000)]
Merge "NuPlayer: getSelectedTrack" into lmp-dev

9 years agoNuPlayer: getSelectedTrack
Robert Shih [Thu, 10 Jul 2014 01:53:31 +0000 (18:53 -0700)]
NuPlayer: getSelectedTrack

Change-Id: If5251f89b881e7f268e11a06cd3685d794c958b6

9 years agoMerge "audio policy: enable more than one sink per audio patch." into lmp-dev
Eric Laurent [Sat, 9 Aug 2014 00:50:59 +0000 (00:50 +0000)]
Merge "audio policy: enable more than one sink per audio patch." into lmp-dev

9 years agoaudio policy: enable more than one sink per audio patch.
Eric Laurent [Fri, 8 Aug 2014 22:13:39 +0000 (15:13 -0700)]
audio policy: enable more than one sink per audio patch.

Allow creation of audio patches with more than one sink.
More than one sink is enabled when:
- Connecting an input device to output devices on the same audio HW module.
- Connecting an output mix to output devices on the same audio HA module.

All other patches are limited to one sink.

Bug: 16879363.
Change-Id: I95be6948ef29df64e51e5b8ace38c2db7f3e89f2

9 years agoFix WAVExtractor to output full audio frames only
Andy Hung [Fri, 8 Aug 2014 22:52:38 +0000 (15:52 -0700)]
Fix WAVExtractor to output full audio frames only

Fixes NuPlayer crash from MediaBuffers ending in partial audio frames.

Bug: 16881623
Change-Id: Ia80a9910f99245e645860c00ae85118cc85bef57

9 years agoMerge "some clean up of video size change notification" into lmp-dev
Chong Zhang [Fri, 8 Aug 2014 23:01:06 +0000 (23:01 +0000)]
Merge "some clean up of video size change notification" into lmp-dev

9 years agosome clean up of video size change notification
Chong Zhang [Fri, 8 Aug 2014 22:22:35 +0000 (15:22 -0700)]
some clean up of video size change notification

need to consider rotation when notifying video size change after
initial prepare, in addition to after an output format change.

Bug: 16870964
Change-Id: Icd1c9e901ac932e720ce95b8a983c0edcf251c35

9 years agoMerge "AAC decoder: add support for controlling presentation parameters" into lmp-dev
Jean-Michel Trivi [Fri, 8 Aug 2014 21:05:14 +0000 (21:05 +0000)]
Merge "AAC decoder: add support for controlling presentation parameters" into lmp-dev

9 years agoAAC decoder: add support for controlling presentation parameters
Jean-Michel Trivi [Sat, 2 Aug 2014 05:17:48 +0000 (22:17 -0700)]
AAC decoder: add support for controlling presentation parameters

Control the dowmixing of the AAC decoder
Control the DRC processing of the AAC decoder

Bug 16740915

Change-Id: I9b06ea8785f56213ea120ed85eeb360c88223297

9 years agoMerge "libstagefright: foundation: Add syntactic sugar to the cast." into lmp-dev
Sasha Levitskiy [Fri, 8 Aug 2014 20:21:59 +0000 (20:21 +0000)]
Merge "libstagefright: foundation: Add syntactic sugar to the cast." into lmp-dev

9 years agolibstagefright: foundation: Add syntactic sugar to the cast.
Sasha Levitskiy [Fri, 8 Aug 2014 16:47:37 +0000 (09:47 -0700)]
libstagefright: foundation: Add syntactic sugar to the cast.

Change-Id: I0b6b3ae440addd4891c26b0639bd6e647a7b031e

9 years agodelay data source creation for GenericSource prepare time
Chong Zhang [Thu, 7 Aug 2014 22:35:07 +0000 (15:35 -0700)]
delay data source creation for GenericSource prepare time

Bug: 16708180

Change-Id: I9d578ef5e2edaed50279d28d3831c68556468f39

9 years agoRevert "NuPlayer: don't feed decoder input data during flushing."
Wei Jia [Thu, 7 Aug 2014 06:11:39 +0000 (06:11 +0000)]
Revert "NuPlayer: don't feed decoder input data during flushing."

The previous patch results in MediaBuffer leakage.

This reverts commit 69a85b792c31033a99c8858e3b1a3c2ea68b6278.

Bug: 14955925
Bug: 16303659
Bug: 16467066
Bug: 16849601
Change-Id: Ib1892b7603a97e12b7ee228fd5a4009700cdc988

9 years agoMerge "Fix effect and mono sink handling." into lmp-dev
Andy Hung [Fri, 8 Aug 2014 17:28:48 +0000 (17:28 +0000)]
Merge "Fix effect and mono sink handling." into lmp-dev

9 years agoFix effect and mono sink handling.
Andy Hung [Fri, 8 Aug 2014 00:49:53 +0000 (17:49 -0700)]
Fix effect and mono sink handling.

Do not permit mixing to mono sink in AudioFlinger.
Allow effects on mono sink if not Mixer thread (e.g. Record).

Bug: 16863095
Change-Id: I8b232fc1fb3f07bf017020c5d4f9ace644dec6d8

9 years agoMerge "Clarify and implement MediaCodec status codes" into lmp-dev
Andy Hung [Fri, 8 Aug 2014 16:12:22 +0000 (16:12 +0000)]
Merge "Clarify and implement MediaCodec status codes" into lmp-dev

9 years agolibstagefright_foundation: fix build
Colin Cross [Fri, 8 Aug 2014 04:38:10 +0000 (21:38 -0700)]
libstagefright_foundation: fix build

Change-Id: If61766efa8834df175bd5758c760344364458d4a

9 years agoClarify and implement MediaCodec status codes
Andy Hung [Wed, 30 Jul 2014 22:46:04 +0000 (15:46 -0700)]
Clarify and implement MediaCodec status codes

Clarify MediaCodec status codes in MediaError.h
When appropriate, return OMX error codes for status.
Optionally return a status code from CreateByType() and
CreateByComponentName().

Bug: 12034929
Bug: 13976475
Change-Id: I7463dd08d101074f730481b26127a69c9186c97e

9 years agoMerge "delay data source creation for GenericSource prepare time" into lmp-dev
Chong Zhang [Fri, 8 Aug 2014 01:03:55 +0000 (01:03 +0000)]
Merge "delay data source creation for GenericSource prepare time" into lmp-dev

9 years agostagefright: support flexible YUV format
Lajos Molnar [Thu, 7 Aug 2014 21:16:23 +0000 (14:16 -0700)]
stagefright: support flexible YUV format

- Report flexible format for standard OMX formats that are flexible.
- Accept flexible format when specifying video port formats.

Bug: 10706245
Change-Id: I9e82bc895bb0d5d606eb05fdf83bec766eaa2046

9 years agomedia/playerservice: add getCodecList() to MediaPlayerService
Lajos Molnar [Thu, 7 Aug 2014 22:18:35 +0000 (15:18 -0700)]
media/playerservice: add getCodecList() to MediaPlayerService

Bug: 11990470
Change-Id: I8fa45946fd9b76f9b975fc59062819c57e6881ef

9 years agostagefright: rework media codec list and infos
Lajos Molnar [Wed, 6 Aug 2014 23:55:46 +0000 (16:55 -0700)]
stagefright: rework media codec list and infos

This is in preparation of serving the codec list and codec infos
from the mediaserver

Bug: 11990470
Change-Id: Ib8e2708679c9ce461a4ba179974a740cdcdf2731

9 years agodelay data source creation for GenericSource prepare time
Chong Zhang [Thu, 7 Aug 2014 22:35:07 +0000 (15:35 -0700)]
delay data source creation for GenericSource prepare time

Bug: 16708180

Change-Id: I9d578ef5e2edaed50279d28d3831c68556468f39

9 years agostagefright: add AString parceling, and equal/compareIgnoreCase
Lajos Molnar [Wed, 6 Aug 2014 18:32:00 +0000 (11:32 -0700)]
stagefright: add AString parceling, and equal/compareIgnoreCase

Bug: 11990470
Change-Id: If43ada5d2e768931f4409e499eaa268edade0500

9 years agoMerge "Camera: Need consider AF state for ZSL buffer selection" into lmp-dev
Zhijun He [Thu, 7 Aug 2014 21:15:38 +0000 (21:15 +0000)]
Merge "Camera: Need consider AF state for ZSL buffer selection" into lmp-dev

9 years agomerge in lmp-release history after reset to 0893eaf7d21e3a50b81324673eaa91a6b77a39c2
The Android Automerger [Thu, 7 Aug 2014 13:09:38 +0000 (06:09 -0700)]
merge in lmp-release history after reset to 0893eaf7d21e3a50b81324673eaa91a6b77a39c2

9 years agoCamera: Need consider AF state for ZSL buffer selection
Zhijun He [Thu, 7 Aug 2014 04:41:20 +0000 (21:41 -0700)]
Camera: Need consider AF state for ZSL buffer selection

Bug: 16569983
Change-Id: I65e604e382ac0b98777155ad480ec3f6071e1a76

9 years agoMerge "Revert "NuPlayer: don't feed decoder input data during flushing." " into lmp-dev
Wei Jia [Thu, 7 Aug 2014 16:52:10 +0000 (16:52 +0000)]
Merge "Revert "NuPlayer: don't feed decoder input data during flushing." " into lmp-dev

9 years agoRevert "NuPlayer: don't feed decoder input data during flushing."
Wei Jia [Thu, 7 Aug 2014 06:11:39 +0000 (06:11 +0000)]
Revert "NuPlayer: don't feed decoder input data during flushing."

The previous patch results in MediaBuffer leakage.

This reverts commit 69a85b792c31033a99c8858e3b1a3c2ea68b6278.

Bug: 14955925
Bug: 16303659
Bug: 16467066
Bug: 16849601
Change-Id: Ib1892b7603a97e12b7ee228fd5a4009700cdc988

9 years agoMerge "audio policy: add support for USB devices for voice call" into lmp-dev
Eric Laurent [Thu, 7 Aug 2014 15:54:49 +0000 (15:54 +0000)]
Merge "audio policy: add support for USB devices for voice call" into lmp-dev

9 years agostagefright: move ARRAY_SIZE to foundation
Lajos Molnar [Wed, 6 Aug 2014 18:30:16 +0000 (11:30 -0700)]
stagefright: move ARRAY_SIZE to foundation

Bug: 11990470
Change-Id: Ifae790b774a0fb210acbe33a1310d3d6ba46e7fa

9 years agosome fixes for crash when extractor creation fails
Chong Zhang [Wed, 6 Aug 2014 03:54:44 +0000 (20:54 -0700)]
some fixes for crash when extractor creation fails

- prefetch data for sniffing

- notify error instead of crashing if extractor is NULL

Bug: 16818302

Change-Id: I56ff4996d99ac2811d19d141f7ff7acdd7c1da17

9 years agosome fixes for crash when extractor creation fails
Chong Zhang [Wed, 6 Aug 2014 03:54:44 +0000 (20:54 -0700)]
some fixes for crash when extractor creation fails

- prefetch data for sniffing

- notify error instead of crashing if extractor is NULL

Bug: 16818302

Change-Id: I56ff4996d99ac2811d19d141f7ff7acdd7c1da17

9 years agoaudio policy: add support for USB devices for voice call
Eric Laurent [Sun, 20 Jul 2014 22:47:07 +0000 (15:47 -0700)]
audio policy: add support for USB devices for voice call

Add possibility to use sink and source devices not on
the primary HW module for voice calls (e.g. USB headsets).

Bug: 15520724.

Change-Id: Ib27db4ba759b6d91ea1104dc2e35c87733517b30

9 years agoMerge "some fixes for crash when extractor creation fails" into lmp-dev
Chong Zhang [Wed, 6 Aug 2014 22:29:12 +0000 (22:29 +0000)]
Merge "some fixes for crash when extractor creation fails" into lmp-dev

9 years agoMerge "AudioSystem: add API to query audio HW sync source" into lmp-dev
Eric Laurent [Wed, 6 Aug 2014 19:40:04 +0000 (19:40 +0000)]
Merge "AudioSystem: add API to query audio HW sync source" into lmp-dev

9 years agoMerge "MediaServer crashing and audio effects not applied to TTS." into lmp-dev
Ricardo Garcia [Wed, 6 Aug 2014 19:11:33 +0000 (19:11 +0000)]
Merge "MediaServer crashing and audio effects not applied to TTS." into lmp-dev

9 years agoMediaServer crashing and audio effects not applied to TTS.
Ricardo Garcia [Wed, 6 Aug 2014 18:43:46 +0000 (11:43 -0700)]
MediaServer crashing and audio effects not applied to TTS.

A memclear in the EffectChain was out of bounds.

Bug 15432115
Bug 16845751

Change-Id: Ib0adc7fa730d630bb71fb87d51163a26149b16e2

9 years agoMerge "httplive: timestamp reporting, track selection" into lmp-dev
Robert Shih [Wed, 6 Aug 2014 23:19:17 +0000 (23:19 +0000)]
Merge "httplive: timestamp reporting, track selection" into lmp-dev

9 years agomerge in lmp-release history after reset to 92ce4715315bddd158c7d4028556632f0547e3b9
The Android Automerger [Wed, 6 Aug 2014 13:09:11 +0000 (06:09 -0700)]
merge in lmp-release history after reset to 92ce4715315bddd158c7d4028556632f0547e3b9

9 years agohttplive: timestamp reporting, track selection
Robert Shih [Wed, 30 Jul 2014 01:34:36 +0000 (18:34 -0700)]
httplive: timestamp reporting, track selection

Bug: 15153976
Bug: 15763638
Bug: 16351654
Change-Id: I4462276d4b7342647286a0ca4be11692ce52ff6d

9 years agoAudioSystem: add API to query audio HW sync source
Eric Laurent [Fri, 1 Aug 2014 21:48:35 +0000 (14:48 -0700)]
AudioSystem: add API to query audio HW sync source

Add a method to query from the audio HAL the HW sync
source used for a given audio session.
Modify audio policy to select a direct output with HW sync
when requested.

Bug: 16132368.

Change-Id: I03038f9188f2d389f8a5fd76a671854013a4513e

9 years agoNuPlayer: don't feed decoder input data during flushing.
Wei Jia [Tue, 5 Aug 2014 01:32:43 +0000 (18:32 -0700)]
NuPlayer: don't feed decoder input data during flushing.

Bug: 14955925
Bug: 16303659
Bug: 16467066
Change-Id: I7c258b986ae711357bd7e636b79853f8f3959d32

9 years agoAAC encoder: add support for SBR mode selection
Jean-Michel Trivi [Fri, 1 Aug 2014 22:14:14 +0000 (15:14 -0700)]
AAC encoder: add support for SBR mode selection

Change-Id: Ibc07bff7710398929c135f38324dd29857fa0ea6

9 years agomerge in lmp-release history after reset to d0fded31e473e909c018f534d3019fb5168bdcd6
The Android Automerger [Tue, 5 Aug 2014 13:08:56 +0000 (06:08 -0700)]
merge in lmp-release history after reset to d0fded31e473e909c018f534d3019fb5168bdcd6

9 years agoMerge "audio: fix crashes upon USB device connection" into lmp-dev
Eric Laurent [Wed, 6 Aug 2014 00:37:58 +0000 (00:37 +0000)]
Merge "audio: fix crashes upon USB device connection" into lmp-dev

9 years agoaudio: fix crashes upon USB device connection
Eric Laurent [Tue, 5 Aug 2014 03:36:31 +0000 (20:36 -0700)]
audio: fix crashes upon USB device connection

- Audio policy:
Replace unknown device assertion by debug log in setDeviceConnectionState().
It is possible that some kernels indicate connection of a legacy device type
when a USB audio device is connected.
We should just ignore this device.

- Audio flinger:
Make sure FastMixer thread is idle before exiting the normal mixer thread and
closing the output stream.

Change-Id: Ia10a20176a60a8aa56765538093a555fc998508a

9 years agoMerge "cameraservice: disallow zsl/recording coexistentce" into lmp-dev
Yin-Chia Yeh [Wed, 6 Aug 2014 00:14:27 +0000 (00:14 +0000)]
Merge "cameraservice: disallow zsl/recording coexistentce" into lmp-dev

9 years agopolicy manager: recognize AUDIO_DEVICE_IN_AMBIENT from policy.conf
Eric Laurent [Wed, 30 Jul 2014 15:01:42 +0000 (10:01 -0500)]
policy manager: recognize AUDIO_DEVICE_IN_AMBIENT from policy.conf

Change-Id: If46b8d13f216bad4aa62598531d406d3303134f5

9 years agocameraservice: disallow zsl/recording coexistentce
Yin-Chia Yeh [Tue, 5 Aug 2014 20:35:58 +0000 (13:35 -0700)]
cameraservice: disallow zsl/recording coexistentce

Make sure ZSL and recording stream does not exist at the same
time.

Change-Id: I19e28dedd9dd5cc5118449860b612a5c950fdaec

9 years agoMerge "NuPlayer: don't feed decoder input data during flushing." into lmp-dev
Wei Jia [Tue, 5 Aug 2014 21:53:08 +0000 (21:53 +0000)]
Merge "NuPlayer: don't feed decoder input data during flushing." into lmp-dev

9 years agoMerge "set secure flag for secure file playback" into lmp-dev
Chong Zhang [Tue, 5 Aug 2014 21:21:49 +0000 (21:21 +0000)]
Merge "set secure flag for secure file playback" into lmp-dev

9 years agoaudio policy: support line output device
Jon Eklund [Mon, 28 Jul 2014 21:06:06 +0000 (16:06 -0500)]
audio policy: support line output device

Change-Id: Iddf1b6486430270d871a45c75615e54339a818e9

9 years agoset secure flag for secure file playback
Chong Zhang [Tue, 5 Aug 2014 18:58:21 +0000 (11:58 -0700)]
set secure flag for secure file playback

Bug: 16786456
Change-Id: I06f18b0e9c3f65e3e127369baa1f9ea8c9307762

9 years agoMerge "Add sound trigger control by audio policy" into lmp-dev
Eric Laurent [Tue, 5 Aug 2014 19:54:01 +0000 (19:54 +0000)]
Merge "Add sound trigger control by audio policy" into lmp-dev

9 years agoAdd sound trigger control by audio policy
Eric Laurent [Mon, 28 Jul 2014 01:39:40 +0000 (18:39 -0700)]
Add sound trigger control by audio policy

Audio policy:
- Added active capture indication to sound trigger service:
recognition stops if concurrent capture is not supported.
- Added generation of reserved I/O handle and session ID for
utterance capture.

Sound trigger service
- Added sound model update callback handling.
- Added service state callback
- Simplified callback shared memory allocation.

Bug: 12378680.

Change-Id: Ib0292c2733e6df90fdae480633dd9953d0016ef1

9 years agostagefright: Pass audio aac subformats in offloadinfo
aarti jadhav-gaikwad [Sat, 2 Aug 2014 10:51:32 +0000 (16:21 +0530)]
stagefright: Pass audio aac subformats in offloadinfo

Pass audio aac sub formats in offloadinfo according
to aac profile. Audio HAL can take decision about offload
using DSP capabilities

Change-Id: Ice277e8b6561b7a7db92c474f23f8041ebb35e8c

9 years agoMerge "Remove unused TwoTrack process mode from AudioMixer" into lmp-dev
Andy Hung [Tue, 5 Aug 2014 15:33:24 +0000 (15:33 +0000)]
Merge "Remove unused TwoTrack process mode from AudioMixer" into lmp-dev

9 years agoRemove unused TwoTrack process mode from AudioMixer
Andy Hung [Tue, 5 Aug 2014 03:43:10 +0000 (20:43 -0700)]
Remove unused TwoTrack process mode from AudioMixer

Legacy code that has not been hooked up.

Change-Id: Ic01a4eddfa1020089d5bc42f58b6a4697698c27a

9 years agoMerge "AAC encoder: add support for SBR mode selection" into lmp-dev
Jean-Michel Trivi [Tue, 5 Aug 2014 22:44:15 +0000 (22:44 +0000)]
Merge "AAC encoder: add support for SBR mode selection" into lmp-dev

9 years agoMerge "[audio][policy] fix crash when offloadInfo is NULL" into lmp-dev
Phil Burk [Mon, 4 Aug 2014 23:30:51 +0000 (23:30 +0000)]
Merge "[audio][policy] fix crash when offloadInfo is NULL" into lmp-dev

9 years ago[audio][policy] fix crash when offloadInfo is NULL
Phil Burk [Mon, 4 Aug 2014 23:18:15 +0000 (16:18 -0700)]
[audio][policy] fix crash when offloadInfo is NULL

Added check for NULL pointer to avoid crash
in AudioPolicyManager when playing AC3 data.

Change-Id: Ie56788f6277be6da47d4218b1b4a6b359fce6473
Signed-off-by: Phil Burk <philburk@google.com>
9 years agoFix build break in mock drm plugin build
Jeff Tinker [Mon, 4 Aug 2014 22:02:19 +0000 (15:02 -0700)]
Fix build break in mock drm plugin build

Change-Id: I8ae5d378df694360be3d76e06512e2ebc9fc0572

9 years agoaudio flinger: fix service fuzz test crash
Eric Laurent [Sat, 2 Aug 2014 02:00:33 +0000 (19:00 -0700)]
audio flinger: fix service fuzz test crash

Bug: 13744704.
Change-Id: I572c89f88dcab2b8b612ec6860983306f9f159ab

9 years agomerge in lmp-release history after reset to 678792e362c4cd70640934049491d9f21560c63b
The Android Automerger [Mon, 4 Aug 2014 13:08:34 +0000 (06:08 -0700)]
merge in lmp-release history after reset to 678792e362c4cd70640934049491d9f21560c63b

10 years agomerge in lmp-release history after reset to facd8cf2651f7fcf7225e735cae5f5d4ef3a334e
The Android Automerger [Sun, 3 Aug 2014 13:08:46 +0000 (06:08 -0700)]
merge in lmp-release history after reset to facd8cf2651f7fcf7225e735cae5f5d4ef3a334e

10 years agomerge in lmp-release history after reset to facd8cf2651f7fcf7225e735cae5f5d4ef3a334e
The Android Automerger [Sat, 2 Aug 2014 13:09:32 +0000 (06:09 -0700)]
merge in lmp-release history after reset to facd8cf2651f7fcf7225e735cae5f5d4ef3a334e

10 years agoMerge "Revert "Revert "sound trigger: added permission checks""" into lmp-dev
Eric Laurent [Sat, 2 Aug 2014 00:19:49 +0000 (00:19 +0000)]
Merge "Revert "Revert "sound trigger: added permission checks""" into lmp-dev

10 years agoRevert "Revert "sound trigger: added permission checks""
Eric Laurent [Fri, 1 Aug 2014 23:15:05 +0000 (23:15 +0000)]
Revert "Revert "sound trigger: added permission checks""

This reverts commit 936c84a5b743dce2a2572fdf54b37b187bc88b60.

Bug: 16374803.
Change-Id: I9d3137faeddf119b13f9cdb73c14ca49e1ee3d1c

10 years agoMerge "Allow device to be unprovisioned" into lmp-dev
Jeff Tinker [Mon, 4 Aug 2014 20:48:20 +0000 (20:48 +0000)]
Merge "Allow device to be unprovisioned" into lmp-dev

10 years agoAllow device to be unprovisioned
Jeff Tinker [Wed, 30 Apr 2014 17:19:03 +0000 (10:19 -0700)]
Allow device to be unprovisioned

bug: 12247651
Change-Id: I564ac8de3da2430342a028f4058e2c5ac2d85d5e

10 years agoMerge "MediaCodecSource: stop puller from caller's thread instead of looper" into...
Chong Zhang [Mon, 4 Aug 2014 21:19:12 +0000 (21:19 +0000)]
Merge "MediaCodecSource: stop puller from caller's thread instead of looper" into lmp-dev

9 years agoMediaCodecSource: stop puller from caller's thread instead of looper
Chong Zhang [Fri, 1 Aug 2014 17:30:26 +0000 (10:30 -0700)]
MediaCodecSource: stop puller from caller's thread instead of looper

Currently CameraSource/AudioSource's stop() and read() are both called
from the puller's looper. This works if source operates normally (i.e.
read() returns regularly before source is stopped), as the stop() will
eventually be handled by the looper. However, if for some reason the
source hang, it will get stuck in read(), and the stop() will never
be processed, which could lead to ANR (in addition to the source hang).

We need to move the source's stop out of the puller's looper. It also
can't be on MediaCodecSource's looper, because the source's stop
synchrounously waits for all outstanding buffers to return, these
are only returned when MediaCodecSource's looper processes the buffer.

This change moves the stop to MediaCodecSource::stop, after encoder
is shutdown.

Bug: 16522726
Change-Id: Ie91f563c5d8a98ab091bf1945af4e51f662b9403

10 years agoMerge "audio policy: fix service fuzz test crash" into lmp-dev
Eric Laurent [Sun, 3 Aug 2014 19:45:07 +0000 (19:45 +0000)]
Merge "audio policy: fix service fuzz test crash" into lmp-dev

10 years agoaudio policy: fix service fuzz test crash
Eric Laurent [Sat, 2 Aug 2014 00:00:54 +0000 (17:00 -0700)]
audio policy: fix service fuzz test crash

Bug: 13744391.
Change-Id: I2430e09ad00476b9ac28dc55466942c61fb0531d

10 years agoMerge "Remove 64-bit android_atomic uses from StateQueue." into lmp-dev
Hans Boehm [Thu, 31 Jul 2014 22:49:07 +0000 (22:49 +0000)]
Merge "Remove 64-bit android_atomic uses from StateQueue." into lmp-dev

10 years agoRemove 64-bit android_atomic uses from StateQueue.
Hans Boehm [Wed, 16 Jul 2014 19:13:16 +0000 (12:13 -0700)]
Remove 64-bit android_atomic uses from StateQueue.

Use stdatomic.h instead.  We're trying to remove android_atomic use
wherever possible.  The 64-bit uses seem easiest to remove first.
This cleans up the code, though not as much as C++ <atomic> would,
if it worked everywhere.

(cherry picked from commit f39b560952d3706a7ff47ef0d82c1a836daeea42)
Change-Id: I3c29bdbd5915cb9d47118834a3a742fe296cf87f

10 years agoMerge "GenericSource: timed text support" into lmp-dev
Lajos Molnar [Thu, 31 Jul 2014 21:43:22 +0000 (21:43 +0000)]
Merge "GenericSource: timed text support" into lmp-dev

10 years agoGenericSource: support track (de)selection
Robert Shih [Wed, 16 Jul 2014 22:47:09 +0000 (15:47 -0700)]
GenericSource: support track (de)selection

Bug: 15153976

Change-Id: Idfce856b4ca5fa7853da857757490798bc3ffe1e

10 years agoGenericSource: timed text support
Lajos Molnar [Thu, 31 Jul 2014 17:31:26 +0000 (10:31 -0700)]
GenericSource: timed text support

Bug: 16385674
Change-Id: Ib322cc13488dcadf2409921272cd469304b0af37

10 years agomediaplayerservice: initialize mIsWidevine
Lajos Molnar [Thu, 31 Jul 2014 14:13:32 +0000 (07:13 -0700)]
mediaplayerservice: initialize mIsWidevine

Bug: 16641557
Change-Id: I77aad6e710117a16093726bf3b36360904fbe148

10 years agoMerge "stagefright: propagate error in MPEG4Extractor::readMetaData" into lmp-dev
Lajos Molnar [Thu, 31 Jul 2014 19:46:13 +0000 (19:46 +0000)]
Merge "stagefright: propagate error in MPEG4Extractor::readMetaData" into lmp-dev

10 years agomediaplayer: add looping support to NuPlayer
Lajos Molnar [Thu, 31 Jul 2014 19:07:58 +0000 (12:07 -0700)]
mediaplayer: add looping support to NuPlayer

Bug: 16641557
Change-Id: I433158e6e585b4714cfd6d89562ecd0587a07ae2

10 years agostagefright: propagate error in MPEG4Extractor::readMetaData
Lajos Molnar [Thu, 31 Jul 2014 19:09:37 +0000 (12:09 -0700)]
stagefright: propagate error in MPEG4Extractor::readMetaData

Bug: 16641557
Change-Id: I252825bd767a4581b9fca560f2cabfb37c18e137

10 years agoNuPlayer: fix av discontinuity race
Robert Shih [Thu, 31 Jul 2014 00:41:24 +0000 (17:41 -0700)]
NuPlayer: fix av discontinuity race

Assumption:
  NuPlayer must see both (a/v) discontinuities before resuming.

Example issue:
  Suppose we're changing the video track, so the video source queues a
  DISCONTINUITY_FORMATCHANGE, and the audio source queues a DISCONTINUITY_NONE.
  Consider this sequence of events without this change:
    1. audio discontinuity seen by player
    2. mFlushingAudio = FLUSHED
    3. video discontinuity seen by player
    4. mFlushingAudio != NONE so no performScanSources is queued
    5. video decoding shuts down without being restarted

Bug: 15153976
Change-Id: I659550d9c0f883828103142abead857f576f25b1

10 years agoMerge "stagefright: MediaCodec async operations." into lmp-dev
Lajos Molnar [Thu, 31 Jul 2014 06:14:41 +0000 (06:14 +0000)]
Merge "stagefright: MediaCodec async operations." into lmp-dev

10 years agostagefright: enable decoder color format selection
Lajos Molnar [Mon, 28 Jul 2014 04:21:32 +0000 (21:21 -0700)]
stagefright: enable decoder color format selection

Bug: 10706245
Change-Id: I9a77631bfae0358be229b079228c1fcae0e77faf

10 years agostagefright: MediaCodec async operations.
Lajos Molnar [Thu, 31 Jul 2014 01:54:08 +0000 (18:54 -0700)]
stagefright: MediaCodec async operations.

In async mode:
 - codec must be restarted after flush
 - dequeueIn/OutputBuffers fail
 - getIn/OutputBuffers fail

Bug: 11990118
Change-Id: If2d6a76ab499ee9ed4a11486fb537acbc52e66f6

10 years agoRevert GenericSource track selection changes
Wei Jia [Wed, 30 Jul 2014 20:40:49 +0000 (13:40 -0700)]
Revert GenericSource track selection changes

This reverts commit bace25b0fbcd5101d2db288b0c70c4a239f0e815.
This reverts commit eb1735e343a93830df259ae8882160bb0d79dcb5.
This reverts commit 05312bc7478feec11d9ae88e951c0857a7a3f28d.

Bug: 16660839

10 years agoGenericSource: start/stop tracks correctly on selection
Robert Shih [Fri, 25 Jul 2014 21:14:34 +0000 (14:14 -0700)]
GenericSource: start/stop tracks correctly on selection

Change-Id: I10343151f930a4ab778a6d2574ab5165af2013ba

10 years agomerge in lmp-release history after reset to 4dc680607181e6a76f4e91a39366c4f5dfb7b03e
The Android Automerger [Tue, 29 Jul 2014 13:09:00 +0000 (06:09 -0700)]
merge in lmp-release history after reset to 4dc680607181e6a76f4e91a39366c4f5dfb7b03e

10 years agoaudio policy: pass session ID to capture activity methods
Eric Laurent [Tue, 29 Jul 2014 00:26:49 +0000 (17:26 -0700)]
audio policy: pass session ID to capture activity methods

Indicate the audio session ID when calling getInput(),
startInput(), stopInput(), releaseInput().

Bug: 12378680.
Change-Id: I763793752f93e2f4e1445a5ab217c895af011038

10 years agoCameraService: Clean up availability listeners and HAL error codes
Eino-Ville Talvala [Thu, 24 Jul 2014 00:17:59 +0000 (17:17 -0700)]
CameraService: Clean up availability listeners and HAL error codes

- Refactor where availability listeners are called to centralize behavior,
  ensuring that all client creation/destruction invokes the listeners
- Clean up some of the client hierarchy
- Filter error codes from key HAL calls to ensure proper reporting

Bug: 16514157
Bug: 16483222
Change-Id: I59875a865b6a508b47423946c78862da8df34cd1

10 years agoMerge "Fix rounding in RecordThread resampler buffer computation" into lmp-dev
Glenn Kasten [Mon, 28 Jul 2014 23:55:02 +0000 (23:55 +0000)]
Merge "Fix rounding in RecordThread resampler buffer computation" into lmp-dev

10 years agoFix rounding in RecordThread resampler buffer computation
Andy Hung [Mon, 28 Jul 2014 21:38:41 +0000 (14:38 -0700)]
Fix rounding in RecordThread resampler buffer computation

Bug: 16525305
Change-Id: Ie010822b0fa9dec74adde1d1b091ee44c183fc94

10 years agorename AudioSystem::newAudioSessionId()
Eric Laurent [Mon, 28 Jul 2014 01:38:22 +0000 (18:38 -0700)]
rename AudioSystem::newAudioSessionId()

Rename AudioSystem::newAudioSessionId() to
AudioSystem::newAudioUniqueId() as it can be used
also for I/O handles.

Bug: 12378680.
Change-Id: I611ea3b5eb57a4b0774437f477ee87dc4ccc2cc2

10 years agomerge in lmp-release history after reset to f5bdd770d509373cc4174a55d0b81b223ecc4d81
The Android Automerger [Mon, 28 Jul 2014 16:20:15 +0000 (09:20 -0700)]
merge in lmp-release history after reset to f5bdd770d509373cc4174a55d0b81b223ecc4d81

10 years agomediaplayer: make nuplayer the default player
Lajos Molnar [Mon, 28 Jul 2014 04:22:11 +0000 (21:22 -0700)]
mediaplayer: make nuplayer the default player

Bug: 11784824
Change-Id: I60d215d0348adcd589da5bd479d5921dcf076ee4

10 years agomerge in lmp-release history after reset to 03c556ae1eb409ad088c49037e185946c54e1d25
The Android Automerger [Sun, 27 Jul 2014 13:08:30 +0000 (06:08 -0700)]
merge in lmp-release history after reset to 03c556ae1eb409ad088c49037e185946c54e1d25