Home | History | Annotate | Download | only in mediaframeworktest
      1 /*
      2  * Copyright (C) 2008 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 com.android.mediaframeworktest;
     18 
     19 /**
     20  *
     21  * This class has the names of the all the activity name and variables
     22  * in the instrumentation test.
     23  *
     24  */
     25 public class MediaNames {
     26     //A directory to hold all kinds of media files
     27     public static final String MEDIA_SAMPLE_POOL = "/sdcard/media_api/samples/";
     28     //Audio files
     29     public static final String MP3CBR = "/sdcard/media_api/music/MP3_256kbps_2ch.mp3";
     30     public static final String MP3VBR = "/sdcard/media_api/music/MP3_256kbps_2ch_VBR.mp3";
     31     public static final String SHORTMP3 = "/sdcard/media_api/music/SHORTMP3.mp3";
     32     public static final String MIDI = "/sdcard/media_api/music/ants.mid";
     33     public static final String WMA9 = "/sdcard/media_api/music/WMA9.wma";
     34     public static final String WMA10 = "/sdcard/media_api/music/WMA10.wma";
     35     public static final String WAV = "/sdcard/media_api/music/rings_2ch.wav";
     36     public static final String AMR = "/sdcard/media_api/music/test_amr_ietf.amr";
     37     public static final String OGG = "/sdcard/media_api/music/Revelation.ogg";
     38 
     39     public static final int MP3CBR_LENGTH = 71000;
     40     public static final int MP3VBR_LENGTH = 71000;
     41     public static final int SHORTMP3_LENGTH = 286;
     42     public static final int MIDI_LENGTH = 17000;
     43     public static final int WMA9_LENGTH = 126559;
     44     public static final int WMA10_LENGTH = 126559;
     45     public static final int AMR_LENGTH = 37000;
     46     public static final int OGG_LENGTH = 4000;
     47     public static final int SEEK_TIME = 10000;
     48 
     49     public static final long PAUSE_WAIT_TIME = 3000;
     50     public static final long WAIT_TIME = 2000;
     51     public static final long WAIT_SNAPSHOT_TIME = 5000;
     52 
     53     //Streaming Video
     54     public static final String VIDEO_HTTP3GP = "http://pvs.pv.com/jj/lipsync0.3gp";
     55     public static final String VIDEO_RTSP3GP = "rtsp://63.241.31.203/public/jj/md.3gp";
     56     public static final String VIDEO_RTSP3GP2 = "rtsp://pvs.pv.com/public/live_dvd1.3gp";
     57     public static final String VIDEO_RTSP3GP3 =
     58       "rtsp://ehug.rtsp-youtube.l.google.com/" +
     59       "Ci4LENy73wIaJQmeRVCJq4HuQBMYDSANFEIJbXYtZ29vZ2xlSARSB2RldGFpbHMM/0/0/0/video.3gp";
     60     //public static final String VIDEO_RTSP3GP = "rtsp://193.159.241.21/sp/alizee05.3gp";
     61 
     62     //local video
     63     public static final String VIDEO_MP4 = "/sdcard/media_api/video/MPEG4_320_AAC_64.mp4";
     64     public static final String VIDEO_LONG_3GP = "/sdcard/media_api/video/radiohead.3gp";
     65     public static final String VIDEO_SHORT_3GP = "/sdcard/media_api/video/short.3gp";
     66     public static final String VIDEO_LARGE_SIZE_3GP = "/sdcard/media_api/video/border_large.3gp";
     67     public static final String VIDEO_H263_AAC = "/sdcard/media_api/video/H263_56_AAC_24.3gp";
     68     public static final String VIDEO_H263_AMR = "/sdcard/media_api/video/H263_56_AMRNB_6.3gp";
     69     public static final String VIDEO_H264_AAC = "/sdcard/media_api/video/H264_320_AAC_64.3gp";
     70     public static final String VIDEO_H264_AMR = "/sdcard/media_api/video/H264_320_AMRNB_6.3gp";
     71     public static final String VIDEO_WMV = "/sdcard/media_api/video/bugs.wmv";
     72     public static final String VIDEO_HIGHRES_H263 = "/sdcard/media_api/video/H263_500_AMRNB_12.3gp";
     73     public static final String VIDEO_HIGHRES_MP4 = "/sdcard/media_api/video/H264_500_AAC_128.3gp";
     74 
     75     //ringtone
     76     public static final String ringtone = "/sdcard/media_api/ringtones/F1_NewVoicemail.mp3";
     77 
     78     //streaming mp3
     79     public static final String STREAM_MP3_1 =
     80       "http://wms.pv.com:7070/MediaDownloadContent/mp3/chadthi_jawani_128kbps.mp3";
     81     public static final String STREAM_MP3_2 =
     82       "http://wms.pv.com:7070/MediaDownloadContent/mp3/dualStereo.mp3";
     83     public static final String STREAM_MP3_3 =
     84       "http://wms.pv.com:7070/mediadownloadcontent/UserUploads/15%20Keep%20Holding%20On.mp3";
     85     public static final String STREAM_MP3_4 =
     86       "http://wms.pv.com:7070/mediadownloadcontent/UserUploads/1%20-%20Apologize.mp3";
     87     public static final String STREAM_MP3_5 =
     88       "http://wms.pv.com:7070/mediadownloadcontent/UserUploads/" +
     89       "03%20You're%20Gonna%20Miss%20This.mp3";
     90     public static final String STREAM_MP3_6 =
     91       "http://wms.pv.com:7070/mediadownloadcontent/UserUploads" +
     92       "/02%20Looney%20Tunes%20%C3%82%C2%B7%20Light%20Cavalry%20Overture%20(LP%20Version).mp3";
     93     public static final String STREAM_MP3_7 =
     94       "http://wms.pv.com:7070/mediadownloadcontent/UserUploads" +
     95       "/01%20Love%20Song%20(Album%20Version).mp3";
     96     public static final String STREAM_MP3_8 =
     97       "http://wms.pv.com:7070/MediaDownloadContent/UserUploads/1%20-%20Apologize.mp3";
     98     public static final String STREAM_MP3_9 =
     99       "http://wms.pv.com:7070/MediaDownloadContent/UserUploads" +
    100       "/1%20-%20Smile%20(Explicit%20Version).mp3";
    101     public static final String STREAM_MP3_10 =
    102       "http://wms.pv.com:7070/MediaDownloadContent/UserUploads/beefcake.mp3";
    103 
    104     //Sonivox
    105     public static String MIDIFILES[] = {
    106         "/sdcard/media_api/music/Leadsol.mxmf",
    107         "/sdcard/media_api/music/abba.imy", "/sdcard/media_api/music/ants.mid",
    108         "/sdcard/media_api/music/greensleeves.rtttl", "/sdcard/media_api/music/test.ota"};
    109 
    110     //Performance measurement
    111     public static String[] WAVFILES = {
    112         "/sdcard/media_api/music_perf/WAV/M1F1-AlawWE-AFsp.wav",
    113         "/sdcard/media_api/music_perf/WAV/M1F1-float64-AFsp.wav",
    114         "/sdcard/media_api/music_perf/WAV/song.wav",
    115         "/sdcard/media_api/music_perf/WAV/WAVEtest.wav",
    116         "/sdcard/media_api/music_perf/WAV/WAVEtest_out.wav",
    117         "/sdcard/media_api/music_perf/WAV/test_out.wav"};
    118 
    119     public static String[] AMRNBFILES = {
    120         "/sdcard/media_api/music_perf/AMR/AI_AMR-NB_5.9kbps_6.24kbps_8khz_mono_NMC.amr",
    121         "/sdcard/media_api/music_perf/AMR/AI_AMR-NB_5.15kbps_5.46kbps_8khz_mono_NMC.amr",
    122         "/sdcard/media_api/music_perf/AMR/AI_AMR-NB_7.4kbps_7.80kbps_8khz_mono_NMC.amr",
    123         "/sdcard/media_api/music_perf/AMR/AI_AMR-NB_7.95kbps_9.6kbps_8khz_mono_NMC.amr",
    124         "/sdcard/media_api/music_perf/AMR/AI_AMR-NB_10.2kbps_10.48kbps_8khz_mono_NMC.amr"};
    125 
    126     public static String[] AMRWBFILES = {
    127         "/sdcard/media_api/music_perf/AMRWB/NIN_AMR-WB_15.85kbps_16kbps.amr",
    128         "/sdcard/media_api/music_perf/AMRWB/NIN_AMR-WB_18.25kbps_18kbps.amr",
    129         "/sdcard/media_api/music_perf/AMRWB/NIN_AMR-WB_19.85kbps_20kbps.amr",
    130         "/sdcard/media_api/music_perf/AMRWB/NIN_AMR-WB_23.05kbps_23kbps.amr",
    131         "/sdcard/media_api/music_perf/AMRWB/NIN_AMR-WB_23.85kbps_24kbps.amr",
    132         "/sdcard/media_api/music_perf/AMRWB/PD_AMR-WB_19.85kbps_20kbps.amr",
    133         "/sdcard/media_api/music_perf/AMRWB/PD_AMR-WB_23.05kbps_23kbps.amr",
    134         "/sdcard/media_api/music_perf/AMRWB/PD_AMR-WB_23.85kbps_24kbps.amr",
    135         "/sdcard/media_api/music_perf/AMRWB/WC_AMR-WB_23.05kbps_23kbps.amr",
    136         "/sdcard/media_api/music_perf/AMRWB/WC_AMR-WB_23.85kbps_24kbps.amr", };
    137 
    138     public static String[] MP3FILES = {
    139         "/sdcard/media_api/music_perf/MP3/NIN_56kbps_32khz_stereo_VBR_MCA.MP3",
    140         "/sdcard/media_api/music_perf/MP3/NIN_80kbps_32khz_stereo_VBR_MCA.mp3",
    141         "/sdcard/media_api/music_perf/MP3/NIN_80kbps_44.1khz_stereo_VBR_MCA.mp3",
    142         "/sdcard/media_api/music_perf/MP3/NIN_80kbps_48khz_stereo_VBR_MCA.mp3",
    143         "/sdcard/media_api/music_perf/MP3/NIN_112kbps_32khz_stereo_VBR_MCA.mp3",
    144         "/sdcard/media_api/music_perf/MP3/NIN_112kbps_44.1khz_stereo_VBR_MCA.mp3",
    145         "/sdcard/media_api/music_perf/MP3/NIN_112kbps_48khz_stereo_VBR_MCA.mp3",
    146         "/sdcard/media_api/music_perf/MP3/NIN_192kbps_32khz_mono_CBR_MCA.mp3",
    147         "/sdcard/media_api/music_perf/MP3/NIN_192kbps_44.1khz_mono_CBR_MCA.mp3",
    148         "/sdcard/media_api/music_perf/MP3/NIN_192kbps_48khz_mono_CBR_MCA.mp3",
    149         "/sdcard/media_api/music_perf/MP3/NIN_256kbps_44.1khz_mono_CBR_MCA.mp3",
    150         "/sdcard/media_api/music_perf/MP3/NIN_256kbps_48khz_mono_CBR_MCA.mp3",
    151         "/sdcard/media_api/music_perf/MP3/PD_112kbps_32khz_stereo_VBR_MCA.mp3",
    152         "/sdcard/media_api/music_perf/MP3/PD_112kbps_44.1khz_stereo_VBR_MCA.mp3",
    153         "/sdcard/media_api/music_perf/MP3/PD_112kbps_48khz_stereo_VBR_MCA.mp3",
    154         "/sdcard/media_api/music_perf/MP3/PD_192kbps_32khz_mono_CBR_DPA.mp3",
    155         "/sdcard/media_api/music_perf/MP3/PD_256kbps_44.1khz_mono_CBR_DPA.mp3",
    156         "/sdcard/media_api/music_perf/MP3/PD_256kbps_48khz_mono_CBR_MCA.mp3",
    157         "/sdcard/media_api/music_perf/MP3/WC_256kbps_44.1khz_mono_CBR_DPA.mp3",
    158         "/sdcard/media_api/music_perf/MP3/WC_256kbps_48khz_mono_CBR_DPA.mp3",
    159         "/sdcard/media_api/music_perf/regular_album_photo/Apologize.mp3",
    160         "/sdcard/media_api/music_perf/regular_album_photo/Because_Of_You.mp3",
    161         "/sdcard/media_api/music_perf/regular_album_photo/Complicated.mp3",
    162         "/sdcard/media_api/music_perf/regular_album_photo/Glamorous.mp3",
    163         "/sdcard/media_api/music_perf/regular_album_photo/Im_With_You.mp3",
    164         "/sdcard/media_api/music_perf/regular_album_photo/Smile.mp3",
    165         "/sdcard/media_api/music_perf/regular_album_photo/Suddenly_I_See.mp3",
    166         "/sdcard/media_api/music_perf/regular_album_photo/When You Say Nothing At All.mp3",
    167         "/sdcard/media_api/music_perf/regular_album_photo/my_happy_ending.mp3"};
    168 
    169     public static String[] AACFILES = {
    170         "/sdcard/media_api/music_perf/AAC/AI_AAC_24kbps_12khz_Mono_1pCBR_SSE.mp4",
    171         "/sdcard/media_api/music_perf/AAC/AI_AAC_56kbps_22.05khz_Stereo_1pCBR_SSE.mp4",
    172         "/sdcard/media_api/music_perf/AAC/AI_AAC_56kbps_32khz_Stereo_CBR_SSE.mp4",
    173         "/sdcard/media_api/music_perf/AAC/AI_AAC_56kbps_44.1khz_Stereo_1pCBR_SSE.mp4",
    174         "/sdcard/media_api/music_perf/AAC/AI_AAC_80kbps_32khz_Stereo_1pCBR_SSE.mp4",
    175         "/sdcard/media_api/music_perf/AAC/AI_AAC_80kbps_32khz_Stereo_CBR_SSE.mp4",
    176         "/sdcard/media_api/music_perf/AAC/NIN_AAC_56kbps_22.05khz_Stereo_1pCBR_SSE.mp4",
    177         "/sdcard/media_api/music_perf/AAC/NIN_AAC_56kbps_32khz_Stereo_CBR_SSE.mp4",
    178         "/sdcard/media_api/music_perf/AAC/NIN_AAC_56kbps_44.1khz_Stereo_1pCBR_SSE.mp4",
    179         "/sdcard/media_api/music_perf/AAC/NIN_AAC_80kbps_32khz_Stereo_1pCBR_SSE.mp4",
    180         "/sdcard/media_api/music_perf/AAC/NIN_AAC_80kbps_32khz_Stereo_CBR_SSE.mp4",
    181         "/sdcard/media_api/music_perf/AAC/PD_AAC_56kbps_22.05khz_Stereo_1pCBR_SSE.mp4",
    182         "/sdcard/media_api/music_perf/AAC/PD_AAC_56kbps_32khz_Stereo_CBR_SSE.mp4",
    183         "/sdcard/media_api/music_perf/AAC/PD_AAC_56kbps_44.1khz_Stereo_1pCBR_SSE.mp4",
    184         "/sdcard/media_api/music_perf/AAC/PD_AAC_80kbps_32khz_Stereo_1pCBR_SSE.mp4",
    185         "/sdcard/media_api/music_perf/AAC/PD_AAC_80kbps_32khz_Stereo_CBR_SSE.mp4",
    186         "/sdcard/media_api/music_perf/AAC/PV_AAC_56kbps_22.05khz_Stereo_1pCBR_SSE.mp4",
    187         "/sdcard/media_api/music_perf/AAC/PV_AAC_56kbps_32khz_Stereo_CBR_SSE.mp4",
    188         "/sdcard/media_api/music_perf/AAC/PV_AAC_56kbps_44.1khz_Stereo_1pCBR_SSE.mp4",
    189         "/sdcard/media_api/music_perf/AAC/PV_AAC_80kbps_32khz_Stereo_1pCBR_SSE.mp4",
    190         "/sdcard/media_api/music_perf/AAC/PV_AAC_80kbps_32khz_Stereo_CBR_SSE.mp4",
    191         "/sdcard/media_api/music_perf/AAC/WC_AAC_56kbps_22.05khz_Stereo_1pCBR_SSE.mp4",
    192         "/sdcard/media_api/music_perf/AAC/WC_AAC_56kbps_32khz_Stereo_CBR_SSE.mp4",
    193         "/sdcard/media_api/music_perf/AAC/WC_AAC_56kbps_44.1khz_Stereo_1pCBR_SSE.mp4",
    194         "/sdcard/media_api/music_perf/AAC/WC_AAC_80kbps_32khz_Stereo_1pCBR_SSE.mp4",
    195         "/sdcard/media_api/music_perf/AAC/WC_AAC_80kbps_32khz_Stereo_CBR_SSE.mp4",
    196     };
    197 
    198     public static String[] VIDEOFILES = { "/sdcard/media_api/video_perf/AI_CTO_Mpeg4_32kbps_10fps_SQCIF_128x96+AAC_8kbps_8khz_mono_QTE.mp4",
    199       "/sdcard/media_api/video_perf/AI_CTO_Mpeg4_32kbps_12fps_SQCIF_128x96+AAC_8kbps_8khz_mono_QTE.mp4",
    200       "/sdcard/media_api/video_perf/AI_CTO_Mpeg4_32kbps_15fps_SQCIF_128x96+AAC_8kbps_8khz_mono_QTE.mp4",
    201       "/sdcard/media_api/video_perf/AI_CTO_Mpeg4_32kbps_5fps_SQCIF_128x96+AAC_8kbps_8khz_mono_QTE.mp4",
    202       "/sdcard/media_api/video_perf/AI_CTO_Mpeg4_32kbps_5fps_SQCIF_128x96+AAC_8kbps_8khz_mono_SSE.mp4",
    203       "/sdcard/media_api/video_perf/AI_CTO_Mpeg4_32kbps_7.5fps_SQCIF_128x96+AAC_8kbps_8khz_mono_QTE.mp4",
    204       "/sdcard/media_api/video_perf/AI_WMV_1024kbps_20fps_QCIF_176x144_noaudio_SSE.wmv",
    205       "/sdcard/media_api/video_perf/AI_WMV_1024kbps_25fps_QCIF_176x144_noaudio_SSE.wmv",
    206       "/sdcard/media_api/video_perf/Chicken.wmv",
    207       "/sdcard/media_api/video_perf/MP_qcif_15fps_100kbps_48kHz_192kbps_30secs.wmv",
    208       "/sdcard/media_api/video_perf/NIN_CTO_H264_123kbps_5fps_QCIF_176x144+AMR_12.2kbps_8khz_mono_QTE.3gp",
    209       "/sdcard/media_api/video_perf/NIN_CTO_H264_96kbps_10.2fps_QCIF_176x144+AMR_12.2kbps_8khz_mono_QTE.3gp",
    210       "/sdcard/media_api/video_perf/NIN_CTO_H264_96kbps_12fps_QCIF_176x144+AMR_12.2kbps_8khz_mono_QTE.3gp",
    211       "/sdcard/media_api/video_perf/NIN_CTO_H264_96kbps_15fps_QCIF_176x144+AMR_12.2kbps_8khz_mono_QTE.3gp",
    212       "/sdcard/media_api/video_perf/NIN_CTO_Mpeg4_123kbps_15fps_QCIF_176x144+AAC_32kbps_22khz_mono_SSE.3gp",
    213       "/sdcard/media_api/video_perf/NIN_CTO_Mpeg4_123kbps_7.5fps_QCIF_176x144+AAC_32kbps_22khz_stereo_SSE.3gp",
    214       "/sdcard/media_api/video_perf/NIN_CTO_Mpeg4_128kbps_10fps_QCIF_176x144+AAC+_32kbps_48khz_stereo_SSE.3gp",
    215       "/sdcard/media_api/video_perf/NIN_CTO_Mpeg4_128kbps_12fps_QCIF_176x144+AAC+_32kbps_48khz_stereo_SSE.3gp",
    216       "/sdcard/media_api/video_perf/NIN_CTO_Mpeg4_128kbps_15fps_QCIF_176x144+AAC+_32kbps_48khz_stereo_SSE.3gp",
    217       "/sdcard/media_api/video_perf/NIN_CTO_Mpeg4_128kbps_5fps_QCIF_176x144+AAC+_32kbps_48khz_stereo_SSE.3gp",
    218       "/sdcard/media_api/video_perf/NIN_CTO_Mpeg4_128kbps_7.5fps_QCIF_176x144+AAC+_32kbps_48khz_stereo_SSE.3gp",
    219       "/sdcard/media_api/video_perf/NIN_H263_128kbps_10fps_QCIF_174x144_noaudio_SSE.mp4",
    220       "/sdcard/media_api/video_perf/NIN_H263_128kbps_15fps_QCIF_174x144_noaudio_SSE.mp4",
    221       "/sdcard/media_api/video_perf/NIN_H263_48kbps_10fps_QCIF_174x144_noaudio_SSE.3gp",
    222       "/sdcard/media_api/video_perf/NIN_H263_48kbps_12fps_QCIF_174x144_noaudio_SSE.3gp",
    223       "/sdcard/media_api/video_perf/NIN_H264_123kbps_15fps_QCIF_176x144+AAC_32kbps_22khz_stereo_SSE.3gp",
    224       "/sdcard/media_api/video_perf/NIN_H264_123kbps_7.5fps_QCIF_176x144+AAC_32kbps_22khz_stereo_SSE.3gp",
    225       "/sdcard/media_api/video_perf/PV_H264_2000kbps_20fps_CIF_352x288+AAC_96kbps_48khz_stereo_SSE.mp4",
    226       "/sdcard/media_api/video_perf/PV_H264_2000kbps_25fps_CIF_352x288+AAC_96kbps_48khz_stereo_SSE.mp4",
    227       "/sdcard/media_api/video_perf/PV_H264_2000kbps_30fps_CIF_352x288+AAC_128kbps_48khz_stereo_SSE.mp4",
    228       "/sdcard/media_api/video_perf/Stevie-1.wmv",
    229       "/sdcard/media_api/video_perf/WC_H264_1600kbps_20fps_QCIF_176x144+AAC_96kbps_48khz_mono_SSE.mp4",
    230       "/sdcard/media_api/video_perf/WC_H264_1600kbps_25fps_QCIF_176x144+AAC_96kbps_48khz_mono_SSE.mp4",
    231       "/sdcard/media_api/video_perf/WC_H264_1600kbps_30fps_QCIF_176x144+AAC_96kbps_48khz_mono_SSE.mp4",
    232       "/sdcard/media_api/video_perf/bugs.wmv",
    233       "/sdcard/media_api/video_perf/niceday.wmv",
    234       "/sdcard/media_api/video_perf/eaglesatopnflpe.wmv",
    235 
    236     };
    237 
    238     //wma - only support up to wma 9
    239     public static String[] WMASUPPORTED = {
    240       "/sdcard/media_api/music_perf/WMASUPPORTED/AI_WMA9.2_32kbps_44.1khz_mono_CBR_DPA.wma",
    241       "/sdcard/media_api/music_perf/WMASUPPORTED/AI_WMA9.2_48kbps_44.1khz_mono_CBR_DPA.wma",
    242       "/sdcard/media_api/music_perf/WMASUPPORTED/NIN_WMA9.2_32kbps_44.1khz_mono_CBR_DPA.wma",
    243       "/sdcard/media_api/music_perf/WMASUPPORTED/NIN_WMA9.2_48kbps_44.1khz_mono_CBR_DPA.wma",
    244       "/sdcard/media_api/music_perf/WMASUPPORTED/PD_WMA9.2_32kbps_44.1khz_mono_CBR_DPA.wma",
    245       "/sdcard/media_api/music_perf/WMASUPPORTED/PD_WMA9.2_48kbps_44.1khz_mono_CBR_DPA.wma",
    246       "/sdcard/media_api/music_perf/WMASUPPORTED/PV_WMA9.2_32kbps_44.1khz_mono_CBR_DPA.wma",
    247       "/sdcard/media_api/music_perf/WMASUPPORTED/PV_WMA9.2_48kbps_44.1khz_mono_CBR_DPA.wma",
    248       "/sdcard/media_api/music_perf/WMASUPPORTED/WC_WMA9.2_32kbps_44.1khz_mono_CBR_DPA.wma",
    249       "/sdcard/media_api/music_perf/WMASUPPORTED/WC_WMA9.2_48kbps_44.1khz_mono_CBR_DPA.wma"
    250 
    251     };
    252 
    253     public static String[] WMAUNSUPPORTED = {
    254       "/sdcard/media_api/music_perf/WMAUNSUPPORTED/AI_WMA10_127kbps_48khz_stereo_CBR_DPA.wma",
    255       "/sdcard/media_api/music_perf/WMAUNSUPPORTED/AI_WMA10_128kbps_44.1khz_stereo_2pVBR_DPA.wma",
    256       "/sdcard/media_api/music_perf/WMAUNSUPPORTED/AI_WMA10_128kbps_48khz_stereo_2pVBR_DPA.wma",
    257       "/sdcard/media_api/music_perf/WMAUNSUPPORTED/AI_WMA10_128kbps_88khz_stereo_CBR_DPA.wma",
    258       "/sdcard/media_api/music_perf/WMAUNSUPPORTED/AI_WMA10_128kbps_96khz_stereo_CBR_DPA.wma",
    259       "/sdcard/media_api/music_perf/WMAUNSUPPORTED/AI_WMA10_192kbps_44.1khz_stereo_2pVBR_DPA.wma",
    260       "/sdcard/media_api/music_perf/WMAUNSUPPORTED/AI_WMA10_192kbps_88khz_stereo_CBR_DPA.wma",
    261       "/sdcard/media_api/music_perf/WMAUNSUPPORTED/AI_WMA10_192kbps_96khz_stereo_CBR_DPA.wma",
    262       "/sdcard/media_api/music_perf/WMAUNSUPPORTED/AI_WMA10_256kbps_44khz_stereo_CBR_DPA.wma",
    263       "/sdcard/media_api/music_perf/WMAUNSUPPORTED/AI_WMA10_256kbps_48khz_stereo_CBR_DPA.wma",
    264       "/sdcard/media_api/music_perf/WMAUNSUPPORTED/AI_WMA10_256kbps_88khz_stereo_CBR_DPA.wma",
    265       "/sdcard/media_api/music_perf/WMAUNSUPPORTED/AI_WMA10_256kbps_96khz_stereo_CBR_DPA.wma",
    266       "/sdcard/media_api/music_perf/WMAUNSUPPORTED/AI_WMA10_384kbps_44khz_stereo_CBR_DPA.wma",
    267       "/sdcard/media_api/music_perf/WMAUNSUPPORTED/AI_WMA10_384kbps_48khz_stereo_CBR_DPA.wma",
    268       "/sdcard/media_api/music_perf/WMAUNSUPPORTED/AI_WMA10_384kbps_88khz_stereo_CBR_DPA.wma"
    269     };
    270 
    271     //Media Recorder
    272     public static final String RECORDER_OUTPUT = "/sdcard/media_api/recorderOutput.amr";
    273 
    274     //video thumbnail
    275     public static final String THUMBNAIL_OUTPUT = "/sdcard/media_api/videoThumbnail.png";
    276     public static final String GOLDEN_THUMBNAIL_OUTPUT = "/sdcard/media_api/goldenThumbnail.png";
    277     public static final String GOLDEN_THUMBNAIL_OUTPUT_2 = "/sdcard/media_api/goldenThumbnail2.png";
    278 
    279     //Metadata Utility
    280     public static final String[] THUMBNAIL_CAPTURE_TEST_FILES = {
    281       "/sdcard/media_api/metadata/test.mp4",
    282       "/sdcard/media_api/metadata/test1.3gp",
    283       "/sdcard/media_api/metadata/test2.3gp",
    284       "/sdcard/media_api/metadata/test3.3gp",
    285       "/sdcard/media_api/metadata/test4.3gp",
    286       "/sdcard/media_api/metadata/test5.3gp",
    287       "/sdcard/media_api/metadata/test6.3gp",
    288       "/sdcard/media_api/metadata/test7.3gp",
    289       "/sdcard/media_api/metadata/test8.3gp",
    290       "/sdcard/media_api/metadata/test9.3gp",
    291       "/sdcard/media_api/metadata/test10.3gp",
    292       "/sdcard/media_api/metadata/test11.3gp",
    293       "/sdcard/media_api/metadata/test12.3gp",
    294       "/sdcard/media_api/metadata/test13.3gp",
    295       "/sdcard/media_api/metadata/test14.3gp",
    296       "/sdcard/media_api/metadata/test15.3gp",
    297       "/sdcard/media_api/metadata/test16.3gp",
    298       "/sdcard/media_api/metadata/test17.3gp",
    299       "/sdcard/media_api/metadata/test18.3gp",
    300       "/sdcard/media_api/metadata/test19.3gp",
    301       "/sdcard/media_api/metadata/test20.3gp",
    302       "/sdcard/media_api/metadata/test21.3gp",
    303       "/sdcard/media_api/metadata/test22.3gp",
    304       "/sdcard/media_api/metadata/test23.3gp",
    305       "/sdcard/media_api/metadata/test24.3gp",
    306       "/sdcard/media_api/metadata/test25.3gp",
    307       "/sdcard/media_api/metadata/test26.3gp",
    308       "/sdcard/media_api/metadata/test27.3gp",
    309       "/sdcard/media_api/metadata/test28.3gp",
    310       "/sdcard/media_api/metadata/test29.3gp",
    311       "/sdcard/media_api/metadata/test30.3gp",
    312       "/sdcard/media_api/metadata/test31.3gp",
    313       "/sdcard/media_api/metadata/test32.3gp",
    314       "/sdcard/media_api/metadata/test33.3gp",
    315       "/sdcard/media_api/metadata/test35.mp4",
    316       "/sdcard/media_api/metadata/test36.m4v",
    317       "/sdcard/media_api/metadata/test34.wmv",
    318       "/sdcard/media_api/metadata/test_metadata.mp4",
    319   };
    320 
    321   public static final String[] METADATA_RETRIEVAL_TEST_FILES = {
    322       // Raw AAC is not supported
    323       // "/sdcard/media_api/test_raw.aac",
    324       // "/sdcard/media_api/test_adts.aac",
    325       // "/sdcard/media_api/test_adif.aac",
    326       "/sdcard/media_api/metadata/test_metadata.mp4",
    327       "/sdcard/media_api/metadata/WMA10.wma",
    328       "/sdcard/media_api/metadata/Leadsol_out.wav",
    329       "/sdcard/media_api/metadata/test_aac.mp4",
    330       "/sdcard/media_api/metadata/test_amr.mp4",
    331       "/sdcard/media_api/metadata/test_avc_amr.mp4",
    332       "/sdcard/media_api/metadata/test_metadata.mp4",
    333       "/sdcard/media_api/metadata/test_vbr.mp3",
    334       "/sdcard/media_api/metadata/test_cbr.mp3",
    335       "/sdcard/media_api/metadata/metadata_test1.mp3",
    336       "/sdcard/media_api/metadata/test33.3gp",
    337       "/sdcard/media_api/metadata/test35.mp4",
    338       "/sdcard/media_api/metadata/test36.m4v",
    339       "/sdcard/media_api/metadata/test_m4v_amr.mp4",
    340       "/sdcard/media_api/metadata/test_h263_amr.mp4",
    341       "/sdcard/media_api/metadata/test34.wmv",
    342   };
    343 
    344   public static final String[] ALBUMART_TEST_FILES = {
    345       "/sdcard/media_api/album_photo/test_22_16_mp3.mp3",
    346       "/sdcard/media_api/album_photo/PD_256kbps_48khz_mono_CBR_MCA.mp3",
    347       "/sdcard/media_api/album_photo/PD_256kbps_44.1khz_mono_CBR_DPA.mp3",
    348       "/sdcard/media_api/album_photo/PD_192kbps_32khz_mono_CBR_DPA.mp3",
    349       "/sdcard/media_api/album_photo/NIN_256kbps_48khz_mono_CBR_MCA.mp3",
    350       "/sdcard/media_api/album_photo/NIN_256kbps_44.1khz_mono_CBR_MCA.mp3",
    351       "/sdcard/media_api/album_photo/NIN_112kbps(96kbps)_48khz_stereo_VBR_MCA.mp3",
    352       "/sdcard/media_api/album_photo/NIN_112kbps(96kbps)_44.1khz_stereo_VBR_MCA.mp3",
    353       "/sdcard/media_api/album_photo/lightGreen1.mp3",
    354       "/sdcard/media_api/album_photo/babyBlue2 1.mp3",
    355       "/sdcard/media_api/album_photo/2-01 01 NIN_56kbps(64kbps)_32khz_stereo_VBR_MCA.mp3",
    356       "/sdcard/media_api/album_photo/02_NIN_112kbps(80kbps)_32khz_stereo_VBR_MCA.mp3",
    357       "/sdcard/media_api/album_photo/No_Woman_No_Cry_128K.wma",
    358       "/sdcard/media_api/album_photo/Beethoven_2.wma",
    359   };
    360 
    361   //TEST_PATH_1: is a video and contains metadata for key "num-tracks"
    362   // TEST_PATH_2: any valid media file.
    363   // TEST_PATH_3: invalid media file
    364   public static final String TEST_PATH_1 = "/sdcard/media_api/metadata/test.mp4";
    365   public static final String TEST_PATH_3 = "/sdcard/media_api/data.txt";
    366   public static final String TEST_PATH_4 = "somenonexistingpathname";
    367   public static final String TEST_PATH_5 = "mem://012345";
    368 
    369   //Meta data expected result
    370   //The expected tag result in the following order
    371   //cd_track_number, album, artist, author, composer, date, genre
    372   //title, years, duration
    373   public static final String META_DATA_MP3 [][] = {
    374       {"/sdcard/media_api/metaDataTestMedias/MP3/ID3V1_ID3V2.mp3", "1/10", "ID3V2.3 Album", "ID3V2.3 Artist",
    375           "ID3V2.3 Lyricist", "ID3V2.3 Composer", null, "Blues",
    376           "ID3V2.3 Title", "1234", "295", "1", null},
    377       {"/sdcard/media_api/metaDataTestMedias/MP3/ID3V2.mp3", "1/10", "ID3V2.3 Album", "ID3V2.3 Artist",
    378           "ID3V2.3 Lyricist", "ID3V2.3 Composer", null, "Blues",
    379           "ID3V2.3 Title", "1234", "287", "1", null},
    380       {"/sdcard/media_api/metaDataTestMedias/MP3/ID3V1.mp3", "1", "test ID3V1 Album", "test ID3V1 Artist",
    381           null, null, null, "255", "test ID3V1 Title", "1234", "231332", "1", null},
    382       {"/sdcard/media_api/metaDataTestMedias/MP3/Corrupted_ID3V1.mp3" , null, null, null,
    383               null, null, null, null, null, null, "231330", "1", null},
    384       //The corrupted TALB field in id3v2 would not switch to id3v1 tag automatically
    385       {"/sdcard/media_api/metaDataTestMedias/MP3/Corrupted_ID3V2_TALB.mp3", "01", null, "ID3V2.3 Artist",
    386           "ID3V2.3 Lyricist", "ID3V2.3 Composer", null,
    387           "Blues", "ID3V2.3 Title", "1234", "295", "1", null},
    388       {"/sdcard/media_api/metaDataTestMedias/MP3/Corrupted_ID3V2_TCOM.mp3", "01", "ID3V2.3 Album",
    389            "ID3V2.3 Artist", "ID3V2.3 Lyricist", null, null,
    390            "Blues", "ID3V2.3 Title", "1234", "295", "1", null},
    391       {"/sdcard/media_api/metaDataTestMedias/MP3/Corrupted_ID3V2_TCOM_2.mp3", "01", "ID3V2.3 Album",
    392            "ID3V2.3 Artist", null, null, null, "Blues", "ID3V2.3 Title", "1234", "295", "1", null},
    393       {"/sdcard/media_api/metaDataTestMedias/MP3/Corrupted_ID3V2_TRCK.mp3", "dd", "ID3V2.3 Album",
    394            "ID3V2.3 Artist", "ID3V2.3 Lyricist", "ID3V2.3 Composer", null,
    395            "Blues", "ID3V2.3 Title", "1234", "295", "1", null},
    396       {"/sdcard/media_api/metaDataTestMedias/MP3/Corrupted_ID3V2_TRCK_2.mp3", "01", "ID3V2.3 Album",
    397            "ID3V2.3 Artist", null, null, null, null, "ID3V2.3 Title", null, "295", "1", null},
    398       {"/sdcard/media_api/metaDataTestMedias/MP3/Corrupted_ID3V2_TYER.mp3", "01", "ID3V2.3 Album",
    399            "ID3V2.3 Artist", null, null, null, null, "ID3V2.3 Title", "9999", "295", "1", null},
    400       {"/sdcard/media_api/metaDataTestMedias/MP3/Corrupted_ID3V2_TYER_2.mp3", "01", "ID3V2.3 Album",
    401            "ID3V2.3 Artist", "ID3V2.3 Lyricist", "ID3V2.3 Composer", null,
    402            "Blues", "ID3V2.3 Title", null, "295", "1", null},
    403       {"/sdcard/media_api/metaDataTestMedias/MP3/Corrupted_ID3V2_TIT.mp3", null, null, null,
    404           null, null, null, null, null, null, "295", "1", null}
    405   };
    406 
    407   public static final String META_DATA_OTHERS [][] = {
    408       {"/sdcard/media_api/metaDataTestMedias/3GP/cat.3gp", null, null, null,
    409           null, null, "20080309T002415.000Z", null,
    410           null, null, "63916", "2", null},
    411       {"/sdcard/media_api/metaDataTestMedias/AMR/AMR_NB.amr", null, null, null,
    412           null, null, null, null,
    413           null, null, "126540", "1", null},
    414       {"/sdcard/media_api/metaDataTestMedias/AMRWB/AMR_WB.amr", null, null, null,
    415           null, null, null, null,
    416           null, null, "231180", "1", null},
    417       {"/sdcard/media_api/metaDataTestMedias/M4A/Jaws Of Life_ver1.m4a", "1/8", "Suspended Animation",
    418           "John Petrucci", null, null, "20070510T125223.000Z",
    419           "12", "Jaws Of Life", "2005", "449329", "1", "m4a composer"},
    420       {"/sdcard/media_api/metaDataTestMedias/M4V/sample_iPod.m4v", null, null,
    421           null, null, null, "20051220T202015.000Z",
    422           null, null, null, "85500", "2", null},
    423       {"/sdcard/media_api/metaDataTestMedias/MIDI/MIDI.mid", null, "Suspended Animation",
    424           "John Petrucci", null, null, "20070510T125223.000Z",
    425           null, null, "2005", "231180", "1", null},
    426       {"/sdcard/media_api/metaDataTestMedias/MP4/kung_fu_panda_h264.mp4", "2/0", "mp4 album Kung Fu Panda",
    427           "mp4 artist Kung Fu Panda", null, null, "20080517T091451.000Z",
    428           "40", "Kung Fu Panda", "2008", "128521", "2", "mp4 composer"},
    429       {"/sdcard/media_api/metaDataTestMedias/OGG/Ring_Classic_02.ogg", null, "Suspended Animation",
    430           "John Petrucci", null, null, "20070510T125223.000Z",
    431           null, null, "2005", "231180", "1", null},
    432       {"/sdcard/media_api/metaDataTestMedias/OGG/When You Say Nothing At All.ogg",
    433           null, "Suspended Animation", "John Petrucci",
    434           null, null, "20070510T125223.000Z", null, null, "2005", "231180", "1", null},
    435       {"/sdcard/media_api/metaDataTestMedias/WAV/Im With You.wav", null, null,
    436           null, null, null, null,
    437           null, null, null, "224000", "1", null},
    438       {"/sdcard/media_api/metaDataTestMedias/WMA/WMA9.wma", "6", "Ten Songs in the Key of Betrayal",
    439           "Alien Crime Syndicate", "Alien Crime Syndicate",
    440           "wma 9 Composer", "20040521T175729.483Z",
    441           "Rock", "Run for the Money", "2004", "134479", "1", null},
    442       {"/sdcard/media_api/metaDataTestMedias/WMA/WMA10.wma", "09", "wma 10 Album",
    443           "wma 10 Album Artist", "wma 10 Artist", "wma 10 Composer", "20070705T063625.097Z",
    444           "Acid Jazz", "wma 10 Title", "2010", "126574", "1", null},
    445       {"/sdcard/media_api/metaDataTestMedias/WMV/bugs.wmv", "8", "wmv 9 Album",
    446           null, "wmv 9 Artist ", null, "20051122T155247.540Z",
    447           null, "Looney Tunes - Hare-Breadth Hurry", "2005", "193482", "2", null},
    448       {"/sdcard/media_api/metaDataTestMedias/WMV/clips_ver7.wmv", "50", "wmv 7 Album",
    449           null, "Hallau Shoots & Company", null, "20020226T170045.891Z",
    450           null, "CODEC Shootout", "1986", "43709", "2", null}
    451   };
    452 
    453   //output recorded video
    454 
    455   public static final String RECORDED_HVGA_H263 = "/sdcard/HVGA_H263.3gp";
    456   public static final String RECORDED_QVGA_H263 = "/sdcard/QVGA_H263.3gp";
    457   public static final String RECORDED_SQVGA_H263 = "/sdcard/SQVGA_H263.3gp";
    458   public static final String RECORDED_CIF_H263 = "/sdcard/CIF_H263.3gp";
    459   public static final String RECORDED_QCIF_H263 = "/sdcard/QCIF_H263.3gp";
    460   public static final String RECORDED_PORTRAIT_H263 = "/sdcard/QCIF_mp4.3gp";
    461 
    462   public static final String RECORDED_HVGA_MP4 = "/sdcard/HVGA_mp4.mp4";
    463   public static final String RECORDED_QVGA_MP4 = "/sdcard/QVGA_mp4.mp4";
    464   public static final String RECORDED_SQVGA_MP4 = "/sdcard/SQVGA_mp4.mp4";
    465   public static final String RECORDED_CIF_MP4 = "/sdcard/CIF_mp4.mp4";
    466   public static final String RECORDED_QCIF_MP4 = "/sdcard/QCIF_mp4.mp4";
    467 
    468   public static final String RECORDED_VIDEO_3GP = "/sdcard/temp.3gp";
    469 
    470   public static final String INVALD_VIDEO_PATH = "/sdcard/media_api/filepathdoesnotexist" +
    471       "/filepathdoesnotexist/temp.3gp";
    472 
    473 
    474   public static final long RECORDED_TIME = 5000;
    475   public static final long VALID_VIDEO_DURATION = 2000;
    476 
    477   //Videos for the mediaplayer stress test
    478   public static String[] H263_STRESS = {
    479       "/sdcard/media_api/video_stress/h263/H263_CIF.3gp",
    480       "/sdcard/media_api/video_stress/h263/H263_QCIF.3gp",
    481       "/sdcard/media_api/video_stress/h263/H263_QVGA.3gp",
    482       "/sdcard/media_api/video_stress/h263/H263_SQVGA.3gp"
    483   };
    484 
    485   public static String[] MPEG4_STRESS = {
    486     "/sdcard/media_api/video_stress/h263/mpeg4_CIF.mp4",
    487     "/sdcard/media_api/video_stress/h263/mpeg4_QCIF.3gp",
    488     "/sdcard/media_api/video_stress/h263/mpeg4_QVGA.3gp",
    489     "/sdcard/media_api/video_stress/h263/mpeg4_SQVGA.mp4"
    490   };
    491 
    492   //Streaming test files
    493   public static final byte [] STREAM_SERVER = new byte[] {(byte)75,(byte)17,(byte)48,(byte)204};
    494   public static final String STREAM_H264_480_360_1411k =
    495       "http://75.17.48.204:10088/yslau/stress_media/h264_regular.mp4";
    496   public static final String STREAM_WMV =
    497       "http://75.17.48.204:10088/yslau/stress_media/bugs.wmv";
    498   public static final String STREAM_H263_176x144_325k =
    499       "http://75.17.48.204:10088/yslau/stress_media/h263_regular.3gp";
    500   public static final String STREAM_H264_352x288_1536k =
    501       "http://75.17.48.204:10088/yslau/stress_media/h264_highBitRate.mp4";
    502   public static final String STREAM_MP3=
    503       "http://75.17.48.204:10088/yslau/stress_media/mp3_regular.mp3";
    504   public static final String STREAM_MPEG4_QVGA_128k =
    505       "http://75.17.48.204:10088/yslau/stress_media/mpeg4_qvga_24fps.3gp";
    506   public static final int STREAM_H264_480_360_1411k_DURATION = 46000;
    507   public static final int VIDEO_H263_AAC_DURATION = 501000;
    508   public static final int VIDEO_H263_AMR_DURATION = 502000;
    509 }
    510