Merge "Update the summary output format which match the PM data posting."

This commit is contained in:
Yu Shan Emily Lau
2011-02-17 12:21:13 -08:00
committed by Android (Google) Code Review
2 changed files with 8 additions and 7 deletions

View File

@@ -811,6 +811,7 @@ public class CodecTest {
try {
mMediaPlayer.setOnCompletionListener(mCompletionListener);
mMediaPlayer.setOnErrorListener(mOnErrorListener);
mMediaPlayer.setOnInfoListener(mInfoListener);
Log.v(TAG, "playMediaSamples: sample file name " + filePath);
mMediaPlayer.setDataSource(filePath);
mMediaPlayer.setDisplay(MediaFrameworkTest.mSurfaceView.getHolder());

View File

@@ -75,13 +75,13 @@ public class MediaPlayerStressTest extends InstrumentationTestCase {
private void writeTestSummary(Writer output) throws Exception{
output.write("Total Result:\n");
output.write(" Complete: " + mTotalComplete);
output.write(" Error: " + mTotalPlaybackError);
output.write(" Unknown Info: " + mTotalInfoUnknown);
output.write(" Track Lagging: " + mTotalVideoTrackLagging );
output.write(" BadInterleaving: " + mTotalBadInterleaving);
output.write(" Not Seekable: " + mTotalNotSeekable);
output.write(" Info Meta data update: " + mTotalMetaDataUpdate);
output.write("Total Complete: " + mTotalComplete + "\n");
output.write("Total Error: " + mTotalPlaybackError + "\n");
output.write("Total Unknown Info: " + mTotalInfoUnknown);
output.write("Total Track Lagging: " + mTotalVideoTrackLagging + "\n" );
output.write("Total BadInterleaving: " + mTotalBadInterleaving + "\n");
output.write("Total Not Seekable: " + mTotalNotSeekable + "\n");
output.write("Total Info Meta data update: " + mTotalMetaDataUpdate + "\n");
output.write("\n");
}