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

12

/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/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/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 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
/packages/apps/Settings/src/com/android/settings/
H A DAppWidgetPickActivity.java231 * Convenience method for setting the result code and intent. This method
235 void setResultData(int code, Intent intent) { argument
238 setResult(code, result);
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/
H A DEditingUtils.java118 private static boolean isWhitespace(int code, String whitespace) { argument
119 return whitespace.contains(String.valueOf((char) code));
H A DSettingsValues.java98 throw new RuntimeException("Char code " + mWeakSpaceStrippers.codePointAt(i)
194 public boolean isWordSeparator(int code) { argument
195 return mWordSeparators.contains(String.valueOf((char)code));
198 public boolean isSymbolExcludedFromWordSeparators(int code) { argument
199 return mSymbolsExcludedFromWordSeparators.contains(String.valueOf((char)code));
202 public boolean isWeakSpaceStripper(int code) { argument
203 // TODO: this does not work if the code does not fit in a char
204 return mWeakSpaceStrippers.contains(String.valueOf((char)code));
207 public boolean isWeakSpaceSwapper(int code) { argument
208 // TODO: this does not work if the code doe
212 isPhantomSpacePromotingSymbol(int code) argument
[all...]
H A DUtils.java139 // TODO: accept code points
222 // TODO: remove code duplication with ResearchLog class
441 public static void onNonSeparator(final char code, final int x, argument
443 RingCharBuffer.getInstance().push(code, x, y);
447 public static void onSeparator(final int code, final int x, argument
449 // TODO: accept code points
450 RingCharBuffer.getInstance().push((char)code, x, y);
/packages/apps/Browser/src/com/android/browser/
H A DXLargeUi.java245 public boolean dispatchKey(int code, KeyEvent event) { argument
249 switch (code) {
H A DPhoneUi.java100 public boolean dispatchKey(int code, KeyEvent event) { argument
H A DUI.java137 boolean dispatchKey(int code, KeyEvent event); argument
/packages/apps/Mms/src/com/android/mms/transaction/
H A DNotificationPlayer.java50 int code; field in class:NotificationPlayer.Command
60 return "{ code=" + code + " looping=" + looping + " stream=" + stream
173 switch (cmd.code) {
277 cmd.code = PLAY;
300 cmd.code = STOP;
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/internal/
H A DKeySpecParser.java39 * - Label optionally followed by keyOutputText or code (keyLabel|keyOutputText).
40 * - Icon followed by keyOutputText or code (!icon/icon_name|!code/code_name)
42 * - Code should be a code point presented by hexadecimal string prefixed with "0x", or a string
43 * representation of code (!code/code_name).
59 private static final String PREFIX_CODE = "!code/";
169 // If output text is one code point, it should be treated as a code.
196 // If output text is one code poin
483 toUpperCaseOfCodeForLocale(int code, boolean needsToUpperCase, Locale locale) argument
[all...]
H A DKeyboardState.java61 public void startLongPressTimer(int code); argument
63 public void hapticAndAudioFeedback(int code); argument
303 public void onPressKey(int code, boolean isSinglePointer, int autoCaps) { argument
305 Log.d(TAG, "onPressKey: code=" + Keyboard.printableCode(code)
309 ResearchLogger.keyboardState_onPressKey(code, this);
311 if (code == Keyboard.CODE_SHIFT) {
313 } else if (code == Keyboard.CODE_SWITCH_ALPHA_SYMBOL) {
339 public void onReleaseKey(int code, boolean withSliding) { argument
341 Log.d(TAG, "onReleaseKey: code
374 onLongPressTimeout(int code) argument
540 onCodeInput(int code, boolean isSinglePointer, int autoCaps) argument
[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...]
/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/wallpapers/LivePicker/src/com/android/wallpaper/livepicker/
H A DLiveWallpaperPreview.java60 static void showPreview(Activity activity, int code, Intent intent, WallpaperInfo info) { argument
69 activity.startActivityForResult(preview, code);
/packages/apps/Nfc/jni/
H A Dcom_android_nfc.cpp364 //Display status code
370 NFCSTATUS code; member in struct:android::status_entry
421 if (sNameTable[i].code == PHNFCSTATUS(status))
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/
H A DKeyboardSwitcher.java202 public void onPressKey(int code) { argument
204 mLatinIME.hapticAndAudioFeedback(code);
206 mState.onPressKey(code, isSinglePointer(), mLatinIME.getCurrentAutoCapsState());
209 public void onReleaseKey(int code, boolean withSliding) { argument
210 mState.onReleaseKey(code, withSliding);
295 public void startLongPressTimer(int code) { argument
299 timer.startLongPressTimer(code);
315 public void hapticAndAudioFeedback(int code) { argument
316 mLatinIME.hapticAndAudioFeedback(code);
319 public void onLongPressTimeout(int code) { argument
342 onCodeInput(int code) argument
[all...]
/packages/apps/Calendar/src/com/android/calendar/event/
H A DEditEventFragment.java643 public void setDoneCode(int code) { argument
644 mCode = code;
H A DEditEventHelper.java462 // TODO: clean up this code.
1039 // one to make it easier to handle in code as 0,1,2.
1257 public void setDoneCode(int code); argument
/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/inputmethods/LatinIME/native/jni/src/
H A Dproximity_info.cpp86 // Build the reversed look up table from the char code to the index in mKeyXCoordinates,
91 const int code = mKeyCharCodes[i]; local
92 if (0 <= code && code <= MAX_CHAR_CODE) {
93 mCodeToKeyIndex[code] = i;
274 // Keep debug code just in case

Completed in 440 milliseconds

12