History log of /external/autotest/client/cros/chameleon/audio_test_utils.py
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
3bd972cdb50d97267eca16615e524c571ace9804 17-Jan-2017 Cheng-Yi Chiang <cychiang@chromium.org> [autotest] audio_test_utils: Add method to check audio node types

Check plugged audio node types and set them. If the node type does not
present, it is probably because test environment or dependency is wrong.

BUG=chromium:667674
TEST=run audio_AudioWebRTCLoopback test on device without USB or
headphone connection. See error.TestError is raised with
error messages.

Change-Id: I9c93cf77572c8d2f205c1a7b189f864cb72a6625
Reviewed-on: https://chromium-review.googlesource.com/428790
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/chameleon/audio_test_utils.py
a975ead3e88aeedb1923fcfc153b32d7452dc6ee 10-Jan-2017 Cheng-Yi Chiang <cychiang@chromium.org> [autotest] audio_AudioWebRTCLoopback: Use diagnostic for debugging

Only use diagnostic result for debugging. When hw_level is 0, but there
is data to be written to device, CRAS will record num_underrun, but
output might be normal. Test should check waveform to raise error, and
use num_underrun in audio_diagnostic file for debugging.

BUG=chromium:667674
TEST=modify control.quality.256 to use smaller block size and run the
test. Check the test fail with waveform quality issue, not diagnostic
issue.

Change-Id: Ia201528cabe24b01337b90d0d48e0f998f4e1ee3
Reviewed-on: https://chromium-review.googlesource.com/426300
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/chameleon/audio_test_utils.py
2c8e70c55263e5d80359b771c5cf3add7257f253 03-Jan-2017 Cheng-Yi Chiang <cychiang@chromium.org> [autotest] audio_test_utils: Fix string format

Fix error message format

BUG=chromium:667674
TEST=run audio_AudioWebRTCLoopback.quality.256 test on samus and see
underrun error message.

Change-Id: I15ec44bebe61c1f06d7ac289a75479f18d676906
Reviewed-on: https://chromium-review.googlesource.com/424487
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/chameleon/audio_test_utils.py
431e9e68df2c9be67d13cb54ffc5ae32542cfdd1 28-Dec-2016 Cheng-Yi Chiang <cychiang@chromium.org> [autotest] Stablize external microphone test

Previously, we only rely on second_peak_ratio to check DC component when
it happens to be the second largest component.
Now we set different threshold for DC component and always check it to
be small enough.

Ignore 50 and 60 Hz for external microphone test.

BUG=chromium:661722
TEST=run the test on chell
Change-Id: Idc7527992b905b9d41b25d63dab91ad54aa2ec91
Reviewed-on: https://chromium-review.googlesource.com/424242
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/chameleon/audio_test_utils.py
c0c002ad4797a7a341034d80f8eddee912bff8f7 28-Nov-2016 Cheng-Yi Chiang <cychiang@chromium.org> [autotest] audio_AudioWebRTCLoopback: Check audio diagnostic result

Check number of underrun recorded in the audio diagnostic result.
It is expected to be 0.

BUG=chromium:667674
TEST=run audio_AudioWebRTCLoopback test.

Change-Id: I6d3017b0617b639263a51859595290514f0da286
Reviewed-on: https://chromium-review.googlesource.com/414965
Commit-Ready: Cheng-Yi Chiang <cychiang@chromium.org>
Tested-by: Cheng-Yi Chiang <cychiang@chromium.org>
Reviewed-by: Shyh-In Hwang <josephsih@chromium.org>
/external/autotest/client/cros/chameleon/audio_test_utils.py
5672eb6dd4984afd20467b54fddac04b71091713 25-Nov-2016 Cheng-Yi Chiang <cychiang@chromium.org> [autotest] audio_test_utils: Add debug message for quality check

Add the log so we can see quality measurement result in the log file.

BUG=chromium:667674
TEST=used with WebRTC test in this patch series

Change-Id: I2b6baf9c6cf747cdacba4bfeaf5838885b5aab56
Reviewed-on: https://chromium-review.googlesource.com/414741
Commit-Ready: Cheng-Yi Chiang <cychiang@chromium.org>
Tested-by: Cheng-Yi Chiang <cychiang@chromium.org>
Reviewed-by: Shyh-In Hwang <josephsih@chromium.org>
/external/autotest/client/cros/chameleon/audio_test_utils.py
b3ebbcf7345116fd6b1ceefac8dc6300eca990f4 22-Nov-2016 Cheng-Yi Chiang <cychiang@chromium.org> audio_AudioBasicHeadphone: Skip board that does not have headphone

ChromeBit does not have headphones.
Skip it on headphone test.

BUG=chromium:666242
TEST=run the test on mickey

Change-Id: I82ad508989ba9cbdb25584027c487ee0bbdd04fc
Reviewed-on: https://chromium-review.googlesource.com/413377
Commit-Ready: Cheng-Yi Chiang <cychiang@chromium.org>
Tested-by: Cheng-Yi Chiang <cychiang@chromium.org>
Reviewed-by: Kalin Stoyanov <kalin@chromium.org>
Reviewed-by: Shyh-In Hwang <josephsih@chromium.org>
/external/autotest/client/cros/chameleon/audio_test_utils.py
7a6ac6530ccd51a0f0bb599717f71ec2837b202c 09-Aug-2016 EddyHsu <eddyhsu@google.com> [autotest] audio: add audio quality measurement test

Add audio artifacts detection tools in audio_test_utils:
- artifacts before playing
- delay during playing
- under after playing

Add audio_AudioArtifacts tests.

BUG=chromium:632616
TEST=test_that audio_AudioArtifacts.a2dp: FAILED, detects bursts
test_that audio_AudioArtifacts.hdmi: FAILED, detects bursts
test_that audio_AudioArtifacts.headphone: FAILED, detects delay
test_that audio_AudioArtifacts.hsp: FAILED, detects bursts
test_that audio_AudioArtifacts.mute_headphone: FAILED, detects
delay. But, mutes are correctly matched.
test_that audio_AudioArtifacts.speaker: FAILED, detects noise both
before and after wave, and burst.
test_that audio_AudioArtifacts.usb: PASSED
test_that audio_AudioArtifacts.volume_changing_headphone: FAILED,
detects delay, burst. But, volume changes are correctly
detected.

Change-Id: I8814073a9198254ac21ac34f9009f95032472369
Reviewed-on: https://chromium-review.googlesource.com/366955
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/chameleon/audio_test_utils.py
9934b9b3f701574d05706bcabe45aa8f566b147a 15-Aug-2016 Cheng-Yi Chiang <cychiang@chromium.org> [autotest] audio_test_utils: add method to check selected input node

Add a function check_input_port similar to check_output_port.

BUG=b:30005964
TEST=not used yet.
Change-Id: I7eb349579978ed513191928c8d13db3acc9cf659
Reviewed-on: https://chromium-review.googlesource.com/369044
Commit-Ready: Cheng-Yi Chiang <cychiang@chromium.org>
Tested-by: Cheng-Yi Chiang <cychiang@chromium.org>
Reviewed-by: Wai-Hong Tam <waihong@google.com>
/external/autotest/client/cros/chameleon/audio_test_utils.py
f32c3d973d6817c4d81d64d5d0af09e5bbe6e104 22-Jun-2016 Cheng-Yi Chiang <cychiang@chromium.org> [autotest] chameleon: Move comparison method to audio_test_utils

This patch does following refactoring:
1. Move compare_recorded_result from chameleon_audio_helper to
audio_test_utils, and rename it to compare_recorded_correlation.
2. Remove 'method' argument because correlation is the only method.
There is another frequency comparison function to call.
3. Cleanup legacy frequency comparison method because now we use
spectral analysis method instead.
4. Raise error.TestFail with error messages when comparison fails.

BUG=chromium:620930
TEST=run audio_AudioBasicHDMI, audio_AudioBasicUSBPlayback,
audio_AudioBasicUSBPlaybackRecord, audio_AudioBasicUSBRecord test on
samus.

Change-Id: I5e9a4cb323e21af013314385b10b1fabc2dfa50e
Reviewed-on: https://chromium-review.googlesource.com/354892
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/chameleon/audio_test_utils.py
fb08fe0a5296a6d24db6c7e25f7e41b6ea8104e3 24-May-2016 Cheng-Yi Chiang <cychiang@chromium.org> [autotest] audio_test_utils: Unify the logic of second peak ratio

Unify the logic to determine second peak ratio.
Now individual audio test should query second peak ratio based on their
source and recorder ID and whether HSP profile is used.

BUG=chromium:597025
TEST=run audio_AudioVolume test and other affected audio tests on chell.

Change-Id: I8ea8cc400f56e3f410ba673a0470d2bfbf1d6bc2
Reviewed-on: https://chromium-review.googlesource.com/346823
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/chameleon/audio_test_utils.py
803be1315754515c7506093b35a879539fdb1271 13-May-2016 Cheng-Yi Chiang <cychiang@chromium.org> [autotest] audio_test_utils: Ignore harmonics of frequencies to be ignored

There are non-perfect noise pattern from power noise and cause spectral energy
at 60Hz, 120Hz, 180Hz. We should ignore harmonics of 60Hz when we
examine the spectral.

BUG=chromium:611643
TEST=run audio_AudioBasicInternalSpeaker test on jerry on
android1758-audiobox2-host1

Change-Id: Iacf0df60ca890f9ccd84f149c9b3f9283420d3b2
Reviewed-on: https://chromium-review.googlesource.com/344565
Commit-Ready: Cheng-Yi Chiang <cychiang@chromium.org>
Tested-by: Cheng-Yi Chiang <cychiang@chromium.org>
Reviewed-by: Wai-Hong Tam <waihong@chromium.org>
Reviewed-by: Kalin Stoyanov <kalin@chromium.org>
/external/autotest/client/cros/chameleon/audio_test_utils.py
a8b20b80f1a78e1720af32948c9cb1497bfc850f 04-Mar-2016 Cheng-Yi Chiang <cychiang@chromium.org> [autotest] audio_test_utils: Ignore harmonics in spectral analysis

There will be harmonics, that is, multiples of fundamental frequency due
to imperfect sine wave. Ignore those harmonics so the test is more
stable. Otherwise, some harmonics will get higher than second peak ratio
sometimes.

BUG=chromium:591641
TEST=run audio_AudioBasicInternalSpeaker test

Change-Id: I7ba693ec5b52962077f170a62a06bca1cf09ee97
Reviewed-on: https://chromium-review.googlesource.com/330575
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/chameleon/audio_test_utils.py
c76df63e6aa2bc434e1e3ccfb4f4e3c0e29a4b35 04-Mar-2016 Cheng-Yi Chiang <cychiang@chromium.org> [autotest] audio_test_utils: return dominant frequency and its coefficient

Returns dominant frequency and its coefficient in each channel so user
can use it to measure volume.

BUG=chromium:591641
TEST=not used yet.

Change-Id: Ie215a6d312c101b8e48f89b53507c90dd975849f
Reviewed-on: https://chromium-review.googlesource.com/330574
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/chameleon/audio_test_utils.py
402987603ba90733f65cc346a71f17024366d8bd 04-Mar-2016 Cheng-Yi Chiang <cychiang@chromium.org> [autotest] audio_test_utils: Add utils to switch to HSP

Switch to HSP by selecting bluetooth microphone and start a recording
process on Cros device.

BUG=chromium:591641
TEST=not used yet.

Change-Id: I418aed2e4c199fb88a4dd647fb8d0c06425f9525
Reviewed-on: https://chromium-review.googlesource.com/330573
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/chameleon/audio_test_utils.py
eeadab4a09028539c86328f9d3637eba01628d75 04-Mar-2016 Cheng-Yi Chiang <cychiang@chromium.org> [autotest] audio_test_utils: Add utils to check output node

Add a utils check_output_port to check output node selected on Cros
device based on port id.

BUG=chromium:591641
TEST=not used yet.

Change-Id: Id6b8d77576cc8e8e4bed12ed0ded7afec87e8170
Reviewed-on: https://chromium-review.googlesource.com/330572
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/chameleon/audio_test_utils.py
c27db0580a365096813aa03ce3d8b413d5ba1064 04-Mar-2016 Cheng-Yi Chiang <cychiang@chromium.org> [autotest] Chameleon: Encapsulate EDID and extra plug/unplug to HDMI link

Move logic of setting EDID and extra plug/unplug quirk into
HDMIWidgetLink.
Override connect/disconnect methods to set EDID and do extra plug/unplug
in connect. Restores EDID in disconnect.
The connect and disconnect of a link is in widget binder's with clause so EDID
will be restored in the end even if test fails.
This refactoring helps test user to share common test logic among
different audio devices.

BUG=chromium:591641
TEST=run audio_AudioBasicHDMI test on peach_pit which needs plug/unplug
quirk.

Change-Id: Icd448e028c9fee910da57b7e6106650b76286f95
Reviewed-on: https://chromium-review.googlesource.com/330482
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/chameleon/audio_test_utils.py
ce5f32c092050d2ca0655d17abca2d38b2a0905c 29-Jan-2016 Cheng-Yi Chiang <cychiang@chromium.org> [autotest] audio_AudioBasicHDMI: do extra plug/unplug to detect HDMI

For boards using exynos HDMI driver, it has problem detecing HDMI audio.
The workaround is to plug/unplug several times.

BUG=chromium:450101
TEST=run audio_AudioBasicHDMI test on peach_pit

Change-Id: I4c1d9c97be565cbd409dd97a3a3dce3cb8056814
Reviewed-on: https://chromium-review.googlesource.com/324678
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/chameleon/audio_test_utils.py
33a08bb90aa2c44d7f837cbc7b74b4df80e744e0 19-Jan-2016 Cheng-Yi Chiang <cychiang@chromium.org> [autotest] audio_test_util: Loose the threshold for HSP

Loose the threshold for HSP because its quality is poor.

BUG=chromium:547100
TEST=run audio_AudioBasicBluetoothPlaybackRecord test on cyan

Change-Id: I2f8988b2d85cfc77e3844e39e928aab121d4a05d
Reviewed-on: https://chromium-review.googlesource.com/322570
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/chameleon/audio_test_utils.py
40b6a626e663330d8359b5dd4cb0c5f403a6edb4 05-Jan-2016 Cheng-Yi Chiang <cychiang@chromium.org> [autotest] audio_AudioBasicBluetooth*Record: tolerate noise for HSP

Use second peak ratio 0.1 instead of 0.05 because HSP has low quality.
This stabilizes the test result for recording.

BUG=chromium:573154
TEST=run the tests

Change-Id: Idbc86f4a42370d882e4c0433f7832583323f668b
Reviewed-on: https://chromium-review.googlesource.com/320587
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: Chinyue Chen <chinyue@chromium.org>
/external/autotest/client/cros/chameleon/audio_test_utils.py
7dfe9c85acc1c20ae9957bc8fb7caa5e6d503bbf 30-Dec-2015 Cheng-Yi Chiang <cychiang@chromium.org> [autotest] audio_test_utils: Check anomaly in check_recorded_frequency

Add an argument check_anomaly in check_recorded_frequency. Use anomaly
detection algorithm in audio_analysis module to check the signal block
by block and find the blocks that are not similar to sine wave.

BUG=chromium:573154
TEST=not used yet

Change-Id: I4df072ba06953f5d8723dc8b5462dfc5a54859ea
Reviewed-on: https://chromium-review.googlesource.com/319969
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/chameleon/audio_test_utils.py
5b874b3f3e081e373d9631aebbed29f481901f1d 25-Nov-2015 Cheng-Yi Chiang <cychiang@chromium.org> Revert "[autotest] audio_InternalCardNodes: Set HDMI node for panther"

This reverts commit 8b83aa74241b60b2bd8a0036acbebf23337e6156.

There is actually no dedicated HDMI on panther. Revert the change.

BUG=chromium:560400
TEST=run the test on panther.

Change-Id: Ie1c3b82f0a39c0fa51cb19c24e6c8463f15143ca
Reviewed-on: https://chromium-review.googlesource.com/314433
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/chameleon/audio_test_utils.py
47730fcbf42e6d6f13f3418ebc3600cca9db56fb 25-Nov-2015 Cheng-Yi Chiang <cychiang@chromium.org> [autotest] audio_test_utils: Ignore certian frequencies in the check

Ignore certain frequencies in the check so test user can ignore some
known noise resource.

BUG=chromium:561256
TEST=not used yet

Change-Id: I995e42070f051a82c99afbfcf67aee0f6d49f479
Reviewed-on: https://chromium-review.googlesource.com/314430
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/chameleon/audio_test_utils.py
98f1313af1e89b3a30b17469cd00973dd0544d64 19-Nov-2015 Cheng-Yi Chiang <cychiang@chromium.org> [autotest] audio_test_utils: Add method to check recorded data frequency

Use spectral analysis tool to check frequency of recorded data.
The frequency method of compare_recorded_result in chameleon_audio_helper
should be replaced by check_recorded_frequency in this module.

BUG=chromium:550395
TEST=not used yet.

Change-Id: I02348a7e722b8a509759f6028b9e66cc670e5526
Reviewed-on: https://chromium-review.googlesource.com/313076
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/chameleon/audio_test_utils.py
6bac5feb5213f64f46da0dcadedd2115fba35beb 10-Nov-2015 Cheng-Yi Chiang <cychiang@chromium.org> [autotest] audio_test_utils: Add callback to monitor_no_nodes_changed

Add a callback so test can dump logs when there is unexpected
NodesChanged signal.

BUG=chromium:547100
TEST=not used yet.

Change-Id: I12195ba9b96b0a82e5c6a53f4683f9b487886f25
Reviewed-on: https://chromium-review.googlesource.com/312080
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/chameleon/audio_test_utils.py
e630753bedd2b33a0fd5b8ef4433a2794ade2a99 20-Oct-2015 Cheng-Yi Chiang <cychiang@chromium.org> [autotest] audio_test_utils: Add context manager for NodesChanged signal

Add a context manager method to count NodesChanged signal on Cros device.
This will be useful in the test to monitor there is no nodes changed
during playback/recording.

BUG=chromium:542964
TEST=not used yet

Change-Id: I00cd00c424631ecdfa254ccf648cb19df56702c8
Reviewed-on: https://chromium-review.googlesource.com/307640
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/chameleon/audio_test_utils.py
0faf6b8126b29ded5d05752c94265399767a8d85 19-Oct-2015 Cheng-Yi Chiang <cychiang@chromium.org> [autotest] audio_test_utils: Dump multimedia_xmlrpc_server log

Refactor dump_cros_audio_logs and dump multimedia_xmlrpc_server.log

BUG=chromium:543667
TEST=run audio_AudioBasicUSB* test and check results directory.

Change-Id: Ieeeb103558b2cec8f25b2e68db2783f160fad303
Reviewed-on: https://chromium-review.googlesource.com/306949
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: Kalin Stoyanov <kalin@chromium.org>
/external/autotest/client/cros/chameleon/audio_test_utils.py
28537164aa70218a68ed866d743dfeacc1950023 15-Oct-2015 Cheng-Yi Chiang <cychiang@chromium.org> [autotest] audio_test_utils: Add a method to dump logs

Site tests can use this method to dump logs for audio debugging.

BUG=chromium:542964
TEST=not used yet

Change-Id: If621c22309798b392d4548a6248dc5fbeaffe0b4
Reviewed-on: https://chromium-review.googlesource.com/305951
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/chameleon/audio_test_utils.py
26fb5c28c4c985f1b3f12c9c34de699e4ec52fdf 14-Oct-2015 Cheng-Yi Chiang <cychiang@chromium.org> [autotest] audio_test_utils: Add suspend_resume utility

This method can be reused in audio_Audio* tests.

BUG=chromium:541763
TEST=not used yet

Change-Id: Ida5442732c27ced5afae54124ceb00206fbb555b
Reviewed-on: https://chromium-review.googlesource.com/305148
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/chameleon/audio_test_utils.py
c0c8cd2fcdb5083a787e49947b7ea70f3d0a0bb4 14-Oct-2015 Cheng-Yi Chiang <cychiang@chromium.org> [autotest] audio_test_utils: add bluetooth_nodes_plugged method

Add a method to check bluetooth nodes are back.
They are "plugged" but are not necessarily selected.

BUG=chromium:541763
TEST=not used yet

Change-Id: Ib7a0cf720ed3fc9ee72ee26e44b95fe24af79642
Reviewed-on: https://chromium-review.googlesource.com/305174
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/chameleon/audio_test_utils.py
8b83aa74241b60b2bd8a0036acbebf23337e6156 08-Oct-2015 Cheng-Yi Chiang <cychiang@chromium.org> [autotest] audio_InternalCardNodes: Set HDMI node for panther

BUG=chromium:541037
TEST=run the test on panther.

Change-Id: I7f102278357684893f3d3f59b3c971b985c42cd8
Reviewed-on: https://chromium-review.googlesource.com/304692
Commit-Ready: Jimmy Cheng-Yi Chiang <cychiang@google.com>
Tested-by: Jimmy Cheng-Yi Chiang <cychiang@google.com>
Reviewed-by: Hsinyu Chao <hychao@chromium.org>
/external/autotest/client/cros/chameleon/audio_test_utils.py
9c90be218609bea63de7bc93c243d9cfeb643c00 05-Oct-2015 Cheng-Yi Chiang <cychiang@chromium.org> [autotest] audio_test_uitls: Add methods to check internal audio nodes

The utils has_internal_microphone and has_internal_speaker will be used
in site tests to determine correct nodes that exist on the Cros device.

BUG=chromium:539223
TEST=not used yet

Change-Id: I5ec83beea116309fe0a3e94caff88b18593c3bb7
Reviewed-on: https://chromium-review.googlesource.com/303664
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/chameleon/audio_test_utils.py
c8c1be0ec5c76d9118e806dd15a966dcd706669d 25-Sep-2015 Kalin Stoyanov <kalin@chromium.org> Add suspend test for Bluetooth audio

BUG=None
TEST=Ran tests across DUTs in audio boxes

Change-Id: Ica2ee6d15db28befc6a0b2cd588807a709143415
Reviewed-on: https://chromium-review.googlesource.com/302412
Commit-Ready: Kalin Stoyanov <kalin@chromium.org>
Tested-by: Kalin Stoyanov <kalin@chromium.org>
Reviewed-by: Cheng-Yi Chiang <cychiang@chromium.org>
/external/autotest/client/cros/chameleon/audio_test_utils.py
d4d8b89896a96dbad4af1d8699cb724e418c725e 21-Sep-2015 Cheng-Yi Chiang <cychiang@chromium.org> [autotest] audio_test_utils: Add method to check plugged node types

Add check_plugged_nodes to check the plugged node types are expected.

BUG=chromium:532713
TEST=not used yet

Change-Id: I3244089916f4929360aebfb3f82ed661a9780e48
Reviewed-on: https://chromium-review.googlesource.com/301343
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/chameleon/audio_test_utils.py
bb2cd4945628d904d357f3e327570243d39e9599 19-Sep-2015 Cheng-Yi Chiang <cychiang@chromium.org> [autotest] audio_test_utils: Add method to check audio nodes

Add audio_test_utils module to put audio test utilities shared by
audio_Audio* tests.
Add a method to check the audio nodes selected by Cros device are as
expected.

BUG=chromium:524944
TEST=not used yet

Change-Id: I11471605704d16b78f89d71cbf116272fdbe7eb6
Reviewed-on: https://chromium-review.googlesource.com/301250
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/chameleon/audio_test_utils.py