Searched refs:keySpec (Results 1 – 6 of 6) sorted by relevance
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/internal/ |
D | KeySpecParser.java | 59 private static boolean hasIcon(@Nonnull final String keySpec) { in hasIcon() argument 60 return keySpec.startsWith(KeyboardIconsSet.PREFIX_ICON); in hasIcon() 63 private static boolean hasCode(@Nonnull final String keySpec, final int labelEnd) { in hasCode() argument 64 if (labelEnd <= 0 || labelEnd + 1 >= keySpec.length()) { in hasCode() 67 if (keySpec.startsWith(KeyboardCodesSet.PREFIX_CODE, labelEnd + 1)) { in hasCode() 72 if (keySpec.startsWith(PREFIX_HEX, labelEnd + 1)) { in hasCode() 98 private static int indexOfLabelEnd(@Nonnull final String keySpec) { in indexOfLabelEnd() argument 99 final int length = keySpec.length(); in indexOfLabelEnd() 100 if (keySpec.indexOf(BACKSLASH) < 0) { in indexOfLabelEnd() 101 final int labelEnd = keySpec.indexOf(VERTICAL_BAR); in indexOfLabelEnd() [all …]
|
D | KeyboardBuilder.java | 480 final String keySpec = keyStyle.getString(keyAttr, R.styleable.Keyboard_Key_keySpec); in parseKey() local 481 if (TextUtils.isEmpty(keySpec)) { in parseKey() 484 final Key key = new Key(keySpec, keyAttr, keyStyle, mParams, row); in parseKey()
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/ |
D | PunctuationSuggestions.java | 73 final String keySpec = super.getWord(index); in getWord() local 74 final int code = KeySpecParser.getCode(keySpec); in getWord() 76 ? KeySpecParser.getOutputText(keySpec) in getWord() 87 final String keySpec = super.getWord(index); in getLabel() local 88 return KeySpecParser.getLabel(keySpec); in getLabel() 116 private static SuggestedWordInfo newHardCodedWordInfo(final String keySpec) { in newHardCodedWordInfo() argument 117 return new SuggestedWordInfo(keySpec, "" /* prevWordsContext */, in newHardCodedWordInfo()
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/ |
D | Key.java | 255 public Key(@Nullable final String keySpec, @Nonnull final TypedArray keyAttr, in Key() argument 339 mIconId = KeySpecParser.getIconId(keySpec); in Key() 343 final int code = KeySpecParser.getCode(keySpec); in Key() 352 final String label = KeySpecParser.getLabel(keySpec); in Key() 366 String outputText = KeySpecParser.getOutputText(keySpec); in Key()
|
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/keyboard/internal/ |
D | KeySpecParserTestsBase.java | 56 abstract protected void assertParser(final String message, final String keySpec, in assertParser() argument 60 protected void assertParserError(final String message, final String keySpec, in assertParserError() argument 64 assertParser(message, keySpec, expectedLabel, expectedOutputText, expectedIconId, in assertParserError()
|
D | KeySpecParserTests.java | 29 protected void assertParser(final String message, final String keySpec, in assertParser() argument 32 final String keySpecResolved = mTextsSet.resolveTextReference(keySpec); in assertParser()
|