/frameworks/base/core/tests/coretests/src/android/view/textservice/ |
H A D | SpellCheckerSubtypeTest.java | 67 final SpellCheckerSubtype subtype = new SpellCheckerSubtype(SUBTYPE_NAME_RES_ID_A, 70 assertEquals(SUBTYPE_NAME_RES_ID_A, subtype.getNameResId()); 71 assertEquals(SUBTYPE_SUBTYPE_LOCALE_STRING_A, subtype.getLocale()); 72 assertEquals(SUBTYPE_SUBTYPE_LANGUAGE_TAG_A, subtype.getLanguageTag()); 73 assertEquals("Value1", subtype.getExtraValueOf("Key1")); 74 assertEquals("Value2", subtype.getExtraValueOf("Key2")); 75 // Historically we have used SpellCheckerSubtype#hashCode() to track which subtype is 80 subtype.hashCode()); 82 final SpellCheckerSubtype clonedSubtype = cloneViaParcel(subtype); 94 final SpellCheckerSubtype subtype [all...] |
/frameworks/base/core/java/android/view/textservice/ |
H A D | SpellCheckerSubtype.java | 38 * This class is used to specify meta information of a subtype contained in a spell checker. 74 * @param nameId The name of the subtype 75 * @param locale The locale supported by the subtype 76 * @param languageTag The BCP-47 Language Tag associated with this subtype. 77 * @param extraValue The extra value of the subtype 78 * @param subtypeId The subtype ID that is supposed to be stable during package update. 95 * @param nameId The name of the subtype 96 * @param locale The locale supported by the subtype 97 * @param extraValue The extra value of the subtype 122 * @return the name of the subtype [all...] |
H A D | TextServicesManager.java | 157 final SpellCheckerSubtype subtype = sci.getSubtypeAt(i); 158 final String tempSubtypeLocale = subtype.getLocale(); 161 subtypeInUse = subtype; 165 subtypeInUse = subtype; 249 public void setSpellCheckerSubtype(SpellCheckerSubtype subtype) { argument 252 if (subtype == null) { 255 hashCode = subtype.hashCode();
|
H A D | SpellCheckerInfo.java | 110 if (!"subtype".equals(subtypeNodeName)) { 112 "Meta-data in spell-checker does not start with subtype tag"); 116 SpellCheckerSubtype subtype = new SpellCheckerSubtype( 127 mSubtypes.add(subtype); 257 * Return the subtype at the specified index. 259 * @param index the index of the subtype to return.
|
H A D | SpellCheckerSession.java | 125 SpellCheckerSubtype subtype) { 135 mSubtype = subtype; 123 SpellCheckerSession( SpellCheckerInfo info, ITextServicesManager tsm, SpellCheckerSessionListener listener, SpellCheckerSubtype subtype) argument
|
/frameworks/base/core/java/com/android/internal/inputmethod/ |
H A D | InputMethodSubtypeSwitchingController.java | 219 for (InputMethodSubtype subtype : explicitlyOrImplicitlyEnabledSubtypeList) { 220 enabledSubtypeSet.add(String.valueOf(subtype.hashCode())); 229 final InputMethodSubtype subtype = imi.getSubtypeAt(j); 230 final String subtypeHashCode = String.valueOf(subtype.hashCode()); 233 && (includeAuxiliarySubtypes || !subtype.isAuxiliary())) { 235 subtype.overridesImplicitlyEnabledSubtype() ? null : subtype 239 subtypeLabel, imi, j, subtype.getLocale(), mSystemLocaleStr)); 241 // Removing this subtype from enabledSubtypeSet because we no 242 // longer need to add an entry of this subtype t 257 calculateSubtypeId(InputMethodInfo imi, InputMethodSubtype subtype) argument 275 getIndex(InputMethodInfo imi, InputMethodSubtype subtype) argument 302 getNextInputMethodLocked(boolean onlyCurrentIme, InputMethodInfo imi, @Nullable InputMethodSubtype subtype, boolean forward) argument 361 getUsageRank(final InputMethodInfo imi, InputMethodSubtype subtype) argument 377 onUserAction(InputMethodInfo imi, InputMethodSubtype subtype) argument 403 getNextInputMethodLocked(boolean onlyCurrentIme, InputMethodInfo imi, @Nullable InputMethodSubtype subtype, boolean forward) argument 502 getNextInputMethod(boolean onlyCurrentIme, InputMethodInfo imi, @Nullable InputMethodSubtype subtype, boolean forward) argument 516 onUserActionLocked(InputMethodInfo imi, InputMethodSubtype subtype) argument 562 onUserActionLocked(InputMethodInfo imi, InputMethodSubtype subtype) argument 579 getNextInputMethodLocked(boolean onlyCurrentIme, InputMethodInfo imi, InputMethodSubtype subtype, boolean forward) argument [all...] |
H A D | InputMethodSubtypeHandle.java | 30 public InputMethodSubtypeHandle(InputMethodInfo info, @Nullable InputMethodSubtype subtype) { argument 32 if (subtype != null) { 33 mSubtypeId = subtype.hashCode();
|
H A D | InputMethodUtils.java | 373 // subtype) 415 final InputMethodSubtype subtype = imi.getSubtypeAt(i); 417 final Locale subtypeLocale = subtype.getLocaleObject(); 425 subtype.getLocale())); 431 mode.equalsIgnoreCase(subtype.getMode())) { 452 final InputMethodSubtype subtype = imi.getSubtypeAt(i); 453 if (subtype.overridesImplicitlyEnabledSubtype() && subtype.getMode().equals(mode)) { 454 subtypes.add(subtype); 549 final InputMethodSubtype subtype 696 canAddToLastInputMethod(InputMethodSubtype subtype) argument 791 getImeAndSubtypeDisplayName(Context context, InputMethodInfo imi, InputMethodSubtype subtype) argument [all...] |
/frameworks/base/core/java/android/view/inputmethod/ |
H A D | InputMethodSubtype.java | 42 * This class is used to specify meta information of a subtype contained in an input method editor 44 * and is used for IME switch and settings. The input method subtype allows the system to bring up 45 * the specified subtype of the designated IME directly. 48 * <code><subtype></code> element, which resides within an {@code <input-method>} element. 97 * @param isAuxiliary should true when this subtype is auxiliary, false otherwise. 98 * An auxiliary subtype has the following differences with a regular subtype: 99 * - An auxiliary subtype cannot be chosen as the default IME in Settings. 100 * - The framework will never switch to this subtype through 102 * Note that the subtype wil [all...] |
H A D | InputMethod.java | 224 * Notify that the input method subtype is being changed in the same input method. 225 * @param subtype New subtype of the notified input method 227 public void changeInputMethodSubtype(InputMethodSubtype subtype); argument
|
H A D | InputMethodInfo.java | 182 if (!"subtype".equals(nodeName)) { 184 "Meta-data in input-method does not start with subtype tag"); 188 final InputMethodSubtype subtype = new InputMethodSubtypeBuilder() 210 if (!subtype.isAuxiliary()) { 213 subtypes.add(subtype); 231 final InputMethodSubtype subtype = additionalSubtypes.get(i); 232 if (!subtypes.contains(subtype)) { 233 subtypes.add(subtype); 235 Slog.w(TAG, "Duplicated subtype definition found: " 236 + subtype [all...] |
H A D | InputMethodManager.java | 1763 * Force switch to a new input method and subtype. This can only be called 1769 * @param subtype The new subtype of the new input method to be switched to. 1771 public void setInputMethodAndSubtype(IBinder token, String id, InputMethodSubtype subtype) { argument 1773 mService.setInputMethodAndSubtype(token, id, subtype); 2051 * Returns the current input method subtype. This subtype is one of the subtypes in 2053 * have any input method subtype. 2066 * Switch to a new input method subtype of the current input method. 2067 * @param subtype 2072 setCurrentInputMethodSubtype(InputMethodSubtype subtype) argument [all...] |
/frameworks/base/core/java/android/hardware/input/ |
H A D | InputManagerInternal.java | 47 * Notifies that InputMethodManagerService switched the current input method subtype. 49 * @param userId user id that indicates who is using the specified input method and subtype. 51 * @param subtype {@code null} when {@code inputMethodInfo} does has no subtype. 54 @Nullable InputMethodInfo inputMethodInfo, @Nullable InputMethodSubtype subtype); 53 onInputMethodSubtypeChanged(int userId, @Nullable InputMethodInfo inputMethodInfo, @Nullable InputMethodSubtype subtype) argument
|
/frameworks/base/core/java/android/net/metrics/ |
H A D | DhcpErrorEvent.java | 59 // byte 1: error subtype 106 private static int makeErrorCode(int type, int subtype) { argument 107 return (type << 24) | ((0xFF & subtype) << 16);
|
/frameworks/base/core/java/android/net/ |
H A D | NetworkInfo.java | 129 public NetworkInfo(int type, int subtype, String typeName, String subtypeName) { argument 134 mSubtype = subtype; 185 * Return a network-type-specific integer describing the subtype 187 * @return the network subtype 198 public void setSubtype(int subtype, String subtypeName) { argument 200 mSubtype = subtype; 217 * Return a human-readable name describing the subtype of the network. 218 * @return the name of the network subtype 469 int subtype = in.readInt(); 472 NetworkInfo netInfo = new NetworkInfo(netType, subtype, typeNam [all...] |
/frameworks/base/core/java/com/android/internal/view/ |
H A D | IInputMethod.aidl | 55 void changeInputMethodSubtype(in InputMethodSubtype subtype);
|
H A D | IInputMethodManager.aidl | 67 void setInputMethodAndSubtype(in IBinder token, String id, in InputMethodSubtype subtype); 75 boolean setCurrentInputMethodSubtype(in InputMethodSubtype subtype);
|
/frameworks/base/core/tests/coretests/src/com/android/internal/inputmethod/ |
H A D | InputMethodSubtypeSwitchingControllerTest.java | 125 InputMethodSubtype subtype = null; 127 subtype = createDummySubtype(currentItem.mSubtypeName.toString()); 130 currentItem.mImi, subtype, true /* forward */); 133 currentItem.mImi, subtype, false /* forward */); 155 InputMethodSubtype subtype = null; 157 subtype = createDummySubtype(subtypeListItem.mSubtypeName.toString()); 159 controller.onUserActionLocked(subtypeListItem.mImi, subtype); 281 // Rotation order should be preserved when created with the same subtype list. 291 // Rotation order should be initialized when created with a different subtype list.
|
/frameworks/opt/inputmethodcommon/java/com/android/inputmethodcommon/ |
H A D | InputMethodSettingsImpl.java | 86 final InputMethodSubtype subtype = subtypes.get(i); 90 sb.append(subtype.getDisplayName(context, imi.getPackageName(),
|
/frameworks/base/services/core/java/com/android/server/ |
H A D | InputMethodManagerService.java | 365 * The current subtype of the current input method. 600 // Merge the restored ime+subtype enabled states into the live state 1753 final InputMethodSubtype subtype = subtypes.get(j); 1754 if (!subtype.isAuxiliary()) { 1756 nonAuxSubtype = subtype; 1759 auxSubtype = subtype; 1988 @Nullable final InputMethodSubtype subtype) { 1992 inputManagerInternal.onInputMethodSubtypeChanged(userId, inputMethodInfo, subtype); 2002 // See if we need to notify a subtype change within the same IME. 2013 // If subtype i 1986 notifyInputMethodSubtypeChanged(final int userId, @Nullable final InputMethodInfo inputMethodInfo, @Nullable final InputMethodSubtype subtype) argument 2433 setInputMethodAndSubtype(IBinder token, String id, InputMethodSubtype subtype) argument 3639 setCurrentInputMethodSubtype(InputMethodSubtype subtype) argument [all...] |
/frameworks/wilhelm/tools/permute/ |
H A D | permute.c | 145 unsigned subtype = sfinfo_in.format & SF_FORMAT_SUBMASK; local 147 switch (subtype) { 155 fprintf(stderr, "%s: unsupported subtype 0x%X\n", path_in, subtype);
|
/frameworks/base/packages/Keyguard/src/com/android/keyguard/ |
H A D | KeyguardPasswordView.java | 253 for (InputMethodSubtype subtype : subtypes) { 254 if (subtype.isAuxiliary()) { 271 // input method subtype (The current IME should be LatinIME.)
|
/frameworks/base/core/java/android/inputmethodservice/ |
H A D | IInputMethodWrapper.java | 331 public void changeInputMethodSubtype(InputMethodSubtype subtype) { argument 333 subtype));
|
/frameworks/base/services/core/java/com/android/server/input/ |
H A D | InputManagerService.java | 1366 " for subtype " + imeHandle + " and device " + identifier + 1371 Slog.d(TAG, "Layout for current subtype changed, switching layout"); 1450 @Nullable InputMethodInfo inputMethodInfo, @Nullable InputMethodSubtype subtype) { 1453 + " ime=" + inputMethodInfo + " subtype=" + subtype); 1459 if (subtype != null && !"keyboard".equals(subtype.getMode())) { 1460 Slog.d(TAG, "InputMethodSubtype changed to non-keyboard subtype, ignoring change"); 1463 InputMethodSubtypeHandle handle = new InputMethodSubtypeHandle(inputMethodInfo, subtype); 2086 final InputMethodSubtype subtype 1449 handleSwitchInputMethodSubtype(int userId, @Nullable InputMethodInfo inputMethodInfo, @Nullable InputMethodSubtype subtype) argument 2269 onInputMethodSubtypeChanged(int userId, @Nullable InputMethodInfo inputMethodInfo, @Nullable InputMethodSubtype subtype) argument [all...] |
/frameworks/av/media/libstagefright/ |
H A D | MediaCodec.cpp | 404 MediaResource::SubType subtype = local 406 resources.push_back(MediaResource(type, subtype, 1)); 475 MediaResource::SubType subtype = local 477 resources.push_back(MediaResource(type, subtype, 1)); 560 MediaResource::Type type, MediaResource::SubType subtype, uint64_t value) { 562 resources.push_back(MediaResource(type, subtype, value)); 574 MediaResource::SubType subtype = local 576 resources.push_back(MediaResource(type, subtype, 1)); 559 addResource( MediaResource::Type type, MediaResource::SubType subtype, uint64_t value) argument
|