Home
last modified time | relevance | path

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

123456789

/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/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/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/apps/Settings/src/com/android/settings/wifi/dpp/
DWifiDppAddDeviceFragment.java68 public void onConfiguratorSuccess(int code) { in onConfiguratorSuccess() argument
73 public void onFailure(int code) { in onFailure() argument
74 Log.d(TAG, "EasyConnectConfiguratorStatusCallback.onFailure " + code); in onFailure()
76 showErrorUi(code, /* isConfigurationChange */ false); in onFailure()
80 public void onProgress(int code) { in onProgress() argument
107 private void showErrorUi(int code, boolean isConfigurationChange) { in showErrorUi() argument
108 switch (code) { in showErrorUi()
130 if (code == mLatestStatusCode) { in showErrorUi()
135 mLatestStatusCode = code; in showErrorUi()
165 if (hasRetryButton(code)) { in showErrorUi()
[all …]
DWifiDppQrCodeScannerFragment.java266 int code = statusCode.intValue(); in onCreate()
267 Log.d(TAG, "Easy connect enrollee callback onFailure " + code); in onCreate()
268 new EasyConnectEnrolleeStatusCallback().onFailure(code); in onCreate()
578 public void onConfiguratorSuccess(int code) { in onConfiguratorSuccess() argument
583 public void onFailure(int code) { in onFailure() argument
584 Log.d(TAG, "EasyConnectEnrolleeStatusCallback.onFailure " + code); in onFailure()
587 switch (code) { in onFailure()
605 if (code == mLatestStatusCode) { in onFailure()
610 mLatestStatusCode = code; in onFailure()
637 mLatestStatusCode = code; in onFailure()
[all …]
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/wifi/dpp/
DWifiDppAddDeviceFragment.java68 public void onConfiguratorSuccess(int code) { in onConfiguratorSuccess() argument
73 public void onFailure(int code) { in onFailure() argument
74 Log.d(TAG, "EasyConnectConfiguratorStatusCallback.onFailure " + code); in onFailure()
76 showErrorUi(code, /* isConfigurationChange */ false); in onFailure()
80 public void onProgress(int code) { in onProgress() argument
107 private void showErrorUi(int code, boolean isConfigurationChange) { in showErrorUi() argument
108 switch (code) { in showErrorUi()
130 if (code == mLatestStatusCode) { in showErrorUi()
135 mLatestStatusCode = code; in showErrorUi()
165 if (hasRetryButton(code)) { in showErrorUi()
[all …]
DWifiDppQrCodeScannerFragment.java259 int code = statusCode.intValue(); in onCreate()
260 Log.d(TAG, "Easy connect enrollee callback onFailure " + code); in onCreate()
261 new EasyConnectEnrolleeStatusCallback().onFailure(code); in onCreate()
571 public void onConfiguratorSuccess(int code) { in onConfiguratorSuccess() argument
576 public void onFailure(int code) { in onFailure() argument
577 Log.d(TAG, "EasyConnectEnrolleeStatusCallback.onFailure " + code); in onFailure()
580 switch (code) { in onFailure()
598 if (code == mLatestStatusCode) { in onFailure()
603 mLatestStatusCode = code; in onFailure()
630 mLatestStatusCode = code; in onFailure()
[all …]
/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/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/
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 …]
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()
/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/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/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/Dialer/java/com/android/contacts/common/list/
DContactListFilter.java207 int code = filterType; in hashCode() local
209 code = code * 31 + accountType.hashCode(); in hashCode()
210 code = code * 31 + accountName.hashCode(); in hashCode()
213 code = code * 31 + dataSet.hashCode(); in hashCode()
215 return code; in hashCode()
/packages/services/Car/service/src/com/android/car/hal/
DInputHalService.java141 int code = v.value.int32Values.get(1); in handleHalEvents() local
146 .append("hal event code:").append(code) in handleHalEvents()
154 dispatchKeyEvent(listener, action, code, display); in handleHalEvents()
159 private void dispatchKeyEvent(InputListener listener, int action, int code, int display) {
166 KeyState state = mKeyStates.get(code);
169 mKeyStates.put(code, state);
193 code,
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/emoji/
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 …]
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()
/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

123456789