History log of /frameworks/av/include/media/AudioRecord.h
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
84e84a5dd3b6d9ee4cf032e8d6206c70969b7107 04-May-2018 Ray Essick <essick@google.com> collect more media metrics around audio

new fields in the media metrics 'audiorecord' record for more detail
length of time recorded, error conditions
add new media metrics type 'audiopolicy' that describes attempts to get
microphone access -- success, failure on contention, what type of access
was requested, and (important for the contention) which programs are
doing the requesting and holding of the microphones.

whitelist the 'audiopolicy' metrics type with the media.metrics service.

Bug: 78595399
Test: concurrent/serial recordings, dumpsys media.metrics
Change-Id: Ia17860940d4c329b0215b4cf97c6dacacb6a8e32
/frameworks/av/media/libaudioclient/include/media/AudioRecord.h
5dd03a5825d06033c1e66353dbbfcfc7f60990c5 01-Feb-2018 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Support query active microphones information in AudioRecord."
92d23b433bd770c22c2d4a30b573602f5565de1b 29-Jan-2018 Ray Essick <essick@google.com> Remove finalized concept from media.metrics

the 'finalized' concept didn't pan out -- remove references to it.
Simplifies the code flow.
Also purged some uses of generateSessionID().

Bug: 71874686
Test: logcat/dumpsys
Change-Id: I39e48526a5696158d8195f47154881ca6ecda266
/frameworks/av/media/libaudioclient/include/media/AudioRecord.h
653cc0ab6d5b714d1f26adcd08f9bc3269b62fa0 18-Jan-2018 jiabin <jiabin@google.com> Support query active microphones information in AudioRecord.

This is part of device enumeration. With the new add API, developer
could get the active microphones information for each channel.

Bug: 64038649
Test: Run cts and check the print log.
Change-Id: Ic63d86e533a30e40697da7522a5a81f7cfcea988
/frameworks/av/media/libaudioclient/include/media/AudioRecord.h
8839430158e22382f0f6450c9274071eca945989 24-Jan-2018 Ray Essick <essick@google.com> add getMetrics() apis for AudioTrack and AudioRecord

add getMetrics() method to access media.metrics for AudioTrack and
AudioRecord.

Bug: 72179020
Bug: 72178968
Test: tweaked CTS
Change-Id: Id69862887b8b58655f59057e06f96b20a8e7d332
/frameworks/av/media/libaudioclient/include/media/AudioRecord.h
734d186db7ec3d1f877001d71c71de6562ead7f7 09-Jan-2018 Ray Essick <essick@google.com> Metrics for AudioRecord

Collect media metrics for audiorecord. Basic framework and initial set
of metrics.

Bug: 70569777
Test: recordings, observe stats
Change-Id: I66fce1eec46cc13a93b106c2be34d23c138920de
/frameworks/av/media/libaudioclient/include/media/AudioRecord.h
724a1816e7bd503d7a1f491a90f76c8cf3ca6a16 07-Dec-2017 Eric Laurent <elaurent@google.com> add dump() method to AudioRecord

Add a dump() method to AudioRecord.
Can be used by dumpsys or tests.

Test: run test_create_audiorecord
Change-Id: I4b3133601eeff4d5447ca2c5b13a01ff3451b6c7
/frameworks/av/media/libaudioclient/include/media/AudioRecord.h
f14db3c3ebc1ea29b3eb5b7e9b944cabcb5f83ff 08-Dec-2017 Eric Laurent <elaurent@google.com> Revert "Revert "refactor AudioRecord and AudioFlinger openRecord()""

This reverts commit 0aa3c6eba07f987fe84b5fa450274a8e730971e3.

Bug: 70388312
Test: AudioRecord CTS, Audio smoke tests
Change-Id: I45394bccf82b922aa2b68fee3e02afc280f6729c
/frameworks/av/media/libaudioclient/include/media/AudioRecord.h
0aa3c6eba07f987fe84b5fa450274a8e730971e3 08-Dec-2017 Eric Laurent <elaurent@google.com> Revert "refactor AudioRecord and AudioFlinger openRecord()"

This reverts commit 3e1acc0c58b337dec4054d78c28b48b2e77e0784.

bug: 70388312

Change-Id: I6782d6eceeece1bad998b02af26c0119da70a13d
/frameworks/av/media/libaudioclient/include/media/AudioRecord.h
3e1acc0c58b337dec4054d78c28b48b2e77e0784 02-Dec-2017 Eric Laurent <elaurent@google.com> refactor AudioRecord and AudioFlinger openRecord()

Refactor the mechanism used by audio record tracks to query and
attach to an input mixer/stream in audio flinger. This will:
- reduce the number of binder transactions needed to create a record track
- move sample rate, framecount and flags validations to audio server side
- move audio session allocation to audio server side
- prepare restriction of certain binder transactions to audioserver only

Also:
- renamed openRecord() to createRecord() for consistency with AudioTrack
- make AudioRecord mStatus update consistent when calling default
contructor + set() or constructor with arguments
- make AudioClient, CreateTrackXXX and CreateRecordXXX classes derive
from Parcelable
- restore audio session ID validity check in AudioFlinger::createTrack()

Test: CTS tests: AudioRecordTest, AudioRecordingConfigurationTest, AudioPreProcessingTest
Test: manual test for capture use cases: camcorder, OK Google, VoIP calls
Change-Id: I72edaa7ddef1da11c77df21e88378e3aa9012d58
/frameworks/av/media/libaudioclient/include/media/AudioRecord.h
fec2f93fae282ad10bbb5e3fcce9f60eff2cfb48 24-Oct-2017 jiabin <jiabin@google.com> Add AudioRouting interface in AudioRecorder.

Bug: 64038649
Test: Run cts in RoutingTest
Switching input device when using MediaRecorder

Change-Id: I53f22974f8c3dacaef6044ea742e62951961c1fd
/frameworks/av/media/libaudioclient/include/media/AudioRecord.h
92197f86b1184133107ee66314467f4676850ab8 19-Sep-2017 Eric Laurent <elaurent@google.com> Fix various AAudio device selection issues am: ad2e7b902c
am: 282ca69583

Change-Id: I051d56560608444c47b5a827ef921b878e8f4a4e
ad2e7b902c0432a0db40906a4b1f5b693ce439dd 15-Sep-2017 Eric Laurent <elaurent@google.com> Fix various AAudio device selection issues

Bug: 65292224
- Audio policy manager should not use an unavailable device when an explicit
route is requested. This causes a device selection made by a client to
become sticky after device disconnection.

Bug: 64945845
- Remove spurious device change callback occuring after registering a
new client to audio server by creating a specific configuration event
for client registration.
- Do not keep strong references to device callback interfaces in
AudioTrack, AudioRecord and AudioSystem.
- Do not update selected device in AudioTrack and AudioRecord when
not active as the new device selection on the stream is because of other
clients activity which is not relevant to an inactive client.

Bug: 65693340
- Fix missing increment of SessionRoute ref count in getInputForAttr() for
MMAP inputs

Test: AAudio CTS tests

Change-Id: I2a01b02e8b064d352004f6065495fd99aee55745
/frameworks/av/media/libaudioclient/include/media/AudioRecord.h
ff6900d8f991aac0b67b625f8a1d4d0461b4c50e 02-Aug-2017 Ivan Lozano <ivanlozano@google.com> Generate IAudioRecord with AIDL.

Use AIDL to generate the IAudioRecord interface rather than using
a manually implemented interface.

Bug: 64223827
Test: Ran the AudioNativeTest and CtsMediaTestCases CTS tests.

Change-Id: Iade23c73253a97c358050bbd697ebe592b89a4c0
/frameworks/av/media/libaudioclient/include/media/AudioRecord.h
325b2997d92c4ba2c116b47e6c3d0d0045c5386b 26-Jun-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Set initial audio device for AudioTrack and AudioRecord"
9ae8c597d9a0c8cedc4047fc4716d7361453f6ab 23-Jun-2017 Eric Laurent <elaurent@google.com> 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.

Change-Id: Ic8be42e1735690eb00c811ef0cb8b5abb36172d6
/frameworks/av/media/libaudioclient/include/media/AudioRecord.h
adbb75af4d3224194b9b772855db93fae19cf4ce 16-Jun-2017 Phil Burk <philburk@google.com> 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>
/frameworks/av/media/libaudioclient/include/media/AudioRecord.h
25a9e5561a7f14e79b04f713a515a9464b9ea077 17-Apr-2017 Steven Moreland <smoreland@google.com> Add libaudioclient_headers

Test: works with BOARD_VNDK_VERSION := current
Bug: 33241851
Change-Id: I31cf7e7cd89fe6e71d4e52f7682990146a12b2fb
/frameworks/av/media/libaudioclient/include/media/AudioRecord.h