HomeSort by relevance Sort by last modified time
    Searched refs:keyCode (Results 1 - 25 of 396) sorted by null

1 2 3 4 5 6 7 8 91011>>

  /packages/inputmethods/PinyinIME/src/com/android/inputmethod/pinyin/
EnglishInputProcessor.java 33 int keyCode = event.getKeyCode();
40 if (keyCode >= KeyEvent.KEYCODE_A && keyCode <= KeyEvent.KEYCODE_Z) {
41 keyChar = keyCode - KeyEvent.KEYCODE_A + 'a';
45 } else if (keyCode >= KeyEvent.KEYCODE_0
46 && keyCode <= KeyEvent.KEYCODE_9)
47 keyChar = keyCode - KeyEvent.KEYCODE_0 + '0';
48 else if (keyCode == KeyEvent.KEYCODE_COMMA)
50 else if (keyCode == KeyEvent.KEYCODE_PERIOD)
52 else if (keyCode == KeyEvent.KEYCODE_APOSTROPHE
    [all...]
PinyinIME.java 237 public boolean onKeyDown(int keyCode, KeyEvent event) {
239 return super.onKeyDown(keyCode, event);
243 public boolean onKeyUp(int keyCode, KeyEvent event) {
245 return super.onKeyUp(keyCode, event);
251 int keyCode = event.getKeyCode();
254 if (KeyEvent.KEYCODE_SPACE == keyCode && event.isShiftPressed()) {
274 if (processFunctionKeys(keyCode, realAction)) {
279 if (keyCode >= KeyEvent.KEYCODE_A && keyCode <= KeyEvent.KEYCODE_Z) {
280 keyChar = keyCode - KeyEvent.KEYCODE_A + 'a'
    [all...]
SkbTemplate.java 28 int keyCode;
125 public void addDefaultKeyIcons(int keyCode, Drawable icon,
132 iconRecord.keyCode = keyCode;
137 if (mKeyIconRecords.get(pos).keyCode >= keyCode) break;
143 public Drawable getDefaultKeyIcon(int keyCode) {
148 if (iconRecord.keyCode < keyCode) {
152 if (iconRecord.keyCode == keyCode)
    [all...]
  /cts/tests/src/android/text/method/cts/
TextMethodUtils.java 47 for (int keyCode = KeyEvent.KEYCODE_A; keyCode <= KeyEvent.KEYCODE_Z; keyCode++) {
48 KeyEvent event = new KeyEvent(KeyEvent.ACTION_DOWN, keyCode);
50 return keyCode;
  /external/quake/src/com/android/quake/
QuakeView.java 78 public boolean onKeyDown(int keyCode, KeyEvent event) {
79 if (!weWantThisKeyCode(keyCode)) {
80 return super.onKeyDown(keyCode, event);
82 switch (keyCode) {
93 keyCodeToQuakeCode(keyCode));
98 public boolean onKeyUp(int keyCode, KeyEvent event) {
99 if (!weWantThisKeyCode(keyCode)) {
100 return super.onKeyUp(keyCode, event);
102 switch (keyCode) {
112 keyCodeToQuakeCode(keyCode));
    [all...]
  /frameworks/base/core/java/com/android/internal/app/
AlertActivity.java 78 public boolean onKeyDown(int keyCode, KeyEvent event) {
79 if (mAlert.onKeyDown(keyCode, event)) return true;
80 return super.onKeyDown(keyCode, event);
84 public boolean onKeyUp(int keyCode, KeyEvent event) {
85 if (mAlert.onKeyUp(keyCode, event)) return true;
86 return super.onKeyUp(keyCode, event);
  /packages/apps/Launcher2/src/com/android/launcher2/
AccessibleTabView.java 41 public boolean onKeyDown(int keyCode, KeyEvent event) {
42 return FocusHelper.handleTabKeyEvent(this, keyCode, event)
43 || super.onKeyDown(keyCode, event);
47 public boolean onKeyUp(int keyCode, KeyEvent event) {
48 return FocusHelper.handleTabKeyEvent(this, keyCode, event)
49 || super.onKeyUp(keyCode, event);
  /packages/apps/Calculator/src/com/android/calculator2/
EventListener.java 77 public boolean onKey(View view, int keyCode, KeyEvent keyEvent) {
80 if (keyCode == KeyEvent.KEYCODE_DPAD_LEFT ||
81 keyCode == KeyEvent.KEYCODE_DPAD_RIGHT) {
82 boolean eat = mHandler.eatHorizontalMove(keyCode == KeyEvent.KEYCODE_DPAD_LEFT);
87 if (action == KeyEvent.ACTION_MULTIPLE && keyCode == KeyEvent.KEYCODE_UNKNOWN) {
91 //Calculator.log("KEY " + keyCode + "; " + action);
100 if (keyCode != KeyEvent.KEYCODE_DPAD_CENTER &&
101 keyCode != KeyEvent.KEYCODE_DPAD_UP &&
102 keyCode != KeyEvent.KEYCODE_DPAD_DOWN &&
103 keyCode != KeyEvent.KEYCODE_ENTER)
    [all...]
  /external/webkit/Source/WebCore/platform/cocoa/
KeyEventCocoa.h 35 int windowsKeyCodeForKeyCode(uint16_t keyCode);
  /cts/tests/src/android/app/cts/
KeyguardManagerActivity.java 30 public int keyCode;
54 public boolean onKeyDown(int keyCode, KeyEvent event) {
55 this.keyCode = keyCode;
56 if (keyCode == KeyEvent.KEYCODE_0 && mKeyLock != null) {
66 return super.onKeyDown(keyCode, event);
  /packages/apps/Music/src/com/android/music/
RepeatingImageButton.java 85 public boolean onKeyDown(int keyCode, KeyEvent event) {
86 switch (keyCode) {
91 super.onKeyDown(keyCode, event);
94 return super.onKeyDown(keyCode, event);
98 public boolean onKeyUp(int keyCode, KeyEvent event) {
99 switch (keyCode) {
109 return super.onKeyUp(keyCode, event);
  /packages/apps/Mms/src/com/android/mms/ui/
MessageListView.java 35 public boolean onKeyShortcut(int keyCode, KeyEvent event) {
36 switch (keyCode) {
52 return super.onKeyShortcut(keyCode, event);
WarnOfStorageLimitsActivity.java 115 public boolean onKeyDown(int keyCode, KeyEvent event) {
116 if (mAlert.onKeyDown(keyCode, event)) return true;
117 return super.onKeyDown(keyCode, event);
121 public boolean onKeyUp(int keyCode, KeyEvent event) {
122 if (mAlert.onKeyUp(keyCode, event)) return true;
123 return super.onKeyUp(keyCode, event);
  /packages/apps/Contacts/src/com/android/contacts/activities/
CallLogActivity.java 62 public boolean onKeyDown(int keyCode, KeyEvent event) {
63 switch (keyCode) {
78 return super.onKeyDown(keyCode, event);
82 public boolean onKeyUp(int keyCode, KeyEvent event) {
83 switch (keyCode) {
99 return super.onKeyUp(keyCode, event);
  /development/samples/JetBoy/src/com/example/android/jetboy/
JetBoy.java 135 public boolean onKeyDown(int keyCode, KeyEvent msg) {
136 if (keyCode == KeyEvent.KEYCODE_BACK) {
137 return super.onKeyDown(keyCode, msg);
139 return mJetBoyThread.doKeyDown(keyCode, msg);
147 public boolean onKeyUp(int keyCode, KeyEvent msg) {
148 if (keyCode == KeyEvent.KEYCODE_BACK) {
149 return super.onKeyUp(keyCode, msg);
151 return mJetBoyThread.doKeyUp(keyCode, msg);
  /frameworks/base/core/java/android/text/method/
KeyListener.java 58 int keyCode, KeyEvent event);
66 int keyCode, KeyEvent event);
MetaKeyKeyListener.java 266 public boolean onKeyDown(View view, Editable content, int keyCode, KeyEvent event) {
267 if (keyCode == KeyEvent.KEYCODE_SHIFT_LEFT || keyCode == KeyEvent.KEYCODE_SHIFT_RIGHT) {
272 if (keyCode == KeyEvent.KEYCODE_ALT_LEFT || keyCode == KeyEvent.KEYCODE_ALT_RIGHT
273 || keyCode == KeyEvent.KEYCODE_NUM) {
278 if (keyCode == KeyEvent.KEYCODE_SYM) {
321 public boolean onKeyUp(View view, Editable content, int keyCode, KeyEvent event) {
322 if (keyCode == KeyEvent.KEYCODE_SHIFT_LEFT || keyCode == KeyEvent.KEYCODE_SHIFT_RIGHT)
    [all...]
  /frameworks/base/include/media/
MediaMetadataRetrieverInterface.h 41 virtual const char* extractMetadata(int keyCode) = 0;
53 virtual const char* extractMetadata(int keyCode) { return NULL; }
  /frameworks/base/include/ui/
KeyCharacterMap.h 49 int32_t keyCode;
63 char16_t getDisplayLabel(int32_t keyCode) const;
69 char16_t getNumber(int32_t keyCode) const;
74 char16_t getCharacter(int32_t keyCode, int32_t metaState) const;
80 bool getFallbackAction(int32_t keyCode, int32_t metaState,
87 char16_t getMatch(int32_t keyCode, const char16_t* chars,
109 /* The fallback keycode if the key is not handled. */
171 bool getKey(int32_t keyCode, const Key** outKey) const;
172 bool getKeyBehavior(int32_t keyCode, int32_t metaState,
178 int32_t deviceId, int32_t keyCode, int32_t metaState, bool down, nsecs_t time)
    [all...]
  /frameworks/base/libs/ui/
KeyCharacterMap.cpp 142 char16_t KeyCharacterMap::getDisplayLabel(int32_t keyCode) const {
145 if (getKey(keyCode, &key)) {
149 LOGD("getDisplayLabel: keyCode=%d ~ Result %d.", keyCode, result);
154 char16_t KeyCharacterMap::getNumber(int32_t keyCode) const {
157 if (getKey(keyCode, &key)) {
161 LOGD("getNumber: keyCode=%d ~ Result %d.", keyCode, result);
166 char16_t KeyCharacterMap::getCharacter(int32_t keyCode, int32_t metaState) const {
170 if (getKeyBehavior(keyCode, metaState, &key, &behavior))
    [all...]
  /frameworks/base/core/java/android/view/
KeyCharacterMap.java 146 private static native char nativeGetCharacter(int ptr, int keyCode, int metaState);
147 private static native boolean nativeGetFallbackAction(int ptr, int keyCode, int metaState,
149 private static native char nativeGetNumber(int ptr, int keyCode);
150 private static native char nativeGetMatch(int ptr, int keyCode, char[] chars, int metaState);
151 private static native char nativeGetDisplayLabel(int ptr, int keyCode);
206 * @param keyCode The key code.
210 public int get(int keyCode, int metaState) {
212 char ch = nativeGetCharacter(mPtr, keyCode, metaState);
233 * @param keyCode The key code.
240 public boolean getFallbackAction(int keyCode, int metaState
    [all...]
  /frameworks/base/core/java/android/widget/
DialerFilter.java 107 public boolean onKeyDown(int keyCode, KeyEvent event) {
110 switch (keyCode) {
122 handled = mDigits.onKeyDown(keyCode, event);
123 handled &= mLetters.onKeyDown(keyCode, event);
127 handled = mLetters.onKeyDown(keyCode, event);
135 mLetters.onKeyDown(keyCode, event);
138 handled = mDigits.onKeyDown(keyCode, event);
142 handled = mDigits.onKeyDown(keyCode, event);
146 handled = mLetters.onKeyDown(keyCode, event);
156 handled = mLetters.onKeyDown(keyCode, event)
    [all...]
  /frameworks/base/media/libmediaplayerservice/
MidiMetadataRetriever.cpp 61 const char* MidiMetadataRetriever::extractMetadata(int keyCode)
63 LOGV("extractMetdata: key(%d)", keyCode);
69 switch (keyCode) {
85 LOGE("Unsupported key code (%d)", keyCode);
  /packages/apps/Phone/src/com/android/phone/
DTMFTwelveKeyDialerView.java 70 int keyCode = event.getKeyCode();
72 switch (keyCode) {
75 return event.isDown() ? mDialer.onKeyDown(keyCode, event) :
76 mDialer.onKeyUp(keyCode, event);
  /external/skia/src/animator/
SkDisplayEvents.cpp 59 int keyCode = state ? state->fCode : 0;
68 if ((int) evt->code > keyCode || (int) (evt->fMax != (SkKey) -1 ? evt->fMax : evt->code) < keyCode)
70 evt->fLastCode = (SkKey) keyCode;
106 int keyCode = state ? state->fCode : 0;
113 if ((int) evt->code > keyCode || (int) (evt->fMax != (SkKey) -1 ? evt->fMax : evt->code) < keyCode)

Completed in 1179 milliseconds

1 2 3 4 5 6 7 8 91011>>