/frameworks/base/core/java/android/view/ |
InputEventConsistencyVerifier.java | 35 private static final String EVENT_TYPE_KEY = "KeyEvent"; 169 if (event instanceof KeyEvent) { 170 final KeyEvent keyEvent = (KeyEvent)event; 171 onKeyEvent(keyEvent, nestingLevel); 193 public void onKeyEvent(KeyEvent event, int nestingLevel) { 206 case KeyEvent.ACTION_DOWN: { 225 case KeyEvent.ACTION_UP: { 234 case KeyEvent.ACTION_MULTIPLE [all...] |
/development/samples/ActionBarCompat/src/com/example/android/actionbarcompat/ |
SimpleMenu.java | 23 import android.view.KeyEvent; 188 public boolean performShortcut(int i, KeyEvent keyEvent, int i1) { 192 public boolean isShortcutKey(int i, KeyEvent keyEvent) {
|
/frameworks/base/policy/src/com/android/internal/policy/impl/ |
KeyguardViewBase.java | 31 import android.view.KeyEvent; 124 * keyguard. May be {@link KeyEvent#KEYCODE_UNKNOWN} if waking for a reason 144 public boolean dispatchKeyEvent(KeyEvent event) { 155 private boolean shouldEventKeepScreenOnWhileKeyguardShowing(KeyEvent event) { 156 if (event.getAction() != KeyEvent.ACTION_DOWN) { 160 case KeyEvent.KEYCODE_DPAD_DOWN: 161 case KeyEvent.KEYCODE_DPAD_LEFT: 162 case KeyEvent.KEYCODE_DPAD_RIGHT: 163 case KeyEvent.KEYCODE_DPAD_UP: 177 private boolean interceptMediaKey(KeyEvent event) [all...] |
PhoneFallbackEventHandler.java | 36 import android.view.KeyEvent; 58 public void preDispatchKeyEvent(KeyEvent event) { 62 public boolean dispatchKeyEvent(KeyEvent event) { 67 if (action == KeyEvent.ACTION_DOWN) { 74 boolean onKeyDown(int keyCode, KeyEvent event) { 79 final KeyEvent.DispatcherState dispatcher = mView.getKeyDispatcherState(); 82 case KeyEvent.KEYCODE_VOLUME_UP: 83 case KeyEvent.KEYCODE_VOLUME_DOWN: 84 case KeyEvent.KEYCODE_VOLUME_MUTE: { 90 case KeyEvent.KEYCODE_MEDIA_PLAY [all...] |
/frameworks/base/media/java/android/media/ |
IAudioService.aidl | 30 import android.view.KeyEvent; 118 oneway void dispatchMediaKeyEvent(in KeyEvent keyEvent); 119 void dispatchMediaKeyEventUnderWakelock(in KeyEvent keyEvent);
|
AudioService.java | 68 import android.view.KeyEvent; [all...] |
/frameworks/base/services/input/tests/ |
InputDispatcher_test.cpp | 72 virtual void interceptKeyBeforeQueueing(const KeyEvent* keyEvent, uint32_t& policyFlags) { 79 const KeyEvent* keyEvent, uint32_t policyFlags) { 84 const KeyEvent* keyEvent, uint32_t policyFlags, KeyEvent* outFallbackKeyEvent) { 122 KeyEvent event;
|
/frameworks/base/core/jni/ |
android_app_NativeActivity.cpp | 172 KeyEvent* kevent = mDispatchingKeys[0]; 243 if (!((KeyEvent*)event)->isSystemKey()) { 247 return preDispatchKey((KeyEvent*)event); 256 && ((KeyEvent*)event)->hasDefaultAction()) { 260 doUnhandledKey((KeyEvent*)event); 286 void AInputQueue::dispatchEvent(android::KeyEvent* event) { 306 KeyEvent* AInputQueue::consumeUnhandledEvent() { 309 KeyEvent* event = NULL; 315 LOG_TRACE("consumeUnhandledEvent: KeyEvent=%p", event); 319 KeyEvent* AInputQueue::consumePreDispatchingEvent(int* outSeq) [all...] |
/cts/tests/tests/widget/src/android/widget/cts/ |
ListViewTest.java | 37 import android.view.KeyEvent; 513 KeyEvent keyEvent = new KeyEvent(KeyEvent.ACTION_DOWN, KeyEvent.KEYCODE_A); 514 mListView.dispatchKeyEvent(keyEvent); 521 KeyEvent keyEvent = new KeyEvent(KeyEvent.ACTION_DOWN, KeyEvent.KEYCODE_DPAD_DOWN) [all...] |
/external/webkit/Source/WebCore/dom/ |
KeyboardEvent.h | 85 const PlatformKeyboardEvent* keyEvent() const { return m_keyEvent.get(); }
|
/external/webkit/Source/WebKit2/WebProcess/WebCoreSupport/gtk/ |
WebEditorClientGtk.cpp | 71 const PlatformKeyboardEvent* platformEvent = event->keyEvent();
|
/cts/tests/src/android/app/cts/ |
TestDialog.java | 22 import android.view.KeyEvent; 78 public KeyEvent keyEvent; 83 public KeyEvent keyMultipleEvent; 145 public boolean onKeyDown(int keyCode, KeyEvent event) { 154 public boolean onKeyUp(int keyCode, KeyEvent event) { 161 public boolean onKeyMultiple(int keyCode, int repeatCount, KeyEvent event) { 302 public boolean dispatchKeyEvent(KeyEvent event) { 303 keyEvent = event;
|
/external/webkit/Source/WebKit/gtk/WebCoreSupport/ |
EditorClientGtk.cpp | 635 gtk_bindings_activate_event(GTK_OBJECT(m_nativeWidget.get()), event->keyEvent()->gdkEventKey()); 637 gtk_bindings_activate_event(G_OBJECT(m_nativeWidget.get()), event->keyEvent()->gdkEventKey()); 709 const PlatformKeyboardEvent* platformEvent = event->keyEvent(); 808 && event->keyEvent()->gdkEventKey()->keyval; 810 if ((gtk_im_context_filter_keypress(priv->imContext.get(), event->keyEvent()->gdkEventKey()) && !m_pendingComposition) [all...] |
/frameworks/base/services/jni/ |
com_android_server_input_InputManagerService.cpp | 201 virtual void interceptKeyBeforeQueueing(const KeyEvent* keyEvent, uint32_t& policyFlags); 205 const KeyEvent* keyEvent, uint32_t policyFlags); 207 const KeyEvent* keyEvent, uint32_t policyFlags, KeyEvent* outFallbackKeyEvent); 793 static_cast<const KeyEvent*>(inputEvent)); 818 void NativeInputManager::interceptKeyBeforeQueueing(const KeyEvent* keyEvent, [all...] |
/frameworks/base/core/java/com/android/internal/widget/ |
TransportControlView.java | 46 import android.view.KeyEvent; 434 keyCode = KeyEvent.KEYCODE_MEDIA_PREVIOUS; 436 keyCode = KeyEvent.KEYCODE_MEDIA_NEXT; 438 keyCode = KeyEvent.KEYCODE_MEDIA_PLAY_PAUSE; 457 KeyEvent keyEvent = new KeyEvent(KeyEvent.ACTION_DOWN, keyCode); 459 intent.putExtra(Intent.EXTRA_KEY_EVENT, keyEvent); 467 keyEvent = new KeyEvent(KeyEvent.ACTION_UP, keyCode) [all...] |
/external/webkit/Source/WebCore/page/ |
EventHandler.h | 190 bool keyEvent(const PlatformKeyboardEvent&); 216 bool keyEvent(NSEvent *);
|
/external/webkit/Source/WebCore/plugins/symbian/ |
PluginViewSymbian.cpp | 187 ASSERT(event->keyEvent()->qtEvent()); 188 QEvent& npEvent = *(event->keyEvent()->qtEvent());
|
/packages/apps/Calculator/src/com/android/calculator2/ |
Calculator.java | 27 import android.view.KeyEvent; 236 public boolean onKeyDown(int keyCode, KeyEvent keyEvent) { 237 if (keyCode == KeyEvent.KEYCODE_BACK && getAdvancedVisibility() 242 return super.onKeyDown(keyCode, keyEvent);
|
/external/webkit/Source/WebCore/plugins/qt/ |
PluginViewQt.cpp | 422 const PlatformKeyboardEvent* keyEvent = event->keyEvent(); 428 xEvent->xkey.state = keyEvent->nativeModifiers(); 429 xEvent->xkey.keycode = keyEvent->nativeScanCode(); 436 QKeyEvent* qKeyEvent = keyEvent->qtEvent(); [all...] |
/external/webkit/Source/WebKit/qt/WebCoreSupport/ |
EditorClientQt.cpp | 414 const PlatformKeyboardEvent* kevent = event->keyEvent(); 536 const PlatformKeyboardEvent* kevent = event->keyEvent();
|
/hardware/ti/wpan/tools/FM/FmRxApp/src/com/ti/fmrxapp/ |
FmRxRdsConfig.java | 27 import android.view.KeyEvent; 270 public boolean onKey(View view, int keyCode, KeyEvent keyEvent) { 271 int action = keyEvent.getAction(); 273 if (keyCode == KeyEvent.KEYCODE_SOFT_RIGHT) { 279 if (keyCode == KeyEvent.KEYCODE_SOFT_LEFT) { 286 if (keyCode != KeyEvent.KEYCODE_DPAD_CENTER 287 && keyCode != KeyEvent.KEYCODE_DPAD_UP 288 && keyCode != KeyEvent.KEYCODE_DPAD_DOWN 289 && keyCode != KeyEvent.KEYCODE_ENTER) [all...] |
/external/webkit/Source/WebKit/haiku/WebCoreSupport/ |
EditorClientHaiku.cpp | 249 const PlatformKeyboardEvent* kevent = event->keyEvent();
|
/external/webkit/Source/WebKit/mac/Plugins/Hosted/ |
WebHostedNetscapePluginView.mm | 377 _proxy->keyEvent(self, event, NPCocoaEventKeyDown); 383 _proxy->keyEvent(self, event, NPCocoaEventKeyUp);
|
/external/webkit/Source/WebKit2/WebProcess/WebPage/qt/ |
WebPageQt.cpp | 204 int mapKey = modifiers << 16 | evt->keyEvent()->windowsVirtualKeyCode();
|
/frameworks/base/libs/androidfw/ |
InputTransport.cpp | 424 KeyEvent* keyEvent = factory->createKeyEvent(); 425 if (!keyEvent) return NO_MEMORY; 427 initializeKeyEvent(keyEvent, &mMsg); 429 *outEvent = keyEvent; 873 void InputConsumer::initializeKeyEvent(KeyEvent* event, const InputMessage* msg) { [all...] |