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