• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (C) 2015 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 package com.android.tv.testing.constants;
17 
18 import android.media.tv.TvTrackInfo;
19 
20 /** Constants for testing. */
21 public final class Constants {
22     public static final int FUNC_TEST_CHANNEL_COUNT = 100;
23     public static final int UNIT_TEST_CHANNEL_COUNT = 4;
24     public static final int JANK_TEST_CHANNEL_COUNT = 500; // TODO: increase to 1000 see b/23526997
25 
26     public static final TvTrackInfo EN_STEREO_AUDIO_TRACK =
27             new TvTrackInfo.Builder(TvTrackInfo.TYPE_AUDIO, "English Stereo Audio")
28                     .setLanguage("en")
29                     .setAudioChannelCount(2)
30                     .build();
31     public static final TvTrackInfo GENERIC_AUDIO_TRACK =
32             new TvTrackInfo.Builder(TvTrackInfo.TYPE_AUDIO, "Generic Audio").build();
33 
34     public static final TvTrackInfo FHD1080P50_VIDEO_TRACK =
35             new TvTrackInfo.Builder(TvTrackInfo.TYPE_VIDEO, "FHD Video")
36                     .setVideoHeight(1080)
37                     .setVideoWidth(1920)
38                     .setVideoFrameRate(50)
39                     .build();
40     public static final TvTrackInfo SVGA_VIDEO_TRACK =
41             new TvTrackInfo.Builder(TvTrackInfo.TYPE_VIDEO, "SVGA Video")
42                     .setVideoHeight(600)
43                     .setVideoWidth(800)
44                     .build();
45 
Constants()46     private Constants() {}
47 }
48