Home
last modified time | relevance | path

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

12345

/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.java68 private void pressKeyWithoutTimerExpire(int code, boolean isSinglePointer, int afterPress) { in pressKeyWithoutTimerExpire() argument
69 mSwitcher.onPressKey(code, isSinglePointer); in pressKeyWithoutTimerExpire()
73 public void pressKey(int code, int afterPress) { in pressKey() argument
75 pressKeyWithoutTimerExpire(code, true, afterPress); in pressKey()
78 public void releaseKey(int code, int afterRelease) { in releaseKey() argument
79 mSwitcher.onCodeInput(code, SINGLE); in releaseKey()
80 mSwitcher.onReleaseKey(code, NOT_SLIDING); in releaseKey()
84 public void pressAndReleaseKey(int code, int afterPress, int afterRelease) { in pressAndReleaseKey() argument
85 pressKey(code, afterPress); in pressAndReleaseKey()
86 releaseKey(code, afterRelease); in pressAndReleaseKey()
[all …]
DMockKeyboardSwitcher.java143 public void startLongPressTimer(int code) { in startLongPressTimer() argument
144 mLongPressTimeoutCode = code; in startLongPressTimer()
153 public void hapticAndAudioFeedback(int code) { in hapticAndAudioFeedback() argument
157 public void onLongPressTimeout(int code) { in onLongPressTimeout() argument
159 if (mLongPressTimeoutCode == code) { in onLongPressTimeout()
161 mState.onLongPressTimeout(code); in onLongPressTimeout()
177 public void onPressKey(int code, boolean isSinglePointer) { in onPressKey() argument
178 mState.onPressKey(code, isSinglePointer, mAutoCapsState); in onPressKey()
181 public void onReleaseKey(int code, boolean withSliding) { in onReleaseKey() argument
182 mState.onReleaseKey(code, withSliding); in onReleaseKey()
[all …]
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/
DKeyboard.java149 public boolean hasProximityCharsCorrection(final int code) { in hasProximityCharsCorrection() argument
158 return canAssumeNativeHasProximityCharsInfoOfAllKeys || Character.isLetter(code); in hasProximityCharsCorrection()
165 public Key getKey(final int code) { in getKey() argument
166 if (code == CODE_UNSPECIFIED) { in getKey()
170 final int index = mKeyCache.indexOfKey(code); in getKey()
176 if (key.mCode == code) { in getKey()
177 mKeyCache.put(code, key); in getKey()
181 mKeyCache.put(code, null); in getKey()
200 public static boolean isLetterCode(final int code) { in isLetterCode() argument
201 return code >= CODE_SPACE; in isLetterCode()
[all …]
DKeyboardSwitcher.java209 public void onPressKey(int code) { in onPressKey() argument
211 mLatinIME.hapticAndAudioFeedback(code); in onPressKey()
213 mState.onPressKey(code, isSinglePointer(), mLatinIME.getCurrentAutoCapsState()); in onPressKey()
216 public void onReleaseKey(int code, boolean withSliding) { in onReleaseKey() argument
217 mState.onReleaseKey(code, withSliding); in onReleaseKey()
302 public void startLongPressTimer(int code) { in startLongPressTimer() argument
306 timer.startLongPressTimer(code); in startLongPressTimer()
322 public void hapticAndAudioFeedback(int code) { in hapticAndAudioFeedback() argument
323 mLatinIME.hapticAndAudioFeedback(code); in hapticAndAudioFeedback()
326 public void onLongPressTimeout(int code) { in onLongPressTimeout() argument
[all …]
DKeyDetector.java127 for (final int code : codes) { in printableCodes()
128 if (code == Constants.NOT_A_CODE) break; in printableCodes()
130 sb.append(Keyboard.printableCode(code)); in printableCodes()
DPointerTracker.java90 public void startLongPressTimer(int code); in startLongPressTimer() argument
107 public void startLongPressTimer(int code) {} in startLongPressTimer() argument
256 public void onCodeInput(final int code, final long eventTime) { in onCodeInput() argument
262 if (Character.isLetter(code)) { in onCodeInput()
454 final int code = altersCode ? key.getAltCode() : primaryCode; in callListenerOnCodeInput() local
456 final String output = code == Keyboard.CODE_OUTPUT_TEXT in callListenerOnCodeInput()
457 ? key.getOutputText() : Keyboard.printableCode(code); in callListenerOnCodeInput()
464 altersCode, code); in callListenerOnCodeInput()
471 sTimeRecorder.onCodeInput(code, eventTime); in callListenerOnCodeInput()
472 if (code == Keyboard.CODE_OUTPUT_TEXT) { in callListenerOnCodeInput()
[all …]
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/internal/
DKeyboardState.java59 public void startLongPressTimer(int code); in startLongPressTimer() argument
61 public void hapticAndAudioFeedback(int code); in hapticAndAudioFeedback() argument
317 public void onPressKey(int code, boolean isSinglePointer, int autoCaps) { in onPressKey() argument
319 Log.d(TAG, "onPressKey: code=" + Keyboard.printableCode(code) in onPressKey()
322 if (code == Keyboard.CODE_SHIFT) { in onPressKey()
324 } else if (code == Keyboard.CODE_SWITCH_ALPHA_SYMBOL) { in onPressKey()
350 public void onReleaseKey(int code, boolean withSliding) { in onReleaseKey() argument
352 Log.d(TAG, "onReleaseKey: code=" + Keyboard.printableCode(code) in onReleaseKey()
355 if (code == Keyboard.CODE_SHIFT) { in onReleaseKey()
357 } else if (code == Keyboard.CODE_SWITCH_ALPHA_SYMBOL) { in onReleaseKey()
[all …]
DMoreKeySpec.java36 final int code = KeySpecParser.toUpperCaseOfCodeForLocale( in MoreKeySpec() local
38 if (code == Keyboard.CODE_UNSPECIFIED) { in MoreKeySpec()
44 mCode = code; in MoreKeySpec()
/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()
80 PROFILE_URIS.add(code); in addURI()
87 PROFILE_URI_ID_MAP.put(code, i); in addURI()
90 PROFILE_URI_LOOKUP_KEY_MAP.put(code, i); in addURI()
/packages/apps/Mms/src/org/w3c/dom/events/
DEventException.java22 public EventException(short code, String message) { in EventException() argument
24 this.code = code; in EventException()
26 public short code; field in EventException
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/accessibility/
DKeyCodeDescriptionMapper.java98 final int code = key.mCode; in getDescriptionForKey() local
100 if (code == Keyboard.CODE_SWITCH_ALPHA_SYMBOL) { in getDescriptionForKey()
106 if (code == Keyboard.CODE_SHIFT) { in getDescriptionForKey()
110 if (code == Keyboard.CODE_ACTION_ENTER) { in getDescriptionForKey()
270 final int code = key.mCode; in getDescriptionForKeyCode() local
273 final boolean isDefinedNonCtrl = Character.isDefined(code) && !Character.isISOControl(code); in getDescriptionForKeyCode()
278 if (mKeyCodeMap.indexOfKey(code) >= 0) { in getDescriptionForKeyCode()
279 return context.getString(mKeyCodeMap.get(code)); in getDescriptionForKeyCode()
281 return Character.toString((char) code); in getDescriptionForKeyCode()
285 return context.getString(R.string.spoken_description_unknown, code); in getDescriptionForKeyCode()
/packages/apps/Exchange/exchange2/src/com/android/exchange/
DEasResponse.java83 public static boolean isAuthError(int code) { in isAuthError() argument
84 return (code == HttpStatus.SC_UNAUTHORIZED) || (code == HttpStatus.SC_FORBIDDEN); in isAuthError()
92 public static boolean isProvisionError(int code) { in isProvisionError() argument
93 return (code == HTTP_NEED_PROVISIONING) || (code == HttpStatus.SC_FORBIDDEN); in isProvisionError()
Dpatent_disclaimer.txt4 Google makes no representation or warranty that the source code made available hereunder is
5 unencumbered by third-party patents. Those intending to use this source code in hardware or
6 software products are advised that implementations of this code, including in open source software
DEasSyncService.java448 int code = resp.getStatus(); in validateAccount() local
449 userLog("Validation (OPTIONS) response: " + code); in validateAccount()
450 if (code == HttpStatus.SC_OK) { in validateAccount()
481 code = resp.getStatus(); in validateAccount()
483 if (code == HttpStatus.SC_FORBIDDEN) { in validateAccount()
487 } else if (EasResponse.isProvisionError(code)) { in validateAccount()
490 } else if (code == HttpStatus.SC_NOT_FOUND) { in validateAccount()
493 } else if (code == HttpStatus.SC_UNAUTHORIZED) { in validateAccount()
497 } else if (code != HttpStatus.SC_OK) { in validateAccount()
498 if ((code == EAS_REDIRECT_CODE) && (mRedirectCount++ < MAX_REDIRECTS) && in validateAccount()
[all …]
DEasAccountService.java258 int code = resp.getStatus(); in sync() local
259 userLog("OPTIONS response: ", code); in sync()
260 if (code == HttpStatus.SC_OK) { in sync()
288 … } else if (code == EAS_REDIRECT_CODE && canHandleAccountMailboxRedirect(resp)) { in sync()
321 int code = resp.getStatus(); in sync() local
322 if (code == HttpStatus.SC_OK) { in sync()
331 } else if (EasResponse.isProvisionError(code)) { in sync()
333 } else if (EasResponse.isAuthError(code)) { in sync()
336 } else if (code == EAS_REDIRECT_CODE && canHandleAccountMailboxRedirect(resp)) { in sync()
340 userLog("FolderSync response error: ", code); in sync()
[all …]
/packages/inputmethods/PinyinIME/jni/share/
Dngram.cpp37 inline double distance(double freq, double code) { in distance() argument
39 return freq * fabs(log(freq) - log(code)); in distance()
93 for (size_t code = 0; code < kCodeBookSize; code++) { in recalculate_kernel() local
94 assert(item_num[code] > 0); in recalculate_kernel()
95 code_book[code] = cb_new[code] / item_num[code]; in recalculate_kernel()
/packages/apps/Contacts/src/com/android/contacts/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/apps/Exchange/exchange2/src/com/android/exchange/utility/
Dpatent_disclaimer.txt4 Google makes no representation or warranty that the source code made available hereunder is
5 unencumbered by third-party patents. Those intending to use this source code in hardware or
6 software products are advised that implementations of this code, including in open source software
/packages/apps/Exchange/exchange2/src/com/android/exchange/adapter/
Dpatent_disclaimer.txt4 Google makes no representation or warranty that the source code made available hereunder is
5 unencumbered by third-party patents. Those intending to use this source code in hardware or
6 software products are advised that implementations of this code, including in open source software
/packages/apps/Email/emailcommon/src/com/android/emailcommon/provider/
DPolicy.java280 int code = mRequireEncryption ? 1 : 0; in hashCode() local
281 code += (mRequireEncryptionExternal ? 1 : 0) << 1; in hashCode()
282 code += (mRequireRemoteWipe ? 1 : 0) << 2; in hashCode()
283 code += (mMaxScreenLockTime << 3); in hashCode()
284 code += (mPasswordComplexChars << 6); in hashCode()
285 code += (mPasswordExpirationDays << 12); in hashCode()
286 code += (mPasswordHistory << 15); in hashCode()
287 code += (mPasswordMaxFails << 18); in hashCode()
288 code += (mPasswordMinLength << 22); in hashCode()
289 code += (mPasswordMode << 26); in hashCode()
[all …]
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/
DSettingsValues.java249 public boolean isWordSeparator(final int code) { in isWordSeparator() argument
250 return mWordSeparators.contains(String.valueOf((char)code)); in isWordSeparator()
253 public boolean isSymbolExcludedFromWordSeparators(final int code) { in isSymbolExcludedFromWordSeparators() argument
254 return mSymbolsExcludedFromWordSeparators.contains(String.valueOf((char)code)); in isSymbolExcludedFromWordSeparators()
258 public boolean isWeakSpaceStripper(final int code) { in isWeakSpaceStripper() argument
260 return mWeakSpaceStrippers.contains(String.valueOf((char)code)); in isWeakSpaceStripper()
264 public boolean isWeakSpaceSwapper(final int code) { in isWeakSpaceSwapper() argument
266 return mWeakSpaceSwappers.contains(String.valueOf((char)code)); in isWeakSpaceSwapper()
269 public boolean isPhantomSpacePromotingSymbol(final int code) { in isPhantomSpacePromotingSymbol() argument
271 return mPhantomSpacePromotingSymbols.contains(String.valueOf((char)code)); in isPhantomSpacePromotingSymbol()
/packages/apps/Mms/src/com/android/mms/transaction/
DNotificationPlayer.java49 int code; field in NotificationPlayer.Command
59 return "{ code=" + code + " looping=" + looping + " stream=" + stream in toString()
172 switch (cmd.code) { in run()
276 cmd.code = PLAY; in play()
299 cmd.code = STOP; in stop()
/packages/inputmethods/OpenWnn/src/jp/co/omronsoft/openwnn/JAJP/
DKeyboardListPreferenceJAJP.java46 int code = OpenWnnEvent.CHANGE_INPUT_VIEW; in onDialogClosed() local
47 OpenWnnEvent ev = new OpenWnnEvent(code); in onDialogClosed()

12345