Home
last modified time | relevance | path

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

12

/frameworks/base/services/tests/servicestests/src/com/android/server/inputmethod/
DInputMethodUtilsTest.java40 import android.view.inputmethod.InputMethodSubtype;
41 import android.view.inputmethod.InputMethodSubtype.InputMethodSubtypeBuilder;
196 final InputMethodSubtype nonAutoEnUS = createFakeInputMethodSubtype("en_US", in testGetImplicitlyApplicableSubtypesLocked()
199 final InputMethodSubtype nonAutoEnGB = createFakeInputMethodSubtype("en_GB", in testGetImplicitlyApplicableSubtypesLocked()
202 final InputMethodSubtype nonAutoEnIN = createFakeInputMethodSubtype("en_IN", in testGetImplicitlyApplicableSubtypesLocked()
205 final InputMethodSubtype nonAutoFrCA = createFakeInputMethodSubtype("fr_CA", in testGetImplicitlyApplicableSubtypesLocked()
208 final InputMethodSubtype nonAutoFr = createFakeInputMethodSubtype("fr_CA", in testGetImplicitlyApplicableSubtypesLocked()
211 final InputMethodSubtype nonAutoFil = createFakeInputMethodSubtype("fil", in testGetImplicitlyApplicableSubtypesLocked()
214 final InputMethodSubtype nonAutoIn = createFakeInputMethodSubtype("in", in testGetImplicitlyApplicableSubtypesLocked()
217 final InputMethodSubtype nonAutoId = createFakeInputMethodSubtype("id", in testGetImplicitlyApplicableSubtypesLocked()
[all …]
DInputMethodSubtypeSwitchingControllerTest.java28 import android.view.inputmethod.InputMethodSubtype;
29 import android.view.inputmethod.InputMethodSubtype.InputMethodSubtypeBuilder;
57 private static InputMethodSubtype createDummySubtype(final String locale) { in createDummySubtype()
81 List<InputMethodSubtype> subtypes = null; in addDummyImeSubtypeListItems()
83 subtypes = new ArrayList<InputMethodSubtype>(); in addDummyImeSubtypeListItems()
118 ArrayList<InputMethodSubtype> subtypes = new ArrayList<>(); in createDummyItem()
168 InputMethodSubtype subtype = null; in assertNextInputMethod()
193 InputMethodSubtype subtype = null; in onUserAction()
/frameworks/base/core/tests/coretests/src/android/view/inputmethod/
DInputMethodSubtypeTest.java26 import android.view.inputmethod.InputMethodSubtype.InputMethodSubtypeBuilder;
65 final InputMethodSubtype usSubtype = createDummySubtype("en_US"); in testLocaleObj_locale()
76 final InputMethodSubtype usSubtype = createDummySubtypeUsingLanguageTag("en-US"); in testLocaleObj_languageTag()
88 final InputMethodSubtype emptyLocaleSubtype = createDummySubtype(""); in testLocaleObj_emptyLocale()
113 final InputMethodSubtype subtypeIw = createDummySubtype("iw"); in testDeprecatedLocaleString()
114 final InputMethodSubtype subtypeHe = createDummySubtype("he"); in testDeprecatedLocaleString()
120 final InputMethodSubtype clonedSubtypeIw = cloneViaParcel(subtypeIw); in testDeprecatedLocaleString()
121 final InputMethodSubtype clonedSubtypeHe = cloneViaParcel(subtypeHe); in testDeprecatedLocaleString()
128 private static InputMethodSubtype cloneViaParcel(final InputMethodSubtype original) { in cloneViaParcel()
134 return InputMethodSubtype.CREATOR.createFromParcel(parcel); in cloneViaParcel()
[all …]
DInputMethodSubtypeArrayTest.java22 import android.view.inputmethod.InputMethodSubtype.InputMethodSubtypeBuilder;
38 final ArrayList<InputMethodSubtype> subtypes = new ArrayList<InputMethodSubtype>(); in testInstantiate()
76 private static InputMethodSubtype createDummySubtype(final int id, final String locale) { in createDummySubtype()
/frameworks/base/core/java/android/view/inputmethod/
DInputMethodSubtype.java66 public final class InputMethodSubtype implements Parcelable { class
67 private static final String TAG = InputMethodSubtype.class.getSimpleName();
215 public InputMethodSubtype build() { in build()
216 return new InputMethodSubtype(this); in build()
244 public InputMethodSubtype(int nameId, int iconId, String locale, String mode, String extraValue, in InputMethodSubtype() method in InputMethodSubtype
282 public InputMethodSubtype(int nameId, int iconId, String locale, String mode, String extraValue, in InputMethodSubtype() method in InputMethodSubtype
292 private InputMethodSubtype(InputMethodSubtypeBuilder builder) { in InputMethodSubtype() method in InputMethodSubtype
313 InputMethodSubtype(Parcel source) { in InputMethodSubtype() method in InputMethodSubtype
602 if (o instanceof InputMethodSubtype) { in equals()
603 InputMethodSubtype subtype = (InputMethodSubtype) o; in equals()
[all …]
DInputMethodSubtypeArray.java54 public InputMethodSubtypeArray(final List<InputMethodSubtype> subtypes) { in InputMethodSubtypeArray()
60 mInstance = subtypes.toArray(new InputMethodSubtype[mCount]); in InputMethodSubtypeArray()
132 public InputMethodSubtype get(final int index) { in get()
136 InputMethodSubtype[] instance = mInstance; in get()
150 instance = new InputMethodSubtype[mCount]; in get()
169 private volatile InputMethodSubtype[] mInstance;
173 private static byte[] marshall(final InputMethodSubtype[] array) { in marshall()
187 private static InputMethodSubtype[] unmarshall(final byte[] data) { in unmarshall()
193 return parcel.createTypedArray(InputMethodSubtype.CREATOR); in unmarshall()
DInputMethodInfo.java44 import android.view.inputmethod.InputMethodSubtype.InputMethodSubtypeBuilder;
178 List<InputMethodSubtype> additionalSubtypes) in InputMethodInfo()
196 final ArrayList<InputMethodSubtype> subtypes = new ArrayList<InputMethodSubtype>(); in InputMethodInfo()
251 final InputMethodSubtype subtype = new InputMethodSubtypeBuilder() in InputMethodInfo()
293 final InputMethodSubtype subtype = additionalSubtypes.get(i); in InputMethodInfo()
360 String settingsActivity, List<InputMethodSubtype> subtypes, int isDefaultResId, in InputMethodInfo()
372 List<InputMethodSubtype> subtypes, int isDefaultResId, boolean forceDefault, in InputMethodInfo()
384 List<InputMethodSubtype> subtypes, int isDefaultResId, boolean forceDefault, in InputMethodInfo()
514 public InputMethodSubtype getSubtypeAt(int index) { in getSubtypeAt()
/frameworks/base/services/core/java/com/android/server/inputmethod/
DInputMethodUtils.java41 import android.view.inputmethod.InputMethodSubtype;
103 private static ArrayList<InputMethodSubtype> sCachedResult;
192 final InputMethodSubtype s = imi.getSubtypeAt(i); in isSystemAuxilialyImeThatHasAutomaticSubtype()
394 final InputMethodSubtype subtype = imi.getSubtypeAt(i); in containsSubtypeOf()
417 static ArrayList<InputMethodSubtype> getSubtypes(InputMethodInfo imi) { in getSubtypes()
418 ArrayList<InputMethodSubtype> subtypes = new ArrayList<>(); in getSubtypes()
458 InputMethodSubtype ims = imi.getSubtypeAt(i); in getSubtypeIdFromHashCode()
467 private static final LocaleUtils.LocaleExtractor<InputMethodSubtype> sSubtypeToLocale =
468 new LocaleUtils.LocaleExtractor<InputMethodSubtype>() {
470 public Locale get(InputMethodSubtype source) {
[all …]
DAdditionalSubtypeUtils.java32 import android.view.inputmethod.InputMethodSubtype;
108 static void save(ArrayMap<String, List<InputMethodSubtype>> allSubtypes, in save()
151 final List<InputMethodSubtype> subtypesList = allSubtypes.get(imiId); in save()
154 final InputMethodSubtype subtype = subtypesList.get(i); in save()
194 static void load(@NonNull ArrayMap<String, List<InputMethodSubtype>> allSubtypes, in load()
219 ArrayList<InputMethodSubtype> tempSubtypesArray = null; in load()
253 final InputMethodSubtype.InputMethodSubtypeBuilder in load()
254 builder = new InputMethodSubtype.InputMethodSubtypeBuilder() in load()
264 InputMethodSubtype.SUBTYPE_ID_NONE); in load()
265 if (subtypeId != InputMethodSubtype.SUBTYPE_ID_NONE) { in load()
DInputMethodSubtypeSwitchingController.java27 import android.view.inputmethod.InputMethodSubtype;
202 final List<InputMethodSubtype> explicitlyOrImplicitlyEnabledSubtypeList = in getSortedInputMethodAndSubtypeList()
205 for (InputMethodSubtype subtype : explicitlyOrImplicitlyEnabledSubtypeList) { in getSortedInputMethodAndSubtypeList()
215 final InputMethodSubtype subtype = imi.getSubtypeAt(j); in getSortedInputMethodAndSubtypeList()
243 private static int calculateSubtypeId(InputMethodInfo imi, InputMethodSubtype subtype) { in calculateSubtypeId()
261 private int getIndex(InputMethodInfo imi, InputMethodSubtype subtype) { in getIndex()
275 InputMethodInfo imi, InputMethodSubtype subtype) { in getNextInputMethodLocked()
332 private int getUsageRank(final InputMethodInfo imi, InputMethodSubtype subtype) { in getUsageRank()
348 public void onUserAction(InputMethodInfo imi, InputMethodSubtype subtype) { in onUserAction()
361 InputMethodInfo imi, InputMethodSubtype subtype) { in getNextInputMethodLocked()
[all …]
/frameworks/base/core/java/com/android/internal/view/
DIInputMethodManager.aidl21 import android.view.inputmethod.InputMethodSubtype;
40 List<InputMethodSubtype> getEnabledInputMethodSubtypeList(in String imiId, in getEnabledInputMethodSubtypeList()
42 InputMethodSubtype getLastInputMethodSubtype(); in getLastInputMethodSubtype()
66 InputMethodSubtype getCurrentInputMethodSubtype(); in getCurrentInputMethodSubtype()
67 void setAdditionalInputMethodSubtypes(String id, in InputMethodSubtype[] subtypes); in setAdditionalInputMethodSubtypes()
DIInputMethod.aidl24 import android.view.inputmethod.InputMethodSubtype;
61 void changeInputMethodSubtype(in InputMethodSubtype subtype); in changeInputMethodSubtype()
/frameworks/base/core/java/com/android/internal/inputmethod/
DCallbackUtils.java23 import android.view.inputmethod.InputMethodSubtype;
105 @NonNull Supplier<InputMethodSubtype> resultSupplier) { in onResult()
106 InputMethodSubtype result = null; in onResult()
132 @NonNull Supplier<List<InputMethodSubtype>> resultSupplier) { in onResult()
133 List<InputMethodSubtype> result = null; in onResult()
DIInputMethodSubtypeResultCallback.aidl19 import android.view.inputmethod.InputMethodSubtype;
23 void onResult(in InputMethodSubtype result); in onResult()
DIInputMethodSubtypeListResultCallback.aidl19 import android.view.inputmethod.InputMethodSubtype;
23 void onResult(in List<InputMethodSubtype> result); in onResult()
DResultCallbacks.java24 import android.view.inputmethod.InputMethodSubtype;
255 @NonNull Completable.InputMethodSubtype value) {
256 final AtomicReference<WeakReference<Completable.InputMethodSubtype>>
262 public void onResult(InputMethodSubtype result) {
263 final Completable.InputMethodSubtype value = unwrap(atomicRef);
273 final Completable.InputMethodSubtype value = unwrap(atomicRef);
299 public void onResult(List<InputMethodSubtype> result) {
DCompletable.java26 import android.view.inputmethod.InputMethodSubtype;
428 public static Completable.InputMethodSubtype createInputMethodSubtype() { in createInputMethodSubtype()
429 return new Completable.InputMethodSubtype(); in createInputMethodSubtype()
491 public static final class InputMethodSubtype class in Completable
492 extends Values<android.view.inputmethod.InputMethodSubtype> { }
498 extends Values<List<android.view.inputmethod.InputMethodSubtype>> { }
DIInputMethodPrivilegedOperations.aidl20 import android.view.inputmethod.InputMethodSubtype;
38 void setInputMethodAndSubtype(String id, in InputMethodSubtype subtype, in setInputMethodAndSubtype()
/frameworks/base/packages/SettingsLib/tests/integ/src/com/android/settingslib/inputmethod/
DInputMethodPreferenceTest.java24 import android.view.inputmethod.InputMethodSubtype;
126 final InputMethodSubtype systemLocaleSubtype = in createInputMethodInfo()
127 new InputMethodSubtype.InputMethodSubtypeBuilder() in createInputMethodInfo()
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/inputmethod/
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()
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()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/inputmethod/
DInputMethodAndSubtypeUtil.java31 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()
DInputMethodAndSubtypeUtilCompat.java31 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 isValidSystemNonAuxAsciiCapableIme()
DInputMethodSubtypePreference.java22 import android.view.inputmethod.InputMethodSubtype;
40 public InputMethodSubtypePreference(final Context context, final InputMethodSubtype subtype, in InputMethodSubtypePreference()
DInputMethodAndSubtypeEnablerManagerCompat.java25 import android.view.inputmethod.InputMethodSubtype;
150 final InputMethodSubtype subtype = imi.getSubtypeAt(index); in addInputMethodSubtypePreferences()
238 final List<InputMethodSubtype> implicitlyEnabledSubtypes = in updateImplicitlyEnabledSubtypesOf()
249 for (final InputMethodSubtype subtype : implicitlyEnabledSubtypes) { in updateImplicitlyEnabledSubtypesOf()

12