Home | History | Annotate | Download | only in view

Lines Matching defs:KeyEvent

80 public class KeyEvent extends InputEvent implements Parcelable {
1231 static final String TAG = "KeyEvent";
1236 private static KeyEvent gRecyclerTop;
1238 private KeyEvent mNext;
1255 * you can first call {@link KeyEvent#startTracking()
1256 * KeyEvent.startTracking()} to have the framework track the event
1257 * through its {@link #onKeyUp(int, KeyEvent)} and also call your
1258 * {@link #onKeyLongPress(int, KeyEvent)} if it occurs.
1266 boolean onKeyDown(int keyCode, KeyEvent event);
1270 * the final key up will have {@link KeyEvent#FLAG_CANCELED} and
1271 * {@link KeyEvent#FLAG_CANCELED_LONG_PRESS} set. Note that in
1274 * call {@link KeyEvent#startTracking()} on the event.
1282 boolean onKeyLongPress(int keyCode, KeyEvent event);
1293 boolean onKeyUp(int keyCode, KeyEvent event);
1307 boolean onKeyMultiple(int keyCode, int count, KeyEvent event);
1313 private KeyEvent() {
1323 public KeyEvent(int action, int code) {
1343 public KeyEvent(long downTime, long eventTime, int action,
1367 public KeyEvent(long downTime, long eventTime, int action,
1394 public KeyEvent(long downTime, long eventTime, int action,
1424 public KeyEvent(long downTime, long eventTime, int action,
1456 public KeyEvent(long downTime, long eventTime, int action,
1483 public KeyEvent(long time, String characters, int deviceId, int flags) {
1498 public KeyEvent(KeyEvent origEvent) {
1515 * @deprecated Use {@link #changeTimeRepeat(KeyEvent, long, int)}
1524 public KeyEvent(KeyEvent origEvent, long eventTime, int newRepeat) {
1538 private static KeyEvent obtain() {
1539 final KeyEvent ev;
1543 return new KeyEvent();
1558 public static KeyEvent obtain(long downTime, long eventTime, int action,
1561 KeyEvent ev = obtain();
1581 public static KeyEvent obtain(KeyEvent other) {
1582 KeyEvent ev = obtain();
1599 public KeyEvent copy() {
1639 public static KeyEvent changeTimeRepeat(KeyEvent event, long eventTime,
1641 return new KeyEvent(event, eventTime, newRepeat);
1655 public static KeyEvent changeTimeRepeat(KeyEvent event, long eventTime,
1657 KeyEvent ret = new KeyEvent(event);
1670 private KeyEvent(KeyEvent origEvent, int action) {
1692 public static KeyEvent changeAction(KeyEvent event, int action) {
1693 return new KeyEvent(event, action);
1703 public static KeyEvent changeFlags(KeyEvent event, int flags) {
1704 event = new KeyEvent(event);
1751 case KeyEvent.KEYCODE_BUTTON_A:
1752 case KeyEvent.KEYCODE_BUTTON_B:
1753 case KeyEvent.KEYCODE_BUTTON_C:
1754 case KeyEvent.KEYCODE_BUTTON_X:
1755 case KeyEvent.KEYCODE_BUTTON_Y:
1756 case KeyEvent.KEYCODE_BUTTON_Z:
1757 case KeyEvent.KEYCODE_BUTTON_L1:
1758 case KeyEvent.KEYCODE_BUTTON_R1:
1759 case KeyEvent.KEYCODE_BUTTON_L2:
1760 case KeyEvent.KEYCODE_BUTTON_R2:
1761 case KeyEvent.KEYCODE_BUTTON_THUMBL:
1762 case KeyEvent.KEYCODE_BUTTON_THUMBR:
1763 case KeyEvent.KEYCODE_BUTTON_START:
1764 case KeyEvent.KEYCODE_BUTTON_SELECT:
1765 case KeyEvent.KEYCODE_BUTTON_MODE:
1766 case KeyEvent.KEYCODE_BUTTON_1:
1767 case KeyEvent.KEYCODE_BUTTON_2:
1768 case KeyEvent.KEYCODE_BUTTON_3:
1769 case KeyEvent.KEYCODE_BUTTON_4:
1770 case KeyEvent.KEYCODE_BUTTON_5:
1771 case KeyEvent.KEYCODE_BUTTON_6:
1772 case KeyEvent.KEYCODE_BUTTON_7:
1773 case KeyEvent.KEYCODE_BUTTON_8:
1774 case KeyEvent.KEYCODE_BUTTON_9:
1775 case KeyEvent.KEYCODE_BUTTON_10:
1776 case KeyEvent.KEYCODE_BUTTON_11:
1777 case KeyEvent.KEYCODE_BUTTON_12:
1778 case KeyEvent.KEYCODE_BUTTON_13:
1779 case KeyEvent.KEYCODE_BUTTON_14:
1780 case KeyEvent.KEYCODE_BUTTON_15:
1781 case KeyEvent.KEYCODE_BUTTON_16:
1793 case KeyEvent.KEYCODE_DPAD_CENTER:
1794 case KeyEvent.KEYCODE_ENTER:
1795 case KeyEvent.KEYCODE_SPACE:
1796 case KeyEvent.KEYCODE_NUMPAD_ENTER:
1811 case KeyEvent.KEYCODE_MEDIA_PLAY:
1812 case KeyEvent.KEYCODE_MEDIA_PAUSE:
1813 case KeyEvent.KEYCODE_MEDIA_PLAY_PAUSE:
1814 case KeyEvent.KEYCODE_MUTE:
1815 case KeyEvent.KEYCODE_HEADSETHOOK:
1816 case KeyEvent.KEYCODE_MEDIA_STOP:
1817 case KeyEvent.KEYCODE_MEDIA_NEXT:
1818 case KeyEvent.KEYCODE_MEDIA_PREVIOUS:
1819 case KeyEvent.KEYCODE_MEDIA_REWIND:
1820 case KeyEvent.KEYCODE_MEDIA_RECORD:
1821 case KeyEvent.KEYCODE_MEDIA_FAST_FORWARD:
1833 case KeyEvent.KEYCODE_MENU:
1834 case KeyEvent.KEYCODE_SOFT_RIGHT:
1835 case KeyEvent.KEYCODE_HOME:
1836 case KeyEvent.KEYCODE_BACK:
1837 case KeyEvent.KEYCODE_CALL:
1838 case KeyEvent.KEYCODE_ENDCALL:
1839 case KeyEvent.KEYCODE_VOLUME_UP:
1840 case KeyEvent.KEYCODE_VOLUME_DOWN:
1841 case KeyEvent.KEYCODE_VOLUME_MUTE:
1842 case KeyEvent.KEYCODE_MUTE:
1843 case KeyEvent.KEYCODE_POWER:
1844 case KeyEvent.KEYCODE_HEADSETHOOK:
1845 case KeyEvent.KEYCODE_MEDIA_PLAY:
1846 case KeyEvent.KEYCODE_MEDIA_PAUSE:
1847 case KeyEvent.KEYCODE_MEDIA_PLAY_PAUSE:
1848 case KeyEvent.KEYCODE_MEDIA_STOP:
1849 case KeyEvent.KEYCODE_MEDIA_NEXT:
1850 case KeyEvent.KEYCODE_MEDIA_PREVIOUS:
1851 case KeyEvent.KEYCODE_MEDIA_REWIND:
1852 case KeyEvent.KEYCODE_MEDIA_RECORD:
1853 case KeyEvent.KEYCODE_MEDIA_FAST_FORWARD:
1854 case KeyEvent.KEYCODE_CAMERA:
1855 case KeyEvent.KEYCODE_FOCUS:
1856 case KeyEvent.KEYCODE_SEARCH:
1857 case KeyEvent.KEYCODE_BRIGHTNESS_DOWN:
1858 case KeyEvent.KEYCODE_BRIGHTNESS_UP:
1859 case KeyEvent.KEYCODE_MEDIA_AUDIO_TRACK:
1860 case KeyEvent.KEYCODE_SYSTEM_NAVIGATION_UP:
1861 case KeyEvent.KEYCODE_SYSTEM_NAVIGATION_DOWN:
1862 case KeyEvent.KEYCODE_SYSTEM_NAVIGATION_LEFT:
1863 case KeyEvent.KEYCODE_SYSTEM_NAVIGATION_RIGHT:
1873 case KeyEvent.KEYCODE_BACK:
1874 case KeyEvent.KEYCODE_MENU:
1875 case KeyEvent.KEYCODE_WAKEUP:
1876 case KeyEvent.KEYCODE_PAIRING:
1877 case KeyEvent.KEYCODE_STEM_1:
1878 case KeyEvent.KEYCODE_STEM_2:
1879 case KeyEvent.KEYCODE_STEM_3:
1887 return keyCode == KeyEventKeyEvent.KEYCODE_META_RIGHT;
1892 return keyCode == KeyEvent.KEYCODE_ALT_LEFT || keyCode == KeyEvent.KEYCODE_ALT_RIGHT;
2647 * when {@link #getNumber} is called with {@link KeyEvent#KEYCODE_Q} it returns '1'
2723 if (code != KeyEvent.KEYCODE_UNKNOWN) {
2741 * Use with {@link KeyEvent#dispatch(Callback, DispatcherState, Object)}
2774 * {@link KeyEvent#isTracking} return true on the long press and up
2780 public void startTracking(KeyEvent event, Object target) {
2794 public boolean isTracking(KeyEvent event) {
2804 public void performedLongPress(KeyEvent event) {
2814 public void handleUpEvent(KeyEvent event) {
2835 msg.append("KeyEvent { action=").append(actionToString(mAction));
2947 public static final Parcelable.Creator<KeyEvent> CREATOR
2948 = new Parcelable.Creator<KeyEvent>() {
2950 public KeyEvent createFromParcel(Parcel in) {
2951 in.readInt(); // skip token, we already know this is a KeyEvent
2952 return KeyEvent.createFromParcelBody(in);
2956 public KeyEvent[] newArray(int size) {
2957 return new KeyEvent[size];
2962 public static KeyEvent createFromParcelBody(Parcel in) {
2963 return new KeyEvent(in);
2966 private KeyEvent(Parcel in) {