[DESCRIPTION]
run cts -m CtsMediaTestCases - t android.media.cts.CamcorderProfileTest#testGetWithId
fail :
fail :
06-11 11:31:08 D/ModuleListener: ModuleListener.testStarted(android.media.cts.CamcorderProfileTest#testGetWithId)
06-11 11:31:09 D/ModuleListener: ModuleListener.testFailed(android.media.cts.CamcorderProfileTest#testGetWithId, junit.framework.AssertionFailedError: expected:<4500000> but was:<24000000>
at junit.framework.Assert.fail(Assert.java:50)
at junit.framework.Assert.failNotEquals(Assert.java:287)
at junit.framework.Assert.assertEquals(Assert.java:67)
at junit.framework.Assert.assertEquals(Assert.java:199)
at junit.framework.Assert.assertEquals(Assert.java:205)
at android.media.cts.CamcorderProfileTest.assertProfileEquals(CamcorderProfileTest.java:115)
at android.media.cts.CamcorderProfileTest.checkSpecificProfiles(CamcorderProfileTest.java:240)
[SOLUTION]
1、确认是否有改动mediaprofile.cpp文件,如果有请回退测试看看;这个不建议轻易改动;
2、如果没有改动,请检查media_profiles.xml这只档;
a、先检查是否有1080P的配置,例如:
<EncoderProfile quality="1080p" fileFormat="3gp" duration="30">
<Video codec="m4v"
bitRate="24000000"
width="1920"
height="1088"
frameRate="30" />
<Audio codec="aac"
bitRate="128000"
sampleRate="48000"
channels="2" />
</EncoderProfile>
<Video codec="m4v"
bitRate="24000000"
width="1920"
height="1088"
frameRate="30" />
<Audio codec="aac"
bitRate="128000"
sampleRate="48000"
channels="2" />
</EncoderProfile>
b、再检查high部分的配置,大概在272~282行,例如:
<EncoderProfile quality="high" fileFormat="3gp" duration="30">
<Video codec="m4v"
bitRate="4500000"
width="640"
height="480"
frameRate="30" />
<Audio codec="aac"
bitRate="128000"
sampleRate="48000"
channels="2" />
</EncoderProfile>
<Video codec="m4v"
bitRate="4500000"
width="640"
height="480"
frameRate="30" />
<Audio codec="aac"
bitRate="128000"
sampleRate="48000"
channels="2" />
</EncoderProfile>
很明显两者不一致,请把b的部分改成和a部分一致;然后全编,复测。