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

123

/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/inputmethods/LatinIME/tests/src/com/android/inputmethod/keyboard/internal/
H A DKeyboardStateTestsBase.java68 private void pressKeyWithoutTimerExpire(int code, boolean isSinglePointer, int afterPress) { argument
69 mSwitcher.onPressKey(code, isSinglePointer);
73 public void pressKey(int code, int afterPress) { argument
75 pressKeyWithoutTimerExpire(code, true, afterPress);
78 public void releaseKey(int code, int afterRelease) { argument
79 mSwitcher.onCodeInput(code, SINGLE);
80 mSwitcher.onReleaseKey(code, NOT_SLIDING);
84 public void pressAndReleaseKey(int code, int afterPress, int afterRelease) { argument
85 pressKey(code, afterPress);
86 releaseKey(code, afterReleas
89 chordingPressKey(int code, int afterPress) argument
94 chordingReleaseKey(int code, int afterRelease) argument
100 chordingPressAndReleaseKey(int code, int afterPress, int afterRelease) argument
105 pressAndSlideFromKey(int code, int afterPress, int afterSlide) argument
111 longPressKey(int code, int afterPress, int afterLongPress) argument
117 longPressAndReleaseKey(int code, int afterPress, int afterLongPress, int afterRelease) argument
123 secondPressKey(int code, int afterPress) argument
127 secondPressAndReleaseKey(int code, int afterPress, int afterRelease) argument
[all...]
H A DMockKeyboardSwitcher.java143 public void startLongPressTimer(int code) { argument
144 mLongPressTimeoutCode = code;
153 public void hapticAndAudioFeedback(int code) { argument
157 public void onLongPressTimeout(int code) { argument
159 if (mLongPressTimeoutCode == code) {
161 mState.onLongPressTimeout(code);
177 public void onPressKey(int code, boolean isSinglePointer) { argument
178 mState.onPressKey(code, isSinglePointer, mAutoCapsState);
181 public void onReleaseKey(int code, boolean withSliding) { argument
182 mState.onReleaseKey(code, withSlidin
188 onCodeInput(int code, boolean isSinglePointer) argument
[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...]
H A DOpenWnnEN.java58 /** A private area code(ALT+SHIFT+X) to be ignore (G1 specific). */
68 /** Previous event's code */
115 /** Message for {@code mHandler} (execute prediction) */
118 /** Message for {@code mHandler} (execute tutorial) */
121 /** Message for {@code mHandler} (close) */
130 /** {@code Handler} for drawing candidates/displaying tutorial */
239 * @param charCode A character code
240 * @return {@code true} if success; {@code false} if an error occurs.
264 * @param mode {@code SymbolLis
[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/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);
80 PROFILE_URIS.add(code);
87 PROFILE_URI_ID_MAP.put(code, i);
90 PROFILE_URI_LOOKUP_KEY_MAP.put(code, i);
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/internal/
H A DKeyboardState.java59 public void startLongPressTimer(int code); argument
61 public void hapticAndAudioFeedback(int code); argument
317 public void onPressKey(int code, boolean isSinglePointer, int autoCaps) { argument
319 Log.d(TAG, "onPressKey: code=" + Keyboard.printableCode(code)
322 if (code == Keyboard.CODE_SHIFT) {
324 } else if (code == Keyboard.CODE_SWITCH_ALPHA_SYMBOL) {
350 public void onReleaseKey(int code, boolean withSliding) { argument
352 Log.d(TAG, "onReleaseKey: code=" + Keyboard.printableCode(code)
382 onLongPressTimeout(int code) argument
556 onCodeInput(int code, boolean isSinglePointer, int autoCaps) argument
[all...]
H A DMoreKeySpec.java36 final int code = KeySpecParser.toUpperCaseOfCodeForLocale(
38 if (code == Keyboard.CODE_UNSPECIFIED) {
44 mCode = code;
/packages/apps/Exchange/exchange2/src/com/android/exchange/
H A DEasResponse.java37 // MSFT's custom HTTP result code indicating the need to provision
79 * Determine whether an HTTP code represents an authentication error
80 * @param code the HTTP code returned by the server
81 * @return whether or not the code represents an authentication error
83 public static boolean isAuthError(int code) { argument
84 return (code == HttpStatus.SC_UNAUTHORIZED) || (code == HttpStatus.SC_FORBIDDEN);
88 * Determine whether an HTTP code represents a provisioning error
89 * @param code th
92 isProvisionError(int code) argument
[all...]
H A DEasSyncService.java339 // Debug code for testing EAS 14.0; disables support for EAS 14.1
448 int code = resp.getStatus();
449 userLog("Validation (OPTIONS) response: " + code);
450 if (code == HttpStatus.SC_OK) {
481 code = resp.getStatus();
483 if (code == HttpStatus.SC_FORBIDDEN) {
487 } else if (EasResponse.isProvisionError(code)) {
490 } else if (code == HttpStatus.SC_NOT_FOUND) {
493 } else if (code == HttpStatus.SC_UNAUTHORIZED) {
497 } else if (code !
[all...]
H A DAbstractSyncService.java104 * @return a Bundle containing a result code and, depending on the result, a PolicySet or an
128 * @return a Bundle containing a result code and, depending on the result, a PolicySet or an
190 * repetitive code.
192 public void userLog(String string, int code, String string2) { argument
194 userLog(string + code + string2);
198 public void userLog(String string, int code) { argument
200 userLog(string + code);
263 // TODO: Create common code for this test in emailcommon
H A DEasAccountService.java258 int code = resp.getStatus();
259 userLog("OPTIONS response: ", code);
260 if (code == HttpStatus.SC_OK) {
288 } else if (code == EAS_REDIRECT_CODE && canHandleAccountMailboxRedirect(resp)) {
321 int code = resp.getStatus();
322 if (code == HttpStatus.SC_OK) {
331 } else if (EasResponse.isProvisionError(code)) {
333 } else if (EasResponse.isAuthError(code)) {
336 } else if (code == EAS_REDIRECT_CODE && canHandleAccountMailboxRedirect(resp)) {
340 userLog("FolderSync response error: ", code);
[all...]
H A DEasOutboxService.java408 int code = resp.getStatus();
409 if (code == HttpStatus.SC_OK) {
445 } else if (code == EasSyncService.INTERNAL_SERVER_ERROR_CODE && smartSend) {
451 userLog("Message sending failed, code: " + code);
452 if (EasResponse.isAuthError(code)) {
454 } else if (EasResponse.isProvisionError(code)) {
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/accessibility/
H A DKeyCodeDescriptionMapper.java84 * <li>Automatic or manually-defined based on the key code</li>
86 * <li>{code null} for keys with no label or key code defined</li>
98 final int code = key.mCode;
100 if (code == Keyboard.CODE_SWITCH_ALPHA_SYMBOL) {
106 if (code == Keyboard.CODE_SHIFT) {
110 if (code == Keyboard.CODE_ACTION_ENTER) {
133 * key or {@code null} if there is not a description provided for the
249 * the specified key is pressed based on its key code.
251 * The order of precedence for key code description
[all...]
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/
H A DKeyDetector.java127 for (final int code : codes) {
128 if (code == Constants.NOT_A_CODE) break;
130 sb.append(Keyboard.printableCode(code));
H A DKeyboardSwitcher.java209 public void onPressKey(int code) { argument
211 mLatinIME.hapticAndAudioFeedback(code);
213 mState.onPressKey(code, isSinglePointer(), mLatinIME.getCurrentAutoCapsState());
216 public void onReleaseKey(int code, boolean withSliding) { argument
217 mState.onReleaseKey(code, withSliding);
302 public void startLongPressTimer(int code) { argument
306 timer.startLongPressTimer(code);
322 public void hapticAndAudioFeedback(int code) { argument
323 mLatinIME.hapticAndAudioFeedback(code);
326 public void onLongPressTimeout(int code) { argument
349 onCodeInput(int code) argument
[all...]
H A DKeyboard.java50 /** Some common keys code. Must be positive.
70 /** Special keys code. Must be negative.
85 // Code value representing the code is not specified.
149 public boolean hasProximityCharsCorrection(final int code) { argument
153 // Note: The native code has the main keyboard layout only at this moment.
158 return canAssumeNativeHasProximityCharsInfoOfAllKeys || Character.isLetter(code);
165 public Key getKey(final int code) { argument
166 if (code == CODE_UNSPECIFIED) {
170 final int index = mKeyCache.indexOfKey(code);
176 if (key.mCode == code) {
200 isLetterCode(final int code) argument
223 printableCode(final int code) argument
[all...]
H A DPointerTracker.java59 * Get KeyboardActionListener object that is used to register key code and so on.
90 public void startLongPressTimer(int code); argument
107 public void startLongPressTimer(int code) {} argument
256 public void onCodeInput(final int code, final long eventTime) { argument
262 if (Character.isLetter(code)) {
454 final int code = altersCode ? key.getAltCode() : primaryCode;
456 final String output = code == Keyboard.CODE_OUTPUT_TEXT
457 ? key.getOutputText() : Keyboard.printableCode(code);
464 altersCode, code);
471 sTimeRecorder.onCodeInput(code, eventTim
[all...]
/packages/apps/Contacts/src/com/android/contacts/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/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/PinyinIME/jni/share/
H A Dngram.cpp37 inline double distance(double freq, double code) { argument
38 // return fabs(freq - code);
39 return freq * fabs(log(freq) - log(code));
42 // Find the index of the code value which is nearest to the given freq
93 for (size_t code = 0; code < kCodeBookSize; code++) {
94 assert(item_num[code] > 0);
95 code_book[code] = cb_new[code] / item_nu
[all...]
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/
H A DSettingsValues.java117 throw new RuntimeException("Char code " + mWeakSpaceStrippers.codePointAt(i)
249 public boolean isWordSeparator(final int code) { argument
250 return mWordSeparators.contains(String.valueOf((char)code));
253 public boolean isSymbolExcludedFromWordSeparators(final int code) { argument
254 return mSymbolsExcludedFromWordSeparators.contains(String.valueOf((char)code));
258 public boolean isWeakSpaceStripper(final int code) { argument
259 // TODO: this does not work if the code does not fit in a char
260 return mWeakSpaceStrippers.contains(String.valueOf((char)code));
264 public boolean isWeakSpaceSwapper(final int code) { argument
265 // TODO: this does not work if the code doe
269 isPhantomSpacePromotingSymbol(final int code) argument
[all...]
/packages/apps/Email/emailcommon/src/com/android/emailcommon/provider/
H A DPolicy.java280 int code = mRequireEncryption ? 1 : 0;
281 code += (mRequireEncryptionExternal ? 1 : 0) << 1;
282 code += (mRequireRemoteWipe ? 1 : 0) << 2;
283 code += (mMaxScreenLockTime << 3);
284 code += (mPasswordComplexChars << 6);
285 code += (mPasswordExpirationDays << 12);
286 code += (mPasswordHistory << 15);
287 code += (mPasswordMaxFails << 18);
288 code += (mPasswordMinLength << 22);
289 code
385 appendPolicy(StringBuilder sb, String code, int value) argument
[all...]
/packages/apps/Mms/src/com/android/mms/transaction/
H A DNotificationPlayer.java49 int code; field in class:NotificationPlayer.Command
59 return "{ code=" + code + " looping=" + looping + " stream=" + stream
172 switch (cmd.code) {
276 cmd.code = PLAY;
299 cmd.code = STOP;

Completed in 1733 milliseconds

123