1 /*
2  * Copyright (C) 2024 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;
18 
19 /**
20  * Constants used by {@code CommandContentProvider} and its clients.
21  */
22 public final class CommandProviderConstants {
23     /**
24      * Used as {@code command} parameter in
25      * {@link android.content.ContentResolver#call(String, String, String, android.os.Bundle)} to
26      * let the test IME invoke
27      * {@link android.view.inputmethod.InputMethodManager#setAdditionalInputMethodSubtypes(String,
28      * android.view.inputmethod.InputMethodSubtype[])}.
29      */
30     public static final String SET_ADDITIONAL_SUBTYPES_COMMAND = "setAdditionalSubtypes";
31 
32     /**
33      * Used to pass {@code imeId} parameter of
34      * {@link android.view.inputmethod.InputMethodManager#setAdditionalInputMethodSubtypes(String,
35      * android.view.inputmethod.InputMethodSubtype[])} as a {@link android.os.Bundle} value when
36      * calling
37      * {@link android.content.ContentResolver#call(String, String, String, android.os.Bundle)}.
38      */
39     public static final String SET_ADDITIONAL_SUBTYPES_IMEID_KEY = "imeId";
40 
41     /**
42      * Used to pass {@code subtypes} parameter of
43      * {@link android.view.inputmethod.InputMethodManager#setAdditionalInputMethodSubtypes(String,
44      * android.view.inputmethod.InputMethodSubtype[])} as a {@link android.os.Bundle} value when
45      * calling
46      * {@link android.content.ContentResolver#call(String, String, String, android.os.Bundle)}.
47      */
48     public static final String SET_ADDITIONAL_SUBTYPES_SUBTYPES_KEY = "subtypes";
49 }
50