Home
last modified time | relevance | path

Searched refs:keySpec (Results 1 – 8 of 8) sorted by relevance

/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/internal/
DKeySpecParser.java59 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 …]
DKeyboardBuilder.java480 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/
DPunctuationSuggestions.java73 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/tests/src/com/android/inputmethod/keyboard/internal/
DKeySpecParserTests.java29 protected void assertParser(final String message, final String keySpec, in assertParser() argument
32 final String keySpecResolved = mTextsSet.resolveTextReference(keySpec); in assertParser()
DKeySpecParserTestsBase.java56 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()
/packages/modules/ExtServices/java/src/android/ext/services/displayhash/
DHmacKeyManager.java44 SecretKeySpec keySpec = new SecretKeySpec(salt, ALGORITHM); in generateHmac() local
45 mac.init(keySpec); in generateHmac()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/
DKey.java255 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/apps/RemoteProvisioner/tests/unittests/src/com/android/remoteprovisioner/unittest/
DUtils.java71 ECPublicKeySpec keySpec = new ECPublicKeySpec(point, ecParameters); in getP256PubKeyFromBytes() local
73 return keyFactory.generatePublic(keySpec); in getP256PubKeyFromBytes()