Home
last modified time | relevance | path

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

12345678910>>...16

/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/Settings/src/com/android/settings/wifi/dpp/
DWifiDppAddDeviceFragment.java71 public void onConfiguratorSuccess(int code) { in onConfiguratorSuccess() argument
76 public void onFailure(int code, String ssid, SparseArray<int[]> channelListArray, in onFailure() argument
78 Log.d(TAG, "EasyConnectConfiguratorStatusCallback.onFailure: " + code); in onFailure()
93 showErrorUi(code, getResultIntent(code, ssid, channelListArray, in onFailure()
98 public void onProgress(int code) { in onProgress() argument
125 private Intent getResultIntent(int code, String ssid, SparseArray<int[]> channelListArray, in getResultIntent() argument
128 intent.putExtra(EXTRA_EASY_CONNECT_ERROR_CODE, code); in getResultIntent()
171 private void showErrorUi(int code, Intent resultIntent, boolean isConfigurationChange) { in showErrorUi() argument
173 switch (code) { in showErrorUi()
197 if (code == mLatestStatusCode) { in showErrorUi()
[all …]
/packages/modules/Wifi/service/java/com/android/server/wifi/
DSupplicantStaIfaceCallbackV1_4Impl.java139 public void onEapFailure_1_1(int code) { in onEapFailure_1_1() argument
140 mCallbackV13.onEapFailure_1_1(code); in onEapFailure_1_1()
144 public void onEapFailure_1_3(int code) { in onEapFailure_1_3() argument
146 mIfaceName, WifiManager.ERROR_AUTH_FAILURE_EAP_FAILURE, code); in onEapFailure_1_3()
187 public void onDppProgress(int code) { in onDppProgress() argument
188 mCallbackV13.onDppProgress(code); in onDppProgress()
192 public void onDppFailure(int code) { in onDppFailure() argument
193 mCallbackV13.onDppFailure(code); in onDppFailure()
202 public void onDppProgress_1_3(int code) { in onDppProgress_1_3() argument
203 mCallbackV13.onDppProgress_1_3(code); in onDppProgress_1_3()
[all …]
DSupplicantStaIfaceCallbackV1_3Impl.java115 public void onEapFailure_1_1(int code) { in onEapFailure_1_1() argument
116 mCallbackV12.onEapFailure_1_1(code); in onEapFailure_1_1()
120 public void onEapFailure_1_3(int code) { in onEapFailure_1_3() argument
121 mCallbackV12.onEapFailure_1_1(code); in onEapFailure_1_3()
162 public void onDppProgress(int code) { in onDppProgress() argument
163 mCallbackV12.onDppProgress(code); in onDppProgress()
167 public void onDppFailure(int code) { in onDppFailure() argument
168 mCallbackV12.onDppFailure(code); in onDppFailure()
189 public void onDppProgress_1_3(int code) { in onDppProgress_1_3() argument
191 mStaIfaceHal.getDppCallback().onProgress(code); in onDppProgress_1_3()
[all …]
/packages/modules/IPsec/src/java/android/net/ipsec/ike/exceptions/
DIkeProtocolException.java105 protected IkeProtocolException(@ErrorType int code) { in IkeProtocolException() argument
107 mErrorType = code; in IkeProtocolException()
112 protected IkeProtocolException(@ErrorType int code, String message) { in IkeProtocolException() argument
114 mErrorType = code; in IkeProtocolException()
119 protected IkeProtocolException(@ErrorType int code, Throwable cause) { in IkeProtocolException() argument
121 mErrorType = code; in IkeProtocolException()
126 protected IkeProtocolException(@ErrorType int code, String message, Throwable cause) { in IkeProtocolException() argument
128 mErrorType = code; in IkeProtocolException()
137 protected IkeProtocolException(@ErrorType int code, byte[] notifyData) { in IkeProtocolException() argument
143 + code in IkeProtocolException()
[all …]
/packages/services/Telephony/testapps/TestRcsApp/aosp_test_rcsclient/src/com/android/libraries/rcs/simpleclient/service/chat/
DChatServiceException.java51 public ChatServiceException(@Nullable String message, @ErrorCode int code) { in ChatServiceException() argument
52 super(getMessage(message, code)); in ChatServiceException()
53 mCode = code; in ChatServiceException()
65 @Nullable String message, @ErrorCode int code, @Nullable Throwable cause) { in ChatServiceException() argument
66 super(getMessage(message, code), cause); in ChatServiceException()
67 mCode = code; in ChatServiceException()
70 private static String getMessage(String message, int code) { in getMessage() argument
75 builder.append(code); in getMessage()
79 return "code: " + code; in getMessage()
/packages/modules/DnsResolver/
DDnsTlsDispatcher.cpp116 DnsTlsTransport::Response code = DnsTlsTransport::Response::internal_error; in query() local
124 code = this->query(server, statp->netid, statp->_mark, query, ans, resplen, in query()
134 switch (code) { in query()
141 return code; in query()
145 return code; in query()
161 return code; in query()
188 DnsTlsTransport::Response code = result.code; in query() local
189 if (code == DnsTlsTransport::Response::success) { in query()
192 code = DnsTlsTransport::Response::limit_error; in query()
199 LOG(DEBUG) << "Query failed: " << (unsigned int)code; in query()
[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/services/Car/tests/DiagnosticTools/src/com/google/android/car/diagnostictools/
DDTC.java67 String code, in DTC() argument
72 this.mCode = code; in DTC()
87 DTC(String code, long timestamp, Context context) { in DTC() argument
88 this.mCode = code; in DTC()
90 DTCMetadata dtcMetadata = getDTCMetadata(code, context); in DTC()
143 String code = String.format("P%04d", 8 + number); in createSampleDTC() local
148 return new DTC(code, timestamp, context); in createSampleDTC()
151 private DTCMetadata getDTCMetadata(String code, Context context) { in getDTCMetadata() argument
152 return MetadataProcessing.getInstance(context).getDTCMetadata(code); in getDTCMetadata()
/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/modules/common/
DREADME.md3 This project includes mainline build and other utility code. Any library code
7 ## java code
9 This project uses a single source path for java code. All java code should go
12 include java source for a single java package to encourage good code hygiene.
14 Tests for java code should go in the `javatests` directory and follow the same
/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/services/Car/service/src/com/android/car/power/
DPolicyOperationStatus.java71 public static String errorCodeToString(@ErrorCode int code) { in errorCodeToString() argument
73 return ERROR_CODE_DESCRIPTION.get(code); in errorCodeToString()
75 return "Unknown error code: " + code; in errorCodeToString()
79 public static String errorCodeToString(@ErrorCode int code, String moreDescription) { in errorCodeToString() argument
81 return ERROR_CODE_DESCRIPTION.get(code) + ": " + moreDescription; in errorCodeToString()
83 return "Unknown error code: " + code; in errorCodeToString()
/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()

12345678910>>...16