1 /*
2  * Copyright (C) 2017 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 android.inputmethodservice.cts.common.test;
18 
19 /**
20  * Constants of CtsInputMethodServiceDeviceTests.apk that contains tests on device side and
21  * related activities for test.
22  */
23 public final class DeviceTestConstants {
24 
25     // This is constants holding class, can't instantiate.
DeviceTestConstants()26     private DeviceTestConstants() {}
27 
28     /** Package name of the APK. */
29     public static final String PACKAGE = "android.inputmethodservice.cts.devicetest";
30 
31     /** APK file name. */
32     public static final String APK = "CtsInputMethodServiceDeviceTests.apk";
33 
34     /** Device test activity name. */
35     public static final String TEST_ACTIVITY_CLASS =
36             "android.inputmethodservice.cts.devicetest.InputMethodServiceTestActivity";
37 
38     /**
39      * Device test class name and methods name.
40      */
41     public static final String TEST_CLASS =
42            "android.inputmethodservice.cts.devicetest.InputMethodServiceDeviceTest";
43     public static final String TEST_CREATE_IME1 = "testCreateIme1";
44     public static final String TEST_SWITCH_IME1_TO_IME2 = "testSwitchIme1ToIme2";
45     public static final String TEST_SWITCH_INPUTMETHOD = "testSwitchInputMethod";
46     public static final String TEST_SWITCH_NEXT_INPUT = "testSwitchToNextInputMethod";
47     public static final String TEST_SWITCH_PREVIOUS_INPUT = "switchToPreviousInputMethod";
48     public static final String TEST_INPUT_UNBINDS_ON_IME_STOPPED = "testInputUnbindsOnImeStopped";
49     public static final String TEST_INPUT_UNBINDS_ON_APP_STOPPED = "testInputUnbindsOnAppStopped";
50 }
51