commit | 28cae0436826145dcc60023598f2c55f06479b63 | [log] [tgz] |
---|---|---|
author | Jimmy Dalqvist <jimmy.dalqvist@sonymobile.com> | Fri Apr 12 10:50:56 2013 +0200 |
committer | Takahiro Aizawa <takahiro.aizawa@sonymobile.com> | Fri Oct 23 11:36:44 2015 +0900 |
tree | 8ffbfe6e11fd1607666aaeaf810620b6550bf6d9 | |
parent | cc7373eafd0d5be7df8898748a700b47298ebf10 [diff] |
Correct MediaAudioTrackTest testPlaybackHeadPositionAfterStop When calling AudioTrack.stop the system needs some time to stop the audiotrack and set the position to 0. The current sleep time of 100ms is not enough. Update the test to use the same strategy as the CTS test, which is to call getPlaybackHeadPosition multiple time before giving up and failing the test. Change-Id: Ie938929c009c41e101782b4a46ac01a0aa73ee34