首页 > 编程语言 >最近在研究Python如何操作手机,使用adb

最近在研究Python如何操作手机,使用adb

时间:2023-04-21 15:01:24浏览次数:36  
标签:Python 键码 public final int static adb 手机 KEYCODE

背景:我如果能写一个自动化刷战令的功能,我是不是就可以解放双手了。

#工具:adb

#下面是翻译的键盘事件代表的含义

key code constant:未知键码。* /
public static final int KEYCODE_UNKNOWN = 0;
/**键码常数:软左键。
*通常位于手机显示屏下方,用作多功能显示屏
*功能键用于选择软件定义的功能,显示在左下角
*的显示。* /
public static final int KEYCODE_SOFT_LEFT = 1;
/**键码常数:右软键。
*通常位于手机显示屏下方,用作多功能显示屏
*右下角为选择软件定义功能的功能键
*的显示。* /
public static final int KEYCODE_SOFT_RIGHT = 2;
/**键码常量:Home键。
*该键由框架处理,永远不会交付给应用程序。* /
public static final int KEYCODE_HOME = 3;
/**键码常量:返回键。* /
public static final int KEYCODE_BACK = 4;
/**键码常数:呼叫键。* /
public static final int KEYCODE_CALL = 5;
/**键码常数:结束呼叫键。* /
public static final int KEYCODE_ENDCALL = 6;
/**键码常量:'0'键。* /
public static final int KEYCODE_0 = 7;
/**键代码常数:'1'键。* /
public static final int KEYCODE_1 = 8;
/**键代码常数:'2'键。* /
public static final int KEYCODE_2 = 9;
/**键代码常数:'3'键。* /
public static final int KEYCODE_3 = 10;
/**键代码常数:'4'键。* /
public static final int KEYCODE_4 = 11;
/**键代码常数:'5'键。* /
public static final int KEYCODE_5 = 12;
/**键码常数:'6'键。* /
public static final int KEYCODE_6 = 13;
/**键码常数:'7'键。* /
public static final int KEYCODE_7 = 14;
/**键码常数:'8'键。* /
public static final int KEYCODE_8 = 15;
/**键码常数:'9'键。* /
public static final int KEYCODE_9 = 16;
/**键代码常量:'*'键。* /
public static final int KEYCODE_STAR = 17;
/**键代码常量:'#'键。* /
public static final int KEYCODE_POUND = 18;
/**键码常量:方向键向上键。
*也可以从轨迹球运动合成。* /
public static final int KEYCODE_DPAD_UP = 19;
/**键代码常数:方向键向下键。
*也可以从轨迹球运动合成。* /
public static final int KEYCODE_DPAD_DOWN = 20;
/**键码常量:方向键左键。
*也可以从轨迹球运动合成。* /
public static final int KEYCODE_DPAD_LEFT = 21;
/**键码常量:方向键右键。
*也可以从轨迹球运动合成。* /
public static final int KEYCODE_DPAD_RIGHT = 22;
/**键码常量:方向键中心键。
*也可以从轨迹球运动合成。* /
public static final int KEYCODE_DPAD_CENTER = 23;
/**键码常数:音量增大键。
*调高扬声器音量。* /
public static final int KEYCODE_VOLUME_UP = 24;
/**键码常数:音量降低键。
*调低扬声器音量。* /
public static final int KEYCODE_VOLUME_DOWN = 25;
/**键码常数:Power Key。* /
public static final int KEYCODE_POWER = 26;
/**键码常量:相机键。
*用于启动相机应用程序或拍照。* /
public static final int KEYCODE_CAMERA = 27;
/**键码常量:清空键。* /
public static final int KEYCODE_CLEAR = 28;
/**键代码常数:'A'键。* /
public static final int KEYCODE_A = 29;
/**键代码常数:'B'键。* /
public static final int KEYCODE_B = 30;
/**键代码常量:'C'键。* /
public static final int KEYCODE_C = 31;
/**键代码常量:'D'键。* /
public static final int KEYCODE_D = 32;
/**键代码常数:'E'键。* /
public static final int KEYCODE_E = 33;
/**键代码常数:'F'键。* /
public static final int KEYCODE_F = 34;
/**键代码常数:'G'键。* /
public static final int KEYCODE_G = 35;
/**键代码常数:'H'键。* /
public static final int KEYCODE_H = 36;
/**键码常量:'I'键。* /
public static final int KEYCODE_I = 37;
/**键代码常数:'J'键。* /public static final int KEYCODE_J = 38;
/**键码常量:'K'键。* /
public static final int KEYCODE_K = 39;
/**键码常量:'L'键。* /
public static final int KEYCODE_L = 40;
/**键代码常数:'M'键。* /
public static final int KEYCODE_M = 41;
/**键码常量:'N'键。* /
public static final int KEYCODE_N = 42;
/**键码常量:'O'键。* /
public static final int KEYCODE_O = 43;
/**键代码常数:'P'键。* /
public static final int KEYCODE_P = 44;
/**键代码常数:'Q'键。* /
public static final int KEYCODE_Q = 45;
/**键代码常数:'R'键。* /
public static final int KEYCODE_R = 46;
/**键代码常数:'S'键。* /
public static final int KEYCODE_S = 47;
/**键码常量:'T'键。* /
public static final int KEYCODE_T = 48;
/**键码常量:'U'键。* /
public static final int KEYCODE_U = 49;
/**键代码常数:'V'键。* /
public static final int KEYCODE_V = 50;
/**键码常量:'W'键。* /
public static final int KEYCODE_W = 51;
/**键代码常量:'X'键。* /
public static final int KEYCODE_X = 52;
/**键代码常量:'Y'键。* /
public static final int KEYCODE_Y = 53;
/**键代码常数:'Z'键。* /
public static final int KEYCODE_Z = 54;
/**键代码常数:','键。* /
public static final int KEYCODE_COMMA = 55;
/**键码常数:'。的关键。* /
public static final int KEYCODE_PERIOD = 56;
/**键代码常数:左Alt修改键。* /
public static final int KEYCODE_ALT_LEFT = 57;
/**键代码常数:右Alt修改键。* /
public static final int KEYCODE_ALT_RIGHT = 58;
/**键代码常数:左Shift修改键。* /
public static final int KEYCODE_SHIFT_LEFT = 59;
/**键代码常数:右Shift修改键。* /
public static final int KEYCODE_SHIFT_RIGHT = 60;
/**键码常量:Tab键。* /
public static final int KEYCODE_TAB = 61;
/**键码常量:空格键。* /
public static final int KEYCODE_SPACE = 62;
/**键码常量:符号修饰键。
*用于输入替代符号。* /
public static final int KEYCODE_SYM = 63;
/**键码常量:资源管理器特殊功能键。
*用于启动浏览器应用程序。* /
public static final int KEYCODE_EXPLORER = 64;
/**键码常数:信封特殊功能键。
*用于启动邮件应用程序。* /
public static final int KEYCODE_ENVELOPE = 65;
/**键码常量:输入Key。* /
public static final int KEYCODE_ENTER = 66;
/**键码常量:退格键。
*删除插入点之前的字符,不像{@link #KEYCODE_FORWARD_DEL}。* /
public static final int KEYCODE_DEL = 67;
/**键代码常数:' "(反勾)键。* /
public static final int KEYCODE_GRAVE = 68;
/**键代码常数:'-'。* /
public static final int KEYCODE_MINUS = 69;
/**键代码常量:'='键。* /
public static final int KEYCODE_EQUALS = 70;
/**键代码常数:'['键。* /
public static final int keycode_left_括号= 71;
/**键代码常数:']'键。* /
public static final int keycode_right_括号= 72;
/**键代码常量:'\'键。* /
public static final int KEYCODE_BACKSLASH = 73;
/**键代码常量:';'键。* /
public static final int keycode_分号= 74;
/**键代码常数:" '(撇号)键。* /
public static final int KEYCODE_APOSTROPHE = 75;
/**键代码常量:'/'键。* /
public static final int KEYCODE_SLASH = 76;
/**键代码常数:'@'键。* /
public static final int KEYCODE_AT = 77;
/**键码常量:数字修改键。
*用于输入数字符号。
*此键不是Num Lock;它更像是{@link #KEYCODE_ALT_LEFT},并且是
*被{@link android.text.method.MetaKeyKeyListener}解释为ALT键。* /
public static final int KEYCODE_NUM = 78;
/**按键代码常数:耳机挂机键。
*用于挂断电话和停止媒体。* /
public static final int KEYCODE_HEADSETHOOK = 79;
/**键代码常数:相机对焦键。*用于对焦相机。* /
public static final int KEYCODE_FOCUS = 80;// *相机*对焦
/**键代码常量:'+'键。* /
public static final int KEYCODE_PLUS = 81;
/**键码常量:菜单键。* /
public static final int KEYCODE_MENU = 82;
/**键码常量:通知键。* /
public static final int KEYCODE_NOTIFICATION = 83;
/**键码常数:搜索键。* /
public static final int KEYCODE_SEARCH = 84;
/**键码常量:播放/暂停媒体键。* /
public static final int KEYCODE_MEDIA_PLAY_PAUSE= 85;
/**键码常量:停止媒体键。* /
public static final int KEYCODE_MEDIA_STOP = 86;
/**键码常数:播放下一个媒体键。* /
public static final int KEYCODE_MEDIA_NEXT = 87;
/**键码常数:播放上一个媒体键。* /
public static final int KEYCODE_MEDIA_PREVIOUS = 88;
/**键码常量:倒带媒体键。* /
public static final int KEYCODE_MEDIA_REWIND = 89;
/**键码常量:快进媒体键。* /
public static final int KEYCODE_MEDIA_FAST_FORWARD = 90;
/**键码常数:静音键。
*静音麦克风,不像{@link #KEYCODE_VOLUME_MUTE}。* /
public static final int KEYCODE_MUTE = 91;
/**键码常量:Page Up键。* /
public static final int KEYCODE_PAGE_UP = 92;
/**键代码常数:Page Down键。* /
public static final int KEYCODE_PAGE_DOWN = 93;
/**键码常量:图片符号修改键。
*用于切换符号集(Emoji, Kao-moji)。* /
public static final int KEYCODE_PICTSYMBOLS = 94;//切换符号设置(Emoji,Kao-moji)
/**键码常量:开关字符集修改键。
*用于切换字符集(汉字,片假名)。* /
public static final int KEYCODE_SWITCH_CHARSET = 95;//切换字符集(汉字、片假名)
/**键代码常数:A Button键。
*在游戏控制器上,a按钮应该是标记为a的按钮
*或控制器按钮底部一行的第一个按钮。* /
public static final int KEYCODE_BUTTON_A = 96;
/**按键代码常数:B按键。
*在游戏控制器上,B键应该是标记为B的按钮
*或控制器按钮底部的第二个按钮。* /
public static final int KEYCODE_BUTTON_B = 97;
/**按键代码常数:C按钮键。
*在游戏控制器上,C键应该是标记为C的按钮
*或控制器按钮底部的第三个按钮。* /
public static final int KEYCODE_BUTTON_C = 98;
/**键代码常数:X按钮键。
*在游戏控制器上,X按钮应该是标记为X的按钮
*或控制器按钮上排的第一个按钮。* /
public static final int KEYCODE_BUTTON_X = 99;
/**键码常数:Y按钮键。
*在游戏控制器上,Y键应该是标记为Y的按钮
*或控制器按钮上一排的第二个按钮。* /
public static final int KEYCODE_BUTTON_Y = 100;
/**键代码常数:Z键键。
*在游戏控制器上,Z键应该是标记为Z的按钮
*或控制器按钮上排的第三个按钮。* /
public static final int KEYCODE_BUTTON_Z = 101;
/**按键代码常数:L1按键。
*在游戏控制器上,L1按钮应该是标有L1(或L)的按钮。
*或左上角的触发按钮。* /
public static final int KEYCODE_BUTTON_L1 = 102;
/**按键代码常数:R1按键键。
*在游戏控制器上,R1按钮应该是R1(或R)按钮。
*或右上角的触发按钮。* /
public static final int KEYCODE_BUTTON_R1 = 103;
/**键码常数:L2 Button键。
*在游戏控制器上,L2按钮应该是标记为L2的按钮
*或左下角的触发按钮。* /
public static final int KEYCODE_BUTTON_L2 = 104;
/**键码常数:R2按键键。
*在游戏控制器上,R2按钮应该是标记为R2的按钮
*或右下角的触发按钮。* /
public static final int KEYCODE_BUTTON_R2 = 105;
/**键代码常数:左拇指键。
*在游戏控制器上,左手拇指按钮表示向左(或只向左)
*按下操纵杆。* /
public static final int KEYCODE_BUTTON_THUMBL = 106;
/**键代码常数:右拇指键。*在游戏控制器上,右手拇指按钮表示右手
*按下操纵杆。* /
public static final int KEYCODE_BUTTON_THUMBR = 107;
/**键码常量:Start Button键。
*在游戏控制器上,标有开始的按钮。* /
public static final int KEYCODE_BUTTON_START = 108;
/**键码常数:选择Button键。
*在游戏控制器上,标有“选择”的按钮。* /
public static final int KEYCODE_BUTTON_SELECT = 109;
/**按键代码常量:Mode按键。
*在游戏控制器上,标有模式的按钮。* /
public static final int KEYCODE_BUTTON_MODE = 110;
/**键码常量:转义键。* /
public static final int KEYCODE_ESCAPE = 111;
/**键码常数:Forward Delete键。
*删除插入点前面的字符,不像{@link #KEYCODE_DEL}。* /
public static final int KEYCODE_FORWARD_DEL = 112;
/**键代码常数:左控制修改键。* /
int KEYCODE_CTRL_LEFT = 113;
/**键代码常数:右控制修改键。* /
public static final int KEYCODE_CTRL_RIGHT = 114;
/**键码常量:大写锁定键。* /
public static final int KEYCODE_CAPS_LOCK = 115;
/**键码常数:Scroll Lock键。* /
public static final int KEYCODE_SCROLL_LOCK = 116;
/**键代码常数:左元修改键。* /
public static final int KEYCODE_META_LEFT = 117;
/**键代码常数:右元修改键。* /
public static final int KEYCODE_META_RIGHT = 118;
/**键码常量:功能修改键。* /
public static final int KEYCODE_FUNCTION = 119;
/**按键代码常数:System Request / Print Screen按键。* /
public static final int KEYCODE_SYSRQ = 120;
/**键码常量:Break / Pause键。* /
public static final int KEYCODE_BREAK = 121;
/**键代码常数:Home移动键。
*用于滚动或移动光标到一行的开头
*或到列表的顶部。* /
public static final int KEYCODE_MOVE_HOME = 122;
/**键码常数:结束移动键。
*用于滚动或移动光标到一行的末尾
*或到列表的底部。* /
public static final int KEYCODE_MOVE_END = 123;
/**键码常数:插入键。
*切换插入/覆盖编辑模式。* /
public static final int KEYCODE_INSERT = 124;
/**键码常数:前向键。
*在历史堆栈中向前导航。{@ link# KEYCODE_BACK}的补充。* /
public static final int KEYCODE_FORWARD = 125;
/**键码常数:播放媒体键。* /
public static final int KEYCODE_MEDIA_PLAY = 126;
/**键码常量:暂停媒体键。* /
public static final int KEYCODE_MEDIA_PAUSE = 127;
/**键码常量:关闭媒体键。
*例如,可用于关闭CD托盘。* /
public static final int KEYCODE_MEDIA_CLOSE = 128;
/**键码常数:弹出媒体键。
*可用于弹出CD托盘,例如。* /
public static final int KEYCODE_MEDIA_EJECT = 129;
/**键码常量:记录媒体键。* /
public static final int KEYCODE_MEDIA_RECORD = 130;
/**键码常量:F1键。* /
public static final int KEYCODE_F1 = 131;
/**键码常数:F2键。* /
public static final int KEYCODE_F2 = 132;
/**键码常数:F3键。* /
public static final int KEYCODE_F3 = 133;
/**键码常数:F4键。* /
public static final int KEYCODE_F4 = 134;
/**键码常数:F5键。* /
public static final int KEYCODE_F5 = 135;
/**键码常数:F6键。* /
public static final int KEYCODE_F6 = 136;
/**键码常数:F7键。* /
public static final int KEYCODE_F7 = 137;
/**键码常数:F8键。* /
public static final int KEYCODE_F8 = 138;
/**键码常数:F9键。* /
public static final int KEYCODE_F9 = 139;
/**键码常数:F10键。* /
public static final int KEYCODE_F10 = 140;
/**键码常数:F11键。* /
public static final int KEYCODE_F11 = 141;
/**键码常数:F12键。* /
public static final int KEYCODE_F12 = 142;
/**键码常数:Num锁键。
*这是Num Lock键;它与{@link #KEYCODE_NUM}不同。
*此键改变数字键盘上其他键的行为。* /public static final int KEYCODE_NUM_LOCK = 143;
/**键码常数:数字键盘'0'键。* /
public static final int KEYCODE_NUMPAD_0 = 144;
/**键代码常数:数字键盘'1'键。* /
public static final int KEYCODE_NUMPAD_1 = 145;
/**键代码常数:数字键盘'2'键。* /
public static final int KEYCODE_NUMPAD_2 = 146;
/**键代码常数:数字键盘'3'键。* /
public static final int KEYCODE_NUMPAD_3 = 147;
/**键代码常数:数字键盘'4'键。* /
public static final int KEYCODE_NUMPAD_4 = 148;
/**键码常数:数字键盘'5'键。* /
public static final int KEYCODE_NUMPAD_5 = 149;
/**键代码常数:数字键盘'6'键。* /
public static final int KEYCODE_NUMPAD_6 = 150;
/**键码常数:数字键盘'7'键。* /
public static final int KEYCODE_NUMPAD_7 = 151;
/**键码常数:数字键盘'8'键。* /
public static final int KEYCODE_NUMPAD_8 = 152;
/**键码常数:数字键盘'9'键。* /
public static final int KEYCODE_NUMPAD_9 = 153;
/**键代码常数:数字键盘'/'键(用于除法)。* /
public static final int KEYCODE_NUMPAD_DIVIDE = 154;
/**键代码常数:数字键盘'*'键(用于乘法)。* /
public static final int KEYCODE_NUMPAD_MULTIPLY = 155;
/**键代码常数:数字键盘'-'键(用于减法)。* /
public static final int KEYCODE_NUMPAD_SUBTRACT = 156;
/**键代码常数:数字键盘“+”键(用于加法)。* /
public static final int KEYCODE_NUMPAD_ADD = 157;
/**键码常数:数字键盘'。'键(用于小数或数字分组)。* /
public static final int KEYCODE_NUMPAD_DOT = 158;
/**键码常量:数字键盘','键(用于小数或数字分组)。* /
public static final int KEYCODE_NUMPAD_COMMA = 159;
/**键码常数:数字键盘输入键。* /
public static final int KEYCODE_NUMPAD_ENTER = 160;
/**键代码常数:数字键盘'='键。* /
public static final int KEYCODE_NUMPAD_EQUALS = 161;
/**键代码常数:数字键盘'('键。* /
public static final int keycode_numpad_left_parenn = 162;
/**键码常数:数字键盘')'键。* /
public static final int keycode_numpad_right_parenn = 163;
/**键码常数:音量静音键。
*静音扬声器,不像{@link #KEYCODE_MUTE}。
*这个键通常应该被实现为一个切换,这样第一次按下
*静音扬声器,第二次按恢复原来的音量。* /
public static final int KEYCODE_VOLUME_MUTE = 164;
/**键码常量:Info键。
*常用在电视遥控器上显示与什么有关的附加信息
*目前正在浏览中。* /
public static final int KEYCODE_INFO = 165;
/**键码常数:通道向上键。
*在电视遥控器上,增加电视频道。* /
public static final int KEYCODE_CHANNEL_UP = 166;
/**键代码常数:通道向下键。
*在电视遥控器上,减少电视频道。* /
public static final int KEYCODE_CHANNEL_DOWN = 167;
/**键码常数:放大键。* /
public static final int KEYCODE_ZOOM_IN = 168;
/**键码常数:缩小键。* /
public static final int KEYCODE_ZOOM_OUT = 169;
/**键码常量:TV键。
*在电视遥控器上,切换到观看电视直播。* /
public static final int KEYCODE_TV = 170;
/**键码常量:窗口键。
*在电视遥控器上,切换画面中画面模式或其他窗口功能。
*在Android Wear设备上,触发显示偏移。* /
public static final int KEYCODE_WINDOW = 171;
/**键码常量:引导键。
*电视遥控器上显示节目指南。* /
public static final int KEYCODE_GUIDE = 172;
/**键码常数:DVR键。
*在一些电视遥控器上,切换到DVR模式录制节目。* /
public static final int KEYCODE_DVR = 173;
/**键码常量:Bookmark键。
*在一些电视遥控器上,书签内容或网页。* /
public static final int KEYCODE_BOOKMARK = 174;
/**键码常数:切换字幕键。
*切换字幕文本的模式,例如在电视节目中。* /
public static final int KEYCODE_CAPTIONS = 175;
/**键码常数:设置键。
*启动系统设置活动。* /public static final int KEYCODE_SETTINGS = 176;
/**键码常数:电视电源键。
*在电视遥控器上,切换电视屏幕上的电源。* /
public static final int KEYCODE_TV_POWER = 177;
/**键码常量:电视输入键。
*在电视遥控器上,切换电视屏幕的输入。* /
public static final int KEYCODE_TV_INPUT = 178;
/**键码常数:机顶盒电源键。
*在电视遥控器上,切换外部机顶盒的电源。* /
public static final int KEYCODE_STB_POWER = 179;
/**键码常量:机顶盒输入键。
*在电视遥控器上,切换外部机顶盒的输入模式。* /
public static final int KEYCODE_STB_INPUT = 180;
/**键码常数:A/V接收电源键。
*在电视遥控器上,切换外部A/V接收器的电源。* /
public static final int KEYCODE_AVR_POWER = 181;
/**键码常数:A/V接收机输入键。
*在电视遥控器上,切换外部A/V接收器的输入模式。* /
public static final int KEYCODE_AVR_INPUT = 182;
/**键码常数:红色“可编程”键。
*在电视遥控器上,作为上下文/可编程键。* /
public static final int KEYCODE_PROG_RED = 183;
/**键码常数:绿色“可编程”键。
*在电视遥控器上,充当上下文/可编程键。* /
public static final int KEYCODE_PROG_GREEN = 184;
/**键码常数:黄色“可编程”键。
*在电视遥控器上,作为上下文/可编程键。* /
public static final int KEYCODE_PROG_YELLOW = 185;
/**键码常数:蓝色“可编程”键。
*在电视遥控器上,作为上下文/可编程键。* /
public static final int KEYCODE_PROG_BLUE = 186;
/**键码常数:应用切换键。
*应该会弹出应用程序切换对话框。* /
public static final int KEYCODE_APP_SWITCH = 187;
/**键码常数:Generic Game Pad Button #1.*/
public static final int KEYCODE_BUTTON_1 = 188;
/**键码常数:Generic Game Pad Button #2.*/
public static final int KEYCODE_BUTTON_2 = 189;
/**键码常数:Generic Game Pad Button #3.*/
public static final int KEYCODE_BUTTON_3 = 190;
/**键码常数:Generic Game Pad Button #4.*/
public static final int KEYCODE_BUTTON_4 = 191;
/**键码常数:Generic Game Pad Button #5.*/
public static final int KEYCODE_BUTTON_5 = 192;
/**键码常数:Generic Game Pad Button #6.*/
public static final int KEYCODE_BUTTON_6 = 193;
/**键码常数:Generic Game Pad Button #7.*/
public static final int KEYCODE_BUTTON_7 = 194;
/**键码常数:Generic Game Pad Button #8.*
public static final int KEYCODE_BUTTON_8 = 195;
/**键码常数:Generic Game Pad Button #9.*
public static final int KEYCODE_BUTTON_9 = 196;
/**键码常数:Generic Game Pad Button #10.*/
public static final int KEYCODE_BUTTON_10 = 197;
/**键码常数:Generic Game Pad Button #11.*
public static final int KEYCODE_BUTTON_11 = 198;
/**键码常数:Generic Game Pad Button #12.*
public static final int KEYCODE_BUTTON_12 = 199;
/**键代码常数:通用游戏手柄按钮#13.*/
public static final int KEYCODE_BUTTON_13 = 200;
/**键代码常数:通用游戏手柄按钮#14.*/
public static final int KEYCODE_BUTTON_14 = 201;
/**键码常数:通用游戏手柄按钮#15.*/
public static final int KEYCODE_BUTTON_15 = 202;
/**键码常数:Generic Game Pad Button #16.*
public static final int KEYCODE_BUTTON_16 = 203;
/**键码常量:语言切换键。
*切换当前输入语言,如在英语和日语之间切换
QWERTY键盘。在某些设备上,可以通过
*按Shift+空格键。* /
public static final int KEYCODE_LANGUAGE_SWITCH = 204;
/**键码常数:方式模式键。
*打开和关闭静音或振动模式,使设备表现得更礼貌
*在某些情况下,例如在拥挤的火车上。在某些设备上,密钥可能只能
*长按操作。* /
public static final int KEYCODE_MANNER_MODE = 205;
/**键码常数:3D模式键。
*在2D和3D模式之间切换显示。* /
public static final int KEYCODE_3D_MODE = 206;
/**键码常数:联系人特殊功能键。*用于启动地址簿应用程序。* /
public static final int KEYCODE_CONTACTS = 207;
/**键码常量:日历特殊功能键。
*用于启动日历应用程序。* /
public static final int KEYCODE_CALENDAR = 208;
/**键码常数:音乐特殊功能键。
*用于启动音乐播放器应用程序。* /
public static final int KEYCODE_MUSIC = 209;
/**键码常量:计算器专用功能键。
*用于启动计算器应用程序。* /
public static final int KEYCODE_CALCULATOR = 210;
/**键码常数:日文全宽/半宽键。* /
int KEYCODE_ZENKAKU_HANKAKU = 211;
/**键码常量:日文字母数字键。* /
public static final int KEYCODE_EISU = 212;
/**键码常量:日文非转换键。* /
public static final int KEYCODE_MUHENKAN = 213;
/**键码常量:日文转换键。* /
public static final int KEYCODE_HENKAN = 214;
/**键码常数:日文片假名/平假名键。* /
int keycode_katakana_平假名= 215;
/**键码常数:日元键。* /
int KEYCODE_YEN = 216;
/**键码常数:日文“Ro”键。* /
public static final int KEYCODE_RO = 217;
/**键码常量:日文假名键。* /
public static final int keycode_ana = 218;
/**键码常量:辅助键。
*启动全球援助活动。未交付给应用程序。* /
public static final int KEYCODE_ASSIST = 219;
/**键码常数:亮度下降键。
*将屏幕亮度调低。* /
public static final int KEYCODE_BRIGHTNESS_DOWN = 220;
/**键码常数:亮上键。
*调整屏幕亮度。* /
public static final int KEYCODE_BRIGHTNESS_UP = 221;
/**键码常数:音轨键。
*切换音轨。* /
public static final int KEYCODE_MEDIA_AUDIO_TRACK = 222;
/**键码常数:休眠键。
*使设备进入睡眠状态。行为有点像{@link #KEYCODE_POWER},但它
如果设备已处于睡眠状态,*不起作用。* /
public static final int KEYCODE_SLEEP = 223;
/**键码常数:唤醒键。
*唤醒设备。行为有点像{@link #KEYCODE_POWER},但它
如果设备已经唤醒,*不起作用。* /
public static final int KEYCODE_WAKEUP = 224;
/**键码常数:配对键。
*启动外设配对模式。用于遥控配对
*设备或游戏控制器,特别是在没有其他输入模式的情况下
*可用。* /
public static final int keycode_pair = 225;
/**键代码常数:媒体上菜单键。
*转到媒体菜单的顶部。* /
public static final int KEYCODE_MEDIA_TOP_MENU = 226;
/**键码常数:'11'键。* /
public static final int KEYCODE_11 = 227;
/**键码常数:'12'键。* /
public static final int KEYCODE_12 = 228;
/**键码常数:最后通道键。
*转到最后观看的频道。* /
public static final int KEYCODE_LAST_CHANNEL = 229;
/**键码常数:电视数据业务键。
*显示数据服务,如天气,体育。* /
public static final int KEYCODE_TV_DATA_SERVICE = 230;
/**键码常数:语音辅助键。
*启动全球语音辅助活动。未交付给应用程序。* /
public static final int KEYCODE_VOICE_ASSIST = 231;
/**键码常数:单选键。
*切换电视服务/广播服务。* /
public static final int KEYCODE_TV_RADIO_SERVICE = 232;
/**键码常数:Teletext键。
*显示图文电视服务。* /
public static final int KEYCODE_TV_TELETEXT = 233;
/**键码常量:数字输入键。
*当分配每个数字密钥时,发起输入多数字通道号
*用于选择单独的通道。对应CEC的“号码入号模式0x1D”
*用户控制代码。* /
public static final int KEYCODE_TV_NUMBER_ENTRY = 234;
/**键码常数:模拟地面键。
*转至模拟地面广播服务。* /
public static final int keycode_tv_terrestral_analog = 235;
/**键码常数:数字地面键。
*转至数码地面广播服务。* /
public static final int keycode_tv_terrestral_digital = 236;/**键码常数:卫星键。
*切换到数字卫星广播服务。* /
public static final int KEYCODE_TV_SATELLITE = 237;
/**键码常数:BS键。
*转到日本可用的BS数字卫星广播服务。* /
public static final int KEYCODE_TV_SATELLITE_BS = 238;
/**键码常数:CS键。
*切换到日本可用的CS数字卫星广播服务。* /
public static final int KEYCODE_TV_SATELLITE_CS = 239;
/**键码常数:BS/CS键。
*在BS和CS数字卫星服务之间切换。* /
public static final int keycode_tv_卫星服务= 240;
/**键码常数:切换网络键。
*切换选择广播服务。* /
public static final int KEYCODE_TV_NETWORK = 241;
/**键码常数:天线/电缆键。
*在天线和电缆之间切换广播输入源。* /
public static final int KEYCODE_TV_ANTENNA_CABLE = 242;
/**键码常数:HDMI #1键。
*切换到HDMI输入#1。* /
public static final int KEYCODE_TV_INPUT_HDMI_1 = 243;
/**键码常数:HDMI #2键。
*切换到HDMI输入#2。* /
public static final int KEYCODE_TV_INPUT_HDMI_2 = 244;
/**键码常数:HDMI #3键。
*切换到HDMI输入#3。* /
public static final int KEYCODE_TV_INPUT_HDMI_3 = 245;
/**键码常数:HDMI #4键。
*切换到HDMI输入#4。* /
public static final int KEYCODE_TV_INPUT_HDMI_4 = 246;
/**键代码常数:复合#1键。
*切换到合成视频输入#1。* /
public static final int KEYCODE_TV_INPUT_COMPOSITE_1 = 247;
/**键代码常数:复合#2键。
*切换到合成视频输入#2。* /
public static final int KEYCODE_TV_INPUT_COMPOSITE_2 = 248;
/**键代码常数:组件#1键。
*切换到组件视频输入#1。* /
public static final int KEYCODE_TV_INPUT_COMPONENT_1 = 249;
/**键代码常数:组件#2键。
*切换到组件视频输入#2。* /
public static final int KEYCODE_TV_INPUT_COMPONENT_2 = 250;
/**键码常数:VGA #1键。
*切换到VGA(模拟RGB)输入#1。* /
public static final int KEYCODE_TV_INPUT_VGA_1 = 251;
/**键码常量:音频描述键。
*切换音频描述关闭/打开。* /
public static final int KEYCODE_TV_AUDIO_DESCRIPTION = 252;
/**键码常数:音频描述混合音量向上键。
*与正常音频音量相比,嘈杂的音频描述音量。* /
public static final int KEYCODE_TV_AUDIO_DESCRIPTION_MIX_UP = 253;
/**键码常数:音频描述混音音量降键。
*与正常音频音量相比,减少音频描述音量。* /
public static final int KEYCODE_TV_AUDIO_DESCRIPTION_MIX_DOWN = 254;
/**键码常数:缩放模式键。
*改变缩放模式(正常,全,变焦,宽变焦等)*/
public static final int KEYCODE_TV_ZOOM_MODE = 255;
/**键码常量:内容菜单键。
*转到标题列表。对应于CEC用户控制的内容菜单(0x0B)
*代码*/
public static final int KEYCODE_TV_CONTENTS_MENU = 256;
/**键代码常数:媒体上下文菜单键。
*进入媒体内容的上下文菜单。对应于媒体上下文敏感
* CEC用户控制代码菜单(0x11)。* /
public static final int KEYCODE_TV_MEDIA_CONTEXT_MENU = 257;
/**键码常数:定时器编程键。
*进入定时器录制菜单。对应定时器编程(0x54)
* CEC用户控制代码。* /
public static final int KEYCODE_TV_TIMER_PROGRAMMING = 258;
/**键码常量:帮助键。* /
public static final int KEYCODE_HELP = 259;
/**键代码常数:导航到上一个键。
*在一个有序的项目集合中向后移动一个项目。* /
public static final int KEYCODE_NAVIGATE_PREVIOUS = 260;
/**键代码常数:导航到下一个键。
*在一个有序的项目集合中前进到下一个项目。* /
public static final int KEYCODE_NAVIGATE_NEXT = 261;
/**键代码常量:Navigate in Key。
*激活当前有焦点的项目或扩展到导航的下一个级别
*层次结构。* /
public static final int KEYCODE_NAVIGATE_IN = 262;
/**键代码常数:导航出键。
*退出导航层次结构的一个级别或折叠当前拥有的项目
*焦点。* /
public static final int KEYCODE_NAVIGATE_OUT = 263;
/**键代码常数:主杆键磨损
View Code

 

标签:Python,键码,public,final,int,static,adb,手机,KEYCODE
From: https://www.cnblogs.com/wusenwusen/p/17340356.html

相关文章

  • Python程序运行原理
    Python是一种解释型语言(先编译后解释语言),不需要编译成可执行文件,而是在运行时逐行解释执行,故运行效率相比C/C++较低。Python的运行原理可以简单地概括为以下几个步骤:词法分析和语法分析:Python解释器会将源代码进行词法分析,将代码转换为一系列的Token(即词法单元)。然后,Python......
  • Python调用C程序
    1.将C程序编译为动态库;2.python代码加载动态库调用C函数......
  • python8:函数:函数的参数
    函数格式:defname():函数体 函数的参数:必选参数,默认参数[缺省参数](在调用的时候如果未赋值,就会用定义函数是给的默认值)、可选参数、关键字参数参数:其实就是函数为了实现某项特定的功能,进而为了得到所实现功能所需要的数据。默认参数【缺省参数】defsum1(a=20,b=30):在调......
  • 2023年第一季度京东平台手机品牌销量排行榜
    4月19日,调研机构Canalys发布了2023年第一季度的全球智能手机市场报告。根据数据显示,今年Q1全球智能手机市场份额TOP5分别是三星(22%)、苹果(21%)、小米(含Redmi,11%)、OPPO(含一加,10%)、vivo(含iQOO,8%);Others品牌合计市场份额28%。三星回到了市场份额第一的位置,不过苹果与三星之间的差距相较......
  • python脚本打包与请求带session的区别
    pyinstaller-F-iD:\ico\123.icoXXX.py--key123456如何防止exe被反编译呢只需在打包命令后面加上--key命令即可,例如文章开头的命令可以更换为:pyinstaller-Fw--icon=h.icoauto_organize_gui.py--add-data="h.ico;/"--key123456123456是你用来加密的密钥,可以随......
  • 【THM】Python for Pentesters(使用Python辅助渗透测试)-学习
    本文相关的TryHackMe实验房间链接:https://tryhackme.com/room/pythonforcybersecurity本文相关内容:Python可能是网络安全领域使用最广泛、最方便的脚本语言,本文涵盖了一些Python脚本示例,包括哈希破解、键盘记录、枚举和扫描等。简介Python可以成为你的武器库中的强大工具,因为......
  • Python学习(2)-NumPy矩阵与通用函数
    1.NumPy矩阵1.1mat函数mat=asmatrixasmatrix(data,dtype=None):data:表示输入的数组或者字符串,使用‘,’分割列,使用‘;’分割行创建两个普通的矩阵:print(np.mat([1,2,3]))print(np.mat("1,2,3;4,5,6;7,8,9"))--------[[123]][[123][456][789]]需要注意:mat创建的......
  • adb 命令
    重启:adbreboot关机:adbshellreboot-p#熄屏  adbshellinputkeyevent26#检测设备  adbdevices  sleep2s#亮屏  adbshellinputkeyevent26#解锁手机屏幕adbshellinputkeyevent82#返回主页  adbshellinputkeyevent3#HOME事件#打开软......
  • android系统adb对时//京鸿通信/www.kyohoon.com/15507589165
    目录1、远程连接设备2、设置地区3、设置对时服务器4、重启设备5、查看对时服务器是否设置成功1、远程连接设备adbconnectxxx.xxx.xxx.xxx2、设置地区adbshellsetproppersist.sys.timezoneAsia/Shanghai3、设置对时服务器adbshellsettingsputglobalntp_server172.16.......
  • Python下使用串口发送十六进制数据
    importserialfromtimeimportsleepdefrecv(serial):whileTrue:data=serial.read_all()ifdata=='':continueelse:breaksleep(0.2)returndataif__name__=='__main_......