OSDN Git Service

android-x86/frameworks-av.git
7 years agoMerge "aaudio: only use MMAP for low latency perf mode" into oc-dr1-dev
TreeHugger Robot [Wed, 5 Jul 2017 23:04:33 +0000 (23:04 +0000)]
Merge "aaudio:  only use MMAP for low latency perf mode" into oc-dr1-dev

7 years agoaaudio: only use MMAP for low latency perf mode
Phil Burk [Wed, 5 Jul 2017 20:54:32 +0000 (13:54 -0700)]
aaudio:  only use MMAP for low latency perf mode

This is a quick workaround that just disables MMAP mode unless
performance mode is LOW_LATENCY.

Bug: 63176221
Test: use write_sine and change performance mode
Change-Id: Ic17ad45366d51d86fb4801c84ada4f6f82b5ff98

7 years agoaaudio: return channelCount in legacy stream
Phil Burk [Wed, 5 Jul 2017 19:57:58 +0000 (12:57 -0700)]
aaudio: return channelCount in legacy stream

Bug: 63336407
Test: Use input_monitor.cpp and set requested channel count to zero
Change-Id: Ibe7688bb94e0142ee0779c74ddec62c9552efb79

7 years agoaaudio: enable exclusive MMAP mode support
Eric Laurent [Fri, 30 Jun 2017 23:06:16 +0000 (16:06 -0700)]
aaudio: enable exclusive MMAP mode support

Allow exclusive MMAP mode only if the HAL indicates
that the FD returned for shared memory buffer can be shared
with any application.

NOTE: the way the HAL indicates this is temporary until the audio
HAL is modified in next HIDL release.

Bug: 37167970
Test: check playback and capture in mmap exclusive and shared mode
Change-Id: I09c1461b2f99532ded2ef9d36d483b82096fda68

7 years agoaaudio: improved dumpsys
Phil Burk [Fri, 30 Jun 2017 01:12:36 +0000 (18:12 -0700)]
aaudio: improved dumpsys

Add more information about various streams and endpoints.

Bug: 38396780
Test: adb shell dumpsys media.aaudio
Change-Id: I5cc116574bfc3aa93703c182d933dbdfcbefad7a

7 years agoMerge "aaudio: limit number of streams per process" into oc-dr1-dev
TreeHugger Robot [Sat, 1 Jul 2017 19:52:04 +0000 (19:52 +0000)]
Merge "aaudio: limit number of streams per process" into oc-dr1-dev

7 years agoaaudio: limit number of streams per process
Phil Burk [Fri, 30 Jun 2017 19:23:05 +0000 (12:23 -0700)]
aaudio: limit number of streams per process

Testing the new max streams restriction revealed the bug
involving the second shared stream.

Bug: 62951298
Bug: 63171495
Test: test_n_streams.cpp can open MAX_STREAMS_PER_PROCESS MMAP streams
Change-Id: Ibea7d9c4716326a37c669954b52f397ed2968caa

7 years agoMerge "aaudio: disconnect when onTearDown() called" into oc-dr1-dev
TreeHugger Robot [Sat, 1 Jul 2017 05:31:56 +0000 (05:31 +0000)]
Merge "aaudio: disconnect when onTearDown() called" into oc-dr1-dev

7 years agoMerge "Revert "Revert "media: Globaly adjust timestamp to make sure all tracks' time...
TreeHugger Robot [Sat, 1 Jul 2017 03:29:48 +0000 (03:29 +0000)]
Merge "Revert "Revert "media: Globaly adjust timestamp to make sure all tracks' time are align""" into oc-dr1-dev

7 years agoaaudio: disconnect when onTearDown() called
Phil Burk [Fri, 30 Jun 2017 18:43:37 +0000 (11:43 -0700)]
aaudio: disconnect when onTearDown() called

It will be called, for example, when switching from speaker to Bluetooth.

Bug: 62883778
Test: run a long app and switch to or from Bluetooth
Change-Id: Iafb9b52d85c30fee71de46abfb99a27a1daabf59

7 years agoMerge "aaudio: fix resource leak in client tracking" into oc-dr1-dev
TreeHugger Robot [Sat, 1 Jul 2017 03:03:58 +0000 (03:03 +0000)]
Merge "aaudio: fix resource leak in client tracking" into oc-dr1-dev

7 years agoMerge "aaudio: fix mixer volume" into oc-dr1-dev
TreeHugger Robot [Sat, 1 Jul 2017 02:03:50 +0000 (02:03 +0000)]
Merge "aaudio: fix mixer volume" into oc-dr1-dev

7 years agoMerge "aaudio: modify endpoint sharing logic" into oc-dr1-dev
TreeHugger Robot [Sat, 1 Jul 2017 01:59:37 +0000 (01:59 +0000)]
Merge "aaudio: modify endpoint sharing logic" into oc-dr1-dev

7 years agoMerge "Audio routing: Fix notification routing during A11y playback" into oc-dr1-dev
TreeHugger Robot [Sat, 1 Jul 2017 01:07:39 +0000 (01:07 +0000)]
Merge "Audio routing: Fix notification routing during A11y playback" into oc-dr1-dev

7 years agoaaudio: fix mixer volume
Phil Burk [Fri, 30 Jun 2017 23:48:15 +0000 (16:48 -0700)]
aaudio: fix mixer volume

Bug: 63176151
Test: play write_sine.cpp in both legacy and MMAP modes
Change-Id: If5fb61fe959dbc361ff8f95ca3d743e877800163

7 years agoAudio routing: Fix notification routing during A11y playback
Jean-Michel Trivi [Fri, 30 Jun 2017 21:50:01 +0000 (14:50 -0700)]
Audio routing: Fix notification routing during A11y playback

When notifications are played, the audio policy checks if media
  is playing for deciding which devices will play it. In the
  absence of media, the notification is duplicated on speaker
  and headset. With media playing, the notification routing
  is set to that of the media strategy.
The bug is observed during A11y playback on headset with a
  notification playing: A11y is playing on headset, but the
  device can't play the notification on speaker + headset at
  the same time, resulting in the notification playing in and
  out based on the A11y playback in headset.
The fix is to also consider A11y activity when routing
  notification playback (under STRATEGY_SONIFICATION_RESPECTFUL).
  This improves the UX the notification is not missed, and
  doesn't cut in and out.

Test: play Talkback on headset, receive notification at the same time.
Bug: 62907561
Change-Id: Ib924ec41cb7e16d6f2686d8615facba08e256ade

7 years agoaaudio: modify endpoint sharing logic
Eric Laurent [Thu, 29 Jun 2017 22:43:55 +0000 (15:43 -0700)]
aaudio: modify endpoint sharing logic

A new Client stream in shared mode can share an existing endpoint
if it has no preferences or compatible device, sample rate and channel
count requests.

Bug: 62961537
Test: play and capture with AAudio in mmap mode
Change-Id: I38536fb486dfc06f4399f7d02248384583fd3a17

7 years agoRevert "Revert "media: Globaly adjust timestamp to make sure all tracks' time are...
Hangyu Kuang [Fri, 30 Jun 2017 18:06:43 +0000 (11:06 -0700)]
Revert "Revert "media: Globaly adjust timestamp to make sure all tracks' time are align""

Test: Video Recording.
This reverts commit 59f57541aee1221dd552a202c8a35d799d34979c.

Change-Id: I38e6252743235900d0cff3408d8f7f4690a2ae77

7 years agoaaudio: fix resource leak in client tracking
Phil Burk [Fri, 30 Jun 2017 17:28:20 +0000 (10:28 -0700)]
aaudio: fix resource leak in client tracking

Was using the wrong pid.

Bug: 38267698
Test: run an aaudio example like write_sine.cpp and control-C in the middle
Change-Id: I8819fcdd78354554b926d8b8a59efa1a81fed110

7 years agoMerge "aaudio: close MMAP stream if client dies" into oc-dr1-dev
TreeHugger Robot [Fri, 30 Jun 2017 06:49:24 +0000 (06:49 +0000)]
Merge "aaudio: close MMAP stream if client dies" into oc-dr1-dev

7 years agoaaudio: close MMAP stream if client dies
Phil Burk [Wed, 24 May 2017 16:59:02 +0000 (09:59 -0700)]
aaudio: close MMAP stream if client dies

Notify client when audio service dies. Clear connection.
Notify AAudio service when client dies. Close client streams.

Use sp<> to track ServiceStreams.

Bug: 38267698
Test: test_no_close.cpp
Change-Id: I5f1699ed3b8b7bd960947c0028a89ca8419ce7a0

7 years agoMerge "Camera: adjust inflight list warning threshold" into oc-dr1-dev
Yin-Chia Yeh [Fri, 30 Jun 2017 01:51:47 +0000 (01:51 +0000)]
Merge "Camera: adjust inflight list warning threshold" into oc-dr1-dev

7 years agoMerge "aaudio: prevent apps from affecting a stream they do not own" into oc-dr1-dev
Phil Burk [Fri, 30 Jun 2017 00:18:17 +0000 (00:18 +0000)]
Merge "aaudio: prevent apps from affecting a stream they do not own" into oc-dr1-dev

7 years agoCamera: adjust inflight list warning threshold
Yin-Chia Yeh [Thu, 29 Jun 2017 20:22:12 +0000 (13:22 -0700)]
Camera: adjust inflight list warning threshold

Test: logspew is gone, CTS
Bug: 63113636
Change-Id: Id663dbdb80439e80ca268986051a8196b31db227

7 years agoMerge changes from topic 'b/62420820' into oc-dr1-dev
TreeHugger Robot [Thu, 29 Jun 2017 19:20:11 +0000 (19:20 +0000)]
Merge changes from topic 'b/62420820' into oc-dr1-dev

* changes:
  Camera: Device 3: Ignore buffer limits when clearing request queue
  Camera: fix status tracker race condition

7 years agoaaudio: prevent apps from affecting a stream they do not own
Phil Burk [Fri, 23 Jun 2017 21:51:14 +0000 (14:51 -0700)]
aaudio: prevent apps from affecting a stream they do not own

Bug: 62951648
Test: need test that hacks a stream handle from another user ID
Change-Id: I342f2a4cf9350c949f346b3c867d7f9e035c76b4

7 years agoMerge "AAudioService: add dumpsys capability" into oc-dr1-dev
Andy Hung [Thu, 29 Jun 2017 05:04:07 +0000 (05:04 +0000)]
Merge "AAudioService: add dumpsys capability" into oc-dr1-dev

7 years agoMerge "prevent preempting overlapping sound trigger audio streams" into oc-dr1-dev
TreeHugger Robot [Thu, 29 Jun 2017 03:03:44 +0000 (03:03 +0000)]
Merge "prevent preempting overlapping sound trigger audio streams" into oc-dr1-dev

7 years agoCamera: Device 3: Ignore buffer limits when clearing request queue
Eino-Ville Talvala [Wed, 21 Jun 2017 23:07:25 +0000 (16:07 -0700)]
Camera: Device 3: Ignore buffer limits when clearing request queue

When abortCaptures is called, the request queue is cleared; as part of that,
any requests with input buffers trigger the removal and return of one input
buffer from the input stream.

However, if the HAL currently is processing some number of reprocess
requests, the stream's max buffer limit may have been reached, in
which case getInputBuffer will block until the HAL returns an input
buffer.  This stalls flushing (and calling of capture_request) for
some time, and seems to cause problems for the HAL during the flush.

So instead, don't respect the HAL's max buffer limit when all we're
doing is throwing work away.

Test: CTS, manual testing
Bug: 62420820
Change-Id: I72d8cdaf67fb3cc6876a03cee9e0021d95cecdfe

7 years agoMerge "Revert "media: Globaly adjust timestamp to make sure all tracks' time are...
Zhijun He [Thu, 29 Jun 2017 00:06:03 +0000 (00:06 +0000)]
Merge "Revert "media: Globaly adjust timestamp to make sure all tracks' time are align"" into oc-dr1-dev

7 years agoRevert "media: Globaly adjust timestamp to make sure all tracks' time are align"
Zhijun He [Thu, 29 Jun 2017 00:04:25 +0000 (00:04 +0000)]
Revert "media: Globaly adjust timestamp to make sure all tracks' time are align"

This reverts commit 40855085232566727e31de1ca8199275c6e2b393.

Change-Id: If41a07089a36eec95bcf1b2e14a5747f7733b6f5

7 years agoAAudioService: add dumpsys capability
Andy Hung [Tue, 27 Jun 2017 01:28:00 +0000 (18:28 -0700)]
AAudioService: add dumpsys capability

Test: adb shell dumpsys media.aaudio
Bug: 38396780
Change-Id: I8b5c421bdd1b3228d8140816a68740709aa9757b

7 years agoMerge "Audio policy: fix volume change on DEVICE_OUT_SPEAKER_SAFE" into oc-dr1-dev
TreeHugger Robot [Wed, 28 Jun 2017 21:33:00 +0000 (21:33 +0000)]
Merge "Audio policy: fix volume change on DEVICE_OUT_SPEAKER_SAFE" into oc-dr1-dev

7 years agoCamera: fix status tracker race condition
Yin-Chia Yeh [Wed, 28 Jun 2017 00:13:33 +0000 (17:13 -0700)]
Camera: fix status tracker race condition

Request thread may race with disconnect call when device is
disconnected in error condition. Acquire mLock when camera
device is updating status tracker to prevent that race
(status tracker being freed and then updated).
In other places where status tracker is updated, there is
a promoted sp to guarantee status tracker remain alive during
the call.

Test: CTS, manual camera testing
Bug: 62420820
Change-Id: Id894b5d3482c64125c114f79dbe746c56048fcbe

7 years agoprevent preempting overlapping sound trigger audio streams
Chris Thornton [Wed, 28 Jun 2017 04:26:07 +0000 (21:26 -0700)]
prevent preempting overlapping sound trigger audio streams

If the sound trigger hal indicates that concurrent_capture is true, the
stream should not be preempted when when another sound trigger stream is
opened.

Test: Verify that multiple streams are not closed when triggered by
different engines.
Bug: 35956563

Change-Id: I3d5df136403e47fcc1280f63b25216f326b74d6f

7 years agoCamera: fix camera status after HAL crash
Yin-Chia Yeh [Wed, 28 Jun 2017 02:04:48 +0000 (19:04 -0700)]
Camera: fix camera status after HAL crash

When camera HAL dies and cameraserver is still alive, make sure
we update camera status after HAL re-register itself.

Test: kill hal process and run camera app, CTS
Bug: 63058983
Change-Id: Iba7e6cbebb674994c905f7feb1776acc479b612f

7 years agomedia: Globaly adjust timestamp to make sure all tracks' time are align
Hangyu Kuang [Fri, 23 Jun 2017 23:23:14 +0000 (16:23 -0700)]
media: Globaly adjust timestamp to make sure all tracks' time are align

This workaround should be removed once implement edit list.

Bug:62533717
Test: Camera Recording
Change-Id: Id2eb0c3bcb829bb4e48336fada74c0bfc951b304

7 years agoMerge "Fix IAAudioService interface" into oc-dr1-dev
Andy Hung [Wed, 28 Jun 2017 04:20:21 +0000 (04:20 +0000)]
Merge "Fix IAAudioService interface" into oc-dr1-dev

7 years agoAudio policy: fix volume change on DEVICE_OUT_SPEAKER_SAFE
Jean-Michel Trivi [Wed, 28 Jun 2017 02:38:42 +0000 (19:38 -0700)]
Audio policy: fix volume change on DEVICE_OUT_SPEAKER_SAFE

When changing stream volume, compare given device and current device
  for stream both as filtered through Volume::getDeviceForVolume.
This behavior matters for Android devices playing notifications and
  ringtones on the AUDIO_DEVICE_OUT_SPEAKER_SAFE, which is filtered
  out for volumes (see Volume.h for getDeviceForVolume() method).

Test: play a ringtone and modify volume with vol keys
Bug: 63004956
Change-Id: I139099f34e0ab091fd0ea761c75949656549f77a

7 years agoMerge "MPEG4Writer: initialize track start time" into oc-dr1-dev
TreeHugger Robot [Wed, 28 Jun 2017 00:41:47 +0000 (00:41 +0000)]
Merge "MPEG4Writer: initialize track start time" into oc-dr1-dev

7 years agoFix IAAudioService interface
Andy Hung [Tue, 27 Jun 2017 23:17:40 +0000 (16:17 -0700)]
Fix IAAudioService interface

Do not call data.checkInterface(this) unless needed,
and properly handle invalid interface.

This prevents stripping the file descriptor from the dump()
binder call.

Test: adb shell dumpsys media.aaudio
Bug: 38396780
Change-Id: I14c847e098145f49d4d5732787d3cc435dd05226

7 years agoMerge "Set initial audio device for AudioTrack and AudioRecord" into oc-dr1-dev
TreeHugger Robot [Tue, 27 Jun 2017 01:18:39 +0000 (01:18 +0000)]
Merge "Set initial audio device for AudioTrack and AudioRecord" into oc-dr1-dev

7 years agoMerge changes from topic 'fix-omx-dependencies' into oc-dr1-dev
TreeHugger Robot [Mon, 26 Jun 2017 17:54:11 +0000 (17:54 +0000)]
Merge changes from topic 'fix-omx-dependencies' into oc-dr1-dev

* changes:
  Fix OMX dependencies.
  Use vendor variant of libstagefright_foundation.

7 years agoMerge "AudioTrack: explain why FAST mixer denied" into oc-dr1-dev
Phil Burk [Mon, 26 Jun 2017 17:03:37 +0000 (17:03 +0000)]
Merge "AudioTrack: explain why FAST mixer denied" into oc-dr1-dev

7 years agoSet initial audio device for AudioTrack and AudioRecord
Eric Laurent [Fri, 23 Jun 2017 00:17:09 +0000 (17:17 -0700)]
Set initial audio device for AudioTrack and AudioRecord

Bug: 62090113
Test: run AAudio test and verify a valid device is reported just
after opening playback or capture streams in legacy mode.

Merged-In: Ic8be42e1735690eb00c811ef0cb8b5abb36172d6

Change-Id: Ic8be42e1735690eb00c811ef0cb8b5abb36172d6

7 years agoFix OMX dependencies.
Steven Moreland [Thu, 8 Jun 2017 01:18:09 +0000 (18:18 -0700)]
Fix OMX dependencies.

Note, filed b/62923763 to cleanup xmlparser includes.

Bug: 37343418
Test: builds with BOARD_VNDK_VERSION=current
Test: (sanity) YouTube on a device
Test: (sanity) Camera on a device
Test: (sanity) watch (part of a) movie on a device
Test: (sanity) YouTube on marlin
Test: (sanity) Camera on marlin
Test: (sanity) watch (part of a) movie on marlin
Test: (sanity) YouTube on angler
Test: (sanity) Camera on angler
Test: (sanity) watch (part of a) movie on angler

Change-Id: I461f999122da56cabb9d4d15b182899ced3b0120

7 years agoaaudio: fix CTS for MMAP mode
Phil Burk [Tue, 20 Jun 2017 22:05:06 +0000 (15:05 -0700)]
aaudio: fix CTS for MMAP mode

Improve calculation of buffer capacity based on requested minimum.
Adjust timing of start() to reduce underflows.
Track ServiceEndpoints based on requested deviceId.
Fix getFramesRead() and flush() behavior.
Fix timeouts due to ClockModel lateness bug.
Misc cleanup.

Bug: 37755299
Test: test_aaudio.cpp
Change-Id: I637c16e87fbe14b6f28c60aeea0b9dfed965ecd0

7 years agoMerge "media: Signal no more frames to read in AudioSource" into oc-dr1-dev
TreeHugger Robot [Sat, 24 Jun 2017 03:28:45 +0000 (03:28 +0000)]
Merge "media: Signal no more frames to read in AudioSource" into oc-dr1-dev

7 years agoMerge "aaudio: implement IPlayer for MMAP playback streams" into oc-dr1-dev
TreeHugger Robot [Sat, 24 Jun 2017 01:23:45 +0000 (01:23 +0000)]
Merge "aaudio: implement IPlayer for MMAP playback streams" into oc-dr1-dev

7 years agoMerge "libaaudio: use shared library for tests and examples" into oc-dr1-dev
TreeHugger Robot [Sat, 24 Jun 2017 01:04:23 +0000 (01:04 +0000)]
Merge "libaaudio: use shared library for tests and examples" into oc-dr1-dev

7 years agoMPEG4Writer: initialize track start time
Robert Shih [Fri, 23 Jun 2017 22:56:44 +0000 (15:56 -0700)]
MPEG4Writer: initialize track start time

Bug: 62914344
Test: adb shell monkey -p com.google.android.GoogleCamera \
  -c android.intent.category.LAUNCHER \
  --ignore-security-exceptions \
  --monitor-native-crashes -s 389 -v -v -v 125000

Change-Id: Iea06969b47dd07a212018faadefad04b3f95719e

7 years agoMerge "Camera: Add debug messages for camera latency" into oc-dev
Shuzhen Wang [Fri, 23 Jun 2017 22:51:51 +0000 (22:51 +0000)]
Merge "Camera: Add debug messages for camera latency" into oc-dev
am: b4bec13dca

Change-Id: Ifac57b6f2e0ebd41e5dc375b49a687e403d839e7

7 years agoMerge "Camera: Add debug messages for camera latency" into oc-dev
TreeHugger Robot [Fri, 23 Jun 2017 22:41:44 +0000 (22:41 +0000)]
Merge "Camera: Add debug messages for camera latency" into oc-dev

7 years agomedia: Signal no more frames to read in AudioSource
Hangyu Kuang [Fri, 23 Jun 2017 20:09:26 +0000 (13:09 -0700)]
media: Signal no more frames to read in AudioSource

This will unblock the MediaCodecSource on reading the frame.

Bug:62328917
Test: Camera recording.
Change-Id: I4fa67ad6a844c87e2be2733cb2d9a96def336196

7 years agoCamera: Add debug messages for camera latency
Shuzhen Wang [Tue, 20 Jun 2017 23:16:04 +0000 (16:16 -0700)]
Camera: Add debug messages for camera latency

Log latency histogram of:
- processCaptureRequest call,
- dequeueBuffer call, and
- waiting time for handout count fall below max_buffers

Test: Camera CTS
Bug: 62651109
Change-Id: I5ee1cdb4139fa359f0887d6f6871884e28739340

7 years agoUse vendor variant of libstagefright_foundation.
Steven Moreland [Fri, 23 Jun 2017 00:11:15 +0000 (17:11 -0700)]
Use vendor variant of libstagefright_foundation.

Rather than having a lib called libstagefright_foundation and one
called libstagefright_foundation_vendor, we now just have one library
and the build system keeps track of the vendor APIs that are exposed.

Test: (sanity) boot device, watch (part of) DRM protected movie.
Change-Id: I49f1c557ae8f93092bad5314e0630583cc7dc710

7 years agoMerge "Made libcamera_client export include dir" into oc-dr1-dev
Vijay Venkatraman [Fri, 23 Jun 2017 00:29:20 +0000 (00:29 +0000)]
Merge "Made libcamera_client export include dir" into oc-dr1-dev

7 years agoFix null pointer dereference.
Tomasz Wasilczyk [Thu, 22 Jun 2017 23:29:00 +0000 (23:29 +0000)]
Fix null pointer dereference.
am: d0b096052c

Change-Id: I0a9858e8351742a5e440fd2aa886b12ede0b433e

7 years agolibaaudio: use shared library for tests and examples
Phil Burk [Thu, 22 Jun 2017 23:26:36 +0000 (16:26 -0700)]
libaaudio: use shared library for tests and examples

They were statically linking with libaaudio.

Bug: 62820459
Test: mmm frameworks/av/media/libaaudio
Change-Id: Ie704dd6c9d12b00c3f16f30d296468c9b5b42776

7 years agoMerge "aaudio: add validation to improve security" into oc-dr1-dev
TreeHugger Robot [Thu, 22 Jun 2017 22:53:40 +0000 (22:53 +0000)]
Merge "aaudio: add validation to improve security" into oc-dr1-dev

7 years agoaaudio: add validation to improve security
Phil Burk [Fri, 26 May 2017 23:05:02 +0000 (16:05 -0700)]
aaudio: add validation to improve security

Check for obviously bad values to prevent common exploits.

Bug: 38205290
Test: CTS test_aaudio.cpp
Change-Id: Ic650dbfbcbb9b87a89aae080ee72910ab2c9409b
Signed-off-by: Phil Burk <philburk@google.com>
7 years agoFix null pointer dereference.
Tomasz Wasilczyk [Thu, 22 Jun 2017 20:27:11 +0000 (13:27 -0700)]
Fix null pointer dereference.

Bug: b/62282239
Test: vendor verified it
Change-Id: I9d8560f07044c83f6ab58ef534514061f900319e

7 years agoAudioTrack: explain why FAST mixer denied
Phil Burk [Fri, 16 Jun 2017 19:19:42 +0000 (12:19 -0700)]
AudioTrack: explain why FAST mixer denied

Also for AudioRecord

Bug: 62692443
Test: write_sine.cpp
Change-Id: I5b281476af4703798129df66584d813b9a8db8bb
Signed-off-by: Phil Burk <philburk@google.com>
7 years agoaaudio: implement IPlayer for MMAP playback streams
Eric Laurent [Thu, 22 Jun 2017 01:51:47 +0000 (18:51 -0700)]
aaudio: implement IPlayer for MMAP playback streams

Make AudioStreamInternal derive from PlayerBase to
provide playback and volume control via IPlayer interface.

Bug: 62027849
Test: verify aaudio playback in MMAP mode and registration of aaudio
players in AudioService when active

Change-Id: Ia0878d46637c0a954d8a6259868a2d3bccf19119

7 years agoMerge "APM: Allow VOIP_TX input selection" into oc-dr1-dev
TreeHugger Robot [Wed, 21 Jun 2017 20:50:20 +0000 (20:50 +0000)]
Merge "APM: Allow VOIP_TX input selection" into oc-dr1-dev

7 years agoChange MPEG2 reinit Error Handling am: a67eacace7 am: a16f5a1fb3 am: 1c0389cc5f am...
Venkatarama Avadhani [Wed, 21 Jun 2017 17:02:46 +0000 (17:02 +0000)]
Change MPEG2 reinit Error Handling am: a67eacace7 am: a16f5a1fb3 am: 1c0389cc5f am: 4ff3666a51 am: b56bc9e762 am: f36fb2deb3 am: 25c4535f04 am: b866f43754 am: 7a22cc8944
am: 4226c955b6

Change-Id: If43d207f376ff9af9ae63644ce9359a244988f7f

7 years agoChange MPEG2 reinit Error Handling am: a67eacace7 am: a16f5a1fb3 am: 1c0389cc5f am...
Venkatarama Avadhani [Wed, 21 Jun 2017 17:00:18 +0000 (17:00 +0000)]
Change MPEG2 reinit Error Handling am: a67eacace7 am: a16f5a1fb3 am: 1c0389cc5f am: 4ff3666a51 am: b56bc9e762 am: f36fb2deb3 am: 25c4535f04 am: b866f43754
am: 7a22cc8944

Change-Id: Idd82dbb633faaef7e78fb2d1082b91269926e675

7 years agoChange MPEG2 reinit Error Handling am: a67eacace7 am: a16f5a1fb3 am: 1c0389cc5f am...
Venkatarama Avadhani [Wed, 21 Jun 2017 16:57:45 +0000 (16:57 +0000)]
Change MPEG2 reinit Error Handling am: a67eacace7 am: a16f5a1fb3 am: 1c0389cc5f am: 4ff3666a51 am: b56bc9e762 am: f36fb2deb3 am: 25c4535f04
am: b866f43754

Change-Id: I4c3070b63449a82ebcb6a2053c9bc1c1563c1787

7 years agoChange MPEG2 reinit Error Handling am: a67eacace7 am: a16f5a1fb3 am: 1c0389cc5f am...
Venkatarama Avadhani [Wed, 21 Jun 2017 16:54:44 +0000 (16:54 +0000)]
Change MPEG2 reinit Error Handling am: a67eacace7 am: a16f5a1fb3 am: 1c0389cc5f am: 4ff3666a51 am: b56bc9e762 am: f36fb2deb3
am: 25c4535f04

Change-Id: I0b085ef570fdd3a9f9a61428e6ea66ec98bdf6cd

7 years agoChange MPEG2 reinit Error Handling am: a67eacace7 am: a16f5a1fb3 am: 1c0389cc5f am...
Venkatarama Avadhani [Wed, 21 Jun 2017 16:52:13 +0000 (16:52 +0000)]
Change MPEG2 reinit Error Handling am: a67eacace7 am: a16f5a1fb3 am: 1c0389cc5f am: 4ff3666a51 am: b56bc9e762
am: f36fb2deb3

Change-Id: Ie0786d3f1896e42c9ee879e3f43943641bc503b1

7 years agoChange MPEG2 reinit Error Handling am: a67eacace7 am: a16f5a1fb3 am: 1c0389cc5f am...
Venkatarama Avadhani [Wed, 21 Jun 2017 16:49:43 +0000 (16:49 +0000)]
Change MPEG2 reinit Error Handling am: a67eacace7 am: a16f5a1fb3 am: 1c0389cc5f am: 4ff3666a51
am: b56bc9e762

Change-Id: Id27edb4426a7c4c2fad7bac2582663667d58ad75

7 years agoChange MPEG2 reinit Error Handling am: a67eacace7 am: a16f5a1fb3 am: 1c0389cc5f
Venkatarama Avadhani [Wed, 21 Jun 2017 16:46:43 +0000 (16:46 +0000)]
Change MPEG2 reinit Error Handling am: a67eacace7 am: a16f5a1fb3 am: 1c0389cc5f
am: 4ff3666a51

Change-Id: Ide20e7836e3feff6eb5aa7ce5c533277af243b6b

7 years agoChange MPEG2 reinit Error Handling am: a67eacace7 am: a16f5a1fb3
Venkatarama Avadhani [Wed, 21 Jun 2017 16:44:12 +0000 (16:44 +0000)]
Change MPEG2 reinit Error Handling am: a67eacace7 am: a16f5a1fb3
am: 1c0389cc5f

Change-Id: I1331b4b2263d956de7de7e882cf38d4ddb743a8b

7 years agoChange MPEG2 reinit Error Handling am: a67eacace7
Venkatarama Avadhani [Wed, 21 Jun 2017 16:41:12 +0000 (16:41 +0000)]
Change MPEG2 reinit Error Handling am: a67eacace7
am: a16f5a1fb3

Change-Id: Id5c3640af7130aeadf6e5f810cdb2f79690a6428

7 years agoChange MPEG2 reinit Error Handling
Venkatarama Avadhani [Wed, 21 Jun 2017 16:38:41 +0000 (16:38 +0000)]
Change MPEG2 reinit Error Handling
am: a67eacace7

Change-Id: I7ba8378fe66c57f595fee2368408cc426d3e5eaf

7 years agoChange MPEG2 reinit Error Handling
Venkatarama Avadhani [Tue, 30 May 2017 10:31:11 +0000 (16:01 +0530)]
Change MPEG2 reinit Error Handling

Changing reinit handling to not notify error in case init fails.

Bug: 37237396
Test: ran poc before/after on nyc-mr2
Change-Id: I694a9d2ccee7622d9c736efac12c9ec8639911f4

7 years agoAPM: Allow VOIP_TX input selection
Haynes Mathew George [Tue, 20 Jun 2017 03:01:57 +0000 (20:01 -0700)]
APM: Allow VOIP_TX input selection

Set flag to select VOIP_TX input profile if input source
is VOICE_COMMUNICATION and phone state is MODE_IN_COMMUNICATION

Bug: 62495679
Test: Hangout call
Change-Id: I3b1bb9fbcdd5687ebb002facf0684983333e9a53

7 years agoMerge "audio policy config: add USB_HEADSET device" into oc-dr1-dev
TreeHugger Robot [Tue, 20 Jun 2017 17:10:15 +0000 (17:10 +0000)]
Merge "audio policy config: add USB_HEADSET device" into oc-dr1-dev

7 years agoMerge "OMX Hal: depend on libavservices_minijail_vendor." into oc-dr1-dev
TreeHugger Robot [Mon, 19 Jun 2017 21:17:19 +0000 (21:17 +0000)]
Merge "OMX Hal: depend on libavservices_minijail_vendor." into oc-dr1-dev

7 years agoTrack: Check buffer size of static tracks am: cf39f0e67a am: 6790e790ef am: 6235afe24...
Andy Hung [Mon, 19 Jun 2017 18:17:53 +0000 (18:17 +0000)]
Track: Check buffer size of static tracks am: cf39f0e67a am: 6790e790ef am: 6235afe24e  -s ours am: abbc9ab006  -s ours am: 81c98dbb7e  -s ours am: 3ab2ec59a1  -s ours am: 346941bcde  -s ours am: af5d0135db  -s ours am: a816170b85  -s ours am: adf9f84880  -s ours am: bf5cbd0298  -s ours am: 036d7252a2  -s ours am: 5e3fb0f4ea  -s ours am: ec3e56c07c  -s ours am: c786f7b12c  -s ours
am: 3c956b6c20  -s ours

Change-Id: I5f41bb3b89940668e2d79a3f9a25dbc5e66b8a9e

7 years agoTrack: Check buffer size of static tracks am: cf39f0e67a am: 6790e790ef am: 6235afe24...
Andy Hung [Mon, 19 Jun 2017 18:11:50 +0000 (18:11 +0000)]
Track: Check buffer size of static tracks am: cf39f0e67a am: 6790e790ef am: 6235afe24e  -s ours am: abbc9ab006  -s ours am: 81c98dbb7e  -s ours am: 3ab2ec59a1  -s ours am: 346941bcde  -s ours am: af5d0135db  -s ours am: a816170b85  -s ours am: adf9f84880  -s ours am: bf5cbd0298  -s ours am: 036d7252a2  -s ours am: 5e3fb0f4ea  -s ours am: ec3e56c07c  -s ours
am: c786f7b12c  -s ours

Change-Id: I7b780dec96d68a5825ee615eac0f53669ed95633

7 years agoTrack: Check buffer size of static tracks am: cf39f0e67a am: 6790e790ef am: 6235afe24...
Andy Hung [Mon, 19 Jun 2017 18:06:23 +0000 (18:06 +0000)]
Track: Check buffer size of static tracks am: cf39f0e67a am: 6790e790ef am: 6235afe24e  -s ours am: abbc9ab006  -s ours am: 81c98dbb7e  -s ours am: 3ab2ec59a1  -s ours am: 346941bcde  -s ours am: af5d0135db  -s ours am: a816170b85  -s ours am: adf9f84880  -s ours am: bf5cbd0298  -s ours am: 036d7252a2  -s ours am: 5e3fb0f4ea  -s ours
am: ec3e56c07c  -s ours

Change-Id: Ia73b217f31584f88281feeecdc2dd2e777689b53

7 years agoTrack: Check buffer size of static tracks am: cf39f0e67a am: 6790e790ef am: 6235afe24...
Andy Hung [Mon, 19 Jun 2017 18:00:22 +0000 (18:00 +0000)]
Track: Check buffer size of static tracks am: cf39f0e67a am: 6790e790ef am: 6235afe24e  -s ours am: abbc9ab006  -s ours am: 81c98dbb7e  -s ours am: 3ab2ec59a1  -s ours am: 346941bcde  -s ours am: af5d0135db  -s ours am: a816170b85  -s ours am: adf9f84880  -s ours am: bf5cbd0298  -s ours am: 036d7252a2  -s ours
am: 5e3fb0f4ea  -s ours

Change-Id: I0f4832541054a74d2c9513f76fdb569d5f4757bc

7 years agoTrack: Check buffer size of static tracks am: cf39f0e67a am: 6790e790ef am: 6235afe24...
Andy Hung [Mon, 19 Jun 2017 17:54:52 +0000 (17:54 +0000)]
Track: Check buffer size of static tracks am: cf39f0e67a am: 6790e790ef am: 6235afe24e  -s ours am: abbc9ab006  -s ours am: 81c98dbb7e  -s ours am: 3ab2ec59a1  -s ours am: 346941bcde  -s ours am: af5d0135db  -s ours am: a816170b85  -s ours am: adf9f84880  -s ours am: bf5cbd0298  -s ours
am: 036d7252a2  -s ours

Change-Id: I11197aeda9bf78225b66d31794c239b36a35dbee

7 years agoMerge "Track: Check buffer size of static tracks" into lmp-dev am: 782a30d2ab am...
Andy Hung [Mon, 19 Jun 2017 17:54:51 +0000 (17:54 +0000)]
Merge "Track: Check buffer size of static tracks" into lmp-dev am: 782a30d2ab am: a3416fc6b4 am: 42f2fab126 am: 483cf88382 am: f89b2427ad am: 7779f826d4 am: c343fd2846 am: 69b0154d59 am: 1d66db35e5 am: 849b3d0cdb am: ef0a06bae0 am: 9a5104ddf1
am: 1f3a28ec6b

Change-Id: I1243d98ca28b92b6d5f7a2e5a43c86f809cd4941

7 years agoTrack: Check buffer size of static tracks am: cf39f0e67a am: 6790e790ef am: 6235afe24...
Andy Hung [Mon, 19 Jun 2017 17:49:49 +0000 (17:49 +0000)]
Track: Check buffer size of static tracks am: cf39f0e67a am: 6790e790ef am: 6235afe24e  -s ours am: abbc9ab006  -s ours am: 81c98dbb7e  -s ours am: 3ab2ec59a1  -s ours am: 346941bcde  -s ours am: af5d0135db  -s ours am: a816170b85  -s ours am: adf9f84880  -s ours
am: bf5cbd0298  -s ours

Change-Id: I2caa1c9b39dd2c898e1652a5375fb82231e2347e

7 years agoMerge "Track: Check buffer size of static tracks" into lmp-dev am: 782a30d2ab am...
Andy Hung [Mon, 19 Jun 2017 17:49:48 +0000 (17:49 +0000)]
Merge "Track: Check buffer size of static tracks" into lmp-dev am: 782a30d2ab am: a3416fc6b4 am: 42f2fab126 am: 483cf88382 am: f89b2427ad am: 7779f826d4 am: c343fd2846 am: 69b0154d59 am: 1d66db35e5 am: 849b3d0cdb am: ef0a06bae0
am: 9a5104ddf1

Change-Id: Ia053b76c9dc3aa7d2e953bfc2eadadb40ea16b93

7 years agoTrack: Check buffer size of static tracks am: cf39f0e67a am: 6790e790ef am: 6235afe24...
Andy Hung [Mon, 19 Jun 2017 17:43:24 +0000 (17:43 +0000)]
Track: Check buffer size of static tracks am: cf39f0e67a am: 6790e790ef am: 6235afe24e  -s ours am: abbc9ab006  -s ours am: 81c98dbb7e  -s ours am: 3ab2ec59a1  -s ours am: 346941bcde  -s ours am: af5d0135db  -s ours am: a816170b85  -s ours
am: adf9f84880  -s ours

Change-Id: I960496e28d2f1c4d07a7679cc52fa820219db201

7 years agoMerge "Track: Check buffer size of static tracks" into lmp-dev am: 782a30d2ab am...
Andy Hung [Mon, 19 Jun 2017 17:43:24 +0000 (17:43 +0000)]
Merge "Track: Check buffer size of static tracks" into lmp-dev am: 782a30d2ab am: a3416fc6b4 am: 42f2fab126 am: 483cf88382 am: f89b2427ad am: 7779f826d4 am: c343fd2846 am: 69b0154d59 am: 1d66db35e5 am: 849b3d0cdb
am: ef0a06bae0

Change-Id: I05967a0f1c610d9cbcbc674de6f7c5551024b16d

7 years agoTrack: Check buffer size of static tracks am: cf39f0e67a am: 6790e790ef am: 6235afe24...
Andy Hung [Mon, 19 Jun 2017 17:36:48 +0000 (17:36 +0000)]
Track: Check buffer size of static tracks am: cf39f0e67a am: 6790e790ef am: 6235afe24e  -s ours am: abbc9ab006  -s ours am: 81c98dbb7e  -s ours am: 3ab2ec59a1  -s ours am: 346941bcde  -s ours am: af5d0135db  -s ours
am: a816170b85  -s ours

Change-Id: Icedb70113b6a28e84a040e0fecd281e63dbcade5

7 years agoMerge "Track: Check buffer size of static tracks" into lmp-dev am: 782a30d2ab am...
Andy Hung [Mon, 19 Jun 2017 17:36:44 +0000 (17:36 +0000)]
Merge "Track: Check buffer size of static tracks" into lmp-dev am: 782a30d2ab am: a3416fc6b4 am: 42f2fab126 am: 483cf88382 am: f89b2427ad am: 7779f826d4 am: c343fd2846 am: 69b0154d59 am: 1d66db35e5
am: 849b3d0cdb

Change-Id: Icad90fe25c2d54202216c28488f025ce76cedd3b

7 years agoTrack: Check buffer size of static tracks am: cf39f0e67a am: 6790e790ef am: 6235afe24...
Andy Hung [Mon, 19 Jun 2017 17:30:15 +0000 (17:30 +0000)]
Track: Check buffer size of static tracks am: cf39f0e67a am: 6790e790ef am: 6235afe24e  -s ours am: abbc9ab006  -s ours am: 81c98dbb7e  -s ours am: 3ab2ec59a1  -s ours am: 346941bcde  -s ours
am: af5d0135db  -s ours

Change-Id: I362165b142646d6cf2e8748bcbce5473bb0a40a7

7 years agoMerge "Track: Check buffer size of static tracks" into lmp-dev am: 782a30d2ab am...
Andy Hung [Mon, 19 Jun 2017 17:30:14 +0000 (17:30 +0000)]
Merge "Track: Check buffer size of static tracks" into lmp-dev am: 782a30d2ab am: a3416fc6b4 am: 42f2fab126 am: 483cf88382 am: f89b2427ad am: 7779f826d4 am: c343fd2846 am: 69b0154d59
am: 1d66db35e5

Change-Id: I962eeaea659e99f5a9f082ab2f479bbb4cface15

7 years agoMerge "Track: Check buffer size of static tracks" into lmp-dev am: 782a30d2ab am...
Andy Hung [Mon, 19 Jun 2017 17:24:11 +0000 (17:24 +0000)]
Merge "Track: Check buffer size of static tracks" into lmp-dev am: 782a30d2ab am: a3416fc6b4 am: 42f2fab126 am: 483cf88382 am: f89b2427ad am: 7779f826d4 am: c343fd2846
am: 69b0154d59

Change-Id: Ifbb0da32f562fe5b1001e5dc2fcc3490305e694e

7 years agoTrack: Check buffer size of static tracks am: cf39f0e67a am: 6790e790ef am: 6235afe24...
Andy Hung [Mon, 19 Jun 2017 17:23:43 +0000 (17:23 +0000)]
Track: Check buffer size of static tracks am: cf39f0e67a am: 6790e790ef am: 6235afe24e  -s ours am: abbc9ab006  -s ours am: 81c98dbb7e  -s ours am: 3ab2ec59a1  -s ours
am: 346941bcde  -s ours

Change-Id: I7e6d7a47ab766367c6ebba0ab30ca7f46e971dbc

7 years agoTrack: Check buffer size of static tracks am: cf39f0e67a am: 6790e790ef am: 6235afe24...
Andy Hung [Mon, 19 Jun 2017 17:18:47 +0000 (17:18 +0000)]
Track: Check buffer size of static tracks am: cf39f0e67a am: 6790e790ef am: 6235afe24e  -s ours am: abbc9ab006  -s ours am: 81c98dbb7e  -s ours
am: 3ab2ec59a1  -s ours

Change-Id: I005f78d30df5134d2d54b36a17ad768278a2c2b7

7 years agoMerge "Track: Check buffer size of static tracks" into lmp-dev am: 782a30d2ab am...
Andy Hung [Mon, 19 Jun 2017 17:18:42 +0000 (17:18 +0000)]
Merge "Track: Check buffer size of static tracks" into lmp-dev am: 782a30d2ab am: a3416fc6b4 am: 42f2fab126 am: 483cf88382 am: f89b2427ad am: 7779f826d4
am: c343fd2846

Change-Id: I72c4c8d74ffaa8b8bc03a265ae3ff06796bbeb5b

7 years agoTrack: Check buffer size of static tracks am: cf39f0e67a am: 6790e790ef am: 6235afe24...
Andy Hung [Mon, 19 Jun 2017 17:12:43 +0000 (17:12 +0000)]
Track: Check buffer size of static tracks am: cf39f0e67a am: 6790e790ef am: 6235afe24e  -s ours am: abbc9ab006  -s ours
am: 81c98dbb7e  -s ours

Change-Id: Ibb879c898fd820e2be6fcba55b0246a0645e62bf

7 years agoMerge "Track: Check buffer size of static tracks" into lmp-dev am: 782a30d2ab am...
Andy Hung [Mon, 19 Jun 2017 17:12:41 +0000 (17:12 +0000)]
Merge "Track: Check buffer size of static tracks" into lmp-dev am: 782a30d2ab am: a3416fc6b4 am: 42f2fab126 am: 483cf88382 am: f89b2427ad
am: 7779f826d4

Change-Id: I6ec7ea434317d8d3c38314a9dc49f6b620e0db9f

7 years agoTrack: Check buffer size of static tracks am: cf39f0e67a am: 6790e790ef am: 6235afe24...
Andy Hung [Mon, 19 Jun 2017 17:08:43 +0000 (17:08 +0000)]
Track: Check buffer size of static tracks am: cf39f0e67a am: 6790e790ef am: 6235afe24e  -s ours
am: abbc9ab006  -s ours

Change-Id: I9a4455d512225d9e0c2f1588ed4e8c593e66df9c