Home
last modified time | relevance | path

Searched refs:InputMethodSubtype (Results 1 – 25 of 73) sorted by relevance

123

/frameworks/base/services/core/java/com/android/server/inputmethod/
DSubtypeUtils.java28 import android.view.inputmethod.InputMethodSubtype;
65 private static ArrayList<InputMethodSubtype> sCachedResult;
74 final InputMethodSubtype subtype = imi.getSubtypeAt(i); in containsSubtypeOf()
96 static ArrayList<InputMethodSubtype> getSubtypes(InputMethodInfo imi) { in getSubtypes()
97 ArrayList<InputMethodSubtype> subtypes = new ArrayList<>(); in getSubtypes()
113 InputMethodSubtype ims = imi.getSubtypeAt(i); in getSubtypeIdFromHashCode()
122 private static final LocaleUtils.LocaleExtractor<InputMethodSubtype> sSubtypeToLocale =
126 static ArrayList<InputMethodSubtype> getImplicitlyApplicableSubtypes( in getImplicitlyApplicableSubtypes()
139 final ArrayList<InputMethodSubtype> result = in getImplicitlyApplicableSubtypes()
150 private static ArrayList<InputMethodSubtype> getImplicitlyApplicableSubtypesImpl( in getImplicitlyApplicableSubtypesImpl()
[all …]
DAdditionalSubtypeMap.java23 import android.view.inputmethod.InputMethodSubtype;
45 private final ArrayMap<String, List<InputMethodSubtype>> mMap;
50 @NonNull ArrayMap<String, List<InputMethodSubtype>> map) { in createOrEmpty()
64 static AdditionalSubtypeMap of(@NonNull ArrayMap<String, List<InputMethodSubtype>> map) { in of()
83 final ArrayMap<String, List<InputMethodSubtype>> newMap = new ArrayMap<>(mMap); in cloneWithRemoveOrSelf()
103 final ArrayMap<String, List<InputMethodSubtype>> newMap = new ArrayMap<>(mMap); in cloneWithRemoveOrSelf()
119 @Nullable String key, @NonNull List<InputMethodSubtype> value) { in cloneWithPut()
120 final ArrayMap<String, List<InputMethodSubtype>> newMap = new ArrayMap<>(mMap); in cloneWithPut()
125 private AdditionalSubtypeMap(@NonNull ArrayMap<String, List<InputMethodSubtype>> map) { in AdditionalSubtypeMap()
131 List<InputMethodSubtype> get(@Nullable String key) { in get()
DInputMethodSubtypeSwitchingController.java30 import android.view.inputmethod.InputMethodSubtype;
186 final List<InputMethodSubtype> explicitlyOrImplicitlyEnabledSubtypeList = in getSortedInputMethodAndSubtypeList()
189 for (InputMethodSubtype subtype : explicitlyOrImplicitlyEnabledSubtypeList) { in getSortedInputMethodAndSubtypeList()
199 final InputMethodSubtype subtype = imi.getSubtypeAt(j); in getSortedInputMethodAndSubtypeList()
226 private static int calculateSubtypeId(InputMethodInfo imi, InputMethodSubtype subtype) { in calculateSubtypeId()
245 private int getIndex(InputMethodInfo imi, InputMethodSubtype subtype) { in getIndex()
259 InputMethodInfo imi, InputMethodSubtype subtype) { in getNextInputMethodLocked()
317 private int getUsageRank(final InputMethodInfo imi, InputMethodSubtype subtype) { in getUsageRank()
333 public void onUserAction(InputMethodInfo imi, InputMethodSubtype subtype) { in onUserAction()
346 InputMethodInfo imi, InputMethodSubtype subtype) { in getNextInputMethodLocked()
[all …]
DAdditionalSubtypeUtils.java31 import android.view.inputmethod.InputMethodSubtype;
161 final List<InputMethodSubtype> subtypesList = allSubtypes.get(imiId); in saveToFile()
168 for (final InputMethodSubtype subtype : subtypesList) { in saveToFile()
229 final ArrayMap<String, List<InputMethodSubtype>> allSubtypes = new ArrayMap<>(); in loadFromFile()
243 ArrayList<InputMethodSubtype> tempSubtypesArray = null; in loadFromFile()
283 final InputMethodSubtype.InputMethodSubtypeBuilder in loadFromFile()
284 builder = new InputMethodSubtype.InputMethodSubtypeBuilder() in loadFromFile()
297 InputMethodSubtype.SUBTYPE_ID_NONE); in loadFromFile()
298 if (subtypeId != InputMethodSubtype.SUBTYPE_ID_NONE) { in loadFromFile()
DInputMethodSettings.java32 import android.view.inputmethod.InputMethodSubtype;
146 List<InputMethodSubtype> getEnabledInputMethodSubtypeList( in getEnabledInputMethodSubtypeList()
148 List<InputMethodSubtype> enabledSubtypes = in getEnabledInputMethodSubtypeList()
154 return InputMethodSubtype.sort(imi, enabledSubtypes); in getEnabledInputMethodSubtypeList()
157 List<InputMethodSubtype> getEnabledInputMethodSubtypeList(InputMethodInfo imi) { in getEnabledInputMethodSubtypeList()
160 ArrayList<InputMethodSubtype> enabledSubtypes = new ArrayList<>(); in getEnabledInputMethodSubtypeList()
168 final InputMethodSubtype ims = info.getSubtypeAt(j); in getEnabledInputMethodSubtypeList()
342 InputMethodSubtype getLastInputMethodSubtype() { in getLastInputMethodSubtype()
415 List<InputMethodSubtype> implicitlyEnabledSubtypes = in getEnabledSubtypeHashCodeForInputMethodAndSubtype()
420 final InputMethodSubtype st = implicitlyEnabledSubtypes.get(j); in getEnabledSubtypeHashCodeForInputMethodAndSubtype()
[all …]
DHardwareKeyboardShortcutController.java24 import android.view.inputmethod.InputMethodSubtype;
61 final List<InputMethodSubtype> subtypes = in reset()
66 for (final InputMethodSubtype subtype : subtypes) { in reset()
DIInputMethodManagerImpl.java39 import android.view.inputmethod.InputMethodSubtype;
98 List<InputMethodSubtype> getEnabledInputMethodSubtypeList(String imiId, in getEnabledInputMethodSubtypeList()
101 InputMethodSubtype getLastInputMethodSubtype(@UserIdInt int userId); in getLastInputMethodSubtype()
141 InputMethodSubtype getCurrentInputMethodSubtype(@UserIdInt int userId); in getCurrentInputMethodSubtype()
143 void setAdditionalInputMethodSubtypes(String imiId, InputMethodSubtype[] subtypes, in setAdditionalInputMethodSubtypes()
256 public List<InputMethodSubtype> getEnabledInputMethodSubtypeList(String imiId, in getEnabledInputMethodSubtypeList()
263 public InputMethodSubtype getLastInputMethodSubtype(@UserIdInt int userId) { in getLastInputMethodSubtype()
348 public InputMethodSubtype getCurrentInputMethodSubtype(@UserIdInt int userId) { in getCurrentInputMethodSubtype()
353 public void setAdditionalInputMethodSubtypes(String id, InputMethodSubtype[] subtypes, in setAdditionalInputMethodSubtypes()
/frameworks/base/services/tests/InputMethodSystemServerTests/src/com/android/server/inputmethod/
DAdditionalSubtypeMapTest.java22 import android.view.inputmethod.InputMethodSubtype;
34 private static InputMethodSubtype createTestSubtype(String locale) { in createTestSubtype()
35 return new InputMethodSubtype in createTestSubtype()
44 private static final InputMethodSubtype TEST_SUBTYPE_EN_US = createTestSubtype("en_US");
45 private static final InputMethodSubtype TEST_SUBTYPE_JA_JP = createTestSubtype("ja_JP");
47 private static final List<InputMethodSubtype> TEST_SUBTYPE_LIST1 = List.of(TEST_SUBTYPE_EN_US);
48 private static final List<InputMethodSubtype> TEST_SUBTYPE_LIST2 = List.of(TEST_SUBTYPE_JA_JP);
50 private static ArrayMap<String, List<InputMethodSubtype>> mapOf( in mapOf()
51 @NonNull String key1, @NonNull List<InputMethodSubtype> value1) { in mapOf()
52 final ArrayMap<String, List<InputMethodSubtype>> map = new ArrayMap<>(); in mapOf()
[all …]
DInputMethodUtilsTest.java39 import android.view.inputmethod.InputMethodSubtype;
40 import android.view.inputmethod.InputMethodSubtype.InputMethodSubtypeBuilder;
193 final InputMethodSubtype nonAutoEnUS = createFakeInputMethodSubtype("en_US", in testGetImplicitlyApplicableSubtypesLocked()
196 final InputMethodSubtype nonAutoEnGB = createFakeInputMethodSubtype("en_GB", in testGetImplicitlyApplicableSubtypesLocked()
199 final InputMethodSubtype nonAutoFrCA = createFakeInputMethodSubtype("fr_CA", in testGetImplicitlyApplicableSubtypesLocked()
202 final InputMethodSubtype nonAutoFr = createFakeInputMethodSubtype("fr_CA", in testGetImplicitlyApplicableSubtypesLocked()
205 final InputMethodSubtype nonAutoFil = createFakeInputMethodSubtype("fil", in testGetImplicitlyApplicableSubtypesLocked()
208 final InputMethodSubtype nonAutoIn = createFakeInputMethodSubtype("in", in testGetImplicitlyApplicableSubtypesLocked()
211 final InputMethodSubtype nonAutoId = createFakeInputMethodSubtype("id", in testGetImplicitlyApplicableSubtypesLocked()
214 final InputMethodSubtype autoSubtype = createFakeInputMethodSubtype("auto", in testGetImplicitlyApplicableSubtypesLocked()
[all …]
DAdditionalSubtypeUtilsTest.java26 import android.view.inputmethod.InputMethodSubtype;
40 InputMethodSubtype subtype1 = new InputMethodSubtype.InputMethodSubtypeBuilder() in testSaveAndLoad()
44 InputMethodSubtype subtype2 = new InputMethodSubtype.InputMethodSubtypeBuilder() in testSaveAndLoad()
52 ArrayMap<String, List<InputMethodSubtype>> allSubtypes = new ArrayMap<>(); in testSaveAndLoad()
64 List<InputMethodSubtype> subtypes = loadedSubtypes.get(fakeImeId); in testSaveAndLoad()
72 private void verifySubtype(InputMethodSubtype subtype, InputMethodSubtype expectedSubtype) { in verifySubtype()
DTestUtils.java24 import android.view.inputmethod.InputMethodSubtype;
60 public static ArrayList<InputMethodSubtype> createFakeSubtypes(int count) { in createFakeSubtypes()
61 final ArrayList<InputMethodSubtype> subtypes = new ArrayList<>(count); in createFakeSubtypes()
64 new InputMethodSubtype.InputMethodSubtypeBuilder() in createFakeSubtypes()
82 @NonNull ComponentName componentName, @NonNull ArrayList<InputMethodSubtype> subtypes) { in createFakeInputMethodInfo()
DInputMethodSubtypeSwitchingControllerTest.java28 import android.view.inputmethod.InputMethodSubtype;
29 import android.view.inputmethod.InputMethodSubtype.InputMethodSubtypeBuilder;
51 private static InputMethodSubtype createDummySubtype(final String locale) { in createDummySubtype()
75 List<InputMethodSubtype> subtypes = null; in addDummyImeSubtypeListItems()
77 subtypes = new ArrayList<InputMethodSubtype>(); in addDummyImeSubtypeListItems()
112 ArrayList<InputMethodSubtype> subtypes = new ArrayList<>(); in createDummyItem()
162 InputMethodSubtype subtype = null; in assertNextInputMethod()
187 InputMethodSubtype subtype = null; in onUserAction()
/frameworks/base/core/tests/InputMethodCoreTests/src/android/view/inputmethod/
DInputMethodSubtypeTest.java28 import android.view.inputmethod.InputMethodSubtype.InputMethodSubtypeBuilder;
68 final InputMethodSubtype usSubtype = createSubtype("en_US"); in testLocaleObj_locale()
79 final InputMethodSubtype usSubtype = createSubtypeUsingLanguageTag("en-US"); in testLocaleObj_languageTag()
91 final InputMethodSubtype emptyLocaleSubtype = createSubtype(""); in testLocaleObj_emptyLocale()
116 final InputMethodSubtype subtypeIw = createSubtype("iw"); in testDeprecatedLocaleString()
117 final InputMethodSubtype subtypeHe = createSubtype("he"); in testDeprecatedLocaleString()
123 final InputMethodSubtype clonedSubtypeIw = cloneViaParcel(subtypeIw); in testDeprecatedLocaleString()
124 final InputMethodSubtype clonedSubtypeHe = cloneViaParcel(subtypeHe); in testDeprecatedLocaleString()
133 final InputMethodSubtype subtype = createSubtypeUsingLanguageTag("en-US"); in testCanonicalizedLanguageTagObjectCache()
157 final InputMethodSubtype subtype = createSubtypeUsingLanguageTag(languageTag); in verifyCanonicalizedLanguageTag()
[all …]
DInputMethodSubtypeArrayTest.java27 import android.view.inputmethod.InputMethodSubtype.InputMethodSubtypeBuilder;
44 final ArrayList<InputMethodSubtype> subtypes = new ArrayList<InputMethodSubtype>(); in testInstantiate()
112 private static InputMethodSubtype createDummySubtype(final int id, final String locale) { in createDummySubtype()
/frameworks/base/core/java/android/view/inputmethod/
DInputMethodSubtypeArray.java58 public InputMethodSubtypeArray(final List<InputMethodSubtype> subtypes) { in InputMethodSubtypeArray()
64 mInstance = subtypes.toArray(new InputMethodSubtype[mCount]); in InputMethodSubtypeArray()
139 public InputMethodSubtype get(final int index) { in get()
143 InputMethodSubtype[] instance = mInstance; in get()
157 instance = new InputMethodSubtype[mCount]; in get()
170 public ArrayList<InputMethodSubtype> toList() { in toList()
171 final ArrayList<InputMethodSubtype> list = new ArrayList<>(mCount); in toList()
188 private volatile InputMethodSubtype[] mInstance;
205 private static byte[] marshall(final InputMethodSubtype[] array) { in marshall()
219 private static InputMethodSubtype[] unmarshall(final byte[] data) { in unmarshall()
[all …]
DInputMethodSubtype.java70 public final class InputMethodSubtype implements Parcelable { class
71 private static final String TAG = InputMethodSubtype.class.getSimpleName();
273 public InputMethodSubtype build() { in build()
274 return new InputMethodSubtype(this); in build()
302 public InputMethodSubtype(int nameId, int iconId, String locale, String mode, String extraValue, in InputMethodSubtype() method in InputMethodSubtype
340 public InputMethodSubtype(int nameId, int iconId, String locale, String mode, String extraValue, in InputMethodSubtype() method in InputMethodSubtype
350 private InputMethodSubtype(InputMethodSubtypeBuilder builder) { in InputMethodSubtype() method in InputMethodSubtype
374 InputMethodSubtype(Parcel source) { in InputMethodSubtype() method in InputMethodSubtype
754 if (o instanceof InputMethodSubtype) { in equals()
755 InputMethodSubtype subtype = (InputMethodSubtype) o; in equals()
[all …]
DInputMethodInfo.java50 import android.view.inputmethod.InputMethodSubtype.InputMethodSubtypeBuilder;
252 List<InputMethodSubtype> additionalSubtypes) in InputMethodInfo()
274 final ArrayList<InputMethodSubtype> subtypes = new ArrayList<InputMethodSubtype>(); in InputMethodInfo()
360 final InputMethodSubtype subtype = new InputMethodSubtypeBuilder() in InputMethodInfo()
406 final InputMethodSubtype subtype = additionalSubtypes.get(i); in InputMethodInfo()
442 @NonNull List<InputMethodSubtype> additionalSubtypes) { in InputMethodInfo()
460 final ArrayList<InputMethodSubtype> subtypes = source.mSubtypes.toList(); in InputMethodInfo()
463 final InputMethodSubtype additionalSubtype = additionalSubtypes.get(i); in InputMethodInfo()
600 String settingsActivity, List<InputMethodSubtype> subtypes, int isDefaultResId, in InputMethodInfo()
617 List<InputMethodSubtype> subtypes, int isDefaultResId, boolean forceDefault, in InputMethodInfo()
[all …]
/frameworks/base/core/java/com/android/internal/view/
DIInputMethodManager.aidl23 import android.view.inputmethod.InputMethodSubtype;
70 List<InputMethodSubtype> getEnabledInputMethodSubtypeList(in @nullable String imiId, in getEnabledInputMethodSubtypeList()
75 InputMethodSubtype getLastInputMethodSubtype(int userId); in getLastInputMethodSubtype()
140 @nullable InputMethodSubtype getCurrentInputMethodSubtype(int userId); in getCurrentInputMethodSubtype()
144 void setAdditionalInputMethodSubtypes(String id, in InputMethodSubtype[] subtypes, in setAdditionalInputMethodSubtypes()
/frameworks/base/core/java/com/android/internal/inputmethod/
DIInputMethodPrivilegedOperations.aidl21 import android.view.inputmethod.InputMethodSubtype;
36 void setInputMethodAndSubtype(String id, in InputMethodSubtype subtype, in setInputMethodAndSubtype()
/frameworks/base/packages/SettingsLib/tests/integ/src/com/android/settingslib/inputmethod/
DInputMethodPreferenceTest.java25 import android.view.inputmethod.InputMethodSubtype;
128 final InputMethodSubtype systemLocaleSubtype = in createInputMethodInfo()
129 new InputMethodSubtype.InputMethodSubtypeBuilder() in createInputMethodInfo()
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/inputmethod/
DInputMethodAndSubtypeUtilTest.java25 import android.view.inputmethod.InputMethodSubtype;
26 import android.view.inputmethod.InputMethodSubtype.InputMethodSubtypeBuilder;
230 InputMethodSubtype... subtypes) { in createFakeIme()
246 private static InputMethodSubtype createFakeSubtype( in createFakeSubtype()
DInputMethodAndSubtypeUtilCompatTest.java25 import android.view.inputmethod.InputMethodSubtype;
26 import android.view.inputmethod.InputMethodSubtype.InputMethodSubtypeBuilder;
237 InputMethodSubtype... subtypes) { in createFakeIme()
254 private static InputMethodSubtype createFakeSubtype( in createFakeSubtype()
/frameworks/base/core/java/android/hardware/input/
DIInputManager.aidl41 import android.view.inputmethod.InputMethodSubtype;
100 in InputMethodSubtype imeSubtype); in getKeyboardLayoutForInputDevice()
106 in InputMethodInfo imeInfo, in InputMethodSubtype imeSubtype, in setKeyboardLayoutForInputDevice()
110 int userId, in InputMethodInfo imeInfo, in InputMethodSubtype imeSubtype); in getKeyboardLayoutListForInputDevice()
/frameworks/base/services/core/java/com/android/server/input/
DInputManagerInternal.java26 import android.view.inputmethod.InputMethodSubtype;
160 @Nullable InputMethodSubtype subtype); in onInputMethodSubtypeChangedForKeyboardLayoutMapping()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/inputmethod/
DInputMethodAndSubtypeUtil.java29 import android.view.inputmethod.InputMethodSubtype;
193 final InputMethodSubtype subtype = imi.getSubtypeAt(i); in saveInputMethodSubtypeList()
321 final InputMethodSubtype subtype = imi.getSubtypeAt(i); in setSubtypesPreferenceEnabled()
345 final InputMethodSubtype subtype = imi.getSubtypeAt(i); in updateSubtypesPreferenceChecked()
372 public static String getSubtypeLocaleNameAsSentence(@Nullable InputMethodSubtype subtype, in getSubtypeLocaleNameAsSentence()
386 @NonNull final List<InputMethodSubtype> subtypes, @NonNull final Context context, in getSubtypeLocaleNameListAsSentence()
428 final InputMethodSubtype subtype = imi.getSubtypeAt(i); in isValidNonAuxAsciiCapableIme()

123