OSDN Git Service

android-x86/frameworks-av.git
9 years agoMerge "NuPlayer HLS: better subtitle toggling" into lmp-dev
Robert Shih [Mon, 22 Sep 2014 15:42:49 +0000 (15:42 +0000)]
Merge "NuPlayer HLS: better subtitle toggling" into lmp-dev

9 years agoMerge "mediaplayer: smooth out videoplayback based on framerate" into lmp-dev
Lajos Molnar [Sat, 20 Sep 2014 02:00:29 +0000 (02:00 +0000)]
Merge "mediaplayer: smooth out videoplayback based on framerate" into lmp-dev

9 years agoMerge "API1: ZSL buffers should be skipped for manual AF mode" into lmp-dev
Zhijun He [Sat, 20 Sep 2014 01:06:54 +0000 (01:06 +0000)]
Merge "API1: ZSL buffers should be skipped for manual AF mode" into lmp-dev

9 years agomediaplayer: smooth out videoplayback based on framerate
Lajos Molnar [Thu, 18 Sep 2014 21:14:29 +0000 (14:14 -0700)]
mediaplayer: smooth out videoplayback based on framerate

Bug: 14659809
Change-Id: I73f6c7224c51ac06487475f9ed395379111ad71f

9 years agoMerge "Make prepare properly report failure again" into lmp-dev
Marco Nelissen [Sat, 20 Sep 2014 00:41:15 +0000 (00:41 +0000)]
Merge "Make prepare properly report failure again" into lmp-dev

9 years agoAPI1: ZSL buffers should be skipped for manual AF mode
Zhijun He [Fri, 19 Sep 2014 22:51:04 +0000 (15:51 -0700)]
API1: ZSL buffers should be skipped for manual AF mode

ZSL counts on good auto focus (CAF). It is really tricky to enable ZSL for
manual focus mode. as it is bascically a locked focus mode, you can not tell
if the focus is good or not by reading the afstate.

Bug: 17577928
Change-Id: I68ff7d143e7d56f942bb00a8da6a9faea57b52a0

9 years agoMake prepare properly report failure again
Marco Nelissen [Fri, 19 Sep 2014 22:14:37 +0000 (15:14 -0700)]
Make prepare properly report failure again

Bug: 17583084
Bug: 17548451
Change-Id: I759d28eaafb520c206d54740c2c0a857b534d23c

9 years agoNuPlayer HLS: better subtitle toggling
Robert Shih [Fri, 19 Sep 2014 21:52:30 +0000 (14:52 -0700)]
NuPlayer HLS: better subtitle toggling

Bug: 17310061
Change-Id: Iacee1816285425aaad08c32b28591bb0162d5a85

9 years agomediaplayer: schedule video frames in VSYNC valleys
Lajos Molnar [Wed, 7 May 2014 22:33:04 +0000 (15:33 -0700)]
mediaplayer: schedule video frames in VSYNC valleys

Bug: 14659809
Change-Id: Ic340ac61ad4778b493625c79c2cb4f747ff54ede

9 years agoMerge "Fix ringbuffer handling" into lmp-dev
Marco Nelissen [Fri, 19 Sep 2014 19:12:35 +0000 (19:12 +0000)]
Merge "Fix ringbuffer handling" into lmp-dev

9 years agoFix ringbuffer handling
Marco Nelissen [Fri, 19 Sep 2014 18:46:44 +0000 (11:46 -0700)]
Fix ringbuffer handling

Explicitly keep track of the number of samples in the ring buffer,
rather than inferring it from the difference between the read and
write pointer, since the latter cannot distinguish between a
completely full and a completely empty buffer.

Bug: 17582331

Change-Id: I24d16ce96710209b7457ffad7c4c60201451980f

9 years agoMerge "CameraService: Add client name/pid to device open/close logging." into lmp-dev
Eino-Ville Talvala [Fri, 19 Sep 2014 18:30:13 +0000 (18:30 +0000)]
Merge "CameraService: Add client name/pid to device open/close logging." into lmp-dev

9 years agoReduce log spam from getTimestamp errors
Glenn Kasten [Fri, 19 Sep 2014 16:05:05 +0000 (09:05 -0700)]
Reduce log spam from getTimestamp errors

Bug: 17576481
Change-Id: I07d99e7c42b7d4f0994b5a6d9c9fe8eb29fbbe40

9 years agoCameraService: Add client name/pid to device open/close logging.
Eino-Ville Talvala [Fri, 19 Sep 2014 00:24:22 +0000 (17:24 -0700)]
CameraService: Add client name/pid to device open/close logging.

Bug: 15672812
Change-Id: I1162c6d9d0a1eea1dd32949a04c295b4941d2602

9 years agoMerge "Always consider first buffer to be config" into lmp-dev
Marco Nelissen [Fri, 19 Sep 2014 00:20:08 +0000 (00:20 +0000)]
Merge "Always consider first buffer to be config" into lmp-dev

9 years agoMerge "CameraService: Fix dump methods for two clients" into lmp-dev
Eino-Ville Talvala [Thu, 18 Sep 2014 23:57:49 +0000 (23:57 +0000)]
Merge "CameraService: Fix dump methods for two clients" into lmp-dev

9 years agoCameraService: Fix dump methods for two clients
Eino-Ville Talvala [Thu, 18 Sep 2014 22:52:02 +0000 (15:52 -0700)]
CameraService: Fix dump methods for two clients

Actually write dump text into the provided FD, and add a bit more
dump data into CameraDeviceClient.

Bug: 17570762
Change-Id: I37b1db85188855d4e89c8050c4b13f0d22e07e0c

9 years agoAlways consider first buffer to be config
Marco Nelissen [Thu, 18 Sep 2014 22:09:28 +0000 (15:09 -0700)]
Always consider first buffer to be config

for backwards compatibility. Also fix a problem where writing 0
bytes to an empty ringbuffer would treat it as overflowed.

Bug: 17567501
Change-Id: I8019da76466576e1b2984e9eccf09bdec593038a

9 years agoMerge "mediaplayer: fix buffer aggregation when video has offloaded audio" into lmp-dev
Phil Burk [Thu, 18 Sep 2014 22:37:13 +0000 (22:37 +0000)]
Merge "mediaplayer: fix buffer aggregation when video has offloaded audio" into lmp-dev

9 years agoMerge "AudioEffect acquires session" into lmp-dev
Jean-Michel Trivi [Thu, 18 Sep 2014 22:14:00 +0000 (22:14 +0000)]
Merge "AudioEffect acquires session" into lmp-dev

9 years agoAudioEffect acquires session
Jean-Michel Trivi [Thu, 18 Sep 2014 21:07:18 +0000 (14:07 -0700)]
AudioEffect acquires session

Currently, users of audio sessions, AudioTrack and AudioRecord,
 are acquiring and releasing audio sessions according to their
 life-cycle. AudioEffect instances were not counting as users
 of an audio session. This caused an effect used on a session
 to be purged by AudioFlinger::purgeStaleEffects_l() whenever
 the last user of that session went away.
This CL makes AudioEffect acquire and release a session when
 created and destroyed.

Bug 15432115

Change-Id: I922532150009988d43872f9b5928044a830ae0b3

9 years agoMerge "PlaylistFetcher:don't signal a/v eos on subttitle eos" into lmp-dev
Robert Shih [Thu, 18 Sep 2014 00:05:43 +0000 (00:05 +0000)]
Merge "PlaylistFetcher:don't signal a/v eos on subttitle eos" into lmp-dev

9 years agoMerge "NuPlayer: update timestamp handling" into lmp-dev
Andy Hung [Wed, 17 Sep 2014 23:31:37 +0000 (23:31 +0000)]
Merge "NuPlayer: update timestamp handling" into lmp-dev

9 years agoMerge "NuPlayer: use getTimestamp instead of getPosition" into lmp-dev
Lajos Molnar [Wed, 17 Sep 2014 23:15:59 +0000 (23:15 +0000)]
Merge "NuPlayer: use getTimestamp instead of getPosition" into lmp-dev

9 years agoMerge "Fix AudioTrack offloaded timestamp handling." into lmp-dev
Lajos Molnar [Wed, 17 Sep 2014 23:15:27 +0000 (23:15 +0000)]
Merge "Fix AudioTrack offloaded timestamp handling." into lmp-dev

9 years agoFix AudioTrack offloaded timestamp handling.
Andy Hung [Fri, 12 Sep 2014 21:43:11 +0000 (14:43 -0700)]
Fix AudioTrack offloaded timestamp handling.

getTimestamp for offloaded tracks now returns WOULD_BLOCK for
situations where the timestamp is unavailable due to the
previous track still flushing or the timestamp is stale.
It is fixed for normal playback conditions.

Bug: 14659809
Bug: 17428188
Change-Id: Ic9ec07ccabc604236979769db5c4ea2dec252660

9 years agoNuPlayer: update timestamp handling
Andy Hung [Fri, 12 Sep 2014 22:12:16 +0000 (15:12 -0700)]
NuPlayer: update timestamp handling

Use getTimestamp WOULD_BLOCK error return code to clean up
initial playback/start timestamp handling.

Account for pause time and seeks.
Only send notification from driver when the media time changes.

Bug: 14659809
Bug: 17428188
Change-Id: I051bb5e2dd4fd5990474f8fb635615ad8d18eb2c

9 years agomediaplayer: fix buffer aggregation when video has offloaded audio
Phil Burk [Wed, 17 Sep 2014 23:03:47 +0000 (16:03 -0700)]
mediaplayer: fix buffer aggregation when video has offloaded audio

Change conditional test so we don't accidentally do buffer aggregation
on video buffers.

Bug: 17553847
Change-Id: I746452b2e62db664315732a38f982ce7faf26212
Signed-off-by: Phil Burk <philburk@google.com>
9 years agoNuPlayer: use getTimestamp instead of getPosition
Lajos Molnar [Thu, 28 Aug 2014 14:27:44 +0000 (07:27 -0700)]
NuPlayer: use getTimestamp instead of getPosition

Bug: 14659809
Bug: 16985287
Change-Id: I59ec72fbd40a9b8d28fe548ddad082c03000c045

9 years agoMerge "audioflinger: remove debug log." into lmp-dev
Eric Laurent [Wed, 17 Sep 2014 22:45:02 +0000 (22:45 +0000)]
Merge "audioflinger: remove debug log." into lmp-dev

9 years agoMerge "Add support for ANDROID_LOOP to NuPlayer" into lmp-dev
Marco Nelissen [Wed, 17 Sep 2014 22:08:31 +0000 (22:08 +0000)]
Merge "Add support for ANDROID_LOOP to NuPlayer" into lmp-dev

9 years agoMerge "Fix null pointer dereference" into lmp-dev
Marco Nelissen [Wed, 17 Sep 2014 22:08:10 +0000 (22:08 +0000)]
Merge "Fix null pointer dereference" into lmp-dev

9 years agoFix null pointer dereference
Marco Nelissen [Wed, 17 Sep 2014 19:38:33 +0000 (12:38 -0700)]
Fix null pointer dereference

Bug: 17544813
Change-Id: I6c94cd3056a99bb42fc71ee583938a2e3806fdc7

9 years agoaudioflinger: remove debug log.
Eric Laurent [Wed, 17 Sep 2014 19:30:19 +0000 (12:30 -0700)]
audioflinger: remove debug log.

Remove debug log left by commit ab5cdbaf.

bug: 17537746.
Change-Id: I10f672f607f8e87caaa8228fc05eff8aee7dfa15

9 years agoMerge "mediaplayer: reset flags when pre-reading multiple buffers" into lmp-dev
Lajos Molnar [Wed, 17 Sep 2014 19:08:24 +0000 (19:08 +0000)]
Merge "mediaplayer: reset flags when pre-reading multiple buffers" into lmp-dev

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 agoPlaylistFetcher:don't signal a/v eos on subttitle eos
Robert Shih [Mon, 15 Sep 2014 20:36:30 +0000 (13:36 -0700)]
PlaylistFetcher:don't signal a/v eos on subttitle eos

Bug: 17310061
Change-Id: Ifbca3c12f21171a6e429dca51a250a41051fdd34

9 years agoAdd support for ANDROID_LOOP to NuPlayer
Marco Nelissen [Tue, 16 Sep 2014 22:43:44 +0000 (15:43 -0700)]
Add support for ANDROID_LOOP to NuPlayer

Bug: 17518139
Change-Id: I9355ddd4c998d967013dd8bd32d670a9a83dea31

9 years agomediaplayer: reset flags when pre-reading multiple buffers
Marco Nelissen [Wed, 17 Sep 2014 04:32:33 +0000 (21:32 -0700)]
mediaplayer: reset flags when pre-reading multiple buffers

Bug: 17521470
Change-Id: I15ee9b1d3dd4ad29f4961a642f7fadafd9fe5b24

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