/development/samples/JetBoy/src/com/example/android/jetboy/ |
JetBoy.java | 27 import android.view.KeyEvent; 135 public boolean onKeyDown(int keyCode, KeyEvent msg) { 136 if (keyCode == KeyEvent.KEYCODE_BACK) { 147 public boolean onKeyUp(int keyCode, KeyEvent msg) { 148 if (keyCode == KeyEvent.KEYCODE_BACK) {
|
/packages/inputmethods/OpenWnn/src/jp/co/omronsoft/openwnn/ |
OpenWnnEvent.java | 19 import android.view.KeyEvent; 97 * This event processes a {@code keyEvent}. 104 * This event processes a {@code keyEvent}. 236 public KeyEvent keyEvent = null; 306 * Generate {@link OpenWnnEvent} from {@link KeyEvent} 312 public OpenWnnEvent(KeyEvent ev) { 313 if(ev.getAction() != KeyEvent.ACTION_UP){ 318 this.keyEvent = ev; 321 * Generate {@link OpenWnnEvent} from {@link KeyEvent} [all...] |
/cts/tests/tests/text/src/android/text/method/cts/ |
DateTimeKeyListenerTest.java | 32 import android.view.KeyEvent; 142 if ('a' == kcm.getMatch(KeyEvent.KEYCODE_A, DateTimeKeyListener.CHARACTERS)) { 144 mInstrumentation.sendKeyDownUpSync(KeyEvent.KEYCODE_A); 149 if ('p' == kcm.getMatch(KeyEvent.KEYCODE_P, DateTimeKeyListener.CHARACTERS)) { 151 mInstrumentation.sendKeyDownUpSync(KeyEvent.KEYCODE_P); 156 if ('m' == kcm.getMatch(KeyEvent.KEYCODE_M, DateTimeKeyListener.CHARACTERS)) { 158 mInstrumentation.sendKeyDownUpSync(KeyEvent.KEYCODE_M);
|
TimeKeyListenerTest.java | 31 import android.view.KeyEvent; 135 if ('a' == kcm.getMatch(KeyEvent.KEYCODE_A, TimeKeyListener.CHARACTERS)) { 137 mInstrumentation.sendKeyDownUpSync(KeyEvent.KEYCODE_A); 142 if ('p' == kcm.getMatch(KeyEvent.KEYCODE_P, TimeKeyListener.CHARACTERS)) { 144 mInstrumentation.sendKeyDownUpSync(KeyEvent.KEYCODE_P); 149 if ('m' == kcm.getMatch(KeyEvent.KEYCODE_M, TimeKeyListener.CHARACTERS)) { 151 mInstrumentation.sendKeyDownUpSync(KeyEvent.KEYCODE_M);
|
MetaKeyKeyListenerTest.java | 33 import android.view.KeyEvent; 46 android.view.KeyEvent.class} 56 numberKeyListener.onKeyDown(view, content, KeyEvent.KEYCODE_0, 57 new KeyEvent(KeyEvent.ACTION_DOWN, KeyEvent.KEYCODE_0)); 62 numberKeyListener.onKeyDown(view, content, KeyEvent.KEYCODE_2, 63 new KeyEvent(KeyEvent.ACTION_DOWN, KeyEvent.KEYCODE_2)) [all...] |
/frameworks/base/core/java/android/widget/ |
DialerFilter.java | 20 import android.view.KeyEvent; 107 public boolean onKeyDown(int keyCode, KeyEvent event) { 111 case KeyEvent.KEYCODE_DPAD_UP: 112 case KeyEvent.KEYCODE_DPAD_DOWN: 113 case KeyEvent.KEYCODE_DPAD_LEFT: 114 case KeyEvent.KEYCODE_DPAD_RIGHT: 115 case KeyEvent.KEYCODE_ENTER: 116 case KeyEvent.KEYCODE_DPAD_CENTER: 119 case KeyEvent.KEYCODE_DEL: 160 if (KeyEvent.isModifierKey(keyCode)) [all...] |
/frameworks/base/core/tests/coretests/src/android/widget/focus/ |
ScrollingThroughListOfFocusablesTest.java | 23 import android.view.KeyEvent; 82 sendKeys(KeyEvent.KEYCODE_DPAD_DOWN); 117 sendKeys(KeyEvent.KEYCODE_DPAD_DOWN); 132 sendKeys(KeyEvent.KEYCODE_DPAD_DOWN); 157 sendKeys(KeyEvent.KEYCODE_DPAD_DOWN); 180 sendKeys(KeyEvent.KEYCODE_DPAD_UP);
|
/frameworks/base/core/tests/coretests/src/android/widget/scroll/ |
ScrollViewButtonsAndLabelsTest.java | 27 import android.view.KeyEvent; 71 sendKeys(KeyEvent.KEYCODE_DPAD_DOWN); 107 sendKeys(KeyEvent.KEYCODE_DPAD_DOWN); 129 sendKeys(KeyEvent.KEYCODE_DPAD_UP); 149 sendKeys(KeyEvent.KEYCODE_DPAD_UP); 169 sendKeys(KeyEvent.KEYCODE_DPAD_DOWN);
|
/frameworks/base/include/ui/ |
KeyCharacterMap.h | 93 Vector<KeyEvent>& outEvents) const; 176 static void addKey(Vector<KeyEvent>& outEvents, 178 static void addMetaKeys(Vector<KeyEvent>& outEvents, 181 static bool addSingleEphemeralMetaKey(Vector<KeyEvent>& outEvents, 185 static void addDoubleEphemeralMetaKey(Vector<KeyEvent>& outEvents, 191 static void addLockedMetaKey(Vector<KeyEvent>& outEvents,
|
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/ui/ |
SearchActivityView.java | 39 import android.view.KeyEvent; 402 public boolean dispatchKeyEventPreIme(KeyEvent event) { 404 if (activity != null && event.getKeyCode() == KeyEvent.KEYCODE_BACK 406 KeyEvent.DispatcherState state = getKeyDispatcherState(); 408 if (event.getAction() == KeyEvent.ACTION_DOWN 412 } else if (event.getAction() == KeyEvent.ACTION_UP 468 long suggestionId, int keyCode, KeyEvent event) { 470 if ( keyCode == KeyEvent.KEYCODE_ENTER 471 || keyCode == KeyEvent.KEYCODE_SEARCH 472 || keyCode == KeyEvent.KEYCODE_DPAD_CENTER) [all...] |
/cts/tests/tests/widget/src/android/widget/cts/ |
ExpandableListViewWithHeadersTest.java | 26 import android.view.KeyEvent; 63 sendKeys(KeyEvent.KEYCODE_DPAD_CENTER); 77 sendKeys(KeyEvent.KEYCODE_DPAD_CENTER);
|
/frameworks/base/core/java/android/webkit/ |
WebViewClient.java | 22 import android.view.KeyEvent; 261 public boolean shouldOverrideKeyEvent(WebView view, KeyEvent event) { 275 public void onUnhandledKeyEvent(WebView view, KeyEvent event) {
|
/frameworks/base/core/tests/coretests/src/android/view/ |
GlobalFocusChangeTest.java | 25 import android.view.KeyEvent; 54 sendKeys(KeyEvent.KEYCODE_DPAD_RIGHT); 80 sendKeys(KeyEvent.KEYCODE_DPAD_RIGHT);
|
/frameworks/base/core/tests/coretests/src/android/widget/listview/ |
ListItemRequestRectAboveThinFirstItemTest.java | 24 import android.view.KeyEvent; 56 sendKeys(KeyEvent.KEYCODE_DPAD_DOWN); 79 sendKeys(KeyEvent.KEYCODE_DPAD_DOWN);
|
/frameworks/base/core/tests/coretests/src/android/widget/touchmode/ |
ChangeTouchModeTest.java | 28 import android.view.KeyEvent; 59 sendKeys(KeyEvent.KEYCODE_DPAD_RIGHT); 60 assertNotInTouchModeAfterKey(this, KeyEvent.KEYCODE_DPAD_RIGHT, getActivity().getFirstButton());
|
/packages/apps/Mms/src/com/android/mms/ui/ |
ConfirmRateLimitActivity.java | 30 import android.view.KeyEvent; 104 public boolean onKeyDown(int keyCode, KeyEvent event) { 105 if ((keyCode == KeyEvent.KEYCODE_BACK)
|
WarnOfStorageLimitsActivity.java | 29 import android.view.KeyEvent; 114 public boolean onKeyDown(int keyCode, KeyEvent event) { 120 public boolean onKeyUp(int keyCode, KeyEvent event) {
|
/system/media/mca/tests/src/android/camera/mediaeffects/tests/functional/ |
EffectsVideoCapture.java | 25 import android.view.KeyEvent; 50 inst.sendCharacterSync(KeyEvent.KEYCODE_CAMERA); 52 inst.sendCharacterSync(KeyEvent.KEYCODE_CAMERA);
|
/development/samples/ApiDemos/src/com/example/android/apis/view/ |
GameControllerInput.java | 31 import android.view.KeyEvent; 94 public boolean dispatchKeyEvent(KeyEvent event) { 99 case KeyEvent.ACTION_DOWN: 104 case KeyEvent.ACTION_UP: 206 public boolean onKeyDown(KeyEvent event) { 210 final String symbolicName = KeyEvent.keyCodeToString(keyCode); 219 public boolean onKeyUp(KeyEvent event) { 224 final String symbolicName = KeyEvent.keyCodeToString(keyCode); 263 case KeyEvent.KEYCODE_DPAD_UP: 264 case KeyEvent.KEYCODE_DPAD_DOWN [all...] |
/development/samples/RandomMusicPlayer/src/com/example/android/musicplayer/ |
MainActivity.java | 25 import android.view.KeyEvent; 124 public boolean onKeyDown(int keyCode, KeyEvent event) { 126 case KeyEvent.KEYCODE_MEDIA_PLAY_PAUSE: 127 case KeyEvent.KEYCODE_HEADSETHOOK:
|
/development/samples/SpinnerTest/src/com/android/example/spinner/test/ |
SpinnerActivityTest.java | 24 import android.view.KeyEvent; 194 this.sendKeys(KeyEvent.KEYCODE_DPAD_CENTER); 200 this.sendKeys(KeyEvent.KEYCODE_DPAD_DOWN); 205 this.sendKeys(KeyEvent.KEYCODE_DPAD_CENTER);
|
/external/chromium/chrome/browser/chromeos/login/ |
textfield_with_margin.cc | 38 bool TextfieldWithMargin::OnKeyPressed(const views::KeyEvent& e) {
|
/external/chromium/chrome/browser/ui/views/ |
dom_view.h | 41 virtual bool SkipDefaultKeyEventProcessing(const views::KeyEvent& e) OVERRIDE;
|
find_bar_host_win.cc | 32 const views::KeyEvent& key_event) {
|
/external/skia/android_sample/SampleApp/src/com/skia/sampleapp/ |
SampleApp.java | 24 import android.view.KeyEvent; 84 public boolean dispatchKeyEvent(KeyEvent event) { 86 case KeyEvent.ACTION_DOWN: 89 case KeyEvent.ACTION_UP:
|