Home
last modified time | relevance | path

Searched refs:code (Results 1 – 25 of 153) sorted by relevance

1234567

/packages/inputmethods/OpenWnn/src/jp/co/omronsoft/openwnn/
DOpenWnnEvent.java263 public int code = UNDEFINED; field in OpenWnnEvent
286 public OpenWnnEvent(int code) { in OpenWnnEvent() argument
287 this.code = code; in OpenWnnEvent()
295 public OpenWnnEvent(int code, int mode) { in OpenWnnEvent() argument
296 this.code = code; in OpenWnnEvent()
305 public OpenWnnEvent(int code, char c) { in OpenWnnEvent() argument
306 this.code = code; in OpenWnnEvent()
316 public OpenWnnEvent(int code, char c[]) { in OpenWnnEvent() argument
317 this.code = code; in OpenWnnEvent()
326 public OpenWnnEvent(int code, String[] toggleTable) { in OpenWnnEvent() argument
[all …]
DOpenWnnEN.java408 switch (ev.code) { in onEvent()
473 if (ev.code == OpenWnnEvent.INPUT_SOFT_KEY && mInputConnection != null) { in onEvent()
481 if (ev.code == OpenWnnEvent.LIST_CANDIDATES_FULL) { in onEvent()
484 } else if (ev.code == OpenWnnEvent.LIST_CANDIDATES_NORMAL) { in onEvent()
490 switch (ev.code) { in onEvent()
500 mPreviousEventCode = ev.code; in onEvent()
530 mPreviousEventCode = ev.code; in onEvent()
538 int code = keyEvent.getKeyCode(); in onEvent() local
539 if (code == KeyEvent.KEYCODE_ENTER || keyCode == KeyEvent.KEYCODE_NUMPAD_ENTER) { in onEvent()
543 mInputConnection.sendKeyEvent(new KeyEvent(KeyEvent.ACTION_UP, code)); in onEvent()
[all …]
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/keyboard/internal/
DKeyboardStateTestsBase.java84 private void pressKeyWithoutTimerExpire(final int code, final boolean isSinglePointer, in pressKeyWithoutTimerExpire() argument
86 mSwitcher.onPressKey(code, isSinglePointer); in pressKeyWithoutTimerExpire()
96 public void pressKey(final int code, final int afterPress) { in pressKey() argument
98 pressKeyWithoutTimerExpire(code, true, afterPress); in pressKey()
107 public void releaseKey(final int code, final int afterRelease) { in releaseKey() argument
108 mSwitcher.onCodeInput(code); in releaseKey()
109 mSwitcher.onReleaseKey(code, NOT_SLIDING); in releaseKey()
120 public void pressAndReleaseKey(final int code, final int afterPress, final int afterRelease) { in pressAndReleaseKey() argument
121 pressKey(code, afterPress); in pressAndReleaseKey()
122 releaseKey(code, afterRelease); in pressAndReleaseKey()
[all …]
DMockKeyboardSwitcher.java161 public void onPressKey(final int code, final boolean isSinglePointer) { in onPressKey() argument
162 mState.onPressKey(code, isSinglePointer, mAutoCapsState, in onPressKey()
166 public void onReleaseKey(final int code, final boolean withSliding) { in onReleaseKey() argument
167 onReleaseKey(code, withSliding, mAutoCapsState, RecapitalizeStatus.NOT_A_RECAPITALIZE_MODE); in onReleaseKey()
170 public void onReleaseKey(final int code, final boolean withSliding, in onReleaseKey() argument
172 mState.onReleaseKey(code, withSliding, currentAutoCapsState, currentRecapitalizeState); in onReleaseKey()
173 if (mLongPressTimeoutCode == code) { in onReleaseKey()
178 public void onCodeInput(final int code) { in onCodeInput() argument
180 if (Constants.isLetterCode(code)) { in onCodeInput()
181 mAutoCapsState = (code == MockConstants.CODE_AUTO_CAPS_TRIGGER) in onCodeInput()
[all …]
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/keyboard/
DKeyboardLayoutSetNavigateMoreKeysBase.java79 private void doTestMoreKeysOf(final int code, final InputMethodSubtype subtype, in doTestMoreKeysOf() argument
88 final Key actualKey = keyboard.getKey(code); in doTestMoreKeysOf()
120 private void doTestNavigationMoreKeysOf(final int code, final InputMethodSubtype subtype, in doTestNavigationMoreKeysOf() argument
123 doTestMoreKeysOf(code, subtype, elementId, inputType, in doTestNavigationMoreKeysOf()
127 doTestMoreKeysOf(code, subtype, elementId, inputType, in doTestNavigationMoreKeysOf()
131 doTestMoreKeysOf(code, subtype, elementId, inputType, in doTestNavigationMoreKeysOf()
135 doTestMoreKeysOf(code, subtype, elementId, inputType, in doTestNavigationMoreKeysOf()
139 doTestMoreKeysOf(code, subtype, elementId, inputType, in doTestNavigationMoreKeysOf()
143 doTestMoreKeysOf(code, subtype, elementId, inputType, in doTestNavigationMoreKeysOf()
147 doTestMoreKeysOf(code, subtype, elementId, inputType, in doTestNavigationMoreKeysOf()
[all …]
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/settings/
DSpacingAndPunctuations.java95 public boolean isWordSeparator(final int code) { in isWordSeparator() argument
96 return Arrays.binarySearch(mSortedWordSeparators, code) >= 0; in isWordSeparator()
99 public boolean isWordConnector(final int code) { in isWordConnector() argument
100 return Arrays.binarySearch(mSortedWordConnectors, code) >= 0; in isWordConnector()
103 public boolean isWordCodePoint(final int code) { in isWordCodePoint() argument
104 return Character.isLetter(code) || isWordConnector(code); in isWordCodePoint()
107 public boolean isUsuallyPrecededBySpace(final int code) { in isUsuallyPrecededBySpace() argument
108 return Arrays.binarySearch(mSortedSymbolsPrecededBySpace, code) >= 0; in isUsuallyPrecededBySpace()
111 public boolean isUsuallyFollowedBySpace(final int code) { in isUsuallyFollowedBySpace() argument
112 return Arrays.binarySearch(mSortedSymbolsFollowedBySpace, code) >= 0; in isUsuallyFollowedBySpace()
[all …]
DSettingsValues.java248 public boolean isWordSeparator(final int code) { in isWordSeparator() argument
249 return mSpacingAndPunctuations.isWordSeparator(code); in isWordSeparator()
252 public boolean isWordConnector(final int code) { in isWordConnector() argument
253 return mSpacingAndPunctuations.isWordConnector(code); in isWordConnector()
256 public boolean isWordCodePoint(final int code) { in isWordCodePoint() argument
257 return Character.isLetter(code) || isWordConnector(code) in isWordCodePoint()
258 || Character.COMBINING_SPACING_MARK == Character.getType(code); in isWordCodePoint()
261 public boolean isUsuallyPrecededBySpace(final int code) { in isUsuallyPrecededBySpace() argument
262 return mSpacingAndPunctuations.isUsuallyPrecededBySpace(code); in isUsuallyPrecededBySpace()
265 public boolean isUsuallyFollowedBySpace(final int code) { in isUsuallyFollowedBySpace() argument
[all …]
/packages/inputmethods/LatinIME/common/src/com/android/inputmethod/latin/common/
DConstants.java251 public static boolean isLetterCode(final int code) { in isLetterCode() argument
252 return code >= CODE_SPACE; in isLetterCode()
256 public static String printableCode(final int code) { in printableCode() argument
257 switch (code) { in printableCode()
276 if (code < CODE_SPACE) return String.format("\\u%02X", code); in printableCode()
277 if (code < 0x100) return String.format("%c", code); in printableCode()
278 if (code < 0x10000) return String.format("\\u%04X", code); in printableCode()
279 return String.format("\\U%05X", code); in printableCode()
287 for (final int code : codes) { in printableCodes()
288 if (code == NOT_A_CODE) break; in printableCodes()
[all …]
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/accessibility/
DKeyCodeDescriptionMapper.java94 final int code = key.getCode(); in getDescriptionForKey() local
96 if (code == Constants.CODE_SWITCH_ALPHA_SYMBOL) { in getDescriptionForKey()
103 if (code == Constants.CODE_SHIFT) { in getDescriptionForKey()
107 if (code == Constants.CODE_ENTER) { in getDescriptionForKey()
113 if (code == Constants.CODE_OUTPUT_TEXT) { in getDescriptionForKey()
120 if (code != Constants.CODE_UNSPECIFIED) { in getDescriptionForKey()
122 final boolean isDefinedNonCtrl = Character.isDefined(code) in getDescriptionForKey()
123 && !Character.isISOControl(code); in getDescriptionForKey()
127 final String description = getDescriptionForCodePoint(context, code); in getDescriptionForKey()
292 private String getSpokenAccentedLetterDescription(final Context context, final int code) { in getSpokenAccentedLetterDescription() argument
[all …]
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/internal/
DKeyboardState.java353 public void onPressKey(final int code, final boolean isSinglePointer, final int autoCapsFlags, in onPressKey() argument
356 Log.d(TAG, "onPressKey: code=" + Constants.printableCode(code) in onPressKey()
360 if (code != Constants.CODE_SHIFT) { in onPressKey()
365 if (code == Constants.CODE_SHIFT) { in onPressKey()
367 } else if (code == Constants.CODE_CAPSLOCK) { in onPressKey()
369 } else if (code == Constants.CODE_SWITCH_ALPHA_SYMBOL) { in onPressKey()
393 public void onReleaseKey(final int code, final boolean withSliding, final int autoCapsFlags, in onReleaseKey() argument
396 Log.d(TAG, "onReleaseKey: code=" + Constants.printableCode(code) in onReleaseKey()
400 if (code == Constants.CODE_SHIFT) { in onReleaseKey()
402 } else if (code == Constants.CODE_CAPSLOCK) { in onReleaseKey()
[all …]
DMoreKeySpec.java63 final int code = needsToUpperCase ? StringUtils.toTitleCaseOfKeyCode(codeInSpec, locale) in MoreKeySpec() local
65 if (code == Constants.CODE_UNSPECIFIED) { in MoreKeySpec()
71 mCode = code; in MoreKeySpec()
131 final int code = key.getCode(); in addLetter() local
132 if (CharacterCompat.isAlphabetic(code)) { in addLetter()
133 mCodes.put(code, 0); in addLetter()
134 } else if (code == Constants.CODE_OUTPUT_TEXT) { in addLetter()
140 final int code = moreKey.mCode; in contains() local
141 if (CharacterCompat.isAlphabetic(code) && mCodes.indexOfKey(code) >= 0) { in contains()
143 } else if (code == Constants.CODE_OUTPUT_TEXT && mTexts.contains(moreKey.mOutputText)) { in contains()
/packages/apps/Test/connectivity/sl4n/rapidjson/include/rapidjson/error/
Derror.h106 ParseResult(ParseErrorCode code, size_t offset) : code_(code), offset_(offset) {} in ParseResult()
119 bool operator==(ParseErrorCode code) const { return code_ == code; }
120 … friend bool operator==(ParseErrorCode code, const ParseResult & err) { return code == err.code_; }
125 void Set(ParseErrorCode code, size_t offset = 0) { code_ = code; offset_ = offset; }
/packages/providers/DownloadProvider/src/com/android/providers/downloads/
DStopRequestException.java50 public static StopRequestException throwUnhandledHttpError(int code, String message) in throwUnhandledHttpError() argument
52 final String error = "Unhandled HTTP response: " + code + " " + message; in throwUnhandledHttpError()
53 if (code >= 400 && code < 600) { in throwUnhandledHttpError()
54 throw new StopRequestException(code, error); in throwUnhandledHttpError()
55 } else if (code >= 300 && code < 400) { in throwUnhandledHttpError()
/packages/providers/ContactsProvider/src/com/android/providers/contacts/
DProfileAwareUriMatcher.java60 public ProfileAwareUriMatcher(int code) { in ProfileAwareUriMatcher() argument
61 super(code); in ProfileAwareUriMatcher()
65 public void addURI(String authority, String path, int code) { in addURI() argument
66 super.addURI(authority, path, code); in addURI()
86 PROFILE_URIS.add(code); in addURI()
93 PROFILE_URI_ID_MAP.put(code, i); in addURI()
96 PROFILE_URI_LOOKUP_KEY_MAP.put(code, i); in addURI()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/
DKeyboard.java156 public boolean hasProximityCharsCorrection(final int code) { in hasProximityCharsCorrection() argument
165 return canAssumeNativeHasProximityCharsInfoOfAllKeys || Character.isLetter(code); in hasProximityCharsCorrection()
190 public Key getKey(final int code) { in getKey() argument
191 if (code == Constants.CODE_UNSPECIFIED) { in getKey()
195 final int index = mKeyCache.indexOfKey(code); in getKey()
201 if (key.getCode() == code) { in getKey()
202 mKeyCache.put(code, key); in getKey()
206 mKeyCache.put(code, null); in getKey()
DPointerTracker.java280 final int code = altersCode ? key.getAltCode() : primaryCode; in callListenerOnCodeInput() local
282 final String output = code == Constants.CODE_OUTPUT_TEXT in callListenerOnCodeInput()
283 ? key.getOutputText() : Constants.printableCode(code); in callListenerOnCodeInput()
293 sTypingTimeRecorder.onCodeInput(code, eventTime); in callListenerOnCodeInput()
294 if (code == Constants.CODE_OUTPUT_TEXT) { in callListenerOnCodeInput()
296 } else if (code != Constants.CODE_UNSPECIFIED) { in callListenerOnCodeInput()
297 if (mKeyboard.hasProximityCharsCorrection(code)) { in callListenerOnCodeInput()
298 sListener.onCodeInput(code, x, y, isKeyRepeat); in callListenerOnCodeInput()
300 sListener.onCodeInput(code, in callListenerOnCodeInput()
1034 final int code = key.getCode(); in onLongPressed() local
[all …]
DKey.java214 public Key(@Nullable final String label, final int iconId, final int code, in Key() argument
232 mCode = code; in Key()
233 mEnabled = (code != CODE_UNSPECIFIED); in Key()
343 final int code = KeySpecParser.getCode(keySpec); in Key() local
346 } else if (code >= Character.MIN_SUPPLEMENTARY_CODE_POINT) { in Key()
350 mLabel = new StringBuilder().appendCodePoint(code).toString(); in Key()
371 if (code == CODE_UNSPECIFIED && TextUtils.isEmpty(outputText) in Key()
387 } else if (code == CODE_UNSPECIFIED && outputText != null) { in Key()
395 mCode = needsToUpcase ? StringUtils.toTitleCaseOfKeyCode(code, localeForUpcasing) in Key()
396 : code; in Key()
[all …]
/packages/apps/Test/connectivity/sl4n/rapidjson/doc/
Dencoding.md5 > (in Introduction) JSON text is a sequence of Unicode code points.
24 Those unique numbers are called code points, which is in the range `0x0` to `0x10FFFF`.
28 There are various encodings for storing Unicode code points. These are called Unicode Transformatio…
30 * UTF-8: 8-bit variable-width encoding. It maps a code point to 1–4 bytes.
31 * UTF-16: 16-bit variable-width encoding. It maps a code point to 1–2 16-bit code units (i.e., 2–4 …
32 * UTF-32: 32-bit fixed-width encoding. It directly maps a code point to a single 32-bit code unit (…
80 …CharType` stores a code unit, not a character (code point). As mentioned in previous section, a co…
110 …encoding of `Document` or target encoding of `Reader`), as it cannot represent Unicode code points.
/packages/apps/Email/emailcommon/src/com/android/emailcommon/provider/
DPolicy.java293 int code = mRequireEncryption ? 1 : 0; in hashCode() local
294 code += (mRequireEncryptionExternal ? 1 : 0) << 1; in hashCode()
295 code += (mRequireRemoteWipe ? 1 : 0) << 2; in hashCode()
296 code += (mMaxScreenLockTime << 3); in hashCode()
297 code += (mPasswordComplexChars << 6); in hashCode()
298 code += (mPasswordExpirationDays << 12); in hashCode()
299 code += (mPasswordHistory << 15); in hashCode()
300 code += (mPasswordMaxFails << 18); in hashCode()
301 code += (mPasswordMinLength << 22); in hashCode()
302 code += (mPasswordMode << 26); in hashCode()
[all …]
/packages/apps/ContactsCommon/src/com/android/contacts/common/list/
DContactListFilter.java126 int code = filterType; in hashCode() local
128 code = code * 31 + accountType.hashCode(); in hashCode()
129 code = code * 31 + accountName.hashCode(); in hashCode()
132 code = code * 31 + dataSet.hashCode(); in hashCode()
134 return code; in hashCode()
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/keyboard/layout/expected/
DExpectedKeyOutput.java32 static ExpectedKeyOutput newInstance(final int code) { in newInstance() argument
33 return new Code(code); in newInstance()
58 Code(final int code) { mCode = code; } in Code() argument
104 CasePreservedCode(final int code) { super(code); } in CasePreservedCode() argument
DAbstractLayoutBase.java42 public static ExpectedKey key(final String label, final int code, in key() argument
44 return ExpectedKey.newInstance(label, code, moreKeys); in key()
54 public static ExpectedKey key(final int iconId, final int code, in key() argument
56 return ExpectedKey.newInstance(iconId, code, moreKeys); in key()
86 public static ExpectedKey moreKey(final String label, final int code) { in moreKey() argument
87 return ExpectedKey.newInstance(label, code); in moreKey()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/emoji/
DDynamicGridKeyboard.java67 private Key getTemplateKey(final int code) { in getTemplateKey() argument
69 if (key.getCode() == code) { in getTemplateKey()
73 throw new RuntimeException("Can't find template key: code=" + code); in getTemplateKey()
146 final int code) { in getKeyByCode() argument
149 if (key.getCode() == code) { in getKeyByCode()
175 final int code = (Integer)o; in loadRecentKeys() local
176 key = getKeyByCode(keyboards, code); in loadRecentKeys()
DEmojiPalettesView.java305 final int code = (Integer) tag; in onTouch() local
307 code, 0 /* repeatCount */, true /* isSinglePointer */); in onTouch()
324 final int code = (Integer) tag; in onClick() local
325 mKeyboardActionListener.onCodeInput(code, NOT_A_COORDINATE, NOT_A_COORDINATE, in onClick()
327 mKeyboardActionListener.onReleaseKey(code, false /* withSliding */); in onClick()
337 final int code = key.getCode(); in onPressKey() local
338 mKeyboardActionListener.onPressKey(code, 0 /* repeatCount */, true /* isSinglePointer */); in onPressKey()
350 final int code = key.getCode(); in onReleaseKey() local
351 if (code == Constants.CODE_OUTPUT_TEXT) { in onReleaseKey()
354 mKeyboardActionListener.onCodeInput(code, NOT_A_COORDINATE, NOT_A_COORDINATE, in onReleaseKey()
[all …]
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/
DAudioAndHapticFeedbackManager.java61 public void performHapticAndAudioFeedback(final int code, in performHapticAndAudioFeedback() argument
64 performAudioFeedback(code); in performHapticAndAudioFeedback()
85 public void performAudioFeedback(final int code) { in performAudioFeedback() argument
94 switch (code) { in performAudioFeedback()

1234567