android.media.cts.AudioTrackLatencyTest#testPlaySmallBuffer test fail

[DESCRIPTION]

android.media.cts.AudioTrackLatencyTest#testPlaySmallBuffer test fail
junit.framework.AssertionFailedError: testPlaySmallBuffer: did it play all the data? expected:<1539> but was:<1024>
at junit.framework.Assert.fail(Assert.java:50)
at junit.framework.Assert.failNotEquals(Assert.java:287)
at junit.framework.Assert.assertEquals(Assert.java:67)

[SOLUTION]

1. 这个测项原理是判断固定量的数据在固定时间内是否有完成播放,如果没有就fail。贵司之前fail就是指定时间内数据未播放完,即存在播放超时的问题。 具体超时的原因在diff文档中有描述,见如下diff文件的title部分,即DRC Handler创建的时候需要去做XML相关的parser工作,会消耗较长的时间,这个工作在第一次使用到DRC的track时会去执行一次;现在把这个解析工作移到开机的时候做,请知悉。这个是最新的patch,贵司可以自行合入这一部分,请知悉。
[Detail] The GTS Test will spend too much time on creating DRC module. However the time is focusing on initializing XML Parser. To support to call the function in the audioflinger of audioserver [Solution] It could remove the initialization to other moment.

2.如果附件中的DIff档已经合入还是测试失败,请将手机恢复出厂设置,执行以下命令
run cts -m CtsMediaTestCases -t android.media.cts.AudioTrackLatencyTest

作者: RESSRC

个人资源站

发表评论

邮箱地址不会被公开。 必填项已用*标注

此站点使用Akismet来减少垃圾评论。了解我们如何处理您的评论数据