OSDN Git Service

android-x86/frameworks-av.git
9 years agoMerge "audio policy: fix attached devices validation" into lmp-dev
Eric Laurent [Wed, 17 Sep 2014 18:59:43 +0000 (18:59 +0000)]
Merge "audio policy: fix attached devices validation" into lmp-dev

9 years agoMerge "HLS: fix freezes when toggling between a/v streams" into lmp-dev
Robert Shih [Wed, 17 Sep 2014 03:23:34 +0000 (03:23 +0000)]
Merge "HLS: fix freezes when toggling between a/v streams" into lmp-dev

9 years agoMerge "NuPlayerDriver: restart after eos pause" into lmp-dev
Robert Shih [Wed, 17 Sep 2014 02:01:57 +0000 (02:01 +0000)]
Merge "NuPlayerDriver: restart after eos pause" into lmp-dev

9 years agoNuPlayerDriver: restart after eos pause
Robert Shih [Wed, 17 Sep 2014 00:07:22 +0000 (17:07 -0700)]
NuPlayerDriver: restart after eos pause

Bug: 17512187
Change-Id: I204ce83790bf98bc7ffebcb76d5df1e56a6a3f66

9 years agoaudio policy: fix attached devices validation
Eric Laurent [Tue, 16 Sep 2014 23:38:20 +0000 (16:38 -0700)]
audio policy: fix attached devices validation

Consider all supported devices in an io profile and
not only the first one when looking for a match with attached
devices.
Failing to do so would cause the device validation to fail
if supported devices are not declared in a specific order
in the io profile descriptor in audio_policy.conf

Bug: 17532764.
Change-Id: Id27c9192e21de7f075076e17eb8c48e7e42847f6

9 years agoMerge "Disconnect HTTP-based data source upon reset" into lmp-dev
Chong Zhang [Tue, 16 Sep 2014 22:29:52 +0000 (22:29 +0000)]
Merge "Disconnect HTTP-based data source upon reset" into lmp-dev

9 years agoGenericSource: fix selectTrack parameter
Robert Shih [Tue, 16 Sep 2014 18:34:08 +0000 (11:34 -0700)]
GenericSource: fix selectTrack parameter

Bug: 17512187
Change-Id: I19a0915fb0fb1b1ae036bf5df85b9c9e7657a7ea

9 years agoDisconnect HTTP-based data source upon reset
Chong Zhang [Sun, 14 Sep 2014 21:28:45 +0000 (14:28 -0700)]
Disconnect HTTP-based data source upon reset

Bug: 17425250

Change-Id: Ieb4c93fd9848489f9dbf35a36474376924fd8eb9

9 years agoMerge "ASessionDescription: allow open-ended NTP range." into lmp-dev
Wei Jia [Tue, 16 Sep 2014 02:26:43 +0000 (02:26 +0000)]
Merge "ASessionDescription: allow open-ended NTP range." into lmp-dev

9 years agoHLS: fix freezes when toggling between a/v streams
Robert Shih [Sat, 30 Aug 2014 01:22:44 +0000 (18:22 -0700)]
HLS: fix freezes when toggling between a/v streams

Bug: 17412740
Change-Id: Iacaf2fa1d20584056375803e1782ad6761c56fc5

9 years agoMerge "ESQueue: do not merge aac packets" into lmp-dev
Robert Shih [Tue, 16 Sep 2014 01:12:02 +0000 (01:12 +0000)]
Merge "ESQueue: do not merge aac packets" into lmp-dev

9 years agoASessionDescription: allow open-ended NTP range.
Wei Jia [Tue, 16 Sep 2014 00:34:19 +0000 (17:34 -0700)]
ASessionDescription: allow open-ended NTP range.

Bug: 17435211
Change-Id: I450d512abdc4368f5180d9859f3b4e207e3b5591

9 years agoMerge "Optimize the YUV buffer copy a little bit to skip unnecessary operation."...
hkuang [Mon, 15 Sep 2014 23:56:40 +0000 (23:56 +0000)]
Merge "Optimize the YUV buffer copy a little bit to skip unnecessary operation." into lmp-dev

9 years agoMerge "PlaylistFetcher: find the correct sequence number to start fetching" into...
Robert Shih [Mon, 15 Sep 2014 23:56:04 +0000 (23:56 +0000)]
Merge "PlaylistFetcher: find the correct sequence number to start fetching" into lmp-dev

9 years agoESQueue: do not merge aac packets
Robert Shih [Tue, 2 Sep 2014 23:51:37 +0000 (16:51 -0700)]
ESQueue: do not merge aac packets

Bug: 17310061
Change-Id: Ie0fb0702b0af1c4094415190fdfdf132d5fcd511

9 years agoMerge "mediaplayer: handle surface dis/connection errors" into lmp-dev
Lajos Molnar [Mon, 15 Sep 2014 23:37:50 +0000 (23:37 +0000)]
Merge "mediaplayer: handle surface dis/connection errors" into lmp-dev

9 years agoOptimize the YUV buffer copy a little bit to skip unnecessary operation.
hkuang [Fri, 12 Sep 2014 20:38:04 +0000 (13:38 -0700)]
Optimize the YUV buffer copy a little bit to skip unnecessary operation.

Bug: 17326758

Change-Id: I2505751cb40a53242ceeb3be8f362c3754c2ee3f

9 years agoPlaylistFetcher: find the correct sequence number to start fetching
Robert Shih [Sat, 30 Aug 2014 02:01:29 +0000 (19:01 -0700)]
PlaylistFetcher: find the correct sequence number to start fetching

- skip over bad segemnts
- if we skipped too far into the future when adapting in live streams,
  adjust back

Bug: 17141635
Bug: 17416657
Change-Id: I0877ceaf6e69cab751bf9e92579071f9e61643eb

9 years agoMerge "Camera2: handle one more videosnapshot failure" into lmp-dev
Yin-Chia Yeh [Mon, 15 Sep 2014 22:11:20 +0000 (22:11 +0000)]
Merge "Camera2: handle one more videosnapshot failure" into lmp-dev

9 years agoCamera2: handle one more videosnapshot failure
Yin-Chia Yeh [Mon, 15 Sep 2014 21:50:06 +0000 (14:50 -0700)]
Camera2: handle one more videosnapshot failure

Handle one more corner case.
Also remove redundant re-try path.

Bug: 17484683
Change-Id: I0b3e1223f4f28022e7ec6abe028ca3c2623829de

9 years agoMerge "audioflinger: fix pre processing effect leak" into lmp-dev
Eric Laurent [Mon, 15 Sep 2014 18:36:48 +0000 (18:36 +0000)]
Merge "audioflinger: fix pre processing effect leak" into lmp-dev

9 years agoMerge "mediaplayer: optimize buffer queue management" into lmp-dev
Phil Burk [Mon, 15 Sep 2014 18:26:36 +0000 (18:26 +0000)]
Merge "mediaplayer: optimize buffer queue management" into lmp-dev

9 years agoMerge "Camera3Device: Treat failure to idle as an error" into lmp-dev
Eino-Ville Talvala [Mon, 15 Sep 2014 18:11:13 +0000 (18:11 +0000)]
Merge "Camera3Device: Treat failure to idle as an error" into lmp-dev

9 years agomediaplayer: handle surface dis/connection errors
Lajos Molnar [Mon, 15 Sep 2014 18:04:44 +0000 (11:04 -0700)]
mediaplayer: handle surface dis/connection errors

Bug: 17408008
Change-Id: I752d5372086772b79b1300a2d3fabbc4985954a8

9 years agoMerge "audioflinger: send mic mute command to all audio HALs" into lmp-dev
Eric Laurent [Mon, 15 Sep 2014 17:40:22 +0000 (17:40 +0000)]
Merge "audioflinger: send mic mute command to all audio HALs" into lmp-dev

9 years agoaudioflinger: fix pre processing effect leak
Eric Laurent [Sat, 13 Sep 2014 00:41:50 +0000 (17:41 -0700)]
audioflinger: fix pre processing effect leak

When a capture thread was closed, the effects attached to this thread
were left dangling and the associated effect chain destroyed.
When their last client was disconnected, the effects were not released
properly from the effect library because the destruction process could
not be completed without the effect being attached to a thread.

A similar problem prevented a RecordTrack to be properly released if
its client was destroyed after the capture thread.

The fix consists in allowing the effect or record track to be properly
released even if its parent thread cannot be promoted.

Also save any effect chain still present on a closed capture thread
in case a new client wants to reuse the effects on the same session later.

Bug: 17110064.
Change-Id: I5cd644daa357afd1f3548f9bcb28e6152d95fdb8

9 years agoaudioflinger: send mic mute command to all audio HALs
Eric Laurent [Sun, 14 Sep 2014 19:11:52 +0000 (12:11 -0700)]
audioflinger: send mic mute command to all audio HALs

Mic mute should be sent to all audio HALs, not
only the primary HAL as telephony can use
capture devices on other HALs (e.g USB)

Bug: 17321604.
Change-Id: I658f6084d5b5cdc5a70784661d5cea0b6f81c3a9

9 years agoMerge "Camera1: Validate scene mode override AF mode" into lmp-dev
Eino-Ville Talvala [Sun, 14 Sep 2014 22:01:52 +0000 (22:01 +0000)]
Merge "Camera1: Validate scene mode override AF mode" into lmp-dev

9 years agoCamera3Device: Treat failure to idle as an error
Eino-Ville Talvala [Sun, 14 Sep 2014 21:52:19 +0000 (14:52 -0700)]
Camera3Device: Treat failure to idle as an error

Bug: 16899526
Change-Id: Ia995aac6360c9c41ed654af5a7052480f23903d8

9 years agoCamera3: Update ZSL post-processing tags
Zhijun He [Sun, 14 Sep 2014 19:44:20 +0000 (12:44 -0700)]
Camera3: Update ZSL post-processing tags

Update ZSL processing tags according the still capture template
Also cache the request template to avoid extra cost of querying
into HAL every time.

Bug: 17463102
Change-Id: I2eeffefb0a4131c99a85dd3e4484cc6f0f025efa

9 years agoMerge "audio policy: fix relative priorities of PHONE and ENFORCED_AUDIBLE" into...
Eric Laurent [Sun, 14 Sep 2014 18:47:10 +0000 (18:47 +0000)]
Merge "audio policy: fix relative priorities of PHONE and ENFORCED_AUDIBLE" into lmp-dev

9 years agoCamera1: Validate scene mode override AF mode
Eino-Ville Talvala [Sat, 13 Sep 2014 20:34:55 +0000 (13:34 -0700)]
Camera1: Validate scene mode override AF mode

Don't allow uncalibrated cameras to list a fixed focus mode for
variable-focus cameras, since uncalibrated cameras cannot do INFINITY
focus.

Bug: 17492043
Change-Id: I5835efd6f21be0ebb74a9b7ea3ef5b2e7cf63e7a

9 years agoMerge "Camera: Allow larger preview resolutions in API1 for >= HALv2 devices" into...
Eino-Ville Talvala [Sat, 13 Sep 2014 21:16:11 +0000 (21:16 +0000)]
Merge "Camera: Allow larger preview resolutions in API1 for >= HALv2 devices" into lmp-dev

9 years agoCamera: Allow larger preview resolutions in API1 for >= HALv2 devices
Eino-Ville Talvala [Sat, 13 Sep 2014 00:15:24 +0000 (17:15 -0700)]
Camera: Allow larger preview resolutions in API1 for >= HALv2 devices

Limit preview resolutions to a max of 1920x1920 instead of 1920x1080p,
so that any aspect ratio with a 1920 as the larger dimension can be used.

Also improve the initial preview/video size selection logic, to ensure
that the selected size is both a valid preview and video size, and not
too large.

Bug: 17458832
Change-Id: Iea006fadb5fbf0f03d23c3c5babb5b3611469688

9 years agoMerge "Camera2: fix 4K recording" into lmp-dev
Zhijun He [Sat, 13 Sep 2014 18:58:02 +0000 (18:58 +0000)]
Merge "Camera2: fix 4K recording" into lmp-dev

9 years agoCamera2: fix 4K recording
Yin-Chia Yeh [Fri, 12 Sep 2014 21:50:27 +0000 (14:50 -0700)]
Camera2: fix 4K recording

Bug: 17484683
Change-Id: I09bb12698057555329286c777102b9b310452fb3

9 years agoaudio policy: fix relative priorities of PHONE and ENFORCED_AUDIBLE
Jon Eklund [Tue, 9 Sep 2014 20:39:49 +0000 (15:39 -0500)]
audio policy: fix relative priorities of PHONE and ENFORCED_AUDIBLE

ENFORCED_AUDIBLE should only be highest priority if system tones
are being forced.  Otherwise it should behave like SONIFICATION.

Bug: 17474485.

Change-Id: Ia651779870d51100cc3179c96fa09694bc691ba7

9 years agoMerge "LiveSession: reliable switch" into lmp-dev
Robert Shih [Sat, 13 Sep 2014 01:51:36 +0000 (01:51 +0000)]
Merge "LiveSession: reliable switch" into lmp-dev

9 years agomediaplayer: optimize buffer queue management
Phil Burk [Wed, 10 Sep 2014 03:08:39 +0000 (20:08 -0700)]
mediaplayer: optimize buffer queue management

Various changes for power consumption including:
    Restrict the number of messages in flight.
    Buffer more frames in the GenericSource so reads occur in a burst.

Bug: 15094301
Change-Id: I783481fd91f3fdd445b95e88ab82178f649f1a38
Signed-off-by: Phil Burk <philburk@google.com>
9 years agoLiveSession: reliable switch
Robert Shih [Sat, 30 Aug 2014 01:09:26 +0000 (18:09 -0700)]
LiveSession: reliable switch

Bug: 17142706
Change-Id: I9cd6c068178d62c294496e8ab0b0a3763354964f

9 years agoMerge "Fix AAC timestamps for multiple aac frames per input buffer" into lmp-dev
Marco Nelissen [Sat, 13 Sep 2014 00:28:38 +0000 (00:28 +0000)]
Merge "Fix AAC timestamps for multiple aac frames per input buffer" into lmp-dev

9 years agoMerge "LiveSession: re-buffer on under run to avoid stutter" into lmp-dev
Robert Shih [Sat, 13 Sep 2014 00:23:59 +0000 (00:23 +0000)]
Merge "LiveSession: re-buffer on under run to avoid stutter" into lmp-dev

9 years agoMerge "audio policy: fix check in creaateAudioPatch()" into lmp-dev
Eric Laurent [Sat, 13 Sep 2014 00:18:18 +0000 (00:18 +0000)]
Merge "audio policy: fix check in creaateAudioPatch()" into lmp-dev

9 years agoaudio policy: fix check in creaateAudioPatch()
Eric Laurent [Fri, 12 Sep 2014 23:19:41 +0000 (16:19 -0700)]
audio policy: fix check in creaateAudioPatch()

Bug: 17488759.
Change-Id: I9dd2c3ca7f83de4b3573f4fb0e9934e1bc37c3bc

9 years agoMerge "camera: add latest parameters to dumpsys for api1 cameras" into lmp-dev
Igor Murashkin [Fri, 12 Sep 2014 22:37:14 +0000 (22:37 +0000)]
Merge "camera: add latest parameters to dumpsys for api1 cameras" into lmp-dev

9 years agoLiveSession: re-buffer on under run to avoid stutter
Robert Shih [Sat, 30 Aug 2014 01:16:29 +0000 (18:16 -0700)]
LiveSession: re-buffer on under run to avoid stutter

Bug: 13742725
Change-Id: I7dad8876e18084c3c060d08190fa8a72fc2f5bad

9 years agoMerge "stagefright: add adaptive playback support to SoftMPEG decoder." into lmp-dev
Ronghua Wu [Fri, 12 Sep 2014 19:07:39 +0000 (19:07 +0000)]
Merge "stagefright: add adaptive playback support to SoftMPEG decoder." into lmp-dev

9 years agoMerge "GenericSource: move track packet init from start to prepare" into lmp-dev
Robert Shih [Fri, 12 Sep 2014 18:26:27 +0000 (18:26 +0000)]
Merge "GenericSource: move track packet init from start to prepare" into lmp-dev

9 years agoMerge "LiveSession: added onSwitchDown" into lmp-dev
Robert Shih [Fri, 12 Sep 2014 18:24:02 +0000 (18:24 +0000)]
Merge "LiveSession: added onSwitchDown" into lmp-dev

9 years agoMerge "Camera2: improve ZSL candidate selection logic" into lmp-dev
Yin-Chia Yeh [Fri, 12 Sep 2014 16:47:25 +0000 (16:47 +0000)]
Merge "Camera2: improve ZSL candidate selection logic" into lmp-dev

9 years agoMerge "camera2: skip capture result after clearZslQueue" into lmp-dev
Yin-Chia Yeh [Fri, 12 Sep 2014 16:47:11 +0000 (16:47 +0000)]
Merge "camera2: skip capture result after clearZslQueue" into lmp-dev

9 years agoMerge "LiveSession: raise upwards adaptation constraint" into lmp-dev
Robert Shih [Fri, 12 Sep 2014 00:27:44 +0000 (00:27 +0000)]
Merge "LiveSession: raise upwards adaptation constraint" into lmp-dev

9 years agoMerge "StagefrightRecorder: default to codec and fps from camcorder low profile"...
Chong Zhang [Thu, 11 Sep 2014 23:54:48 +0000 (23:54 +0000)]
Merge "StagefrightRecorder: default to codec and fps from camcorder low profile" into lmp-dev

9 years agoLiveSession: added onSwitchDown
Robert Shih [Sat, 30 Aug 2014 01:02:56 +0000 (18:02 -0700)]
LiveSession: added onSwitchDown

additionally in this change
  - AnotherPacketSource: added getEstimatedDurationUs that avoids
    looping through buffered access units in most cases; this method
    is called by LiveSession before triggering onSwitchDown. Also fix
    the original getBufferedDurationUs to accumulate durations across
    discontinuities.

Bug: 13742612
Change-Id: I135932ea0c74671b7019a3c7054844926c18bc14

9 years agoMerge "PlaylistFetcher: avoid repeated fetch when we run off the edge of live playlis...
Robert Shih [Thu, 11 Sep 2014 22:50:40 +0000 (22:50 +0000)]
Merge "PlaylistFetcher: avoid repeated fetch when we run off the edge of live playlists" into lmp-dev

9 years agoGenericSource: move track packet init from start to prepare
Robert Shih [Thu, 11 Sep 2014 22:38:54 +0000 (15:38 -0700)]
GenericSource: move track packet init from start to prepare

Bug: 17244704
Change-Id: I15eba0e4d2a178cc0ba46bbc17be0e6d95e76935

9 years agocamera2: skip capture result after clearZslQueue
Yin-Chia Yeh [Tue, 9 Sep 2014 20:31:46 +0000 (13:31 -0700)]
camera2: skip capture result after clearZslQueue

After ZSL queue is cleared, don't add capture result to ZSL queue
if its corresponding buffer has been cleared.

Bug: 17185356
Change-Id: Iddac39ab09b2560e2ce9390895927217c1736d5a

9 years agocamera: add latest parameters to dumpsys for api1 cameras
Igor Murashkin [Thu, 11 Sep 2014 21:43:24 +0000 (14:43 -0700)]
camera: add latest parameters to dumpsys for api1 cameras

Bug: 17290106
Change-Id: I08ac1659d0367613c37669d5bf6e6bf7b2b63bc2

9 years agoavoid kWhatReadBuffer message spam in GenericSource
Lajos Molnar [Thu, 11 Sep 2014 17:01:55 +0000 (10:01 -0700)]
avoid kWhatReadBuffer message spam in GenericSource

When playig WVM video, an extra readBuffer is posted for each
dequeueAccessUnit, resulting in an unbounded number of messages.

Bug: 17472979
Change-Id: Ice92ccf2454bf7a70856a4a8b535cefffc9e61ac

9 years agoMerge "Clean up AudioTrack position and timestamp handling" into lmp-dev
Glenn Kasten [Thu, 11 Sep 2014 19:28:07 +0000 (19:28 +0000)]
Merge "Clean up AudioTrack position and timestamp handling" into lmp-dev

9 years agoStagefrightRecorder: default to codec and fps from camcorder low profile
Chong Zhang [Tue, 9 Sep 2014 01:55:34 +0000 (18:55 -0700)]
StagefrightRecorder: default to codec and fps from camcorder low profile

Bug: 16870964
Change-Id: I18425af630d3f041a3bcf77fbae3f07856fe8af2

9 years agoMerge "AudioPolicyManager: Use "safe" speaker for notifications if available" into...
Eric Laurent [Thu, 11 Sep 2014 18:23:53 +0000 (18:23 +0000)]
Merge "AudioPolicyManager: Use "safe" speaker for notifications if available" into lmp-dev

9 years agostagefright: add adaptive playback support to SoftMPEG decoder.
Ronghua Wu [Fri, 5 Sep 2014 21:25:39 +0000 (14:25 -0700)]
stagefright: add adaptive playback support to SoftMPEG decoder.

This covers both MPEG4 and H263 adaptive playback.

Bug: 17326758
Change-Id: I80a67b7f3ceab05e792f0a459439a8274bd78e20

9 years agoMerge "stagefright: add adaptive playback support to SoftAVC decoder." into lmp-dev
Ronghua Wu [Thu, 11 Sep 2014 17:22:22 +0000 (17:22 +0000)]
Merge "stagefright: add adaptive playback support to SoftAVC decoder." into lmp-dev

9 years agoCamera2: improve ZSL candidate selection logic
Yin-Chia Yeh [Wed, 10 Sep 2014 22:14:18 +0000 (15:14 -0700)]
Camera2: improve ZSL candidate selection logic

1. Clear ZSL queue when focus mode is changed and autoFocus is
   cancelled.
2. Do not check focus state is focus mode is fixed.

Bug: 17185356
Change-Id: I2cb10fb457b080f0db950c894e56995f638e147b

9 years agoClean up AudioTrack position and timestamp handling
Glenn Kasten [Fri, 15 Aug 2014 22:13:30 +0000 (15:13 -0700)]
Clean up AudioTrack position and timestamp handling

Replace epoch concept by observing and accumulating server delta
positions.  The advantage of using server deltas instead of absolute
values is that they (1) are not sensitive to 32-bit wraparound,
(2) are not sensitive to server behavior for stop(), and
(3) prepare for future 64-bit client positions without requiring 64-bit
positions on server.

Add comments to AudioTrack::getTimestamp() and friends
that the timestamp output parameter is undefined on error.

Don't allow getTimestamp to return a negative frame position after stop().

Accumulate the client released frames, which may be useful for a future API.

Bug: 11815245
Change-Id: I652940fa2db2f34a78c012a3ead0d9204fa29c6e

9 years agoam 0568cd5b: am e6b5d4c2: am 6fd1cf0c: am 86543654: am 0d83cf22: am 97d917bc: am...
Robert Shih [Thu, 11 Sep 2014 04:26:01 +0000 (04:26 +0000)]
am 0568cd5b: am e6b5d4c2: am 6fd1cf0c: am 86543654: am 0d83cf22: am 97d917bc: am ab0b3212: am 9b51a37f: am cb5dc219: am 74abb1ae: am 482b18bb: am f106b199: SampleTable: check integer overflow during table alloc

* commit '0568cd5bf0a93c54a5bca47b48f7cbe799ccafcf':
  SampleTable: check integer overflow during table alloc

9 years agoam e6b5d4c2: am 6fd1cf0c: am 86543654: am 0d83cf22: am 97d917bc: am ab0b3212: am...
Robert Shih [Thu, 11 Sep 2014 01:14:28 +0000 (01:14 +0000)]
am e6b5d4c2: am 6fd1cf0c: am 86543654: am 0d83cf22: am 97d917bc: am ab0b3212: am 9b51a37f: am cb5dc219: am 74abb1ae: am 482b18bb: am f106b199: SampleTable: check integer overflow during table alloc

* commit 'e6b5d4c2d58a02184dd97815b5f76980025379bc':
  SampleTable: check integer overflow during table alloc

9 years agoam 6fd1cf0c: am 86543654: am 0d83cf22: am 97d917bc: am ab0b3212: am 9b51a37f: am...
Robert Shih [Thu, 11 Sep 2014 00:50:33 +0000 (00:50 +0000)]
am 6fd1cf0c: am 86543654: am 0d83cf22: am 97d917bc: am ab0b3212: am 9b51a37f: am cb5dc219: am 74abb1ae: am 482b18bb: am f106b199: SampleTable: check integer overflow during table alloc

* commit '6fd1cf0c00ee76802cfff0035011691aac8a1724':
  SampleTable: check integer overflow during table alloc

9 years agoam 86543654: am 0d83cf22: am 97d917bc: am ab0b3212: am 9b51a37f: am cb5dc219: am...
Robert Shih [Thu, 11 Sep 2014 00:34:29 +0000 (00:34 +0000)]
am 86543654: am 0d83cf22: am 97d917bc: am ab0b3212: am 9b51a37f: am cb5dc219: am 74abb1ae: am 482b18bb: am f106b199: SampleTable: check integer overflow during table alloc

* commit '8654365499f8e9956c490e98184abe33978d4e67':
  SampleTable: check integer overflow during table alloc

9 years agoMerge "stagefright: don't use AAtomizer in AMessage" into lmp-dev
Lajos Molnar [Thu, 11 Sep 2014 00:32:44 +0000 (00:32 +0000)]
Merge "stagefright: don't use AAtomizer in AMessage" into lmp-dev

9 years agoAudioPolicyManager: Use "safe" speaker for notifications if available
Jon Eklund [Mon, 23 Jun 2014 19:47:03 +0000 (14:47 -0500)]
AudioPolicyManager: Use "safe" speaker for notifications if available

On particularly loud devices, unexpected audio bursts can be harmful.
For longer audio events, the conventional mitigation strategy is to
somehow soft-start (ramp) the loudspeaker volume, but this strategy
can severely impact the audibility of short audio events.

Use of the "safe" speaker path hints to AudioHAL to immediately output
at best allowable level for transient audio events.

SPEAKER_SAFE is aliased to SPEAKER for purposes of volume control.

Bug: 17319721
Change-Id: I75187c23f3d1f18e9f638c5d14e7b0bf805a67bc

9 years agoFix AAC timestamps for multiple aac frames per input buffer
Marco Nelissen [Fri, 5 Sep 2014 16:28:24 +0000 (09:28 -0700)]
Fix AAC timestamps for multiple aac frames per input buffer

Support multiple aac frames per input buffer also for non-ADTS streams,
now also works with 5.1 audio.

Bug: 16715379

9 years agomediaplayer: release MediaBuffer in stale input buffers
Lajos Molnar [Wed, 10 Sep 2014 20:53:21 +0000 (13:53 -0700)]
mediaplayer: release MediaBuffer in stale input buffers

Bug: 17454455
Change-Id: If63a6e42f96851d6c10fdec11360f0dabae9bf50

9 years agoam 0d83cf22: am 97d917bc: am ab0b3212: am 9b51a37f: am cb5dc219: am 74abb1ae: am...
Robert Shih [Wed, 10 Sep 2014 20:48:04 +0000 (20:48 +0000)]
am 0d83cf22: am 97d917bc: am ab0b3212: am 9b51a37f: am cb5dc219: am 74abb1ae: am 482b18bb: am f106b199: SampleTable: check integer overflow during table alloc

* commit '0d83cf22991c48f4bb5f2afe3d16ae076861f394':
  SampleTable: check integer overflow during table alloc

9 years agoam 97d917bc: am ab0b3212: am 9b51a37f: am cb5dc219: am 74abb1ae: am 482b18bb: am...
Robert Shih [Wed, 10 Sep 2014 20:26:40 +0000 (20:26 +0000)]
am 97d917bc: am ab0b3212: am 9b51a37f: am cb5dc219: am 74abb1ae: am 482b18bb: am f106b199: SampleTable: check integer overflow during table alloc

* commit '97d917bc1ccc958d8f1051de6a888de9a25dc6bd':
  SampleTable: check integer overflow during table alloc

9 years agoam ab0b3212: am 9b51a37f: am cb5dc219: am 74abb1ae: am 482b18bb: am f106b199: SampleT...
Robert Shih [Wed, 10 Sep 2014 20:19:54 +0000 (20:19 +0000)]
am ab0b3212: am 9b51a37f: am cb5dc219: am 74abb1ae: am 482b18bb: am f106b199: SampleTable: check integer overflow during table alloc

* commit 'ab0b3212e0c15132f2dab2beeb39c47d31bb1dab':
  SampleTable: check integer overflow during table alloc

9 years agoam 9b51a37f: am cb5dc219: am 74abb1ae: am 482b18bb: am f106b199: SampleTable: check...
Robert Shih [Wed, 10 Sep 2014 20:09:14 +0000 (20:09 +0000)]
am 9b51a37f: am cb5dc219: am 74abb1ae: am 482b18bb: am f106b199: SampleTable: check integer overflow during table alloc

* commit '9b51a37fa8ad9d28be791213ceba4fcbec52b14d':
  SampleTable: check integer overflow during table alloc

9 years agoam cb5dc219: am 74abb1ae: am 482b18bb: am f106b199: SampleTable: check integer overfl...
Robert Shih [Wed, 10 Sep 2014 19:58:37 +0000 (19:58 +0000)]
am cb5dc219: am 74abb1ae: am 482b18bb: am f106b199: SampleTable: check integer overflow during table alloc

* commit 'cb5dc219b78e6eeacb7ee2f5c93e6763db677122':
  SampleTable: check integer overflow during table alloc

9 years agoam 74abb1ae: am 482b18bb: am f106b199: SampleTable: check integer overflow during...
Robert Shih [Wed, 10 Sep 2014 19:47:42 +0000 (19:47 +0000)]
am 74abb1ae: am 482b18bb: am f106b199: SampleTable: check integer overflow during table alloc

* commit '74abb1ae32fbd3fa4112cc8b8d53882777feb191':
  SampleTable: check integer overflow during table alloc

9 years agoam 482b18bb: am f106b199: SampleTable: check integer overflow during table alloc
Robert Shih [Wed, 10 Sep 2014 19:41:45 +0000 (19:41 +0000)]
am 482b18bb: am f106b199: SampleTable: check integer overflow during table alloc

* commit '482b18bbfd6c9214157bfab47feae86df48a7178':
  SampleTable: check integer overflow during table alloc

9 years agoMerge "NuPlayerDriver: do not set to paused state when receiving playback complete...
Wei Jia [Wed, 10 Sep 2014 19:41:40 +0000 (19:41 +0000)]
Merge "NuPlayerDriver: do not set to paused state when receiving playback complete and reset is in progress." into lmp-dev

9 years agoam f106b199: SampleTable: check integer overflow during table alloc
Robert Shih [Wed, 10 Sep 2014 19:31:46 +0000 (19:31 +0000)]
am f106b199: SampleTable: check integer overflow during table alloc

* commit 'f106b1993143df44282777253244ce67974c9d4a':
  SampleTable: check integer overflow during table alloc

9 years agoMerge "Revert "Fix AAC timestamps for multiple aac frames per input buffer"" into...
Marco Nelissen [Wed, 10 Sep 2014 19:28:49 +0000 (19:28 +0000)]
Merge "Revert "Fix AAC timestamps for multiple aac frames per input buffer"" into lmp-dev

9 years agoMerge "fix failure in MediaCodecTest#testException" into lmp-dev
Chong Zhang [Wed, 10 Sep 2014 19:27:03 +0000 (19:27 +0000)]
Merge "fix failure in MediaCodecTest#testException" into lmp-dev

9 years agoRevert "Fix AAC timestamps for multiple aac frames per input buffer"
Marco Nelissen [Wed, 10 Sep 2014 19:21:59 +0000 (12:21 -0700)]
Revert "Fix AAC timestamps for multiple aac frames per input buffer"

This reverts commit e086387c805311ac87904c3c4d6d4eb08d4b4ee2.
(broke multichannel movie playback)
Bug: 17454025

Change-Id: I95b82359f87f8beca66f35c34b7e125850a44747

9 years agoMerge "mediaplayer: limit number of outstanding buffer requests" into lmp-dev
Lajos Molnar [Wed, 10 Sep 2014 19:02:45 +0000 (19:02 +0000)]
Merge "mediaplayer: limit number of outstanding buffer requests" into lmp-dev

9 years agoLiveSession: raise upwards adaptation constraint
Robert Shih [Sat, 30 Aug 2014 01:13:13 +0000 (18:13 -0700)]
LiveSession: raise upwards adaptation constraint

Adjust bandwidth more conservatively when considering an upwards
adaptation. Also fixed an issue with kWhatCheckBandwidth messages
being accumulated across switch generations; this causes
onCheckBandwidth to be fired at a high frequency and LiveSession to
be too sensitive to network glitches.

Bug: 13743153
Change-Id: I1dec99cb5d123c6675abe0847fd12aab5178eefd

9 years agoNuPlayerDriver: do not set to paused state when receiving playback complete and reset...
Wei Jia [Wed, 10 Sep 2014 17:06:11 +0000 (10:06 -0700)]
NuPlayerDriver: do not set to paused state when receiving playback complete and reset is in progress.

Bug: 17453240
Change-Id: If243e2232779681fc84dc767feaed00f23d8fdb1

9 years agofix failure in MediaCodecTest#testException
Chong Zhang [Wed, 10 Sep 2014 17:43:41 +0000 (10:43 -0700)]
fix failure in MediaCodecTest#testException

reset codec after failed configure()
Bug: 17418876

Change-Id: I21ff8a0751dae6a164678015142e11d481403bed

9 years agoMerge "camera2: Fix video snapshot for HAL 2.* devices." into lmp-dev
Ruben Brunk [Wed, 10 Sep 2014 17:11:11 +0000 (17:11 +0000)]
Merge "camera2: Fix video snapshot for HAL 2.* devices." into lmp-dev

9 years agostagefright: add adaptive playback support to SoftAVC decoder.
Ronghua Wu [Tue, 2 Sep 2014 17:55:41 +0000 (10:55 -0700)]
stagefright: add adaptive playback support to SoftAVC decoder.

Also change SoftVPX decoder to use common handlePortSettingsChanged
and copyYV12FrameToOutputBuffer method.

Bug: 17326758
Change-Id: I6fb2ee8fb9291f69c70493b8558af341adc1f4b2

9 years agostagefright: don't use AAtomizer in AMessage
Lajos Molnar [Wed, 27 Aug 2014 16:02:47 +0000 (09:02 -0700)]
stagefright: don't use AAtomizer in AMessage

Bug: 15094301
Change-Id: Ib82fb6d8fb6b48402d81f411123b3d924368eb93

9 years agoMerge "CamcorderProfile: Add QUALITY_HIGH_SPEED_2160P" into lmp-dev
Zhijun He [Wed, 10 Sep 2014 05:12:17 +0000 (05:12 +0000)]
Merge "CamcorderProfile: Add QUALITY_HIGH_SPEED_2160P" into lmp-dev

9 years agomediaplayer: limit number of outstanding buffer requests
Lajos Molnar [Wed, 10 Sep 2014 03:08:39 +0000 (20:08 -0700)]
mediaplayer: limit number of outstanding buffer requests

Bug: 14679336
Change-Id: I94a20ada30a9a25065329a85fc884d32d154d029

9 years agoMerge "audioflinger: fix audio patch release" into lmp-dev
Eric Laurent [Wed, 10 Sep 2014 01:03:58 +0000 (01:03 +0000)]
Merge "audioflinger: fix audio patch release" into lmp-dev

9 years agoaudioflinger: fix audio patch release
Eric Laurent [Wed, 10 Sep 2014 00:00:14 +0000 (17:00 -0700)]
audioflinger: fix audio patch release

Fix error in PatchPanel:releaseAudioPatch() causing
the wrong patch handle to be passed to the audio HAL.

Bug: 17368621.
Change-Id: I037fd2e6273508c830414b5900d07c0178b96dae

9 years agoMerge "Add error code for insufficient output protection" into lmp-dev
Jeff Tinker [Tue, 9 Sep 2014 23:56:04 +0000 (23:56 +0000)]
Merge "Add error code for insufficient output protection" into lmp-dev

9 years agocamera2: Fix video snapshot for HAL 2.* devices.
Ruben Brunk [Tue, 9 Sep 2014 23:20:53 +0000 (16:20 -0700)]
camera2: Fix video snapshot for HAL 2.* devices.

Bug: 15408128

- Lazily destroy ZSL stream when ZslProcessor is updated, or
  when the camera client is disconnected, allowing HAL 2.*
  devices that rely on the ZSL stream to capture video snapshots
  to function correctly.

Change-Id: Ia5cf14c62acda4d9c640440dc5b8e0796dc0b3fa

9 years agoCamcorderProfile: Add QUALITY_HIGH_SPEED_2160P
Zhijun He [Tue, 9 Sep 2014 23:18:31 +0000 (16:18 -0700)]
CamcorderProfile: Add QUALITY_HIGH_SPEED_2160P

Bug: 17059255
Change-Id: Ic6b272e4ceec8fc852c9eb787370f4d366dad0ac