/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/keyboard/ |
D | KeyboardLayoutSetNavigateMoreKeysBase.java | 79 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/OpenWnn/src/jp/co/omronsoft/openwnn/ |
D | OpenWnnEvent.java | 263 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 …]
|
D | OpenWnnEN.java | 408 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 …]
|
D | OpenWnnJAJP.java | 698 switch (ev.code) { in onEvent() 815 switch (ev.code) { in onEvent() 920 if ((ev.code == OpenWnnEvent.INPUT_KEY) && in onEvent() 932 if (!((ev.code == OpenWnnEvent.COMMIT_COMPOSING_TEXT) in onEvent() 944 if (!((ev.code == OpenWnnEvent.SELECT_CANDIDATE) in onEvent() 945 || (ev.code == OpenWnnEvent.LIST_CANDIDATES_NORMAL) in onEvent() 946 || (ev.code == OpenWnnEvent.LIST_CANDIDATES_FULL) in onEvent() 960 if ((ev.code == OpenWnnEvent.INPUT_KEY) && processHardware12Keyboard(keyEvent)) { in onEvent() 964 if (ev.code == OpenWnnEvent.LIST_CANDIDATES_FULL) { in onEvent() 971 } else if (ev.code == OpenWnnEvent.LIST_CANDIDATES_NORMAL) { in onEvent() [all …]
|
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/keyboard/internal/ |
D | KeyboardStateTestsBase.java | 84 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 …]
|
D | MockKeyboardSwitcher.java | 160 public void onPressKey(final int code, final boolean isSinglePointer) { in onPressKey() argument 161 mState.onPressKey(code, isSinglePointer, mAutoCapsState, in onPressKey() 165 public void onReleaseKey(final int code, final boolean withSliding) { in onReleaseKey() argument 166 onReleaseKey(code, withSliding, mAutoCapsState, RecapitalizeStatus.NOT_A_RECAPITALIZE_MODE); in onReleaseKey() 169 public void onReleaseKey(final int code, final boolean withSliding, in onReleaseKey() argument 171 mState.onReleaseKey(code, withSliding, currentAutoCapsState, currentRecapitalizeState); in onReleaseKey() 172 if (mLongPressTimeoutCode == code) { in onReleaseKey() 177 public void onCodeInput(final int code) { in onCodeInput() argument 179 if (Constants.isLetterCode(code)) { in onCodeInput() 180 mAutoCapsState = (code == MockConstants.CODE_AUTO_CAPS_TRIGGER) in onCodeInput() [all …]
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/internal/ |
D | KeyboardState.java | 345 public void onPressKey(final int code, final boolean isSinglePointer, in onPressKey() argument 348 Log.d(TAG, "onPressKey: code=" + Constants.printableCode(code) + " single=" in onPressKey() 351 if (code != Constants.CODE_SHIFT) { in onPressKey() 356 if (code == Constants.CODE_SHIFT) { in onPressKey() 358 } else if (code == Constants.CODE_CAPSLOCK) { in onPressKey() 360 } else if (code == Constants.CODE_SWITCH_ALPHA_SYMBOL) { in onPressKey() 384 public void onReleaseKey(final int code, final boolean withSliding, in onReleaseKey() argument 387 Log.d(TAG, "onReleaseKey: code=" + Constants.printableCode(code) in onReleaseKey() 390 if (code == Constants.CODE_SHIFT) { in onReleaseKey() 392 } else if (code == Constants.CODE_CAPSLOCK) { in onReleaseKey() [all …]
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/accessibility/ |
D | KeyCodeDescriptionMapper.java | 92 final int code = key.getCode(); in getDescriptionForKey() local 94 if (code == Constants.CODE_SWITCH_ALPHA_SYMBOL) { in getDescriptionForKey() 101 if (code == Constants.CODE_SHIFT) { in getDescriptionForKey() 105 if (code == Constants.CODE_ENTER) { in getDescriptionForKey() 111 if (code == Constants.CODE_OUTPUT_TEXT) { in getDescriptionForKey() 116 if (code != Constants.CODE_UNSPECIFIED) { in getDescriptionForKey() 118 final boolean isDefinedNonCtrl = Character.isDefined(code) in getDescriptionForKey() 119 && !Character.isISOControl(code); in getDescriptionForKey() 123 final String description = getDescriptionForCodePoint(context, code); in getDescriptionForKey() 288 private String getSpokenAccentedLetterDescription(final Context context, final int code) { in getSpokenAccentedLetterDescription() argument [all …]
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/settings/ |
D | SpacingAndPunctuations.java | 88 public boolean isWordSeparator(final int code) { in isWordSeparator() argument 89 return Arrays.binarySearch(mSortedWordSeparators, code) >= 0; in isWordSeparator() 92 public boolean isWordConnector(final int code) { in isWordConnector() argument 93 return Arrays.binarySearch(mSortedWordConnectors, code) >= 0; in isWordConnector() 96 public boolean isWordCodePoint(final int code) { in isWordCodePoint() argument 97 return Character.isLetter(code) || isWordConnector(code); in isWordCodePoint() 100 public boolean isUsuallyPrecededBySpace(final int code) { in isUsuallyPrecededBySpace() argument 101 return Arrays.binarySearch(mSortedSymbolsPrecededBySpace, code) >= 0; in isUsuallyPrecededBySpace() 104 public boolean isUsuallyFollowedBySpace(final int code) { in isUsuallyFollowedBySpace() argument 105 return Arrays.binarySearch(mSortedSymbolsFollowedBySpace, code) >= 0; in isUsuallyFollowedBySpace() [all …]
|
D | SettingsValues.java | 227 public boolean isWordSeparator(final int code) { in isWordSeparator() argument 228 return mSpacingAndPunctuations.isWordSeparator(code); in isWordSeparator() 231 public boolean isWordConnector(final int code) { in isWordConnector() argument 232 return mSpacingAndPunctuations.isWordConnector(code); in isWordConnector() 235 public boolean isWordCodePoint(final int code) { in isWordCodePoint() argument 236 return Character.isLetter(code) || isWordConnector(code) in isWordCodePoint() 237 || Character.COMBINING_SPACING_MARK == Character.getType(code); in isWordCodePoint() 240 public boolean isUsuallyPrecededBySpace(final int code) { in isUsuallyPrecededBySpace() argument 241 return mSpacingAndPunctuations.isUsuallyPrecededBySpace(code); in isUsuallyPrecededBySpace() 244 public boolean isUsuallyFollowedBySpace(final int code) { in isUsuallyFollowedBySpace() argument [all …]
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/ |
D | Constants.java | 247 public static boolean isLetterCode(final int code) { in isLetterCode() argument 248 return code >= CODE_SPACE; in isLetterCode() 251 public static String printableCode(final int code) { in printableCode() argument 252 switch (code) { in printableCode() 271 if (code < CODE_SPACE) return String.format("\\u%02X", code); in printableCode() 272 if (code < 0x100) return String.format("%c", code); in printableCode() 273 if (code < 0x10000) return String.format("\\u%04X", code); in printableCode() 274 return String.format("\\U%05X", code); in printableCode() 281 for (final int code : codes) { in printableCodes() 282 if (code == NOT_A_CODE) break; in printableCodes() [all …]
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/ |
D | PointerTracker.java | 328 final int code = altersCode ? key.getAltCode() : primaryCode; in callListenerOnCodeInput() local 330 final String output = code == Constants.CODE_OUTPUT_TEXT in callListenerOnCodeInput() 331 ? key.getOutputText() : Constants.printableCode(code); in callListenerOnCodeInput() 341 sTypingTimeRecorder.onCodeInput(code, eventTime); in callListenerOnCodeInput() 342 if (code == Constants.CODE_OUTPUT_TEXT) { in callListenerOnCodeInput() 344 } else if (code != Constants.CODE_UNSPECIFIED) { in callListenerOnCodeInput() 345 if (mKeyboard.hasProximityCharsCorrection(code)) { in callListenerOnCodeInput() 346 sListener.onCodeInput(code, x, y, isKeyRepeat); in callListenerOnCodeInput() 348 sListener.onCodeInput(code, in callListenerOnCodeInput() 1171 private int getLongPressTimeout(final int code) { in getLongPressTimeout() argument [all …]
|
D | Keyboard.java | 142 public boolean hasProximityCharsCorrection(final int code) { in hasProximityCharsCorrection() argument 151 return canAssumeNativeHasProximityCharsInfoOfAllKeys || Character.isLetter(code); in hasProximityCharsCorrection() 168 public Key getKey(final int code) { in getKey() argument 169 if (code == Constants.CODE_UNSPECIFIED) { in getKey() 173 final int index = mKeyCache.indexOfKey(code); in getKey() 179 if (key.getCode() == code) { in getKey() 180 mKeyCache.put(code, key); in getKey() 184 mKeyCache.put(code, null); in getKey()
|
D | Key.java | 197 public Key(final String label, final int iconId, final int code, final String outputText, in Key() argument 213 mCode = code; in Key() 214 mEnabled = (code != CODE_UNSPECIFIED); in Key() 320 final int code = KeySpecParser.getCode(keySpec); in Key() local 323 } else if (code >= Character.MIN_SUPPLEMENTARY_CODE_POINT) { in Key() 327 mLabel = new StringBuilder().appendCodePoint(code).toString(); in Key() 341 if (code == CODE_UNSPECIFIED && TextUtils.isEmpty(outputText) in Key() 357 } else if (code == CODE_UNSPECIFIED && outputText != null) { in Key() 365 mCode = StringUtils.toUpperCaseOfCodeForLocale(code, needsToUpperCase, locale); in Key() 486 final int code = getCode(); in toShortString() local [all …]
|
D | MoreKeysKeyboardView.java | 196 final int code = key.getCode(); in onKeyInput() local 197 if (code == Constants.CODE_OUTPUT_TEXT) { in onKeyInput() 199 } else if (code != Constants.CODE_UNSPECIFIED) { in onKeyInput() 200 if (getKeyboard().hasProximityCharsCorrection(code)) { in onKeyInput() 201 mListener.onCodeInput(code, x, y, false /* isKeyRepeat */); in onKeyInput() 203 mListener.onCodeInput(code, Constants.NOT_A_COORDINATE, Constants.NOT_A_COORDINATE, in onKeyInput()
|
D | KeyboardSwitcher.java | 188 public void onPressKey(final int code, final boolean isSinglePointer, in onPressKey() argument 190 mState.onPressKey(code, isSinglePointer, currentAutoCapsState, currentRecapitalizeState); in onPressKey() 193 public void onReleaseKey(final int code, final boolean withSliding, in onReleaseKey() argument 195 mState.onReleaseKey(code, withSliding, currentAutoCapsState, currentRecapitalizeState); in onReleaseKey() 307 public void onCodeInput(final int code, final int currentAutoCapsState, in onCodeInput() argument 309 mState.onCodeInput(code, currentAutoCapsState, currentRecapitalizeState); in onCodeInput()
|
D | ProximityInfo.java | 139 final int code = proximityCharsArray[i * MAX_PROXIMITY_CHARS_SIZE + j]; in createNativeProximityInfo() local 140 if (code == Constants.NOT_A_CODE) { in createNativeProximityInfo() 144 sb.append(Constants.printableCode(code)); in createNativeProximityInfo() 386 final int code = key.getCode(); in fillArrayWithNearestKeyCodes() local 387 if (code <= Constants.CODE_SPACE) { in fillArrayWithNearestKeyCodes() 390 dest[index++] = code; in fillArrayWithNearestKeyCodes()
|
/packages/apps/Email/emailcommon/src/com/android/emailcommon/provider/ |
D | Policy.java | 293 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/providers/DownloadProvider/src/com/android/providers/downloads/ |
D | StopRequestException.java | 50 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/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/emoji/ |
D | EmojiPalettesView.java | 305 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 …]
|
D | DynamicGridKeyboard.java | 67 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()
|
/packages/providers/ContactsProvider/src/com/android/providers/contacts/ |
D | ProfileAwareUriMatcher.java | 60 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/apps/ContactsCommon/src/com/android/contacts/common/list/ |
D | ContactListFilter.java | 126 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/ |
D | AbstractLayoutBase.java | 40 public static ExpectedKey key(final String label, final int code, in key() argument 42 return ExpectedKey.newInstance(label, code, moreKeys); in key() 52 public static ExpectedKey key(final int iconId, final int code, in key() argument 54 return ExpectedKey.newInstance(iconId, code, moreKeys); in key() 84 public static ExpectedKey moreKey(final String label, final int code) { in moreKey() argument 85 return ExpectedKey.newInstance(label, code); in moreKey()
|
D | ExpectedKeyOutput.java | 32 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 105 CasePreservedCode(final int code) { super(code); } in CasePreservedCode() argument
|