summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Add sound trigger control by audio policyEric Laurent2014-08-0522-166/+715
| | | | | | | | | | | | | | | | | 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
* Merge "[audio][policy] fix crash when offloadInfo is NULL" into lmp-devPhil Burk2014-08-041-2/+6
|\
| * [audio][policy] fix crash when offloadInfo is NULLPhil Burk2014-08-041-2/+6
| | | | | | | | | | | | | | | | 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>
* | Fix build break in mock drm plugin buildJeff Tinker2014-08-042-0/+8
| | | | | | | | Change-Id: I8ae5d378df694360be3d76e06512e2ebc9fc0572
* | Merge "MediaCodecSource: stop puller from caller's thread instead of looper" ↵Chong Zhang2014-08-013-36/+45
|\ \ | |/ |/| | | into lmp-dev
| * MediaCodecSource: stop puller from caller's thread instead of looperChong Zhang2014-08-043-36/+45
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | Merge "Allow device to be unprovisioned" into lmp-devJeff Tinker2014-08-015-1/+44
|\ \ | |/ |/|
| * Allow device to be unprovisionedJeff Tinker2014-08-015-1/+44
| | | | | | | | | | bug: 12247651 Change-Id: I564ac8de3da2430342a028f4058e2c5ac2d85d5e
* | audio flinger: fix service fuzz test crashEric Laurent2014-08-041-0/+6
| | | | | | | | | | Bug: 13744704. Change-Id: I572c89f88dcab2b8b612ec6860983306f9f159ab
* | Merge "audio policy: fix service fuzz test crash" into lmp-devEric Laurent2014-08-011-4/+4
|\ \
| * | audio policy: fix service fuzz test crashEric Laurent2014-08-011-4/+4
| | | | | | | | | | | | | | | Bug: 13744391. Change-Id: I2430e09ad00476b9ac28dc55466942c61fb0531d
* | | Merge "Revert "Revert "sound trigger: added permission checks""" into lmp-devEric Laurent2014-08-012-9/+35
|\ \ \ | |_|/ |/| |
| * | Revert "Revert "sound trigger: added permission checks""Eric Laurent2014-08-012-9/+35
| | | | | | | | | | | | | | | | | | | | | This reverts commit 936c84a5b743dce2a2572fdf54b37b187bc88b60. Bug: 16374803. Change-Id: I9d3137faeddf119b13f9cdb73c14ca49e1ee3d1c
* | | Merge "Remove 64-bit android_atomic uses from StateQueue." into lmp-devHans Boehm2014-07-312-12/+8
|\ \ \ | |_|/ |/| |
| * | Remove 64-bit android_atomic uses from StateQueue.Hans Boehm2014-07-312-12/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | Merge "GenericSource: timed text support" into lmp-devLajos Molnar2014-07-312-77/+199
|\ \ \ | |/ / |/| |
| * | GenericSource: timed text supportLajos Molnar2014-07-312-77/+199
| | | | | | | | | | | | | | | Bug: 16385674 Change-Id: Ib322cc13488dcadf2409921272cd469304b0af37
* | | Merge "stagefright: propagate error in MPEG4Extractor::readMetaData" into ↵Lajos Molnar2014-07-301-3/+4
|\ \ \ | | | | | | | | | | | | lmp-dev
| * | | stagefright: propagate error in MPEG4Extractor::readMetaDataLajos Molnar2014-07-311-3/+4
| | | | | | | | | | | | | | | | | | | | Bug: 16641557 Change-Id: I252825bd767a4581b9fca560f2cabfb37c18e137
* | | | mediaplayer: add looping support to NuPlayerLajos Molnar2014-07-312-4/+27
|/ / / | | | | | | | | | | | | Bug: 16641557 Change-Id: I433158e6e585b4714cfd6d89562ecd0587a07ae2
* | | NuPlayer: fix av discontinuity raceRobert Shih2014-07-311-7/+8
|/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | GenericSource: support track (de)selectionRobert Shih2014-07-314-65/+330
| | | | | | | | | | | | Bug: 15153976 Change-Id: Idfce856b4ca5fa7853da857757490798bc3ffe1e
* | mediaplayerservice: initialize mIsWidevineLajos Molnar2014-07-311-1/+2
| | | | | | | | | | Bug: 16641557 Change-Id: I77aad6e710117a16093726bf3b36360904fbe148
* | Merge "stagefright: MediaCodec async operations." into lmp-devLajos Molnar2014-07-302-17/+35
|\ \
| * | stagefright: MediaCodec async operations.Lajos Molnar2014-07-302-17/+35
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In async mode: - codec must be restarted after flush - dequeueIn/OutputBuffers fail - getIn/OutputBuffers fail Bug: 11990118 Change-Id: If2d6a76ab499ee9ed4a11486fb537acbc52e66f6
* | | stagefright: enable decoder color format selectionLajos Molnar2014-07-302-10/+23
|/ / | | | | | | | | Bug: 10706245 Change-Id: I9a77631bfae0358be229b079228c1fcae0e77faf
* | Merge "handle rotation in NuPlayer" into lmp-devChong Zhang2014-07-254-2/+52
|\ \
| * | handle rotation in NuPlayerChong Zhang2014-07-304-2/+52
| | | | | | | | | | | | | | | Bug: 16653284 Change-Id: I54165041da5a13498d627eee1b3ec59ef3c923b0
* | | Merge "ATSParser: treat stream type 0x83 as TrueHD AC3" into lmp-devChong Zhang2014-07-253-9/+7
|\ \ \
| * | | ATSParser: treat stream type 0x83 as TrueHD AC3Chong Zhang2014-07-303-9/+7
| |/ / | | | | | | | | | | | | Bug: 16668055 Change-Id: I11fd3f795bbb50113e1a1e28e682edd76f11e146
* | | Revert GenericSource track selection changesWei Jia2014-07-304-452/+65
|/ / | | | | | | | | | | | | | | This reverts commit bace25b0fbcd5101d2db288b0c70c4a239f0e815. This reverts commit eb1735e343a93830df259ae8882160bb0d79dcb5. This reverts commit 05312bc7478feec11d9ae88e951c0857a7a3f28d. Bug: 16660839
* | Merge "Add Quad channel output to AudioPolicyManager" into lmp-devAndy Hung2014-07-291-0/+1
|\ \
| * | Add Quad channel output to AudioPolicyManagerAndy Hung2014-07-291-0/+1
| | | | | | | | | | | | | | | | | | Matches some USB device configurations. Change-Id: I2429f9de87816b4ad1d39516e3821562617c76ee
* | | audio policy: add missing enums in config file parsingEric Laurent2014-07-301-0/+1
| | | | | | | | | | | | Change-Id: I4edd6cde11de62c9c19dfa623d08cddf42c953db
* | | Merge "Add isSafeArraySize for new array size checks" into lmp-devAndy Hung2014-07-291-0/+27
|\ \ \
| * | | Add isSafeArraySize for new array size checksAndy Hung2014-07-301-0/+27
| |/ / | | | | | | | | | Bug: 15328708 Change-Id: I9dfca30745c3e4dda91c3894363462f8631c41a1
* | | Merge "Enable multichannel in AudioFlinger" into lmp-devAndy Hung2014-07-291-1/+1
|\ \ \
| * | | Enable multichannel in AudioFlingerAndy Hung2014-07-281-1/+1
| | | | | | | | | | | | | | | | Change-Id: Ibdbdc6ea0b87cdcd15432257a3455b11b3ce14b7
* | | | Merge "Update multichannel audio policy handling" into lmp-devAndy Hung2014-07-292-5/+6
|\ \ \ \ | |/ / /
| * | | Update multichannel audio policy handlingAndy Hung2014-07-282-5/+6
| |/ / | | | | | | | | | | | | | | | | | | | | | Ensure AUDIO_FORMAT_PCM_FLOAT and AUDIO_FORMAT_PCM_32_BIT have proper precedence. Allow more mixer channels than 2. Change-Id: I02af97dad6218b25cbada4d93077a213314c6725
* | | Fix build warningsGlenn Kasten2014-07-296-15/+15
| | | | | | | | | | | | Change-Id: Ife5e40264f43fb3ccb40830228701003fe106bf5
* | | Merge "Camera2: Fix transforms for front-facing cameras" into lmp-devEino-Ville Talvala2014-07-251-4/+11
|\ \ \
| * | | Camera2: Fix transforms for front-facing camerasEino-Ville Talvala2014-07-291-4/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Mirror, mirror on the wall, who is the best rotated of them all? Also, use consistent enum names. Bug: 16637957 Change-Id: Ie211d3b57b9e7d01122192ad03b73ceba5bf1bd3
* | | | Merge "SampleTable: check integer overflow during table alloc" into lmp-devRobert Shih2014-07-251-0/+14
|\ \ \ \
| * | | | SampleTable: check integer overflow during table allocRobert Shih2014-07-281-0/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug: 15328708 Bug: 15342615 Bug: 15342751 Change-Id: I6bb110a1eba46506799c73be8ff9a4f71c7e7053
* | | | | Merge "GenericSource: start/stop tracks correctly on selection" into lmp-devRobert Shih2014-07-281-1/+11
|\ \ \ \ \
| * | | | | GenericSource: start/stop tracks correctly on selectionRobert Shih2014-07-281-1/+11
| | | | | | | | | | | | | | | | | | | | | | | | Change-Id: I10343151f930a4ab778a6d2574ab5165af2013ba
* | | | | | audio policy: pass session ID to capture activity methodsEric Laurent2014-07-2813-54/+111
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Indicate the audio session ID when calling getInput(), startInput(), stopInput(), releaseInput(). Bug: 12378680. Change-Id: I763793752f93e2f4e1445a5ab217c895af011038
* | | | | | Merge "Fix rounding in RecordThread resampler buffer computation" into lmp-devGlenn Kasten2014-07-281-10/+12
|\ \ \ \ \ \
| * | | | | | Fix rounding in RecordThread resampler buffer computationAndy Hung2014-07-281-10/+12
| | |_|_|/ / | |/| | | | | | | | | | | | | | | | | | | | | | Bug: 16525305 Change-Id: Ie010822b0fa9dec74adde1d1b091ee44c183fc94