Home | History | Annotate | Download | only in cts
      1 /*
      2  * Copyright (C) 2012 The Android Open Source Project
      3  *
      4  * Licensed under the Apache License, Version 2.0 (the "License");
      5  * you may not use this file except in compliance with the License.
      6  * You may obtain a copy of the License at
      7  *
      8  *      http://www.apache.org/licenses/LICENSE-2.0
      9  *
     10  * Unless required by applicable law or agreed to in writing, software
     11  * distributed under the License is distributed on an "AS IS" BASIS,
     12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     13  * See the License for the specific language governing permissions and
     14  * limitations under the License.
     15  */
     16 
     17 package android.mediastress.cts;
     18 
     19 public class H264R480pAacShortPlayerTest extends MediaPlayerStressTest {
     20     private static final String VIDEO_PATH_MIDDLE = "bbb_short/720x480/mp4_libx264_libfaac/";
     21     private final String[] mMedias = {
     22         "bbb_short.ffmpeg.720x480.mp4.libx264_1000kbps_25fps.libfaac_stereo_128kbps_44100Hz.mp4",
     23         "bbb_short.ffmpeg.720x480.mp4.libx264_1000kbps_25fps.libfaac_stereo_192kbps_44100Hz.mp4",
     24         "bbb_short.ffmpeg.720x480.mp4.libx264_1000kbps_30fps.libfaac_stereo_128kbps_44100Hz.mp4",
     25         "bbb_short.ffmpeg.720x480.mp4.libx264_1000kbps_30fps.libfaac_stereo_192kbps_44100Hz.mp4",
     26         "bbb_short.ffmpeg.720x480.mp4.libx264_1350kbps_25fps.libfaac_stereo_128kbps_44100Hz.mp4",
     27         "bbb_short.ffmpeg.720x480.mp4.libx264_1350kbps_25fps.libfaac_stereo_192kbps_44100Hz.mp4",
     28         "bbb_short.ffmpeg.720x480.mp4.libx264_1350kbps_30fps.libfaac_stereo_128kbps_44100Hz.mp4",
     29         "bbb_short.ffmpeg.720x480.mp4.libx264_1350kbps_30fps.libfaac_stereo_192kbps_44100Hz.mp4",
     30         "bbb_short.ffmpeg.720x480.mp4.libx264_500kbps_25fps.libfaac_stereo_128kbps_44100Hz.mp4",
     31         "bbb_short.ffmpeg.720x480.mp4.libx264_500kbps_25fps.libfaac_stereo_192kbps_44100Hz.mp4",
     32         "bbb_short.ffmpeg.720x480.mp4.libx264_500kbps_30fps.libfaac_stereo_128kbps_44100Hz.mp4",
     33         "bbb_short.ffmpeg.720x480.mp4.libx264_500kbps_30fps.libfaac_stereo_192kbps_44100Hz.mp4"
     34     };
     35 
     36     public void testPlay00() throws Exception {
     37         doTestVideoPlaybackShort(0);
     38     }
     39 
     40     public void testPlay01() throws Exception {
     41         doTestVideoPlaybackShort(1);
     42     }
     43 
     44     public void testPlay02() throws Exception {
     45         doTestVideoPlaybackShort(2);
     46     }
     47 
     48     public void testPlay03() throws Exception {
     49         doTestVideoPlaybackShort(3);
     50     }
     51 
     52     public void testPlay04() throws Exception {
     53         doTestVideoPlaybackShort(4);
     54     }
     55 
     56     public void testPlay05() throws Exception {
     57         doTestVideoPlaybackShort(5);
     58     }
     59 
     60     public void testPlay06() throws Exception {
     61         doTestVideoPlaybackShort(6);
     62     }
     63 
     64     public void testPlay07() throws Exception {
     65         doTestVideoPlaybackShort(7);
     66     }
     67 
     68     public void testPlay08() throws Exception {
     69         doTestVideoPlaybackShort(8);
     70     }
     71 
     72     public void testPlay09() throws Exception {
     73         doTestVideoPlaybackShort(9);
     74     }
     75 
     76     public void testPlay10() throws Exception {
     77         doTestVideoPlaybackShort(10);
     78     }
     79 
     80     public void testPlay11() throws Exception {
     81         doTestVideoPlaybackShort(11);
     82     }
     83 
     84     @Override
     85     protected String getFullVideoClipName(int mediaNumber) {
     86         return VIDEO_TOP_DIR + VIDEO_PATH_MIDDLE + mMedias[mediaNumber];
     87     }
     88 
     89 }
     90