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 21 public final class Constants { 22 23 public static final double EXTRA_TIMEOUT_PERCENT = .05; 24 public static final int MIN_EXTRA_TIMEOUT = 10; 25 public static final long MAX_SHOW_DELAY_MILLIS = 200; 26 public static final String TV_APP_PACKAGE = "com.android.tv"; 27 public static final BySelector TV_VIEW = By.res(TV_APP_PACKAGE, "main_tunable_tv_view"); 28 public static final BySelector CHANNEL_BANNER = By.res(TV_APP_PACKAGE, "channel_banner_view"); 29 public static final BySelector KEYPAD_CHANNEL_SWITCH = By.res(TV_APP_PACKAGE, "channel_number"); 30 public static final BySelector MENU = By.res(TV_APP_PACKAGE, "menu"); 31 public static final BySelector SIDE_PANEL = By.res(TV_APP_PACKAGE, "side_panel"); 32 public static final BySelector PROGRAM_GUIDE = By.res(TV_APP_PACKAGE, "program_guide"); 33 public static final BySelector FOCUSED_VIEW = By.focused(true); 34 Constants()35 private Constants() { 36 } 37 } 38