android 按键映射***.kl文件中的WAKE和WAKE_DROPPED的定义

本文详细解析了Android系统如何通过搜索特定文件来识别并响应键盘按键,包括唤醒设备的机制及两种不同的唤醒模式:常规唤醒与唤醒后不发送按键事件。

android系统中,获取到键盘的键值后,会搜索/system/usr/keylayout/*.kl这个文件

key 115   VOLUME_UP         WAKE_DROPPED
key 114   VOLUME_DOWN       WAKE_DROPPED
key 102   HOME              WAKE

如果驱动code与其中的键值相对应,android就会响应对应的按键信息。

 

WAKE: 当设备睡眠时按下此键,设备将被唤醒,按键事件将会被发送到应用程序.

 

WAKE_DROPPED: 当设备睡眠时按下此键,设备将被唤醒,而按键事件不会被发送到应用程序.

# Determines whether the graphite endpoint is enabled. enabled = true database = "gatling" # retention-policy = "" bind-address = ":2003" protocol = "tcp" # consistency-level = "one" templates = [ "gatling.*.users.*.* measurement.simulation.measurement.request.field", "gatling.*.*.*.*.*.* measurement.simulation.group1.group2.request.status.field group=2", "gatling.*.*.*.*.* measurement.simulation.group1.request.status.field group=1", "gatling.*.*.*.* measurement.simulation.request.status.field group=0", "v2.gatling.*.*.*.users.*.* .measurement.run.host.simulation.measurement.request.field", "v2.gatling.*.*.*.*.*.*.*.* .measurement.run.host.simulation.group1.group2.request.status.field group=2", "v2.gatling.*.*.*.*.*.*.* .measurement.run.host.simulation.group1.request.status.field group=1", "v2.gatling.*.*.*.*.*.* .measurement.run.host.simulation.request.status.field group=0", ] # These next lines control how batching works. You should have this enabled # otherwise you could get dropped metrics or poor performance. Batching # will buffer points in memory if you have many coming in. # Flush if this many points get buffered batch-size = 5000 # number of batches that may be pending in memory batch-pending = 10 # Flush at least this often even if we haven't hit buffer limit batch-timeout = "10s" ### This string joins multiple matching 'measurement' values providing more control over the final measurement name. separator = "." ### Default tags that will be added to all metrics. These can be overridden at the template level ### or by tags extracted from metric # tags = ["region=us-east", "zone=1c"] 解释下这个conf文件
最新发布
07-01
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值