Searched refs:code (Results 1 - 25 of 84) sorted by relevance

1234

/packages/apps/Mms/src/org/w3c/dom/events/
H A DEventException.java16 * Event operations may throw an <code>EventException</code> as specified in
22 public EventException(short code, String message) { argument
24 this.code = code;
26 public short code; field in class:EventException
29 * If the <code>Event</code>'s type was not specified by initializing the
31 * as <code>null</code> o
[all...]
/packages/apps/OMA-DM/engine/javaplugin/api/com/android/omadm/plugin/
H A DDmtException.java24 private final int code; field in class:DmtException
30 code = ErrorCodes.SYNCML_DM_FAIL;
34 * Exception with only message without error code, for backwards
41 code = ErrorCodes.SYNCML_DM_FAIL;
47 * @param code error code specified in <A
51 public DmtException(int code, String message) { argument
53 this.code = code;
57 * Return error code
[all...]
/packages/inputmethods/OpenWnn/src/jp/co/omronsoft/openwnn/
H A DOpenWnnEvent.java77 * This event input specified character({@code chars}) into the cursor position.
84 * This event changes a character at cursor position with specified rule({@code toggleMap}).
97 * This event processes a {@code keyEvent}.
104 * This event processes a {@code keyEvent}.
176 * To get words from the list, use {@code GET_WORD} event.
183 * Get a word from top of the list made by {@code LIST_WORDS_IN_USER_DICTIONARY}.
262 /** Event code */
263 public int code = UNDEFINED; field in class:OpenWnnEvent
278 /** Error code */
284 * @param code Th
286 OpenWnnEvent(int code) argument
295 OpenWnnEvent(int code, int mode) argument
305 OpenWnnEvent(int code, char c) argument
316 OpenWnnEvent(int code, char c[]) argument
326 OpenWnnEvent(int code, String[] toggleTable) argument
336 OpenWnnEvent(int code, HashMap<?,?> replaceTable) argument
361 OpenWnnEvent(int code, KeyEvent ev) argument
371 OpenWnnEvent(int code, WnnWord word) argument
383 OpenWnnEvent(int code, int dict, WnnWord word) argument
[all...]
/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.java160 public void onPressKey(final int code, final boolean isSinglePointer) { argument
161 mState.onPressKey(code, isSinglePointer, mAutoCapsState,
165 public void onReleaseKey(final int code, final boolean withSliding) { argument
166 onReleaseKey(code, withSliding, mAutoCapsState, RecapitalizeStatus.NOT_A_RECAPITALIZE_MODE);
169 public void onReleaseKey(final int code, final boolean withSliding, argument
171 mState.onReleaseKey(code, withSliding, currentAutoCapsState, currentRecapitalizeState);
172 if (mLongPressTimeoutCode == code) {
177 public void onCodeInput(final int code) { argument
179 if (Constants.isLetterCode(code)) {
180 mAutoCapsState = (code
[all...]
/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/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/settings/
H A DSpacingAndPunctuations.java45 // To be able to binary search the code point. See {@link #isUsuallyPrecededBySpace(int)}.
48 // To be able to binary search the code point. See {@link #isUsuallyFollowedBySpace(int)}.
53 // To be able to binary search the code point. See {@link #isWordConnector(int)}.
88 public boolean isWordSeparator(final int code) { argument
89 return Arrays.binarySearch(mSortedWordSeparators, code) >= 0;
92 public boolean isWordConnector(final int code) { argument
93 return Arrays.binarySearch(mSortedWordConnectors, code) >= 0;
96 public boolean isWordCodePoint(final int code) { argument
97 return Character.isLetter(code) || isWordConnector(code);
100 isUsuallyPrecededBySpace(final int code) argument
104 isUsuallyFollowedBySpace(final int code) argument
108 isClusteringSymbol(final int code) argument
112 isSentenceSeparator(final int code) argument
[all...]
H A DSettingsValues.java227 public boolean isWordSeparator(final int code) { argument
228 return mSpacingAndPunctuations.isWordSeparator(code);
231 public boolean isWordConnector(final int code) { argument
232 return mSpacingAndPunctuations.isWordConnector(code);
235 public boolean isWordCodePoint(final int code) { argument
236 return Character.isLetter(code) || isWordConnector(code)
237 || Character.COMBINING_SPACING_MARK == Character.getType(code);
240 public boolean isUsuallyPrecededBySpace(final int code) { argument
241 return mSpacingAndPunctuations.isUsuallyPrecededBySpace(code);
244 isUsuallyFollowedBySpace(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/inputmethods/LatinIME/tests/src/com/android/inputmethod/keyboard/layout/expected/
H A DAbstractLayoutBase.java39 // Helper method to create an {@link ExpectedKey} object that has the label and the output code.
40 public static ExpectedKey key(final String label, final int code, argument
42 return ExpectedKey.newInstance(label, code, moreKeys);
51 // Helper method to create an {@link ExpectedKey} object that has the icon and the output code.
52 public static ExpectedKey key(final int iconId, final int code, argument
54 return ExpectedKey.newInstance(iconId, code, moreKeys);
83 // and the output code.
84 public static ExpectedKey moreKey(final String label, final int code) { argument
85 return ExpectedKey.newInstance(label, code);
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.java105 final int code) {
109 if (code == Constants.CODE_OUTPUT_TEXT) {
111 } else if (code < Constants.CODE_SPACE) {
112 output = Constants.printableCode(code);
114 output = StringUtils.newSingleCodePointString(code);
151 * @return the human readable representation of <code>key</code>.
160 * @return the human readable representation of <code>keys</code>.
179 * @return the human readable representation of <code>row
104 toString(final String label, final int iconId, final String outputText, final int code) argument
[all...]
/packages/inputmethods/OpenWnn/src/jp/co/omronsoft/openwnn/JAJP/
H A DKeyboardListPreferenceJAJP.java26 * This class notices to {@code OpenWnnJAJP} that the keyboard image is changed.
46 int code = OpenWnnEvent.CHANGE_INPUT_VIEW;
47 OpenWnnEvent ev = new OpenWnnEvent(code);
/packages/apps/OMA-DM/engine/dmlib/linux_java/mkfiles/
H A Ddm_make.con28 -I$(DIR_XPL)/code/portlib/hdr \
29 -I$(DIR_XPL)/code/portlib/linux/hdr \
/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/inputmethods/LatinIME/java/src/com/android/inputmethod/accessibility/
H A DKeyCodeDescriptionMapper.java92 final int code = key.getCode();
94 if (code == Constants.CODE_SWITCH_ALPHA_SYMBOL) {
101 if (code == Constants.CODE_SHIFT) {
105 if (code == Constants.CODE_ENTER) {
111 if (code == Constants.CODE_OUTPUT_TEXT) {
116 if (code != Constants.CODE_UNSPECIFIED) {
118 final boolean isDefinedNonCtrl = Character.isDefined(code)
119 && !Character.isISOControl(code);
123 final String description = getDescriptionForCodePoint(context, code);
137 * key or {@code nul
288 getSpokenAccentedLetterDescription(final Context context, final int code) argument
303 getSpokenSymbolDescription(final Context context, final int code) argument
317 getSpokenEmojiDescription(final Context context, final int code) argument
330 getSpokenDescriptionId(final Context context, final int code, final String resourceNameFormat) argument
[all...]
/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)) {
H A DKeyboardState.java345 public void onPressKey(final int code, final boolean isSinglePointer, argument
348 Log.d(TAG, "onPressKey: code=" + Constants.printableCode(code) + " single="
351 if (code != Constants.CODE_SHIFT) {
356 if (code == Constants.CODE_SHIFT) {
358 } else if (code == Constants.CODE_CAPSLOCK) {
360 } else if (code == Constants.CODE_SWITCH_ALPHA_SYMBOL) {
384 public void onReleaseKey(final int code, final boolean withSliding, argument
387 Log.d(TAG, "onReleaseKey: code=" + Constants.printableCode(code)
613 onCodeInput(final int code, final int currentAutoCapsState, final int currentRecapitalizeState) argument
[all...]
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/
H A DAudioAndHapticFeedbackManager.java60 public void performHapticAndAudioFeedback(final int code, argument
63 performAudioFeedback(code);
84 public void performAudioFeedback(final int code) { argument
93 switch (code) {
H A DPunctuationSuggestions.java65 final int code = KeySpecParser.getCode(keySpec);
66 return (code == Constants.CODE_OUTPUT_TEXT)
68 : StringUtils.newSingleCodePointString(code);
/packages/apps/Exchange/src/com/android/exchange/eas/
H A DEasSearchGal.java65 final int code = response.getStatus();
66 if (code == HttpStatus.SC_OK) {
80 LogUtils.d(LogUtils.TAG, "GAL lookup returned %d", code);
/packages/apps/ContactsCommon/src/com/android/contacts/common/list/
H A DContactListFilter.java126 int code = filterType;
128 code = code * 31 + accountType.hashCode();
129 code = code * 31 + accountName.hashCode();
132 code = code * 31 + dataSet.hashCode();
134 return code;
258 * Adds the account query parameters to the given {@code uriBuilder}.
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/
H A DKeyboard.java142 public boolean hasProximityCharsCorrection(final int code) { argument
146 // Note: The native code has the main keyboard layout only at this moment.
151 return canAssumeNativeHasProximityCharsInfoOfAllKeys || Character.isLetter(code);
168 public Key getKey(final int code) { argument
169 if (code == Constants.CODE_UNSPECIFIED) {
173 final int index = mKeyCache.indexOfKey(code);
179 if (key.getCode() == code) {
180 mKeyCache.put(code, key);
184 mKeyCache.put(code, null);
/packages/providers/ContactsProvider/
H A DAndroid.mk15 # The Emma tool analyzes code coverage when running unit tests on the
17 # leaving out code which is tested by other means (e.g. static libraries) that
22 # The Emma tool analyzes code coverage when running unit tests on the
24 # leaving out code which is tested by other means (e.g. static libraries) that
/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

Completed in 860 milliseconds

1234