/frameworks/base/core/java/android/view/ |
KeyEvent.aidl | 1 /* //device/java/android/android.view.KeyEvent.aidl 20 parcelable KeyEvent;
|
FallbackEventHandler.java | 24 public void preDispatchKeyEvent(KeyEvent event); 25 public boolean dispatchKeyEvent(KeyEvent event);
|
/cts/tests/tests/text/src/android/text/method/cts/ |
TextMethodUtils.java | 19 import android.view.KeyEvent; 29 for (int keyCode = KeyEvent.KEYCODE_A; keyCode <= KeyEvent.KEYCODE_Z; keyCode++) { 30 KeyEvent event = new KeyEvent(KeyEvent.ACTION_DOWN, keyCode);
|
ArrowKeyMovementMethodTest.java | 42 import android.view.KeyEvent; 195 final KeyEvent shiftAltEvent = new KeyEvent(0, 0, KeyEvent.ACTION_DOWN, 196 KeyEvent.KEYCODE_DPAD_UP, 0, KeyEvent.META_ALT_ON | KeyEvent.META_SHIFT_ON); 204 KeyEvent.KEYCODE_DPAD_UP, shiftAltEvent)); 211 KeyEvent shiftEvent = new KeyEvent(0, 0, KeyEvent.ACTION_DOWN, KeyEvent.KEYCODE_DPAD_UP, 0 [all...] |
/cts/tests/tests/view/src/android/view/cts/ |
KeyEventTest.java | 42 import android.view.KeyEvent; 52 * Test {@link KeyEvent}. 57 private KeyEvent mKeyEvent; 63 mKeyEvent = new KeyEvent(KeyEvent.ACTION_DOWN, KeyEvent.KEYCODE_0); 71 new KeyEvent(KeyEvent.ACTION_DOWN, KeyEvent.KEYCODE_0); 73 new KeyEvent(mDownTime, mEventTime, KeyEvent.ACTION_DOWN, KeyEvent.KEYCODE_0, 5) [all...] |
KeyCharacterMapTest.java | 30 import android.view.KeyEvent; 51 assertFalse(mKeyCharacterMap.isPrintingKey(KeyEvent.KEYCODE_UNKNOWN)); 52 assertFalse(mKeyCharacterMap.isPrintingKey(KeyEvent.KEYCODE_SOFT_LEFT)); 53 assertFalse(mKeyCharacterMap.isPrintingKey(KeyEvent.KEYCODE_SOFT_RIGHT)); 54 assertFalse(mKeyCharacterMap.isPrintingKey(KeyEvent.KEYCODE_HOME)); 55 assertFalse(mKeyCharacterMap.isPrintingKey(KeyEvent.KEYCODE_BACK)); 56 assertFalse(mKeyCharacterMap.isPrintingKey(KeyEvent.KEYCODE_CALL)); 57 assertFalse(mKeyCharacterMap.isPrintingKey(KeyEvent.KEYCODE_ENDCALL)); 59 assertTrue(mKeyCharacterMap.isPrintingKey(KeyEvent.KEYCODE_0)); 60 assertTrue(mKeyCharacterMap.isPrintingKey(KeyEvent.KEYCODE_1)) [all...] |
MenuTest.java | 28 import android.view.KeyEvent; 67 KeyEvent keyEventToSend; 70 keyCodeToSend = KeyEvent.KEYCODE_A; 71 metaState = KeyEvent.META_CTRL_ON; 78 keyCodeToSend = KeyEvent.KEYCODE_B; 79 metaState = KeyEvent.META_CTRL_ON; 86 keyCodeToSend = KeyEvent.KEYCODE_C; 87 metaState = KeyEvent.META_SHIFT_ON; 94 keyCodeToSend = KeyEvent.KEYCODE_D; 95 metaState = KeyEvent.META_CTRL_ON | KeyEvent.META_SHIFT_ON [all...] |
/frameworks/base/core/tests/coretests/src/android/util/ |
KeyUtils.java | 25 import android.view.KeyEvent; 48 inst.sendKeySync(new KeyEvent(KeyEvent.ACTION_DOWN, KeyEvent.KEYCODE_MENU)); 49 inst.sendKeySync(new KeyEvent(KeyEvent.ACTION_UP, KeyEvent.KEYCODE_MENU)); 61 final KeyEvent pushMenuKey = new KeyEvent(KeyEvent.ACTION_DOWN, KeyEvent.KEYCODE_MENU) [all...] |
/packages/apps/UnifiedEmail/src/com/android/mail/utils/ |
KeyboardUtils.java | 19 import android.view.KeyEvent; 30 return (!isRtl && keyCode == KeyEvent.KEYCODE_DPAD_LEFT) || 31 (isRtl && keyCode == KeyEvent.KEYCODE_DPAD_RIGHT); 39 return (isRtl && keyCode == KeyEvent.KEYCODE_DPAD_LEFT) || 40 (!isRtl && keyCode == KeyEvent.KEYCODE_DPAD_RIGHT);
|
/packages/apps/UnifiedEmail/src/com/android/mail/ui/ |
KeyboardNavigationController.java | 20 import android.view.KeyEvent; 32 public boolean onInterceptKeyFromCV(int keyCode, KeyEvent keyEvent, boolean navigateAway);
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/event/ |
HardwareEventDecoder.java | 19 import android.view.KeyEvent; 25 public Event decodeHardwareKey(final KeyEvent keyEvent);
|
/packages/screensavers/PhotoTable/src/com/android/dreams/phototable/ |
KeyboardInterpreter.java | 19 import android.view.KeyEvent; 37 public boolean onKeyDown(int keyCode, KeyEvent event) { 42 case KeyEvent.KEYCODE_ENTER: 43 case KeyEvent.KEYCODE_DPAD_CENTER: 44 case KeyEvent.KEYCODE_ESCAPE: 49 case KeyEvent.KEYCODE_DPAD_RIGHT: 50 case KeyEvent.KEYCODE_L: 57 case KeyEvent.KEYCODE_DPAD_LEFT: 58 case KeyEvent.KEYCODE_H: 74 case KeyEvent.KEYCODE_ENTER [all...] |
/frameworks/base/media/java/android/media/session/ |
IOnVolumeKeyLongPressListener.aidl | 18 import android.view.KeyEvent; 25 void onVolumeKeyLongPress(in KeyEvent event);
|
IOnMediaKeyListener.aidl | 19 import android.view.KeyEvent; 26 void onMediaKey(in KeyEvent event, in ResultReceiver result);
|
/packages/apps/DocumentsUI/src/com/android/documentsui/files/ |
ActivityInputHandler.java | 19 import android.view.KeyEvent; 32 boolean onKeyDown(int keyCode, KeyEvent event) { 34 case KeyEvent.KEYCODE_FORWARD_DEL: 37 case KeyEvent.KEYCODE_DEL:
|
/packages/services/Car/car-lib/src/android/car/input/ |
ICarInputListener.aidl | 18 import android.view.KeyEvent; 27 void onKeyEvent(in KeyEvent keyEvent, int targetDisplay) = 1;
|
/frameworks/support/compat/java/android/support/v4/internal/view/ |
SupportMenu.java | 22 import android.view.KeyEvent; 59 int SUPPORTED_MODIFIERS_MASK = KeyEvent.META_META_ON | KeyEvent.META_CTRL_ON 60 | KeyEvent.META_ALT_ON | KeyEvent.META_SHIFT_ON | KeyEvent.META_SYM_ON 61 | KeyEvent.META_FUNCTION_ON;
|
/frameworks/base/core/tests/coretests/src/android/widget/ |
DatePickerFocusTest.java | 23 import android.view.KeyEvent; 63 sendKey(KeyEvent.KEYCODE_TAB); 65 sendKey(KeyEvent.KEYCODE_TAB); 67 sendKey(KeyEvent.KEYCODE_TAB); 69 sendKey(KeyEvent.KEYCODE_TAB); 71 sendShiftKey(KeyEvent.KEYCODE_TAB); 73 sendShiftKey(KeyEvent.KEYCODE_TAB); 75 sendShiftKey(KeyEvent.KEYCODE_TAB); 77 sendShiftKey(KeyEvent.KEYCODE_TAB); 97 final KeyEvent shiftDown = new KeyEvent(KeyEvent.ACTION_DOWN, KeyEvent.KEYCODE_SHIFT_LEFT) [all...] |
/development/samples/ApiDemos/src/com/example/android/apis/app/ |
ContactsFilterInstrumentation.java | 22 import android.view.KeyEvent; 60 sendKeySync(new KeyEvent(KeyEvent.ACTION_DOWN, KeyEvent.KEYCODE_M)); 61 sendKeySync(new KeyEvent(KeyEvent.ACTION_UP, KeyEvent.KEYCODE_M)); 62 sendKeySync(new KeyEvent(KeyEvent.ACTION_DOWN, KeyEvent.KEYCODE_A)) [all...] |
ContactsSelectInstrumentation.java | 23 import android.view.KeyEvent; 65 sendKeySync(new KeyEvent( 66 KeyEvent.ACTION_DOWN, KeyEvent.KEYCODE_DPAD_DOWN)); 67 sendKeySync(new KeyEvent( 68 KeyEvent.ACTION_UP, KeyEvent.KEYCODE_DPAD_DOWN)); 69 sendKeySync(new KeyEvent( 70 KeyEvent.ACTION_DOWN, KeyEvent.KEYCODE_DPAD_CENTER)) [all...] |
LocalSampleInstrumentation.java | 22 import android.view.KeyEvent; 72 sendKeySync(new KeyEvent(KeyEvent.ACTION_DOWN, KeyEvent.KEYCODE_SHIFT_LEFT)); 73 sendCharacterSync(KeyEvent.KEYCODE_H); 74 sendKeySync(new KeyEvent(KeyEvent.ACTION_UP, KeyEvent.KEYCODE_SHIFT_LEFT)); 75 sendCharacterSync(KeyEvent.KEYCODE_E); 76 sendCharacterSync(KeyEvent.KEYCODE_L) [all...] |
/cts/common/device-side/util/src/com/android/compatibility/common/util/ |
CtsKeyEventUtil.java | 25 import android.view.KeyEvent; 34 * {@link InputMethodManager#dispatchKeyEventFromInputMethod(View, KeyEvent)} to send the events. 54 KeyEvent[] events = getKeyEvents(text); 63 sendKey(instrumentation, targetView, KeyEvent.changeTimeRepeat( 94 * containing the key names as specified in KeyEvent, without the KEYCODE_ prefix. For 126 final Field keyCodeField = KeyEvent.class.getField("KEYCODE_" + key); 155 sendKey(instrumentation, targetView, new KeyEvent(KeyEvent.ACTION_DOWN, key)); 156 sendKey(instrumentation, targetView, new KeyEvent(KeyEvent.ACTION_UP, key)) [all...] |
/cts/tests/tests/hardware/src/android/hardware/input/cts/ |
InputCallback.java | 19 import android.view.KeyEvent; 23 public void onKeyEvent(KeyEvent ev);
|
/frameworks/base/core/jni/ |
android_view_KeyEvent.h | 26 class KeyEvent; 28 /* Obtains an instance of a DVM KeyEvent object as a copy of a native KeyEvent instance. 30 extern jobject android_view_KeyEvent_fromNative(JNIEnv* env, const KeyEvent* event); 32 /* Copies the contents of a DVM KeyEvent object to a native KeyEvent instance. 35 KeyEvent* event); 37 /* Recycles a DVM KeyEvent object.
|
/frameworks/support/compat/java/android/support/v4/view/ |
KeyEventCompat.java | 19 import android.view.KeyEvent; 23 * Helper for accessing features in {@link KeyEvent} introduced after 26 * @deprecated Use {@link KeyEvent} directly. 31 * @deprecated Call {@link KeyEvent#normalizeMetaState(int)} directly. This method will 36 return KeyEvent.normalizeMetaState(metaState); 40 * @deprecated Call {@link KeyEvent#metaStateHasModifiers(int, int)} directly. This method will 45 return KeyEvent.metaStateHasModifiers(metaState, modifiers); 49 * @deprecated Call {@link KeyEvent#metaStateHasNoModifiers(int)} directly. This method will be 54 return KeyEvent.metaStateHasNoModifiers(metaState); 58 * @deprecated Call {@link KeyEvent#hasModifiers(int)} directly. This method will be removed i [all...] |