Searched defs:code (Results 1 - 25 of 51) sorted by relevance

123

/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/compat/
H A DCharacterCompat.java31 public static boolean isAlphabetic(final int code) { argument
33 return (Boolean)CompatUtils.invoke(null, false, METHOD_isAlphabetic, code);
35 switch (Character.getType(code)) {
/packages/providers/DownloadProvider/src/com/android/providers/downloads/
H A DStopRequestException.java50 public static StopRequestException throwUnhandledHttpError(int code, String message) argument
52 final String error = "Unhandled HTTP response: " + code + " " + message;
53 if (code >= 400 && code < 600) {
54 throw new StopRequestException(code, error);
55 } else if (code >= 300 && code < 400) {
/packages/apps/Dialer/src/com/android/dialer/voicemail/
H A DVoicemailArchivePlaybackPresenter.java86 protected boolean requestContent(int code) { argument
/packages/apps/Messaging/src/com/android/messaging/datamodel/action/
H A DActionService.java43 public void scheduleAction(final Action action, final int code, argument
45 ActionServiceImpl.scheduleAction(action, code, delayMs);
/packages/providers/ContactsProvider/src/com/android/providers/contacts/
H A DProfileAwareUriMatcher.java58 * @param code the code to match for the root URI
60 public ProfileAwareUriMatcher(int code) { argument
61 super(code);
65 public void addURI(String authority, String path, int code) { argument
66 super.addURI(authority, path, code);
86 PROFILE_URIS.add(code);
93 PROFILE_URI_ID_MAP.put(code, i);
96 PROFILE_URI_LOOKUP_KEY_MAP.put(code, i);
/packages/apps/Settings/src/com/android/settings/
H A DAppWidgetPickActivity.java179 * Convenience method for setting the result code and intent. This method
183 void setResultData(int code, Intent intent) { argument
186 setResult(code, result);
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/internal/
H A DTypingTimeRecorder.java41 public void onCodeInput(final int code, final long eventTime) { argument
46 if (Character.isLetter(code)) {
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/
H A DAudioAndHapticFeedbackManager.java61 public void performHapticAndAudioFeedback(final int code, argument
64 performAudioFeedback(code);
85 public void performAudioFeedback(final int code) { argument
94 switch (code) {
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/keyboard/layout/expected/
H A DExpectedKeyOutput.java29 * There are two types of expected output, an integer code point and a string output text.
32 static ExpectedKeyOutput newInstance(final int code) { argument
33 return new Code(code);
37 // If the <code>outputText</code> is one code point string, use {@link CodePoint} object.
52 * This class represents an integer code point.
55 // UNICODE code point or a special negative value defined in {@link Constants}.
58 Code(final int code) { mCode = code; } argument
104 CasePreservedCode(final int code) argument
[all...]
H A DActualKeyboardBuilder.java112 final int code) {
116 if (code == Constants.CODE_OUTPUT_TEXT) {
118 } else if (code < Constants.CODE_SPACE) {
119 output = Constants.printableCode(code);
121 output = StringUtils.newSingleCodePointString(code);
158 * @return the human readable representation of <code>key</code>.
168 * @return the human readable representation of <code>keys</code>.
188 * @return the human readable representation of <code>row
111 toString(final String label, final int iconId, final String outputText, final int code) argument
[all...]
/packages/services/Car/libvehiclenetwork/native/
H A DIVehicleNetworkListener.cpp87 status_t BnVehicleNetworkListener::onTransact(uint32_t code, const Parcel& data, Parcel* reply, argument
90 switch (code) {
137 return BBinder::onTransact(code, data, reply, flags);
H A DIVehicleNetworkHalMock.cpp170 status_t BnVehicleNetworkHalMock::onTransact(uint32_t code, const Parcel& data, Parcel* reply, argument
176 switch (code) {
266 return BBinder::onTransact(code, data, reply, flags);
/packages/apps/Email/provider_src/com/android/email/mail/internet/
H A DOAuthAuthenticator.java36 public static final String OAUTH_REQUEST_CODE = "code";
82 final String code) throws MessagingException, IOException {
94 nvp.add(new BasicNameValuePair(OAUTH_REQUEST_CODE, code));
81 requestAccess(final Context context, final String providerId, final String code) argument
/packages/apps/Test/connectivity/sl4n/rapidjson/include/rapidjson/error/
H A Derror.h55 //! Error code of parsing.
90 \code
106 ParseResult(ParseErrorCode code, size_t offset) : code_(code), offset_(offset) {} argument
108 //! Get the error code.
119 bool operator==(ParseErrorCode code) const { return code_ == code; }
120 friend bool operator==(ParseErrorCode code, const ParseResult & err) { return code == err.code_; } argument
122 //! Reset error code
125 Set(ParseErrorCode code, size_t offset = 0) argument
[all...]
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/accessibility/
H A DKeyCodeDescriptionMapper.java94 final int code = key.getCode();
96 if (code == Constants.CODE_SWITCH_ALPHA_SYMBOL) {
103 if (code == Constants.CODE_SHIFT) {
107 if (code == Constants.CODE_ENTER) {
113 if (code == Constants.CODE_OUTPUT_TEXT) {
120 if (code != Constants.CODE_UNSPECIFIED) {
122 final boolean isDefinedNonCtrl = Character.isDefined(code)
123 && !Character.isISOControl(code);
127 final String description = getDescriptionForCodePoint(context, code);
141 * key or {@code nul
292 getSpokenAccentedLetterDescription(final Context context, final int code) argument
307 getSpokenSymbolDescription(final Context context, final int code) argument
321 getSpokenEmojiDescription(final Context context, final int code) argument
334 getSpokenDescriptionId(final Context context, final int code, final String resourceNameFormat) argument
[all...]
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/settings/
H A DSpacingAndPunctuations.java47 // To be able to binary search the code point. See {@link #isUsuallyPrecededBySpace(int)}.
50 // To be able to binary search the code point. See {@link #isUsuallyFollowedBySpace(int)}.
55 // To be able to binary search the code point. See {@link #isWordConnector(int)}.
95 public boolean isWordSeparator(final int code) { argument
96 return Arrays.binarySearch(mSortedWordSeparators, code) >= 0;
99 public boolean isWordConnector(final int code) { argument
100 return Arrays.binarySearch(mSortedWordConnectors, code) >= 0;
103 public boolean isWordCodePoint(final int code) { argument
104 return Character.isLetter(code) || isWordConnector(code);
107 isUsuallyPrecededBySpace(final int code) argument
111 isUsuallyFollowedBySpace(final int code) argument
115 isClusteringSymbol(final int code) argument
119 isSentenceTerminator(final int code) argument
123 isAbbreviationMarker(final int code) argument
127 isSentenceSeparator(final int code) argument
[all...]
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/keyboard/
H A DKeyboardLayoutSetNavigateMoreKeysBase.java79 private void doTestMoreKeysOf(final int code, final InputMethodSubtype subtype, argument
88 final Key actualKey = keyboard.getKey(code);
120 private void doTestNavigationMoreKeysOf(final int code, final InputMethodSubtype subtype, argument
123 doTestMoreKeysOf(code, subtype, elementId, inputType,
127 doTestMoreKeysOf(code, subtype, elementId, inputType,
131 doTestMoreKeysOf(code, subtype, elementId, inputType,
135 doTestMoreKeysOf(code, subtype, elementId, inputType,
139 doTestMoreKeysOf(code, subtype, elementId, inputType,
143 doTestMoreKeysOf(code, subtype, elementId, inputType,
147 doTestMoreKeysOf(code, subtyp
174 doTestNavigationWithEmojiMoreKeysOf(final int code, final InputMethodSubtype subtype, final int elementId, final int inputType) argument
229 doTestNoNavigationMoreKeysOf(final int code, final InputMethodSubtype subtype, final int elementId, final int inputType) argument
[all...]
/packages/apps/Email/src/com/android/email/activity/setup/
H A DOAuthAuthenticationActivity.java32 * should obtain an authorization code, which can be used to obtain access and
64 // providers use, or how the authentication code is returned.
84 mAuthenticationCode = uri.getQueryParameter("code");
143 public OAuthTokenLoader(Context context, String providerId, String code) { argument
146 mCode = code;
175 final String code = data.getString(EXTRA_AUTHENTICATION_CODE);
176 return new OAuthTokenLoader(this, providerId, code);
/packages/apps/Messaging/src/com/android/messaging/datamodel/
H A DDataModel.java68 final int code, final long delayMs) {
69 get().getActionService().scheduleAction(action, code, delayMs);
67 scheduleAction(final Action action, final int code, final long delayMs) argument
/packages/apps/Messaging/src/com/android/messaging/util/
H A DNotificationPlayer.java48 int code; field in class:NotificationPlayer.Command
58 return "{ code=" + code + " looping=" + looping + " stream=" + stream
190 switch (cmd.code) {
281 cmd.code = PLAY;
309 cmd.code = STOP;
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/
H A DKeyboard.java156 public boolean hasProximityCharsCorrection(final int code) { argument
160 // Note: The native code has the main keyboard layout only at this moment.
165 return canAssumeNativeHasProximityCharsInfoOfAllKeys || Character.isLetter(code);
190 public Key getKey(final int code) { argument
191 if (code == Constants.CODE_UNSPECIFIED) {
195 final int index = mKeyCache.indexOfKey(code);
201 if (key.getCode() == code) {
202 mKeyCache.put(code, key);
206 mKeyCache.put(code, null);
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/emoji/
H A DDynamicGridKeyboard.java67 private Key getTemplateKey(final int code) { argument
69 if (key.getCode() == code) {
73 throw new RuntimeException("Can't find template key: code=" + code);
146 final int code) {
149 if (key.getCode() == code) {
175 final int code = (Integer)o;
176 key = getKeyByCode(keyboards, code);
145 getKeyByCode(final Collection<DynamicGridKeyboard> keyboards, final int code) argument
/packages/inputmethods/LatinIME/native/jni/src/suggest/core/layout/
H A Dproximity_info.cpp156 const int code = mKeyCodePoints[i]; local
157 const int lowerCode = CharUtils::toLowerCase(code);
168 mKeyIndexToOriginalCodePoint[i] = code;
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/keyboard/internal/
H A DKeyboardStateTestsBase.java84 private void pressKeyWithoutTimerExpire(final int code, final boolean isSinglePointer, argument
86 mSwitcher.onPressKey(code, isSinglePointer);
93 * @param code the key code to press.
96 public void pressKey(final int code, final int afterPress) { argument
98 pressKeyWithoutTimerExpire(code, true, afterPress);
104 * @param code the key code to release and register
107 public void releaseKey(final int code, final int afterRelease) { argument
108 mSwitcher.onCodeInput(code);
120 pressAndReleaseKey(final int code, final int afterPress, final int afterRelease) argument
131 chordingPressKey(final int code, final int afterPress) argument
142 chordingReleaseKey(final int code, final int afterRelease) argument
155 chordingPressAndReleaseKey(final int code, final int afterPress, final int afterRelease) argument
168 pressAndSlideFromKey(final int code, final int afterPress, final int afterSlide) argument
181 stopSlidingOnKey(final int code, final int afterPress, final int afterSlide) argument
237 secondPressKey(final int code, final int afterPress) argument
248 secondPressAndReleaseKey(final int code, final int afterPress, final int afterRelease) argument
[all...]
H A DMockKeyboardSwitcher.java161 public void onPressKey(final int code, final boolean isSinglePointer) { argument
162 mState.onPressKey(code, isSinglePointer, mAutoCapsState,
166 public void onReleaseKey(final int code, final boolean withSliding) { argument
167 onReleaseKey(code, withSliding, mAutoCapsState, RecapitalizeStatus.NOT_A_RECAPITALIZE_MODE);
170 public void onReleaseKey(final int code, final boolean withSliding, argument
172 mState.onReleaseKey(code, withSliding, currentAutoCapsState, currentRecapitalizeState);
173 if (mLongPressTimeoutCode == code) {
178 public void onCodeInput(final int code) { argument
180 if (Constants.isLetterCode(code)) {
181 mAutoCapsState = (code
[all...]

Completed in 663 milliseconds

123