Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ce6ff2c2 authored by Yu Shan Emily Lau's avatar Yu Shan Emily Lau
Browse files

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

Change-Id: I3e3f7313020da6d0d219acd90ac9edc8a4d0bce4
parent 9464f9c5
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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());
+7 −7
Original line number Diff line number Diff line
@@ -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");
    }