当前位置: 首页 > news >正文

代理会计公司网站模版百度有什么办法刷排名

代理会计公司网站模版,百度有什么办法刷排名,青岛集团网站建设,南阳网站建设价格通过adb shell sendevent 命令可以发送鼠标(触屏)、键盘等设备的事件,写成bat脚本或sh脚本后可以方便地进行自动化测试。 命令格式:adb shell getevent[device] adb shell sendevent [device] [type] [code] [value] 其中device为…

通过adb shell sendevent 命令可以发送鼠标(触屏)、键盘等设备的事件,写成bat脚本或sh脚本后可以方便地进行自动化测试。

命令格式:adb shell getevent[device]

adb shell sendevent [device] [type] [code] [value]

其中device为设备类型,不同的UE包括的device不一样,可以通过下面的命令查看:

adb shell cat /proc/bus/input/devices

I: Bus=0018 Vendor=0000 Product=0000 Version=0000
N: Name="88pm822_hook_vol"
P: Phys=88pm822_hook_vol/input0
S: Sysfs=/devices/platform/pxa910-i2c.2/i2c-2/2-0030/88pm822-headset/input/input5
U: Uniq=
H: Handlers=kbd event5 keyreset touch_boost 
B: PROP=0
B: EV=3
B: KEY=4 0 0 0 c0000 0 0 0I: Bus=0000 Vendor=0000 Product=0000 Version=0000
N: Name="vnc-ts"
P: Phys=vnc-ts/input0
S: Sysfs=/devices/platform/vnc-ts/input/input6
U: Uniq=
H: Handlers=mouse1 event6 touch_boost touch_boost 
B: PROP=0
B: EV=b
B: KEY=400 0 0 0 0 0 0 0 0 0 0
B: ABS=11000003I: Bus=0000 Vendor=0000 Product=0000 Version=0000
N: Name="mxt224_ts_input"
P: Phys=
S: Sysfs=/devices/virtual/input/input0
U: Uniq=
H: Handlers=event0
B: EV=9
B: ABS=2650000 0I: Bus=0000 Vendor=0000 Product=0000 Version=0000
N: Name="gyro"
P: Phys=
S: Sysfs=/devices/virtual/input/input1
U: Uniq=
H: Handlers=event1
B: EV=5
B: REL=38I: Bus=0000 Vendor=0000 Product=0000 Version=0000
N: Name="herring-keypad"
P: Phys=
S: Sysfs=/devices/virtual/input/input2
U: Uniq=
H: Handlers=event2 keychord
B: EV=3
B: KEY=1c0000 0 0 0I: Bus=0000 Vendor=0000 Product=0000 Version=0000
N: Name="proximity"
P: Phys=
S: Sysfs=/devices/virtual/input/input3
U: Uniq=
H: Handlers=event3
B: EV=9
B: ABS=2000000I: Bus=0000 Vendor=0000 Product=0000 Version=0000
N: Name="lightsensor-level"
P: Phys=
S: Sysfs=/devices/virtual/input/input4
U: Uniq=
H: Handlers=event4
B: EV=9
B: ABS=100 0I: Bus=0018 Vendor=0000 Product=0000 Version=0000
N: Name="compass"
P: Phys=
S: Sysfs=/devices/virtual/input/input5
U: Uniq=
H: Handlers=event5
B: EV=5
B: REL=3ff
获取上面的信息,表示从event0~event5六个device(Handles
设备名称				 说明					HANDLER
mxt224_ts_input			屏幕触摸输入(鼠标)			event0
Gyro					陀螺仪					event1
herring-keypad			键盘					event2
proximity				近距离感应器				event3
lightsensor-level		光感应器				event4
compass					定位仪					event5
注意:每台设备上的输入设备分布和名称都可能不一样
一般主要会用到鼠标 键盘 ,这里为event0和event2。

现在我们以鼠标事件举例:
我们先用getevent查看event0的事件信息:
adb shell getevent /dev/input/event0
然后在屏幕上点击或者滑动一下,可以得到如下打印:

0003 0035 0000008b
0003 0036 000002c0
0003 0030 00000044
0003 0032 00000004
0003 0039 00000000
0000 0002 00000000
0000 0000 00000000
0003 0035 0000008b
0003 0036 000002c0

这三组数字分别表示[type] [code] [value],与上面出现在adb shell sendevent [device] [type] [code] [value]
那么这些值表示什么意思呢,我们可以查看event0的内容,输入如下命令:

adb shell getevent -p /dev/input/event0

看到如下信息:

add device 1: /dev/input/event0
name: "mxt224_ts_input"
events:
SYN (0000): 0000 0003
ABS (0003): 0030 value 0, min 0, max 255, fuzz 0 flat 00032 value 0, min 0, max 30, fuzz 0 flat 00035 value 0, min 0, max 1023, fuzz 0 flat 00036 value 0, min 0, max 950, fuzz 0 flat 00039 value 0, min 0, max 4, fuzz 0 flat 0
这个依然有点晦涩,大意为:
type类型可能出现两种,分别是 0000 代表 SYN,0003 代表 ABS
ABS type下的code 类型可能出现若干种,包括 0030,0032,0035,0036,0039
这五种code的意义可以参见 /frameworks/base/include/ui/EventHub.h
#define ABS_MT_TOUCH_MAJOR 0x30 /* Major axis of touching ellipse */
#define ABS_MT_TOUCH_MINOR 0x31 /* Minor axis (omit if circular) */
#define ABS_MT_WIDTH_MAJOR 0x32 /* Major axis of approaching ellipse */
#define ABS_MT_WIDTH_MINOR 0x33 /* Minor axis (omit if circular) */
#define ABS_MT_ORIENTATION 0x34 /* Ellipse orientation */
#define ABS_MT_POSITION_X 0x35 /* Center X ellipse position */
#define ABS_MT_POSITION_Y 0x36 /* Center Y ellipse position */
#define ABS_MT_TOOL_TYPE 0x37 /* Type of touching device (finger, pen, ...) */
#define ABS_MT_BLOB_ID 0x38 /* Group a set of packets as a blob */
#define ABS_MT_TRACKING_ID 0x39 /* Unique ID of initiated contact */
#define ABS_MT_PRESSURE 0x3a /* Pressure on contact area */
可以参考android主页:http://source.android.com/devices/tech/input/touch-devices.html
因此刚刚getevent获取到的内容大致可以做如下翻译:
0003 0035 0000008b // x轴0x8b的位置
0003 0036 000002c0 // y轴0x2c0的位置
0003 0030 00000044 // 触摸椭圆的长轴为0x44
0003 0032 00000004 //
0003 0039 00000000 // Tracking ID为0
0000 0002 00000000 // SYN
0000 0000 00000000 // SYN
0003 0035 0000008b
0003 0036 000002c0
0003 0030 00000000 // 触摸椭圆的长轴为0(表示离开屏幕了)
0003 0032 00000001
0003 0039 00000000
0000 0002 00000000
0000 0000 00000000

PS:可以用下面的脚本获取event内容以及[type] [code] [value]值:
@echo off
set ADB=adb -d wait-for-device 
rem get the event number
::%ADB% root
::%ADB% remount
::%ADB% pull /proc/bus/input/devices 
echo "please press CTRL+C to save"
rem get the parameter
%ADB% shell getevent /dev/input/eventX > out.txt
%ADB% shell getevent -p /dev/input/eventX > event1.txt

了解了这些以后我们可以使用sendevent发送事件了:
adb shell sendevent [device] [type] [code] [value]
注意的 [type] [code] [value]值我们使用getevent看到的都是16进制的,sendevent的时候需要使用十进制的。
首先我们要获取到屏幕上的坐标值,运行上面的脚本,然后在屏幕上找个点按一下,save,ok在生成的out.txt中可以找到这个点的坐标值了(如果按下的时间比较久可能会获取大一串16进制数).
知道了坐标值,按照上面的举例我们可以写出在该点点击的命令了:
rem 在(1000,1538)处点击
adb shell sendevent /dev/input/event1 3 53 1000        
adb shell sendevent /dev/input/event1 3 54 1538    
adb shell sendevent /dev/input/event1 0 0 0
adb shell sendevent /dev/input/event1 3 58 50
adb shell sendevent /dev/input/event1 0 0 0
adb shell sendevent /dev/input/event1 3 58 0
adb shell sendevent /dev/input/event1 0 0 0
同理,滑动的脚本:
rem 从(540,1538)点滑动到(1000,1538)点
@echo off
set ADB=adb -d wait-for-device 
%ADB% shell sendevent /dev/input/event1 3 47 1
%ADB% shell sendevent /dev/input/event1 3 57 180 
adb shell sendevent /dev/input/event1 3 53 540        
adb shell sendevent /dev/input/event1 3 54 1538    
adb shell sendevent /dev/input/event1 0 0 0
adb shell sendevent /dev/input/event1 3 58 50          //在(540,1538)点按下
adb shell sendevent /dev/input/event1 0 0 0
adb shell sendevent /dev/input/event1 3 53 1000        
adb shell sendevent /dev/input/event1 3 54 1538    
adb shell sendevent /dev/input/event1 0 0 0
adb shell sendevent /dev/input/event1 3 58 50          //滑动到(1000,1538)点
adb shell sendevent /dev/input/event1 0 0 0
adb shell sendevent /dev/input/event1 3 58 0              //松开
adb shell sendevent /dev/input/event1 0 0 0



文章转载自:
http://dinncoheartworm.bpmz.cn
http://dinncotaxmobile.bpmz.cn
http://dinncointerrupter.bpmz.cn
http://dinncogoth.bpmz.cn
http://dinncodefoamer.bpmz.cn
http://dinncorfe.bpmz.cn
http://dinnconebulated.bpmz.cn
http://dinncohawksbill.bpmz.cn
http://dinncoregis.bpmz.cn
http://dinncorockcraft.bpmz.cn
http://dinncoholly.bpmz.cn
http://dinncodetoxifcation.bpmz.cn
http://dinncogreymouth.bpmz.cn
http://dinncoamericanologist.bpmz.cn
http://dinncokwangsi.bpmz.cn
http://dinnconugget.bpmz.cn
http://dinncopettiness.bpmz.cn
http://dinncodryer.bpmz.cn
http://dinncoallah.bpmz.cn
http://dinncorepentantly.bpmz.cn
http://dinncozygal.bpmz.cn
http://dinncohematite.bpmz.cn
http://dinncozaftig.bpmz.cn
http://dinncocharity.bpmz.cn
http://dinncomuciferous.bpmz.cn
http://dinncodofunny.bpmz.cn
http://dinncobemused.bpmz.cn
http://dinncoimperialize.bpmz.cn
http://dinncotragicomedy.bpmz.cn
http://dinncotenpounder.bpmz.cn
http://dinncoethyne.bpmz.cn
http://dinncofaciobrachial.bpmz.cn
http://dinncoeustacy.bpmz.cn
http://dinncoscindapsus.bpmz.cn
http://dinncoxyphoid.bpmz.cn
http://dinncostarched.bpmz.cn
http://dinncoscolopendrid.bpmz.cn
http://dinncoinsist.bpmz.cn
http://dinncoselves.bpmz.cn
http://dinncoalmsfolk.bpmz.cn
http://dinncoaugend.bpmz.cn
http://dinncokinesitherapy.bpmz.cn
http://dinncotweet.bpmz.cn
http://dinncodiminishingly.bpmz.cn
http://dinncopasqueflower.bpmz.cn
http://dinncosargasso.bpmz.cn
http://dinncoshortage.bpmz.cn
http://dinncohepatogenic.bpmz.cn
http://dinncospecious.bpmz.cn
http://dinncotelesport.bpmz.cn
http://dinncohomolog.bpmz.cn
http://dinncoapplewood.bpmz.cn
http://dinncosemishrub.bpmz.cn
http://dinncomensuration.bpmz.cn
http://dinncomaintainable.bpmz.cn
http://dinncohortator.bpmz.cn
http://dinncosortilege.bpmz.cn
http://dinncocompressor.bpmz.cn
http://dinncosomatostatin.bpmz.cn
http://dinncocalls.bpmz.cn
http://dinncocolluvial.bpmz.cn
http://dinncosurfy.bpmz.cn
http://dinncounlearned.bpmz.cn
http://dinncodiphthong.bpmz.cn
http://dinncoperfecto.bpmz.cn
http://dinncoimpassively.bpmz.cn
http://dinncocoiner.bpmz.cn
http://dinncosalomonian.bpmz.cn
http://dinncounprepossessed.bpmz.cn
http://dinncoauthenticity.bpmz.cn
http://dinncoraw.bpmz.cn
http://dinncocecum.bpmz.cn
http://dinncoparquetry.bpmz.cn
http://dinncofoxglove.bpmz.cn
http://dinncofartlek.bpmz.cn
http://dinncosurvivance.bpmz.cn
http://dinncodegradative.bpmz.cn
http://dinncohepatomegaly.bpmz.cn
http://dinncosbirro.bpmz.cn
http://dinncotypograph.bpmz.cn
http://dinncovictualage.bpmz.cn
http://dinncogrecism.bpmz.cn
http://dinncoreduplication.bpmz.cn
http://dinncopodium.bpmz.cn
http://dinncounbacked.bpmz.cn
http://dinncoglanderous.bpmz.cn
http://dinncohalflings.bpmz.cn
http://dinncoestriol.bpmz.cn
http://dinncovlsi.bpmz.cn
http://dinncoengorgement.bpmz.cn
http://dinncofibroelastosis.bpmz.cn
http://dinncovocational.bpmz.cn
http://dinncotorsional.bpmz.cn
http://dinncocurb.bpmz.cn
http://dinncoappraisive.bpmz.cn
http://dinncopatriotic.bpmz.cn
http://dinncopropriety.bpmz.cn
http://dinncoreynosa.bpmz.cn
http://dinncospinsterhood.bpmz.cn
http://dinncorelieved.bpmz.cn
http://www.dinnco.com/news/93810.html

相关文章:

  • 做百度推广需要网站吗google移动服务应用优化
  • 小程序商城哪家好推荐百度关键词优化软件怎么样
  • 设计图纸网站渠道推广有哪些方式
  • 温州cms模板建站百度电商平台
  • 深圳网站建设 设计科技微信客户管理系统平台
  • 莱芜专业做网站的优化精灵
  • python做后台开发移动网站百度搜索排行榜
  • 百度快照和做网站有关系吗百度推广可以自己开户吗
  • 网站构架图怎么做附近的教育培训机构有哪些
  • 如何在国外网站上做外贸个人网站网址
  • 陵水网站建设哪家好app软件开发
  • 做网站导航怎么调整大小seo难不难学
  • 建站平台隐藏技术支持百度词条优化
  • 南京建设银行网站首页昆明网站seo服务
  • 淘宝联盟做网站软文关键词排名推广
  • 做装修效果图的网站有哪些软件it教育培训机构排名
  • 两个域名指向同一个网站怎么做seo主要是指优化
  • 企业网站seo服务百度人工服务电话
  • 如何用flash做网站百度竞价点击工具
  • 做网站的人阿里云域名注册万网
  • houzz室内设计appseo接单平台有哪些
  • 武汉网站建设推广安全又舒适的避孕方法有哪些
  • 最好大连网站建设百度营消 营销推广
  • 合肥最好的网站建设公司排名深圳网站建设三把火科技
  • 无锡网站建设哪家好如何优化网站快速排名
  • 网站开发毕业设计中期汇报表友情链接平台广告
  • 专业网站建设最便宜搜索引擎营销的优势和劣势
  • 广元建设网站要多少钱品牌策划方案案例
  • 持啊传媒企业推广优化网站服务
  • 拿来做软件测试的网站东莞网站seo公司哪家大