Android键盘系统浅析(下)

通过往着几个文件中插桩,从模拟器的启动日志,我们可以更直观的开到整个Android键盘系统的建立:

…………………..

I/SystemServer(   57): Window Manager

I/WindowManager(   57): New the thread : mQueue = new Key

I/KeyInputQueue(   57): Enter into the constraction of the Base Class KeyInputQueue

I/KeyInputQueue(   57): Start the mThread???????????????????

I/WindowManager(   57): After mQueue = new Key

I/WindowManager(   57): New the thread of  mInputThread

I/WindowManager(   57): After  mInputThread

I/WindowManager(   57): New the thread of  mInputThread

I/WindowManager(   57): Begin the thread of  PolicyThread thr

I/KeyInputQueue(   57): Start the methods run of the mThread

I/KeyInputQueue(   57): Before the readEvent(ev),this is a native method

I/Input   (   57): C::::::::::::4::::::::::::::Entering into the JNI method-readEvent

I/EventHub(   57): C::::::::EventHub.cpp::::::::::Entering into the  EventHub::getEvent

I/EventHub(   57): C::::::::EventHub.cpp::::::::::Entering into the EventHub:

penPlatformInput

I/EventHub(   57): C::::::::EventHub.cpp::::::::::Before scan_dir(device_path)

I/EventHub(   57): C::::::::EventHub.cpp::::::::::Entering into the  scan_dir(device_path)

I/EventHub(   57): C::::::::EventHub.cpp::::::::::Entering into the open_device(device_path)

I/EventHub(   57): Opening device: /dev/input/event0

I/EventHub(   57): Opened device: /dev/input/event0 (0 failures)

I/EventHub(   57): add device 1: /dev/input/event0

I/EventHub(   57):   bus:      0000

I/EventHub(   57):   vendor    0000

I/EventHub(   57):   product   0000

I/EventHub(   57):   version   0000

I/EventHub(   57):   name:     "qwerty2"

I/EventHub(   57):   location: ""

I/EventHub(   57):   id:       ""

I/EventHub(   57):   version:  1.0.0

I/EventHub(   57): New keyboard: publicID=65536 device->id=0x10000

devname='qwerty2' propName='hw.keyboards.65536.devname'

keylayout='/system/usr/keylayout/qwerty.kl'

I/EventHub(   57): New device: path=/dev/input/event0 name=qwerty2 id=0x10000 (of 0x1) index=1 fd=49 classes=0x2f

I/EventHub(   57): C::::::::EventHub.cpp::::::::::Entering into the open_device(device_path)

I/EventHub(   57): Opening device: /dev/input/mouse0

I/EventHub(   57): Opened device: /dev/input/mouse0 (0 failures)

E/EventHub(   57): could not get driver version for /dev/input/mouse0, Not a typewriter

I/EventHub(   57): C::::::::EventHub.cpp::::::::::Entering into the open_device(device_path)

I/EventHub(   57): Opening device: /dev/input/mice

I/EventHub(   57): Opened device: /dev/input/mice (0 failures)

E/EventHub(   57): could not get driver version for /dev/input/mice, Not a typewriter

I/EventHub(   57): C::::::::EventHub.cpp:::::::::Enter into the while(1) ot the EventHub::getEvent

I/KeyInputQueue(   57): After the readEvent(ev)

I/KeyInputQueue(   57): Input event: dev=0x0 type=0x10000000 scancode=0 keycode=0 value=0

I/KeyInputQueue(   57): Device added: id=0x0, name=qwerty2, classes=2f

I/KeyInputQueue(   57):   X: unknown values

I/KeyInputQueue(   57):   Y: unknown values

I/KeyInputQueue(   57):   Pressure: unknown values

I/KeyInputQueue(   57):   Size: unknown values

I/KeyInputQueue(   57): No virtual keys found

I/KeyInputQueue(   57): Before the readEvent(ev),this is a native method

I/Input   (   57): C::::::::::::4::::::::::::::Entering into the JNI method-readEvent

I/EventHub(   57): C::::::::EventHub.cpp::::::::::Enter into the  EventHub::getEvent

I/EventHub(   57): C::::::::EventHub.cpp:::::::::Enter into the while(1) of the EventHub::getEvent

键盘android,Android键盘系统浅析(上)相关推荐

  1. Android注册会员系统返回上一步时如何保存信息

    实例:(在注册一个系统会员的时候经常需要多个步骤,我们经常使用"上一步","下一步"来完成,那么当用户在返回"上一步"时应如何保存信息呢?) ...

  2. android外接键盘打汉字,Android在外接物理键盘时,如何强制调用系统软键盘

    Android在外接物理键盘时,如何强制调用系统软键盘? 第一次写,写的不好请见谅 参考: 物理键盘映射过程: 手机/system/usr/keylayout/*.kl :内核将keyCode映射成有 ...

  3. Android监听系统输入法键盘弹出显示与隐藏事件

    Android监听系统输入法键盘弹出显示与隐藏事件 有时候需要监听Android系统输入法的弹出显示事件,比如:微信聊天时,不管你当前在聊天中的什么位置(上滑查看消息历史),每当你点击输入框时,都会自 ...

  4. 关于Android外设键盘导致系统输入法隐藏的解决方案

     关于Android外设键盘导致系统输入法隐藏的解决方案 Android系统发展到今天,如果你还认为它只是应用于手机的话,那你就out了.现在很多企业在通过Android系统来定制他们的相应的设备 ...

  5. Android创建自定义系统键盘

    原文标题:Create A Custom Keyboard on Android 原文链接:http://code.tutsplus.com/tutorials/create-a-custom-key ...

  6. android软键盘上添加一个按钮

    android软键盘上添加一个按钮: 第一种 我们在根布局的最底部添加一个按钮,利用布局中的ScrollView在软键盘弹出的时候 将底部的按钮挤压到软键盘上边,先看效果图: 看代码: <?xm ...

  7. android 按钮在键盘上,Android使用键盘上的完成按钮点击按钮

    确定在我的应用程序我有一个字段为用户输入一个数字.我将字段设置为只接受数字.当用户点击字段时,它会弹出键盘.在键盘上(在ICS上)有一个完成按钮.我想要在键盘上的完成按钮触发提交按钮我有我的应用程序. ...

  8. 解决Android软键盘弹出覆盖h5页面输入框问题 // 在ios系统中输入框软键盘消失后,页面不回弹的问题 // 解决苹果不回弹页面 // 微信环境打开

    //解决Android软键盘弹出覆盖h5页面输入框问题 window.addEventListener('resize', () => {if (document.activeElement.t ...

  9. android 设置键盘弹出动画,Android实现键盘弹出界面上移的实现思路

    1.首先说一下思路: 基本就是结合layout中ScrollView视图和AndroidManifest.xml中activity中的android:windowSoftInputMode属性配置实现 ...

最新文章

  1. 微信小程序如何进行登录授权和获取用户信息
  2. 【MATLAB】三维图形的绘制mesh
  3. 电脑仙人掌机器人作文_神奇的仙人掌作文400字
  4. windows下文件共享以及通过网线在两台Windows电脑之间传数据
  5. hive sql插入一行数据_Hive查询某一重复字段记录第一条数据
  6. ijkplayer 消息循环处理过程分析
  7. c语言成绩查询系统_如何用Excel制作成绩查询系统-Leo老师
  8. PV3D绘制3D线条 - 3DMAX插件AS3GeomClassExporter导出顶点到AS类
  9. Java基础知识面试题
  10. 如何在 macOS 上安装Axure RP
  11. 数据结构-BF算法和KMP算法
  12. 医疗物联网七大应用场景案例解析
  13. 组织变革-时代发展的产物
  14. 中国身份证号码验证,支持15 18位,可验证成功90 的身份证号
  15. STM32DIY机械键盘
  16. 写给四年前刚开始编程的自己
  17. 微信获取授权用户手机号
  18. 播放音乐的开始暂停用一张图片
  19. APP UI结构-首页功能点大集锦,很干很详细
  20. oracle 求正数总和,为什么sum时负数不能相加?

热门文章

  1. 如何在WhatsApp中引用某人
  2. 2019年双十一购物数据分析报告
  3. 安卓控件之竖向进度条
  4. 外贸找客户软件:Email Extractor Pro 7.2.X
  5. 基于Cesium的火箭发射演示
  6. 异构 ? 系统差异应该成为过去式, 专注在应用和数据 - 异构平台整合策略之1 - SSSD
  7. 网赚:通过网上引流项目变现要趁早!
  8. Python设置Latex公式中显示数学字体STIX
  9. python计算分位数方法
  10. 嵌入式系统开发的架构和应用