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.uihelper;
17 
18 import android.support.test.uiautomator.By;
19 import android.support.test.uiautomator.BySelector;
20 import com.android.tv.common.CommonConstants;
21 
22 public final class Constants {
23 
24     public static final double EXTRA_TIMEOUT_PERCENT = .05;
25     public static final int MIN_EXTRA_TIMEOUT = 10;
26     public static final long MAX_SHOW_DELAY_MILLIS = 200;
27     public static final long MAX_FOCUSED_DELAY_MILLIS = 1000;
28     public static final String TV_APP_PACKAGE = CommonConstants.BASE_PACKAGE;
29     public static final BySelector TV_VIEW = By.res(TV_APP_PACKAGE, "main_tunable_tv_view");
30     public static final BySelector CHANNEL_BANNER = By.res(TV_APP_PACKAGE, "channel_banner_view");
31     public static final BySelector KEYPAD_CHANNEL_SWITCH = By.res(TV_APP_PACKAGE, "channel_number");
32     public static final BySelector MENU = By.res(TV_APP_PACKAGE, "menu");
33     public static final BySelector SIDE_PANEL = By.res(TV_APP_PACKAGE, "side_panel");
34     public static final BySelector PROGRAM_GUIDE = By.res(TV_APP_PACKAGE, "program_guide");
35     public static final BySelector DVR_LIBRARY = By.res(TV_APP_PACKAGE, "dvr_frame");
36     public static final BySelector DVR_SCHEDULES = By.res(TV_APP_PACKAGE, "dvr_schedules");
37     public static final BySelector FOCUSED_VIEW = By.focused(true);
38 
Constants()39     private Constants() {}
40 }
41