KeyEvent: Fix doc link issues, typos, and inconsistent formatting.
(cherry picked from https://android-review.googlesource.com/q/commit:7aaa9d0963ff2d7a50c5661fa3c9fb8a8c3c9c2a)
Bug: b/245989146
Flag: DOCS_ONLY
Test: Treehugger
Change-Id: If23128b81c9f477373d36db511e57a5c1743f1a0
diff --git a/core/java/android/view/KeyEvent.java b/core/java/android/view/KeyEvent.java
index ad43c7b..c6d7326 100644
--- a/core/java/android/view/KeyEvent.java
+++ b/core/java/android/view/KeyEvent.java
@@ -97,18 +97,25 @@
public class KeyEvent extends InputEvent implements Parcelable {
/** Key code constant: Unknown key code. */
public static final int KEYCODE_UNKNOWN = 0;
- /** Key code constant: Soft Left key.
- * Usually situated below the display on phones and used as a multi-function
- * feature key for selecting a software defined function shown on the bottom left
- * of the display. */
+ /**
+ * Key code constant: Soft Left key.
+ * <p>
+ * Usually situated below the display on phones and used as a multi-function feature key for
+ * selecting a software defined function shown on the bottom left of the display.
+ */
public static final int KEYCODE_SOFT_LEFT = 1;
- /** Key code constant: Soft Right key.
- * Usually situated below the display on phones and used as a multi-function
- * feature key for selecting a software defined function shown on the bottom right
- * of the display. */
+ /**
+ * Key code constant: Soft Right key.
+ * <p>
+ * Usually situated below the display on phones and used as a multi-function feature key for
+ * selecting a software defined function shown on the bottom right of the display.
+ */
public static final int KEYCODE_SOFT_RIGHT = 2;
- /** Key code constant: Home key.
- * This key is handled by the framework and is never delivered to applications. */
+ /**
+ * Key code constant: Home key.
+ * <p>
+ * This key is handled by the framework and is never delivered to applications.
+ */
public static final int KEYCODE_HOME = 3;
/** Key code constant: Back key. */
public static final int KEYCODE_BACK = 4;
@@ -140,31 +147,55 @@
public static final int KEYCODE_STAR = 17;
/** Key code constant: '#' key. */
public static final int KEYCODE_POUND = 18;
- /** Key code constant: Directional Pad Up key.
- * May also be synthesized from trackball motions. */
+ /**
+ * Key code constant: Directional Pad Up key.
+ * <p>
+ * May also be synthesized from trackball motions.
+ */
public static final int KEYCODE_DPAD_UP = 19;
- /** Key code constant: Directional Pad Down key.
- * May also be synthesized from trackball motions. */
+ /**
+ * Key code constant: Directional Pad Down key.
+ * <p>
+ * May also be synthesized from trackball motions.
+ */
public static final int KEYCODE_DPAD_DOWN = 20;
- /** Key code constant: Directional Pad Left key.
- * May also be synthesized from trackball motions. */
+ /**
+ * Key code constant: Directional Pad Left key.
+ * <p>
+ * May also be synthesized from trackball motions.
+ */
public static final int KEYCODE_DPAD_LEFT = 21;
- /** Key code constant: Directional Pad Right key.
- * May also be synthesized from trackball motions. */
+ /**
+ * Key code constant: Directional Pad Right key.
+ * <p>
+ * May also be synthesized from trackball motions.
+ */
public static final int KEYCODE_DPAD_RIGHT = 22;
- /** Key code constant: Directional Pad Center key.
- * May also be synthesized from trackball motions. */
+ /**
+ * Key code constant: Directional Pad Center key.
+ * <p>
+ * May also be synthesized from trackball motions.
+ */
public static final int KEYCODE_DPAD_CENTER = 23;
- /** Key code constant: Volume Up key.
- * Adjusts the speaker volume up. */
+ /**
+ * Key code constant: Volume Up key.
+ * <p>
+ * Adjusts the speaker volume up.
+ */
public static final int KEYCODE_VOLUME_UP = 24;
- /** Key code constant: Volume Down key.
- * Adjusts the speaker volume down. */
+ /**
+ * Key code constant: Volume Down key.
+ * <p>
+ * Adjusts the speaker volume down.
+ */
public static final int KEYCODE_VOLUME_DOWN = 25;
/** Key code constant: Power key. */
public static final int KEYCODE_POWER = 26;
- /** Key code constant: Camera key.
- * Used to launch a camera application or take pictures. */
+ /**
+ * Key code constant: Camera key.
+ * <p>
+ * Used to launch a camera application or take pictures.
+ */
public static final int KEYCODE_CAMERA = 27;
/** Key code constant: Clear key. */
public static final int KEYCODE_CLEAR = 28;
@@ -236,19 +267,31 @@
public static final int KEYCODE_TAB = 61;
/** Key code constant: Space key. */
public static final int KEYCODE_SPACE = 62;
- /** Key code constant: Symbol modifier key.
- * Used to enter alternate symbols. */
+ /**
+ * Key code constant: Symbol modifier key.
+ * <p>
+ * Used to enter alternate symbols.
+ */
public static final int KEYCODE_SYM = 63;
- /** Key code constant: Explorer special function key.
- * Used to launch a browser application. */
+ /**
+ * Key code constant: Explorer special function key.
+ * <p>
+ * Used to launch a browser application.
+ */
public static final int KEYCODE_EXPLORER = 64;
- /** Key code constant: Envelope special function key.
- * Used to launch a mail application. */
+ /**
+ * Key code constant: Envelope special function key.
+ * <p>
+ * Used to launch a mail application.
+ */
public static final int KEYCODE_ENVELOPE = 65;
/** Key code constant: Enter key. */
public static final int KEYCODE_ENTER = 66;
- /** Key code constant: Backspace key.
- * Deletes characters before the insertion point, unlike {@link #KEYCODE_FORWARD_DEL}. */
+ /**
+ * Key code constant: Backspace key.
+ * <p>
+ * Deletes characters before the insertion point, unlike {@link #KEYCODE_FORWARD_DEL}.
+ */
public static final int KEYCODE_DEL = 67;
/** Key code constant: '`' (backtick) key. */
public static final int KEYCODE_GRAVE = 68;
@@ -270,16 +313,25 @@
public static final int KEYCODE_SLASH = 76;
/** Key code constant: '@' key. */
public static final int KEYCODE_AT = 77;
- /** Key code constant: Number modifier key.
+ /**
+ * Key code constant: Number modifier key.
+ * <p>
* Used to enter numeric symbols.
* This key is not Num Lock; it is more like {@link #KEYCODE_ALT_LEFT} and is
- * interpreted as an ALT key by {@link android.text.method.MetaKeyKeyListener}. */
+ * interpreted as an ALT key by {@link android.text.method.MetaKeyKeyListener}.
+ */
public static final int KEYCODE_NUM = 78;
- /** Key code constant: Headset Hook key.
- * Used to hang up calls and stop media. */
+ /**
+ * Key code constant: Headset Hook key.
+ * <p>
+ * Used to hang up calls and stop media.
+ */
public static final int KEYCODE_HEADSETHOOK = 79;
- /** Key code constant: Camera Focus key.
- * Used to focus the camera. */
+ /**
+ * Key code constant: Camera Focus key.
+ * <p>
+ * Used to focus the camera.
+ */
public static final int KEYCODE_FOCUS = 80; // *Camera* focus
/** Key code constant: '+' key. */
public static final int KEYCODE_PLUS = 81;
@@ -301,81 +353,138 @@
public static final int KEYCODE_MEDIA_REWIND = 89;
/** Key code constant: Fast Forward media key. */
public static final int KEYCODE_MEDIA_FAST_FORWARD = 90;
- /** Key code constant: Mute key.
- * Mute key for the microphone (unlike {@link #KEYCODE_VOLUME_MUTE}, which is the speaker mute
- * key). */
+ /**
+ * Key code constant: Mute key.
+ * <p>
+ * Mute key for the microphone (unlike {@link #KEYCODE_VOLUME_MUTE}, which is the speaker
+ * mute key).
+ */
public static final int KEYCODE_MUTE = 91;
/** Key code constant: Page Up key. */
public static final int KEYCODE_PAGE_UP = 92;
/** Key code constant: Page Down key. */
public static final int KEYCODE_PAGE_DOWN = 93;
- /** Key code constant: Picture Symbols modifier key.
- * Used to switch symbol sets (Emoji, Kao-moji). */
- public static final int KEYCODE_PICTSYMBOLS = 94; // switch symbol-sets (Emoji,Kao-moji)
- /** Key code constant: Switch Charset modifier key.
- * Used to switch character sets (Kanji, Katakana). */
- public static final int KEYCODE_SWITCH_CHARSET = 95; // switch char-sets (Kanji,Katakana)
- /** Key code constant: A Button key.
+ /**
+ * Key code constant: Picture Symbols modifier key.
+ * <p>
+ * Used to switch symbol sets (Emoji, Kao-moji).
+ */
+ public static final int KEYCODE_PICTSYMBOLS = 94;
+ /**
+ * Key code constant: Switch Charset modifier key.
+ * <p>
+ * Used to switch character sets (Kanji, Katakana).
+ */
+ public static final int KEYCODE_SWITCH_CHARSET = 95;
+ /**
+ * Key code constant: A Button key.
+ * <p>
* On a game controller, the A button should be either the button labeled A
- * or the first button on the bottom row of controller buttons. */
+ * or the first button on the bottom row of controller buttons.
+ */
public static final int KEYCODE_BUTTON_A = 96;
- /** Key code constant: B Button key.
+ /**
+ * Key code constant: B Button key.
+ * <p>
* On a game controller, the B button should be either the button labeled B
- * or the second button on the bottom row of controller buttons. */
+ * or the second button on the bottom row of controller buttons.
+ */
public static final int KEYCODE_BUTTON_B = 97;
- /** Key code constant: C Button key.
+ /**
+ * Key code constant: C Button key.
+ * <p>
* On a game controller, the C button should be either the button labeled C
- * or the third button on the bottom row of controller buttons. */
+ * or the third button on the bottom row of controller buttons.
+ */
public static final int KEYCODE_BUTTON_C = 98;
- /** Key code constant: X Button key.
+ /**
+ * Key code constant: X Button key.
+ * <p>
* On a game controller, the X button should be either the button labeled X
- * or the first button on the upper row of controller buttons. */
+ * or the first button on the upper row of controller buttons.
+ */
public static final int KEYCODE_BUTTON_X = 99;
- /** Key code constant: Y Button key.
+ /**
+ * Key code constant: Y Button key.
+ * <p>
* On a game controller, the Y button should be either the button labeled Y
- * or the second button on the upper row of controller buttons. */
+ * or the second button on the upper row of controller buttons.
+ */
public static final int KEYCODE_BUTTON_Y = 100;
- /** Key code constant: Z Button key.
+ /**
+ * Key code constant: Z Button key.
+ * <p>
* On a game controller, the Z button should be either the button labeled Z
- * or the third button on the upper row of controller buttons. */
+ * or the third button on the upper row of controller buttons.
+ */
public static final int KEYCODE_BUTTON_Z = 101;
- /** Key code constant: L1 Button key.
+ /**
+ * Key code constant: L1 Button key.
+ * <p>
* On a game controller, the L1 button should be either the button labeled L1 (or L)
- * or the top left trigger button. */
+ * or the top left trigger button.
+ */
public static final int KEYCODE_BUTTON_L1 = 102;
- /** Key code constant: R1 Button key.
+ /**
+ * Key code constant: R1 Button key.
+ * <p>
* On a game controller, the R1 button should be either the button labeled R1 (or R)
- * or the top right trigger button. */
+ * or the top right trigger button.
+ */
public static final int KEYCODE_BUTTON_R1 = 103;
- /** Key code constant: L2 Button key.
+ /**
+ * Key code constant: L2 Button key.
+ * <p>
* On a game controller, the L2 button should be either the button labeled L2
- * or the bottom left trigger button. */
+ * or the bottom left trigger button.
+ */
public static final int KEYCODE_BUTTON_L2 = 104;
- /** Key code constant: R2 Button key.
+ /**
+ * Key code constant: R2 Button key.
+ * <p>
* On a game controller, the R2 button should be either the button labeled R2
- * or the bottom right trigger button. */
+ * or the bottom right trigger button.
+ */
public static final int KEYCODE_BUTTON_R2 = 105;
- /** Key code constant: Left Thumb Button key.
+ /**
+ * Key code constant: Left Thumb Button key.
+ * <p>
* On a game controller, the left thumb button indicates that the left (or only)
- * joystick is pressed. */
+ * joystick is pressed.
+ */
public static final int KEYCODE_BUTTON_THUMBL = 106;
- /** Key code constant: Right Thumb Button key.
+ /**
+ * Key code constant: Right Thumb Button key.
+ * <p>
* On a game controller, the right thumb button indicates that the right
- * joystick is pressed. */
+ * joystick is pressed.
+ */
public static final int KEYCODE_BUTTON_THUMBR = 107;
- /** Key code constant: Start Button key.
- * On a game controller, the button labeled Start. */
+ /**
+ * Key code constant: Start Button key.
+ * <p>
+ * On a game controller, the button labeled Start.
+ */
public static final int KEYCODE_BUTTON_START = 108;
- /** Key code constant: Select Button key.
- * On a game controller, the button labeled Select. */
+ /**
+ * Key code constant: Select Button key.
+ * <p>
+ * On a game controller, the button labeled Select.
+ */
public static final int KEYCODE_BUTTON_SELECT = 109;
- /** Key code constant: Mode Button key.
- * On a game controller, the button labeled Mode. */
+ /**
+ * Key code constant: Mode Button key.
+ * <p>
+ * On a game controller, the button labeled Mode.
+ */
public static final int KEYCODE_BUTTON_MODE = 110;
/** Key code constant: Escape key. */
public static final int KEYCODE_ESCAPE = 111;
- /** Key code constant: Forward Delete key.
- * Deletes characters ahead of the insertion point, unlike {@link #KEYCODE_DEL}. */
+ /**
+ * Key code constant: Forward Delete key.
+ * <p>
+ * Deletes characters ahead of the insertion point, unlike {@link #KEYCODE_DEL}.
+ */
public static final int KEYCODE_FORWARD_DEL = 112;
/** Key code constant: Left Control modifier key. */
public static final int KEYCODE_CTRL_LEFT = 113;
@@ -393,37 +502,55 @@
public static final int KEYCODE_FUNCTION = 119;
/**
* Key code constant: System Request / Print Screen key.
- *
+ * <p>
* This key is sent to the app first and only if the app doesn't handle it, the framework
- * handles it (to take a screenshot), unlike {@code KEYCODE_TAKE_SCREENSHOT} which is
- * fully handled by the framework.
+ * handles it (to take a screenshot), unlike {@link #KEYCODE_SCREENSHOT} which is fully
+ * handled by the framework.
*/
public static final int KEYCODE_SYSRQ = 120;
/** Key code constant: Break / Pause key. */
public static final int KEYCODE_BREAK = 121;
- /** Key code constant: Home Movement key.
- * Used for scrolling or moving the cursor around to the start of a line
- * or to the top of a list. */
+ /**
+ * Key code constant: Home Movement key.
+ * <p>
+ * Used for scrolling or moving the cursor around to the start of a line or
+ * to the top of a list.
+ */
public static final int KEYCODE_MOVE_HOME = 122;
- /** Key code constant: End Movement key.
- * Used for scrolling or moving the cursor around to the end of a line
- * or to the bottom of a list. */
+ /**
+ * Key code constant: End Movement key.
+ * <p>
+ * Used for scrolling or moving the cursor around to the end of a line or
+ * to the bottom of a list.
+ */
public static final int KEYCODE_MOVE_END = 123;
- /** Key code constant: Insert key.
- * Toggles insert / overwrite edit mode. */
+ /**
+ * Key code constant: Insert key.
+ * <p>
+ * Toggles insert / overwrite edit mode.
+ */
public static final int KEYCODE_INSERT = 124;
- /** Key code constant: Forward key.
- * Navigates forward in the history stack. Complement of {@link #KEYCODE_BACK}. */
+ /**
+ * Key code constant: Forward key.
+ * <p>
+ * Navigates forward in the history stack. Complement of {@link #KEYCODE_BACK}.
+ */
public static final int KEYCODE_FORWARD = 125;
/** Key code constant: Play media key. */
public static final int KEYCODE_MEDIA_PLAY = 126;
/** Key code constant: Pause media key. */
public static final int KEYCODE_MEDIA_PAUSE = 127;
- /** Key code constant: Close media key.
- * May be used to close a CD tray, for example. */
+ /**
+ * Key code constant: Close media key.
+ * <p>
+ * May be used to close a CD tray, for example.
+ */
public static final int KEYCODE_MEDIA_CLOSE = 128;
- /** Key code constant: Eject media key.
- * May be used to eject a CD tray, for example. */
+ /**
+ * Key code constant: Eject media key.
+ * <p>
+ * May be used to eject a CD tray, for example.
+ */
public static final int KEYCODE_MEDIA_EJECT = 129;
/** Key code constant: Record media key. */
public static final int KEYCODE_MEDIA_RECORD = 130;
@@ -451,9 +578,12 @@
public static final int KEYCODE_F11 = 141;
/** Key code constant: F12 key. */
public static final int KEYCODE_F12 = 142;
- /** Key code constant: Num Lock key.
+ /**
+ * Key code constant: Num Lock key.
+ * <p>
* This is the Num Lock key; it is different from {@link #KEYCODE_NUM}.
- * This key alters the behavior of other keys on the numeric keypad. */
+ * This key alters the behavior of other keys on the numeric keypad.
+ */
public static final int KEYCODE_NUM_LOCK = 143;
/** Key code constant: Numeric keypad '0' key. */
public static final int KEYCODE_NUMPAD_0 = 144;
@@ -495,142 +625,227 @@
public static final int KEYCODE_NUMPAD_LEFT_PAREN = 162;
/** Key code constant: Numeric keypad ')' key. */
public static final int KEYCODE_NUMPAD_RIGHT_PAREN = 163;
- /** Key code constant: Volume Mute key.
+ /**
+ * Key code constant: Volume Mute key.
+ * <p>
* Mute key for speaker (unlike {@link #KEYCODE_MUTE}, which is the mute key for the
- * microphone). This key should normally be implemented as a toggle such that the first press
- * mutes the speaker and the second press restores the original volume.
+ * microphone).
+ * This key should normally be implemented as a toggle such that the first press mutes the
+ * speaker and the second press restores the original volume.
*/
public static final int KEYCODE_VOLUME_MUTE = 164;
- /** Key code constant: Info key.
- * Common on TV remotes to show additional information related to what is
- * currently being viewed. */
+ /**
+ * Key code constant: Info key.
+ * <p>
+ * Common on TV remotes to show additional information related to what is currently
+ * being viewed.
+ */
public static final int KEYCODE_INFO = 165;
- /** Key code constant: Channel up key.
- * On TV remotes, increments the television channel. */
+ /**
+ * Key code constant: Channel up key.
+ * <p>
+ * On TV remotes, increments the television channel.
+ */
public static final int KEYCODE_CHANNEL_UP = 166;
- /** Key code constant: Channel down key.
- * On TV remotes, decrements the television channel. */
+ /**
+ * Key code constant: Channel down key.
+ * <p>
+ * On TV remotes, decrements the television channel.
+ */
public static final int KEYCODE_CHANNEL_DOWN = 167;
/** Key code constant: Zoom in key. */
public static final int KEYCODE_ZOOM_IN = 168;
/** Key code constant: Zoom out key. */
public static final int KEYCODE_ZOOM_OUT = 169;
- /** Key code constant: TV key.
- * On TV remotes, switches to viewing live TV. */
+ /**
+ * Key code constant: TV key.
+ * <p>
+ * On TV remotes, switches to viewing live TV.
+ */
public static final int KEYCODE_TV = 170;
- /** Key code constant: Window key.
+ /**
+ * Key code constant: Window key.
+ * <p>
* On TV remotes, toggles picture-in-picture mode or other windowing functions.
- * On Android Wear devices, triggers a display offset. */
+ * On Android Wear devices, triggers a display offset.
+ */
public static final int KEYCODE_WINDOW = 171;
- /** Key code constant: Guide key.
- * On TV remotes, shows a programming guide. */
+ /**
+ * Key code constant: Guide key.
+ * <p>
+ * On TV remotes, shows a programming guide.
+ */
public static final int KEYCODE_GUIDE = 172;
- /** Key code constant: DVR key.
- * On some TV remotes, switches to a DVR mode for recorded shows. */
+ /**
+ * Key code constant: DVR key.
+ * <p>
+ * On some TV remotes, switches to a DVR mode for recorded shows.
+ */
public static final int KEYCODE_DVR = 173;
- /** Key code constant: Bookmark key.
- * On some TV remotes, bookmarks content or web pages. */
+ /**
+ * Key code constant: Bookmark key.
+ * <p>
+ * On some TV remotes, bookmarks content or web pages.
+ */
public static final int KEYCODE_BOOKMARK = 174;
- /** Key code constant: Toggle captions key.
- * Switches the mode for closed-captioning text, for example during television shows. */
+ /**
+ * Key code constant: Toggle captions key.
+ * <p>
+ * Switches the mode for closed-captioning text, for example during television shows.
+ */
public static final int KEYCODE_CAPTIONS = 175;
- /** Key code constant: Settings key.
- * Starts the system settings activity. */
+ /**
+ * Key code constant: Settings key.
+ * <p>
+ * Starts the system settings activity.
+ */
public static final int KEYCODE_SETTINGS = 176;
/**
* Key code constant: TV power key.
+ * <p>
* On HDMI TV panel devices and Android TV devices that don't support HDMI, toggles the power
* state of the device.
* On HDMI source devices, toggles the power state of the HDMI-connected TV via HDMI-CEC and
* makes the source device follow this power state.
*/
public static final int KEYCODE_TV_POWER = 177;
- /** Key code constant: TV input key.
- * On TV remotes, switches the input on a television screen. */
+ /**
+ * Key code constant: TV input key.
+ * <p>
+ * On TV remotes, switches the input on a television screen.
+ */
public static final int KEYCODE_TV_INPUT = 178;
- /** Key code constant: Set-top-box power key.
- * On TV remotes, toggles the power on an external Set-top-box. */
+ /**
+ * Key code constant: Set-top-box power key.
+ * <p>
+ * On TV remotes, toggles the power on an external Set-top-box.
+ */
public static final int KEYCODE_STB_POWER = 179;
- /** Key code constant: Set-top-box input key.
- * On TV remotes, switches the input mode on an external Set-top-box. */
+ /**
+ * Key code constant: Set-top-box input key.
+ * <p>
+ * On TV remotes, switches the input mode on an external Set-top-box.
+ */
public static final int KEYCODE_STB_INPUT = 180;
- /** Key code constant: A/V Receiver power key.
- * On TV remotes, toggles the power on an external A/V Receiver. */
+ /**
+ * Key code constant: A/V Receiver power key.
+ * <p>
+ * On TV remotes, toggles the power on an external A/V Receiver.
+ */
public static final int KEYCODE_AVR_POWER = 181;
- /** Key code constant: A/V Receiver input key.
- * On TV remotes, switches the input mode on an external A/V Receiver. */
+ /**
+ * Key code constant: A/V Receiver input key.
+ * <p>
+ * On TV remotes, switches the input mode on an external A/V Receiver.
+ */
public static final int KEYCODE_AVR_INPUT = 182;
- /** Key code constant: Red "programmable" key.
- * On TV remotes, acts as a contextual/programmable key. */
+ /**
+ * Key code constant: Red "programmable" key.
+ * <p>
+ * On TV remotes, acts as a contextual/programmable key.
+ */
public static final int KEYCODE_PROG_RED = 183;
- /** Key code constant: Green "programmable" key.
- * On TV remotes, actsas a contextual/programmable key. */
+ /**
+ * Key code constant: Green "programmable" key.
+ * <p>
+ * On TV remotes, acts as a contextual/programmable key.
+ */
public static final int KEYCODE_PROG_GREEN = 184;
- /** Key code constant: Yellow "programmable" key.
- * On TV remotes, acts as a contextual/programmable key. */
+ /**
+ * Key code constant: Yellow "programmable" key.
+ * <p>
+ * On TV remotes, acts as a contextual/programmable key.
+ */
public static final int KEYCODE_PROG_YELLOW = 185;
- /** Key code constant: Blue "programmable" key.
- * On TV remotes, acts as a contextual/programmable key. */
+ /**
+ * Key code constant: Blue "programmable" key.
+ * <p>
+ * On TV remotes, acts as a contextual/programmable key.
+ */
public static final int KEYCODE_PROG_BLUE = 186;
- /** Key code constant: App switch key.
- * Should bring up the application switcher dialog. */
+ /**
+ * Key code constant: App switch key.
+ * <p>
+ * Should bring up the application switcher dialog.
+ */
public static final int KEYCODE_APP_SWITCH = 187;
- /** Key code constant: Generic Game Pad Button #1.*/
+ /** Key code constant: Generic Game Pad Button #1. */
public static final int KEYCODE_BUTTON_1 = 188;
- /** Key code constant: Generic Game Pad Button #2.*/
+ /** Key code constant: Generic Game Pad Button #2. */
public static final int KEYCODE_BUTTON_2 = 189;
- /** Key code constant: Generic Game Pad Button #3.*/
+ /** Key code constant: Generic Game Pad Button #3. */
public static final int KEYCODE_BUTTON_3 = 190;
- /** Key code constant: Generic Game Pad Button #4.*/
+ /** Key code constant: Generic Game Pad Button #4. */
public static final int KEYCODE_BUTTON_4 = 191;
- /** Key code constant: Generic Game Pad Button #5.*/
+ /** Key code constant: Generic Game Pad Button #5. */
public static final int KEYCODE_BUTTON_5 = 192;
- /** Key code constant: Generic Game Pad Button #6.*/
+ /** Key code constant: Generic Game Pad Button #6. */
public static final int KEYCODE_BUTTON_6 = 193;
- /** Key code constant: Generic Game Pad Button #7.*/
+ /** Key code constant: Generic Game Pad Button #7. */
public static final int KEYCODE_BUTTON_7 = 194;
- /** Key code constant: Generic Game Pad Button #8.*/
+ /** Key code constant: Generic Game Pad Button #8. */
public static final int KEYCODE_BUTTON_8 = 195;
- /** Key code constant: Generic Game Pad Button #9.*/
+ /** Key code constant: Generic Game Pad Button #9. */
public static final int KEYCODE_BUTTON_9 = 196;
- /** Key code constant: Generic Game Pad Button #10.*/
+ /** Key code constant: Generic Game Pad Button #10. */
public static final int KEYCODE_BUTTON_10 = 197;
- /** Key code constant: Generic Game Pad Button #11.*/
+ /** Key code constant: Generic Game Pad Button #11. */
public static final int KEYCODE_BUTTON_11 = 198;
- /** Key code constant: Generic Game Pad Button #12.*/
+ /** Key code constant: Generic Game Pad Button #12. */
public static final int KEYCODE_BUTTON_12 = 199;
- /** Key code constant: Generic Game Pad Button #13.*/
+ /** Key code constant: Generic Game Pad Button #13. */
public static final int KEYCODE_BUTTON_13 = 200;
- /** Key code constant: Generic Game Pad Button #14.*/
+ /** Key code constant: Generic Game Pad Button #14. */
public static final int KEYCODE_BUTTON_14 = 201;
- /** Key code constant: Generic Game Pad Button #15.*/
+ /** Key code constant: Generic Game Pad Button #15. */
public static final int KEYCODE_BUTTON_15 = 202;
- /** Key code constant: Generic Game Pad Button #16.*/
+ /** Key code constant: Generic Game Pad Button #16. */
public static final int KEYCODE_BUTTON_16 = 203;
- /** Key code constant: Language Switch key.
- * Toggles the current input language such as switching between English and Japanese on
- * a QWERTY keyboard. On some devices, the same function may be performed by
- * pressing Shift+Spacebar. */
+ /**
+ * Key code constant: Language Switch key.
+ * <p>
+ * Toggles the current input language such as switching between English and Japanese on a
+ * QWERTY keyboard.
+ * On some devices, the same function may be performed by pressing <kbd>Shift + Spacebar</kbd>.
+ */
public static final int KEYCODE_LANGUAGE_SWITCH = 204;
- /** Key code constant: Manner Mode key.
- * Toggles silent or vibrate mode on and off to make the device behave more politely
- * in certain settings such as on a crowded train. On some devices, the key may only
- * operate when long-pressed. */
+ /**
+ * Key code constant: Manner Mode key.
+ * <p>
+ * Toggles silent or vibrate mode on and off to make the device behave more politely in certain
+ * settings such as on a crowded train.
+ * On some devices, the key may only operate when long-pressed.
+ */
public static final int KEYCODE_MANNER_MODE = 205;
- /** Key code constant: 3D Mode key.
- * Toggles the display between 2D and 3D mode. */
+ /**
+ * Key code constant: 3D Mode key.
+ * <p>
+ * Toggles the display between 2D and 3D mode.
+ */
public static final int KEYCODE_3D_MODE = 206;
- /** Key code constant: Contacts special function key.
- * Used to launch an address book application. */
+ /**
+ * Key code constant: Contacts special function key.
+ * <p>
+ * Used to launch an address book application.
+ */
public static final int KEYCODE_CONTACTS = 207;
- /** Key code constant: Calendar special function key.
- * Used to launch a calendar application. */
+ /**
+ * Key code constant: Calendar special function key.
+ * <p>
+ * Used to launch a calendar application.
+ */
public static final int KEYCODE_CALENDAR = 208;
- /** Key code constant: Music special function key.
- * Used to launch a music player application. */
+ /**
+ * Key code constant: Music special function key.
+ * <p>
+ * Used to launch a music player application.
+ */
public static final int KEYCODE_MUSIC = 209;
- /** Key code constant: Calculator special function key.
- * Used to launch a calculator application. */
+ /**
+ * Key code constant: Calculator special function key.
+ * <p>
+ * Used to launch a calculator application.
+ */
public static final int KEYCODE_CALCULATOR = 210;
/** Key code constant: Japanese full-width / half-width key. */
public static final int KEYCODE_ZENKAKU_HANKAKU = 211;
@@ -648,177 +863,316 @@
public static final int KEYCODE_RO = 217;
/** Key code constant: Japanese kana key. */
public static final int KEYCODE_KANA = 218;
- /** Key code constant: Assist key.
- * Launches the global assist activity. Not delivered to applications. */
+ /**
+ * Key code constant: Assist key.
+ * <p>
+ * Launches the global assist activity.
+ * Not delivered to applications.
+ */
public static final int KEYCODE_ASSIST = 219;
- /** Key code constant: Brightness Down key.
- * Adjusts the screen brightness down. */
+ /**
+ * Key code constant: Brightness Down key.
+ * <p>
+ * Adjusts the screen brightness down.
+ */
public static final int KEYCODE_BRIGHTNESS_DOWN = 220;
- /** Key code constant: Brightness Up key.
- * Adjusts the screen brightness up. */
+ /**
+ * Key code constant: Brightness Up key.
+ * <p>
+ * Adjusts the screen brightness up.
+ */
public static final int KEYCODE_BRIGHTNESS_UP = 221;
- /** Key code constant: Audio Track key.
- * Switches the audio tracks. */
+ /**
+ * Key code constant: Audio Track key.
+ * <p>
+ * Switches the audio tracks.
+ */
public static final int KEYCODE_MEDIA_AUDIO_TRACK = 222;
- /** Key code constant: Sleep key.
- * Puts the device to sleep. Behaves somewhat like {@link #KEYCODE_POWER} but it
- * has no effect if the device is already asleep. */
+ /**
+ * Key code constant: Sleep key.
+ * <p>
+ * Puts the device to sleep.
+ * Behaves somewhat like {@link #KEYCODE_POWER} but it has no effect if the device is
+ * already asleep.
+ */
public static final int KEYCODE_SLEEP = 223;
- /** Key code constant: Wakeup key.
- * Wakes up the device. Behaves somewhat like {@link #KEYCODE_POWER} but it
- * has no effect if the device is already awake. */
+ /**
+ * Key code constant: Wakeup key.
+ * <p>
+ * Wakes up the device.
+ * Behaves somewhat like {@link #KEYCODE_POWER} but it has no effect if the device is
+ * already awake.
+ */
public static final int KEYCODE_WAKEUP = 224;
- /** Key code constant: Pairing key.
- * Initiates peripheral pairing mode. Useful for pairing remote control
- * devices or game controllers, especially if no other input mode is
- * available. */
+ /**
+ * Key code constant: Pairing key.
+ * <p>
+ * Initiates peripheral pairing mode.
+ * Useful for pairing remote control devices or game controllers, especially if no other
+ * input mode is available.
+ */
public static final int KEYCODE_PAIRING = 225;
- /** Key code constant: Media Top Menu key.
- * Goes to the top of media menu. */
+ /**
+ * Key code constant: Media Top Menu key.
+ * <p>
+ * Goes to the top of media menu.
+ */
public static final int KEYCODE_MEDIA_TOP_MENU = 226;
/** Key code constant: '11' key. */
public static final int KEYCODE_11 = 227;
/** Key code constant: '12' key. */
public static final int KEYCODE_12 = 228;
- /** Key code constant: Last Channel key.
- * Goes to the last viewed channel. */
+ /**
+ * Key code constant: Last Channel key.
+ * <p>
+ * Goes to the last viewed channel.
+ */
public static final int KEYCODE_LAST_CHANNEL = 229;
- /** Key code constant: TV data service key.
- * Displays data services like weather, sports. */
+ /**
+ * Key code constant: TV data service key.
+ * <p>
+ * Displays data services like weather, sports.
+ */
public static final int KEYCODE_TV_DATA_SERVICE = 230;
- /** Key code constant: Voice Assist key.
- * Launches the global voice assist activity. Not delivered to applications. */
+ /**
+ * Key code constant: Voice Assist key.
+ * <p>
+ * Launches the global voice assist activity.
+ * Not delivered to applications.
+ */
public static final int KEYCODE_VOICE_ASSIST = 231;
- /** Key code constant: Radio key.
- * Toggles TV service / Radio service. */
+ /**
+ * Key code constant: Radio key.
+ * <p>
+ * Toggles TV service / Radio service.
+ */
public static final int KEYCODE_TV_RADIO_SERVICE = 232;
- /** Key code constant: Teletext key.
- * Displays Teletext service. */
+ /**
+ * Key code constant: Teletext key.
+ * <p>
+ * Displays Teletext service.
+ */
public static final int KEYCODE_TV_TELETEXT = 233;
- /** Key code constant: Number entry key.
- * Initiates to enter multi-digit channel nubmber when each digit key is assigned
- * for selecting separate channel. Corresponds to Number Entry Mode (0x1D) of CEC
- * User Control Code. */
+ /**
+ * Key code constant: Number entry key.
+ * <p>
+ * Initiates to enter multi-digit channel number when each digit key is assigned for selecting
+ * a separate channel.
+ * Corresponds to Number Entry Mode (0x1D) of CEC User Control Code.
+ */
public static final int KEYCODE_TV_NUMBER_ENTRY = 234;
- /** Key code constant: Analog Terrestrial key.
- * Switches to analog terrestrial broadcast service. */
+ /**
+ * Key code constant: Analog Terrestrial key.
+ * <p>
+ * Switches to analog terrestrial broadcast service.
+ */
public static final int KEYCODE_TV_TERRESTRIAL_ANALOG = 235;
- /** Key code constant: Digital Terrestrial key.
- * Switches to digital terrestrial broadcast service. */
+ /**
+ * Key code constant: Digital Terrestrial key.
+ * <p>
+ * Switches to digital terrestrial broadcast service.
+ */
public static final int KEYCODE_TV_TERRESTRIAL_DIGITAL = 236;
- /** Key code constant: Satellite key.
- * Switches to digital satellite broadcast service. */
+ /**
+ * Key code constant: Satellite key.
+ * <p>
+ * Switches to digital satellite broadcast service.
+ */
public static final int KEYCODE_TV_SATELLITE = 237;
- /** Key code constant: BS key.
- * Switches to BS digital satellite broadcasting service available in Japan. */
+ /**
+ * Key code constant: BS key.
+ * <p>
+ * Switches to BS digital satellite broadcasting service available in Japan.
+ */
public static final int KEYCODE_TV_SATELLITE_BS = 238;
- /** Key code constant: CS key.
- * Switches to CS digital satellite broadcasting service available in Japan. */
+ /**
+ * Key code constant: CS key.
+ * <p>
+ * Switches to CS digital satellite broadcasting service available in Japan.
+ */
public static final int KEYCODE_TV_SATELLITE_CS = 239;
- /** Key code constant: BS/CS key.
- * Toggles between BS and CS digital satellite services. */
+ /**
+ * Key code constant: BS/CS key.
+ * <p>
+ * Toggles between BS and CS digital satellite services.
+ */
public static final int KEYCODE_TV_SATELLITE_SERVICE = 240;
- /** Key code constant: Toggle Network key.
- * Toggles selecting broacast services. */
+ /**
+ * Key code constant: Toggle Network key.
+ * <p>
+ * Toggles selecting broadcast services.
+ */
public static final int KEYCODE_TV_NETWORK = 241;
- /** Key code constant: Antenna/Cable key.
- * Toggles broadcast input source between antenna and cable. */
+ /**
+ * Key code constant: Antenna/Cable key.
+ * <p>
+ * Toggles broadcast input source between antenna and cable.
+ */
public static final int KEYCODE_TV_ANTENNA_CABLE = 242;
- /** Key code constant: HDMI #1 key.
- * Switches to HDMI input #1. */
+ /**
+ * Key code constant: HDMI #1 key.
+ * <p>
+ * Switches to HDMI input #1.
+ */
public static final int KEYCODE_TV_INPUT_HDMI_1 = 243;
- /** Key code constant: HDMI #2 key.
- * Switches to HDMI input #2. */
+ /**
+ * Key code constant: HDMI #2 key.
+ * <p>
+ * Switches to HDMI input #2.
+ */
public static final int KEYCODE_TV_INPUT_HDMI_2 = 244;
- /** Key code constant: HDMI #3 key.
- * Switches to HDMI input #3. */
+ /**
+ * Key code constant: HDMI #3 key.
+ * <p>
+ * Switches to HDMI input #3.
+ */
public static final int KEYCODE_TV_INPUT_HDMI_3 = 245;
- /** Key code constant: HDMI #4 key.
- * Switches to HDMI input #4. */
+ /**
+ * Key code constant: HDMI #4 key.
+ * <p>
+ * Switches to HDMI input #4.
+ */
public static final int KEYCODE_TV_INPUT_HDMI_4 = 246;
- /** Key code constant: Composite #1 key.
- * Switches to composite video input #1. */
+ /**
+ * Key code constant: Composite #1 key.
+ * <p>
+ * Switches to composite video input #1.
+ */
public static final int KEYCODE_TV_INPUT_COMPOSITE_1 = 247;
- /** Key code constant: Composite #2 key.
- * Switches to composite video input #2. */
+ /**
+ * Key code constant: Composite #2 key.
+ * <p>
+ * Switches to composite video input #2.
+ */
public static final int KEYCODE_TV_INPUT_COMPOSITE_2 = 248;
- /** Key code constant: Component #1 key.
- * Switches to component video input #1. */
+ /**
+ * Key code constant: Component #1 key.
+ * <p>
+ * Switches to component video input #1.
+ */
public static final int KEYCODE_TV_INPUT_COMPONENT_1 = 249;
- /** Key code constant: Component #2 key.
- * Switches to component video input #2. */
+ /**
+ * Key code constant: Component #2 key.
+ * <p>
+ * Switches to component video input #2.
+ */
public static final int KEYCODE_TV_INPUT_COMPONENT_2 = 250;
- /** Key code constant: VGA #1 key.
- * Switches to VGA (analog RGB) input #1. */
+ /**
+ * Key code constant: VGA #1 key.
+ * <p>
+ * Switches to VGA (analog RGB) input #1.
+ */
public static final int KEYCODE_TV_INPUT_VGA_1 = 251;
- /** Key code constant: Audio description key.
- * Toggles audio description off / on. */
+ /**
+ * Key code constant: Audio description key.
+ * <p>
+ * Toggles audio description off / on.
+ */
public static final int KEYCODE_TV_AUDIO_DESCRIPTION = 252;
- /** Key code constant: Audio description mixing volume up key.
- * Louden audio description volume as compared with normal audio volume. */
+ /**
+ * Key code constant: Audio description mixing volume up key.
+ * <p>
+ * Louden audio description volume as compared with normal audio volume.
+ */
public static final int KEYCODE_TV_AUDIO_DESCRIPTION_MIX_UP = 253;
- /** Key code constant: Audio description mixing volume down key.
- * Lessen audio description volume as compared with normal audio volume. */
+ /**
+ * Key code constant: Audio description mixing volume down key.
+ * <p>
+ * Lessen audio description volume as compared with normal audio volume.
+ */
public static final int KEYCODE_TV_AUDIO_DESCRIPTION_MIX_DOWN = 254;
- /** Key code constant: Zoom mode key.
- * Changes Zoom mode (Normal, Full, Zoom, Wide-zoom, etc.) */
+ /**
+ * Key code constant: Zoom mode key.
+ * <p>
+ * Changes Zoom mode (Normal, Full, Zoom, Wide-zoom, etc.).
+ */
public static final int KEYCODE_TV_ZOOM_MODE = 255;
- /** Key code constant: Contents menu key.
- * Goes to the title list. Corresponds to Contents Menu (0x0B) of CEC User Control
- * Code */
+ /**
+ * Key code constant: Contents menu key.
+ * <p>
+ * Goes to the title list.
+ * Corresponds to Contents Menu (0x0B) of CEC User Control Code.
+ */
public static final int KEYCODE_TV_CONTENTS_MENU = 256;
- /** Key code constant: Media context menu key.
- * Goes to the context menu of media contents. Corresponds to Media Context-sensitive
- * Menu (0x11) of CEC User Control Code. */
+ /**
+ * Key code constant: Media context menu key.
+ * <p>
+ * Goes to the context menu of media contents.
+ * Corresponds to Media Context-sensitive Menu (0x11) of CEC User Control Code.
+ */
public static final int KEYCODE_TV_MEDIA_CONTEXT_MENU = 257;
- /** Key code constant: Timer programming key.
- * Goes to the timer recording menu. Corresponds to Timer Programming (0x54) of
- * CEC User Control Code. */
+ /**
+ * Key code constant: Timer programming key.
+ * <p>
+ * Goes to the timer recording menu.
+ * Corresponds to Timer Programming (0x54) of CEC User Control Code.
+ */
public static final int KEYCODE_TV_TIMER_PROGRAMMING = 258;
/** Key code constant: Help key. */
public static final int KEYCODE_HELP = 259;
- /** Key code constant: Navigate to previous key.
- * Goes backward by one item in an ordered collection of items. */
+ /**
+ * Key code constant: Navigate to previous key.
+ * <p>
+ * Goes backward by one item in an ordered collection of items.
+ */
public static final int KEYCODE_NAVIGATE_PREVIOUS = 260;
- /** Key code constant: Navigate to next key.
- * Advances to the next item in an ordered collection of items. */
+ /**
+ * Key code constant: Navigate to next key.
+ * <p>
+ * Advances to the next item in an ordered collection of items.
+ */
public static final int KEYCODE_NAVIGATE_NEXT = 261;
- /** Key code constant: Navigate in key.
- * Activates the item that currently has focus or expands to the next level of a navigation
- * hierarchy. */
+ /**
+ * Key code constant: Navigate in key.
+ * <p>
+ * Activates the item that currently has focus or expands to the next level of a
+ * navigation hierarchy.
+ */
public static final int KEYCODE_NAVIGATE_IN = 262;
- /** Key code constant: Navigate out key.
- * Backs out one level of a navigation hierarchy or collapses the item that currently has
- * focus. */
+ /**
+ * Key code constant: Navigate out key.
+ * <p>
+ * Backs out one level of a navigation hierarchy or collapses the item that currently
+ * has focus.
+ */
public static final int KEYCODE_NAVIGATE_OUT = 263;
- /** Key code constant: Primary stem key for Wear
- * Main power/reset button on watch. */
+ /**
+ * Key code constant: Primary stem key for Wear.
+ * <p>
+ * Main power/reset button on watch.
+ */
public static final int KEYCODE_STEM_PRIMARY = 264;
- /** Key code constant: Generic stem key 1 for Wear */
+ /** Key code constant: Generic stem key 1 for Wear. */
public static final int KEYCODE_STEM_1 = 265;
- /** Key code constant: Generic stem key 2 for Wear */
+ /** Key code constant: Generic stem key 2 for Wear. */
public static final int KEYCODE_STEM_2 = 266;
- /** Key code constant: Generic stem key 3 for Wear */
+ /** Key code constant: Generic stem key 3 for Wear. */
public static final int KEYCODE_STEM_3 = 267;
- /** Key code constant: Directional Pad Up-Left */
+ /** Key code constant: Directional Pad Up-Left. */
public static final int KEYCODE_DPAD_UP_LEFT = 268;
- /** Key code constant: Directional Pad Down-Left */
+ /** Key code constant: Directional Pad Down-Left. */
public static final int KEYCODE_DPAD_DOWN_LEFT = 269;
- /** Key code constant: Directional Pad Up-Right */
+ /** Key code constant: Directional Pad Up-Right. */
public static final int KEYCODE_DPAD_UP_RIGHT = 270;
- /** Key code constant: Directional Pad Down-Right */
+ /** Key code constant: Directional Pad Down-Right. */
public static final int KEYCODE_DPAD_DOWN_RIGHT = 271;
/** Key code constant: Skip forward media key. */
public static final int KEYCODE_MEDIA_SKIP_FORWARD = 272;
/** Key code constant: Skip backward media key. */
public static final int KEYCODE_MEDIA_SKIP_BACKWARD = 273;
- /** Key code constant: Step forward media key.
- * Steps media forward, one frame at a time. */
+ /**
+ * Key code constant: Step forward media key.
+ * <p>
+ * Steps media forward, one frame at a time.
+ */
public static final int KEYCODE_MEDIA_STEP_FORWARD = 274;
- /** Key code constant: Step backward media key.
- * Steps media backward, one frame at a time. */
+ /**
+ * Key code constant: Step backward media key.
+ * <p>
+ * Steps media backward, one frame at a time.
+ */
public static final int KEYCODE_MEDIA_STEP_BACKWARD = 275;
- /** Key code constant: put device to sleep unless a wakelock is held. */
+ /** Key code constant: Put device to sleep unless a wakelock is held. */
public static final int KEYCODE_SOFT_SLEEP = 276;
/** Key code constant: Cut key. */
public static final int KEYCODE_CUT = 277;
@@ -826,25 +1180,35 @@
public static final int KEYCODE_COPY = 278;
/** Key code constant: Paste key. */
public static final int KEYCODE_PASTE = 279;
- /** Key code constant: Consumed by the system for navigation up */
+ /** Key code constant: Consumed by the system for navigation up. */
public static final int KEYCODE_SYSTEM_NAVIGATION_UP = 280;
- /** Key code constant: Consumed by the system for navigation down */
+ /** Key code constant: Consumed by the system for navigation down. */
public static final int KEYCODE_SYSTEM_NAVIGATION_DOWN = 281;
- /** Key code constant: Consumed by the system for navigation left*/
+ /** Key code constant: Consumed by the system for navigation left. */
public static final int KEYCODE_SYSTEM_NAVIGATION_LEFT = 282;
- /** Key code constant: Consumed by the system for navigation right */
+ /** Key code constant: Consumed by the system for navigation right. */
public static final int KEYCODE_SYSTEM_NAVIGATION_RIGHT = 283;
- /** Key code constant: Show all apps */
+ /** Key code constant: Show all apps. */
public static final int KEYCODE_ALL_APPS = 284;
/** Key code constant: Refresh key. */
public static final int KEYCODE_REFRESH = 285;
- /** Key code constant: Thumbs up key. Apps can use this to let user upvote content. */
+ /**
+ * Key code constant: Thumbs up key.
+ * <p>
+ * Apps can use this to let user upvote content.
+ */
public static final int KEYCODE_THUMBS_UP = 286;
- /** Key code constant: Thumbs down key. Apps can use this to let user downvote content. */
+ /**
+ * Key code constant: Thumbs down key.
+ * <p>
+ * Apps can use this to let user downvote content.
+ */
public static final int KEYCODE_THUMBS_DOWN = 287;
/**
* Key code constant: Used to switch current {@link android.accounts.Account} that is
- * consuming content. May be consumed by system to set account globally.
+ * consuming content.
+ * <p>
+ * May be consumed by system to set account globally.
*/
public static final int KEYCODE_PROFILE_SWITCH = 288;
/** Key code constant: Video Application key #1. */
@@ -879,98 +1243,103 @@
public static final int KEYCODE_DEMO_APP_3 = 303;
/** Key code constant: Demo Application key #4. */
public static final int KEYCODE_DEMO_APP_4 = 304;
- /** Key code constant: Keyboard backlight down */
+ /** Key code constant: Keyboard backlight down. */
public static final int KEYCODE_KEYBOARD_BACKLIGHT_DOWN = 305;
- /** Key code constant: Keyboard backlight up */
+ /** Key code constant: Keyboard backlight up. */
public static final int KEYCODE_KEYBOARD_BACKLIGHT_UP = 306;
- /** Key code constant: Keyboard backlight toggle */
+ /** Key code constant: Keyboard backlight toggle. */
public static final int KEYCODE_KEYBOARD_BACKLIGHT_TOGGLE = 307;
/**
* Key code constant: The primary button on the barrel of a stylus.
+ * <p>
* This is usually the button closest to the tip of the stylus.
*/
public static final int KEYCODE_STYLUS_BUTTON_PRIMARY = 308;
/**
* Key code constant: The secondary button on the barrel of a stylus.
+ * <p>
* This is usually the second button from the tip of the stylus.
*/
public static final int KEYCODE_STYLUS_BUTTON_SECONDARY = 309;
/**
* Key code constant: The tertiary button on the barrel of a stylus.
+ * <p>
* This is usually the third button from the tip of the stylus.
*/
public static final int KEYCODE_STYLUS_BUTTON_TERTIARY = 310;
/**
* Key code constant: A button on the tail end of a stylus.
+ * <p>
* The use of this button does not usually correspond to the function of an eraser.
*/
public static final int KEYCODE_STYLUS_BUTTON_TAIL = 311;
/**
* Key code constant: To open recent apps view (a.k.a. Overview).
+ * <p>
* This key is handled by the framework and is never delivered to applications.
*/
public static final int KEYCODE_RECENT_APPS = 312;
/**
- * Key code constant: A button whose usage can be customized by the user through
- * the system.
+ * Key code constant: A button whose usage can be customized by the user through the system.
+ * <p>
* User customizable key #1.
*/
public static final int KEYCODE_MACRO_1 = 313;
/**
- * Key code constant: A button whose usage can be customized by the user through
- * the system.
+ * Key code constant: A button whose usage can be customized by the user through the system.
+ * <p>
* User customizable key #2.
*/
public static final int KEYCODE_MACRO_2 = 314;
/**
- * Key code constant: A button whose usage can be customized by the user through
- * the system.
+ * Key code constant: A button whose usage can be customized by the user through the system.
+ * <p>
* User customizable key #3.
*/
public static final int KEYCODE_MACRO_3 = 315;
/**
- * Key code constant: A button whose usage can be customized by the user through
- * the system.
+ * Key code constant: A button whose usage can be customized by the user through the system.
+ * <p>
* User customizable key #4.
*/
public static final int KEYCODE_MACRO_4 = 316;
- /** Key code constant: To open emoji picker */
+ /** Key code constant: To open emoji picker. */
public static final int KEYCODE_EMOJI_PICKER = 317;
/**
- * Key code constant: To take a screenshot
- *
+ * Key code constant: To take a screenshot.
+ * <p>
* This key is fully handled by the framework and will not be sent to the foreground app,
- * unlike {@code KEYCODE_SYSRQ} which is sent to the app first and only if the app
- * doesn't handle it, the framework handles it (to take a screenshot).
+ * unlike {@link #KEYCODE_SYSRQ} which is sent to the app first and only if the app doesn't
+ * handle it, the framework handles it (to take a screenshot).
*/
public static final int KEYCODE_SCREENSHOT = 318;
/** Key code constant: To start dictate to an input field */
@FlaggedApi(Flags.FLAG_ENABLE_NEW_25Q2_KEYCODES)
public static final int KEYCODE_DICTATE = 319;
/**
- * Key code constant: AC New
- *
+ * Key code constant: AC New.
+ * <p>
* e.g. To create a new instance of a window, open a new tab, etc.
*/
@FlaggedApi(Flags.FLAG_ENABLE_NEW_25Q2_KEYCODES)
public static final int KEYCODE_NEW = 320;
/**
- * Key code constant: AC Close
- *
+ * Key code constant: AC Close.
+ * <p>
* e.g. To close current instance of the application window, close the current tab, etc.
*/
@FlaggedApi(Flags.FLAG_ENABLE_NEW_25Q2_KEYCODES)
public static final int KEYCODE_CLOSE = 321;
- /** Key code constant: To toggle 'Do Not Disturb' mode */
+ /** Key code constant: To toggle 'Do Not Disturb' mode. */
@FlaggedApi(Flags.FLAG_ENABLE_NEW_25Q2_KEYCODES)
public static final int KEYCODE_DO_NOT_DISTURB = 322;
- /** Key code constant: To Print */
+ /** Key code constant: To print. */
@FlaggedApi(Flags.FLAG_ENABLE_NEW_25Q2_KEYCODES)
public static final int KEYCODE_PRINT = 323;
- /** Key code constant: To Lock the screen */
+ /** Key code constant: To lock the screen. */
@FlaggedApi(Flags.FLAG_ENABLE_NEW_25Q2_KEYCODES)
public static final int KEYCODE_LOCK = 324;
- /** Key code constant: To toggle fullscreen mode (on the current application) */
+ /** Key code constant: To toggle fullscreen mode (on the current application). */
@FlaggedApi(Flags.FLAG_ENABLE_NEW_25Q2_KEYCODES)
public static final int KEYCODE_FULLSCREEN = 325;
/** Key code constant: F13 key. */