8e18acc6e68cbdb9e989da10c4c1a7d1feb00ddb |
|
19-Nov-2015 |
Cheng-Yi Chiang <cychiang@chromium.org> |
[autotest] audio_facade: set input/output in set_chrome_active_node_type Expose two arguments in set_chrome_active_node_type because bluetooth input/output node types are both 'BLUETOOTH'. BUG=chromium:552256 TEST=not used yet. Change-Id: I7892409fd14059cbcf0e4c082a053b23e3e9b765 Reviewed-on: https://chromium-review.googlesource.com/312819 Commit-Ready: Cheng-Yi Chiang <cychiang@chromium.org> Tested-by: Cheng-Yi Chiang <cychiang@chromium.org> Reviewed-by: Kalin Stoyanov <kalin@chromium.org>
/external/autotest/client/cros/audio/cras_utils.py
|
08c254922c9b97192e80bc4a847ae6fc8e86df0b |
|
06-Nov-2015 |
Cheng-Yi Chiang <cychiang@chromium.org> |
[autotest] cras_utils: Add method to query node id from node type This method will be used when user wants to set active node type through chrome.audio API. BUG=chromium:552256 TEST=not used yet Change-Id: I22751be3457f37381868cdd566dedb37fbceaafb Reviewed-on: https://chromium-review.googlesource.com/311218 Commit-Ready: Cheng-Yi Chiang <cychiang@chromium.org> Tested-by: Cheng-Yi Chiang <cychiang@chromium.org> Reviewed-by: Kalin Stoyanov <kalin@chromium.org>
/external/autotest/client/cros/audio/cras_utils.py
|
d142de826fc454540ced5db2ba6e6cda6884733a |
|
20-Oct-2015 |
Cheng-Yi Chiang <cychiang@chromium.org> |
[autotest] cras_dbus_utils: Move DBus related class to cras_dbus_utils Move DBus related class from cras_utils to cras_dbus_utils. BUG=chromium:542964 TEST=run audio_AudioBasicUSBPlayback test Change-Id: I0167df379e7f66fa75b42f62f925ac8b30cf60a3 Reviewed-on: https://chromium-review.googlesource.com/307053 Commit-Ready: Cheng-Yi Chiang <cychiang@chromium.org> Tested-by: Cheng-Yi Chiang <cychiang@chromium.org> Reviewed-by: Cheng-Yi Chiang <cychiang@chromium.org>
/external/autotest/client/cros/audio/cras_utils.py
|
3dd376d00259349426045769db14acec130e91ff |
|
20-Oct-2015 |
Cheng-Yi Chiang <cychiang@chromium.org> |
[autotest] cras_utils: Add private to get_cras_control_interface Add a "private" argument to get_cras_control_interface so user of this method can decide if it wants to use a new dbus.SystemBus object instead of the shared one. Using the shared one might subject to a problem that the shared dbus.SystemBus object does not have its main loop set to gobject main loop. This depends on whether there was aother user in the current process calling dbus.SystemBus() with/without calling dbus.mainloop.glib.DBusGMainLoop(set_as_default=True). So, if user wants to use main loop to listen for signal from Cras DBus interface, it should set the default main loop and call get_cras_control_interface with private=True to get a new dbus.SystemBus object. BUg=chromium:542964 TEST=not used yet Change-Id: I5cae5b62b0d5e3719afac83e57527c3fc43a2b71 Reviewed-on: https://chromium-review.googlesource.com/307052 Commit-Ready: Cheng-Yi Chiang <cychiang@chromium.org> Tested-by: Cheng-Yi Chiang <cychiang@chromium.org> Reviewed-by: Hsinyu Chao <hychao@chromium.org>
/external/autotest/client/cros/audio/cras_utils.py
|
da8e4e6b0114007416521efb9af90efe050fd70d |
|
08-Oct-2015 |
Cheng-Yi Chiang <cychiang@chromium.org> |
[autotest] cras_utils: Add CrasDBusMonitor class Add a class to monitor DBus signal from Cras. BUG=chromium:539817 TEST=not used yet Change-Id: Idb7ac385d9990d159968b99611e30cff8db615a7 Reviewed-on: https://chromium-review.googlesource.com/304497 Commit-Ready: Cheng-Yi Chiang <cychiang@chromium.org> Tested-by: Cheng-Yi Chiang <cychiang@chromium.org> Reviewed-by: Hsinyu Chao <hychao@chromium.org>
/external/autotest/client/cros/audio/cras_utils.py
|
d2fe0b4776b9211a37c604c854adedf7a066cde3 |
|
23-Sep-2015 |
Cheng-Yi Chiang <cychiang@chromium.org> |
[autotest] audio_InternalCardNodes: Fix nodes for link and samus Link has keyboar mic, and samus has AOKR mic. BUG=chromium:535244 TEST=run audio_internalCardNodes test on link and samus Change-Id: I74b8cb38d89e6167c8934118d01c577cffaa91ea Reviewed-on: https://chromium-review.googlesource.com/301799 Commit-Ready: Cheng-Yi Chiang <cychiang@chromium.org> Tested-by: Cheng-Yi Chiang <cychiang@chromium.org> Reviewed-by: Wai-Hong Tam <waihong@chromium.org>
/external/autotest/client/cros/audio/cras_utils.py
|
271b5cb9493176a7aee2932e5d5fe44f9ab2bef7 |
|
23-Sep-2015 |
Cheng-Yi Chiang <cychiang@chromium.org> |
[autotest] cras_utils: Use SetActiveInputNode and SetActiveOutputNode API To align the usage of setting active input/output nodes in Chrome, we should use SetActiveInputNode and SetActiveOutputNode for single node case. BUG=chromium:534953 TEST=run audio_AudioBasicBluetoothRecord test to make sure the method to set active input node does not break Change-Id: I5fade12636124e7d50ec5e3a50694ad2fd430e25 Reviewed-on: https://chromium-review.googlesource.com/301752 Commit-Ready: Cheng-Yi Chiang <cychiang@chromium.org> Tested-by: Cheng-Yi Chiang <cychiang@chromium.org> Reviewed-by: Hsinyu Chao <hychao@chromium.org> Reviewed-by: Cheng-Yi Chiang <cychiang@chromium.org> Reviewed-by: Wai-Hong Tam <waihong@chromium.org>
/external/autotest/client/cros/audio/cras_utils.py
|
4d02212849338620198546f9eb4cd4321840d721 |
|
21-Sep-2015 |
Cheng-Yi Chiang <cychiang@chromium.org> |
[autotest] cras_utils: Add more node types to known node types Add UNKNOWN, POST_MIX_LOOPBACK and POST_DSP_LOOPBACK to known node types. UNKNOWN node type is the default node type created by Cras. BUG=chromium:532713 TEST=not used yet Change-Id: I031e49fe220910ada10ad721c42fbc1070bc964e Reviewed-on: https://chromium-review.googlesource.com/301341 Commit-Ready: Cheng-Yi Chiang <cychiang@chromium.org> Tested-by: Cheng-Yi Chiang <cychiang@chromium.org> Reviewed-by: Wai-Hong Tam <waihong@chromium.org>
/external/autotest/client/cros/audio/cras_utils.py
|
94edf0d3d96613b985c0313f8028528ce4fba03c |
|
21-Sep-2015 |
Cheng-Yi Chiang <cychiang@chromium.org> |
[autotest] cras_utils: Add get_plugged_node_types Refactor get_selected_node_types and add get_plugged_node_types method. BUG=chromium:532713 TEST=not used yet Change-Id: Ie8fff105d57704891673390ebd3196d672d3a580 Reviewed-on: https://chromium-review.googlesource.com/301340 Commit-Ready: Cheng-Yi Chiang <cychiang@chromium.org> Tested-by: Cheng-Yi Chiang <cychiang@chromium.org> Reviewed-by: Wai-Hong Tam <waihong@chromium.org>
/external/autotest/client/cros/audio/cras_utils.py
|
a22adafe1bb6e4cd51d0e7f92362c7557f25b047 |
|
06-Jul-2015 |
Cheng-Yi Chiang <cychiang@chromium.org> |
[autotest] cras_utils: Add utilities to control selected nodes Add utilities to add/remove selected nodes. BUG=chromium:506473 TEST=not used yet Change-Id: I8caaa34731386d628f195644ca5607730537a93d Reviewed-on: https://chromium-review.googlesource.com/283682 Reviewed-by: Cheng-Yi Chiang <cychiang@chromium.org> Commit-Queue: Cheng-Yi Chiang <cychiang@chromium.org> Tested-by: Cheng-Yi Chiang <cychiang@chromium.org>
/external/autotest/client/cros/audio/cras_utils.py
|
aaa0a5ecd28fc4539738792fa0db4fca8943b5c4 |
|
26-May-2015 |
Cheng-Yi Chiang <cychiang@chromium.org> |
autotest: cras_utils: Fix pylint error BUG=None TEST=run_pylint client/cros/audio/ Change-Id: I067c53080b397a1ae4292d75a182d3e9c782f0a3 Reviewed-on: https://chromium-review.googlesource.com/273460 Reviewed-by: Hsinyu Chao <hychao@chromium.org> Commit-Queue: Cheng-Yi Chiang <cychiang@chromium.org> Tested-by: Cheng-Yi Chiang <cychiang@chromium.org>
/external/autotest/client/cros/audio/cras_utils.py
|
79b9ada11d0570ae60e1454d687eaac45e91a6aa |
|
27-May-2015 |
Cheng-Yi Chiang <cychiang@chromium.org> |
autotest: cras_utils: Use DBus API to control Cras Use Cras DBus API to control Cras. This includes: 1. Deprecate the usage of cras_test_client --dump_server_info to get selected node, selected node types, number of active streams. 2. Use DBus API to set volume and gain and mute/unmute state. 3. Deprecate get_node_type method and use get_selected_node_types instead. 4. Fix the usage in audio_helper in rms test setup. BUG=chromium:491931 TEST=run audio_CrasLoopback test Change-Id: I3fa404d4ee1cf8d0127289a4789c4fccd86ca18c Reviewed-on: https://chromium-review.googlesource.com/273458 Reviewed-by: Hsinyu Chao <hychao@chromium.org> Commit-Queue: Cheng-Yi Chiang <cychiang@chromium.org> Tested-by: Cheng-Yi Chiang <cychiang@chromium.org>
/external/autotest/client/cros/audio/cras_utils.py
|
8de78113b5b03d0239612c3bafa0179607e86e72 |
|
27-May-2015 |
Cheng-Yi Chiang <cychiang@chromium.org> |
autotest: Use Cras DBus API to detect audio loopback dongle We should deprecate the cras_test_client --dump_server_info usage in autotest because the main purpose of dump_server_info is for debugging, and the format will be changed from time to time. Use output returned from DBus API instead, which is much more stable. BUG=chromium:491931 TEST=./cli/atest host create <DUT_IP>; ./cli/atest stat <DUT_IP>; Check 'audio_loopback_dongle' label is detected. Change-Id: I05251f620943eca7ac9f590d8221d27cda4dc16d Reviewed-on: https://chromium-review.googlesource.com/273457 Reviewed-by: Hsinyu Chao <hychao@chromium.org> Commit-Queue: Cheng-Yi Chiang <cychiang@chromium.org> Tested-by: Cheng-Yi Chiang <cychiang@chromium.org>
/external/autotest/client/cros/audio/cras_utils.py
|
ea5a71f683ac2cb7e24af792d545137a2736f716 |
|
19-Mar-2015 |
Cheng-Yi Chiang <cychiang@chromium.org> |
cras_utils: Add a method to query node type Add a method get_node_type to query node type based on node id. Also, define the possible node type values. BUG=chromium:464661 TEST=will be used in the next CL Change-Id: Iceb0529e741b07e9e203a64c1741b4030f190cdb Reviewed-on: https://chromium-review.googlesource.com/261155 Reviewed-by: Hsinyu Chao <hychao@chromium.org> Reviewed-by: Kalin Stoyanov <kalin@chromium.org> Commit-Queue: Cheng-Yi Chiang <cychiang@chromium.org> Tested-by: Cheng-Yi Chiang <cychiang@chromium.org>
/external/autotest/client/cros/audio/cras_utils.py
|
b0ec904aeedca35d7a2e1e15a88d14d113ad9284 |
|
10-Mar-2015 |
Cheng-Yi Chiang <cychiang@chromium.org> |
cras_utils: Fix pylint errors and blank lines Fix the blank lines and some pylint errors. BUG=None TEST=run pylint on cras_utils.py Change-Id: I8a39b234fe9a508d86fe788a683d19e805e66fe7 Reviewed-on: https://chromium-review.googlesource.com/257943 Reviewed-by: Kalin Stoyanov <kalin@chromium.org> Commit-Queue: Cheng-Yi Chiang <cychiang@chromium.org> Tested-by: Cheng-Yi Chiang <cychiang@chromium.org>
/external/autotest/client/cros/audio/cras_utils.py
|
c902f2eda2d66c091d18b58c8ba280bb070d278c |
|
09-Mar-2015 |
Cheng-Yi Chiang <cychiang@chromium.org> |
multimedia: Add API to set active output volume Add cras utils and multimedia server API to set active output volume. BUG=chromium:463813 TEST=not used yet. Change-Id: I9557a8fe0f6b24b5c112508994543d4379b954c4 Reviewed-on: https://chromium-review.googlesource.com/257291 Reviewed-by: Wai-Hong Tam <waihong@chromium.org> Commit-Queue: Cheng-Yi Chiang <cychiang@chromium.org> Tested-by: Cheng-Yi Chiang <cychiang@chromium.org>
/external/autotest/client/cros/audio/cras_utils.py
|
eaf5329aeafc05652d8423f643e70cc17740588b |
|
12-Jan-2015 |
Cheng-Yi Chiang <cychiang@chromium.org> |
audio: Add start_recording and stop_recording API to multimedia server Add start_recording and stop_recording API to audio_facade_native. These API enable test to capture audio on Cros device through multimedia XMLRPC server. BUG=chromium:437678 TEST=not used yet Change-Id: Ic0a40dc13904124777360283dc25f3bfd67af9fb Reviewed-on: https://chromium-review.googlesource.com/240211 Reviewed-by: Wai-Hong Tam <waihong@chromium.org> Tested-by: Cheng-Yi Chiang <cychiang@chromium.org> Commit-Queue: Cheng-Yi Chiang <cychiang@chromium.org>
/external/autotest/client/cros/audio/cras_utils.py
|
f4104ffdd39200d8fe6129d755970f91c98ed6ac |
|
23-Dec-2014 |
Cheng-Yi Chiang <cychiang@chromium.org> |
[autotest] Add a label 'audio_loopback_dongle' for cros_host Currently, Cros hosts are connected to audio loopback dongles for audio related tests. However, loopback dongle should be removed from Cros host connected to Chameleon because the audio board on Chameleon will cover audio function test. This change adds a label 'audio_loopback_dongle' to indicate a Cros host has loopback dongle plugged. Once cros hosts have detected this label, we should add dependencies to tests that requires loopback dongle. BUG=chromium:443926 TEST=./cli/atest host create <cros host ip> ./cli/atest stat <cros host ip> and check audio_loopback_dongle label is there. Change-Id: I9d7cf6ffee381a41847f664f24fc4003dd3e77d5 Reviewed-on: https://chromium-review.googlesource.com/237363 Reviewed-by: Rohit Makasana <rohitbm@chromium.org> Tested-by: Cheng-Yi Chiang <cychiang@chromium.org> Commit-Queue: Dan Shi <dshi@chromium.org>
/external/autotest/client/cros/audio/cras_utils.py
|
2f7e7f4c8dbf24bcf79ba0cc5f79c30c90fbbbb3 |
|
25-Dec-2013 |
Owen Lin <owenlin@chromium.org> |
cras_utils - rename the flag "buffer_frames" to "block_size". Due to a change in cras_test_client. BUG=None TEST=Run audiovideo_CRASFormatConversion on link Change-Id: Iafcaa971cf6b28c09af99eafdec1cc92e0b78cdb Reviewed-on: https://chromium-review.googlesource.com/181140 Reviewed-by: Owen Lin <owenlin@chromium.org> Commit-Queue: Owen Lin <owenlin@chromium.org> Tested-by: Owen Lin <owenlin@chromium.org>
/external/autotest/client/cros/audio/cras_utils.py
|
ad6610a08600b21d9cae59c558d2c06b2e87d874 |
|
13-Dec-2013 |
Owen Lin <owenlin@chromium.org> |
cmd_utils - Import PIPE to this namespace So users don't need to import subprocess again just for PIPE. TEST=Run related tests on link BUG=None Change-Id: Id891dda00eb0c6d208d7390b1bb6534a61374b12 Reviewed-on: https://chromium-review.googlesource.com/180392 Reviewed-by: Hsinyu Chao <hychao@chromium.org> Commit-Queue: Owen Lin <owenlin@chromium.org> Tested-by: Owen Lin <owenlin@chromium.org>
/external/autotest/client/cros/audio/cras_utils.py
|
56050863523da66ec339a930b6cce68d64fa115d |
|
09-Dec-2013 |
Owen Lin <owenlin@chromium.org> |
Add annotations for RMS tests. TEST=Run related test on LINK BUG=None Change-Id: I1fe4358b7dc58e497e0b8ebe015dc8993dd22811 Reviewed-on: https://chromium-review.googlesource.com/179763 Reviewed-by: Owen Lin <owenlin@chromium.org> Commit-Queue: Owen Lin <owenlin@chromium.org> Tested-by: Owen Lin <owenlin@chromium.org>
/external/autotest/client/cros/audio/cras_utils.py
|
2013e467115995d3d4c986a52cc4de4d2bac62ea |
|
05-Dec-2013 |
Owen Lin <owenlin@chromium.org> |
Change the default values for channels and rate. BUG=None TEST=Run the audiovideo_CRASFormatConversion test on butterfly Change-Id: I736e004c382a54f5ac4f9315e0a161d228d2a346 Reviewed-on: https://chromium-review.googlesource.com/179302 Reviewed-by: Hsinyu Chao <hychao@chromium.org> Commit-Queue: Owen Lin <owenlin@chromium.org> Tested-by: Owen Lin <owenlin@chromium.org>
/external/autotest/client/cros/audio/cras_utils.py
|
dae7a0d98ea45f1fd0c35e1d2ac48d2a42741580 |
|
05-Dec-2013 |
Owen Lin <owenlin@chromium.org> |
desktopui_AudioFeedback - Fix the test for some known issue. 1. Remove the audio_dongle test. Since it requires extra setup for capture gain and playback volume. 2. Don't use the loopback_test_channels to a. prevent using threading. b. save testing time, we don't actually do playback for different channels. 3. Remove the initialize() function which almost did nothing. BUG=chromium:307387 TEST=Run the test on butterfly Change-Id: I3998dbfd7c6025880085b36fd256d9a436f958ee Reviewed-on: https://chromium-review.googlesource.com/178950 Reviewed-by: Hsinyu Chao <hychao@chromium.org> Commit-Queue: Owen Lin <owenlin@chromium.org> Tested-by: Owen Lin <owenlin@chromium.org>
/external/autotest/client/cros/audio/cras_utils.py
|
a8129c64959adf4383d3be044041ff047df0a3fb |
|
26-Nov-2013 |
Owen Lin <owenlin@chromium.org> |
audiovideo_CRASFormatConversion - Record mono audio and simplify the test. There is only 1 channel for the internal microphone. So, there is no need to record in stereo during the test. What it does is just duplicating the channel and nothing more. BUG=None Test=Run the test on parrot Change-Id: I03ea43ad0836496980650f3cb0d0dc650d95d87b Reviewed-on: https://chromium-review.googlesource.com/178394 Reviewed-by: Hsinyu Chao <hychao@chromium.org> Commit-Queue: Owen Lin <owenlin@chromium.org> Tested-by: Owen Lin <owenlin@chromium.org>
/external/autotest/client/cros/audio/cras_utils.py
|
7ab45a2d4287361cd70c7190c1b4cd28e04555d4 |
|
19-Nov-2013 |
Owen Lin <owenlin@chromium.org> |
audiovideo_CRASFormatConversion - Ensures the playing order of the two test tones. Ensure the following order in the loopback test: 1. Play the first sine tone 2. Play the second sine tone 3. Start recording Also reduce the time needed for this test by 1. Generate the noise profile once. 2. Loopback only once and analyze the recorded audio for both channels BUG=None TEST=Run the test on parrot Change-Id: I8e61c07141f5d6e6ae4c4c0cfb8926bcf7e2a2fe Reviewed-on: https://chromium-review.googlesource.com/178392 Reviewed-by: Hsinyu Chao <hychao@chromium.org> Commit-Queue: Owen Lin <owenlin@chromium.org> Tested-by: Owen Lin <owenlin@chromium.org>
/external/autotest/client/cros/audio/cras_utils.py
|
0d65e8a5ef375c5a90dc2d582f79ea0a92951ba8 |
|
28-Nov-2013 |
Owen Lin <owenlin@chromium.org> |
Uses a lock around Popens() to prevent a deadlock in Python. Please see crbug.com/323843 for more details. BUG=chromium:323843 TEST=Run the audiovideo_CRASFormatConversion on parrot Change-Id: I12b9450c937acf74888ed995f25f405c4f15a705 Reviewed-on: https://chromium-review.googlesource.com/178373 Reviewed-by: Owen Lin <owenlin@chromium.org> Tested-by: Owen Lin <owenlin@chromium.org> Commit-Queue: Owen Lin <owenlin@chromium.org>
/external/autotest/client/cros/audio/cras_utils.py
|
9d19b27acc7078c91d087f1ef7f3be28823bcfe6 |
|
27-Nov-2013 |
Owen Lin <owenlin@chromium.org> |
Refactor: audio_helper - Move command utilities to cmd_utils.py. BUG=None TEST=Run audiovideo_CRASFormatConversion on parrot Change-Id: I3950c91d904230090fb77a5f42f29084bad5d1e6 Reviewed-on: https://chromium-review.googlesource.com/178372 Reviewed-by: Owen Lin <owenlin@chromium.org> Tested-by: Owen Lin <owenlin@chromium.org> Commit-Queue: Owen Lin <owenlin@chromium.org>
/external/autotest/client/cros/audio/cras_utils.py
|
ca365f867d7b9cf3b1f95bb4cef76a3802177bab |
|
08-Nov-2013 |
Owen Lin <owenlin@chromium.org> |
Make audiovideo_CRASFormatConversion not so flaky. Fix the following issues: 1. Use fixed but different sine tones in the two audio streams at different sampling rate 2. Set output node volume level to 100 TEST=Run the test on stout and parrot. BUG=chromium:307378 Change-Id: I36df3522f8b116f142d5147ffe2c71cbf399332d Reviewed-on: https://chromium-review.googlesource.com/177430 Reviewed-by: Owen Lin <owenlin@chromium.org> Tested-by: Owen Lin <owenlin@chromium.org> Commit-Queue: Owen Lin <owenlin@chromium.org>
/external/autotest/client/cros/audio/cras_utils.py
|