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

中国十大门户网站排行大网站建设

中国十大门户网站排行,大网站建设,上海做网站推荐,网页设计与制作教程题前言 Android 12系统休眠时,需要不管接什么型号usb tp都能够触摸唤醒。 Android12系统中,usb tp要能够触摸唤醒,需要在frameworks/native/services/inputflinger/reader/mapper/TouchInputMapper.cpp中将mParameters.wake赋值为true&#xff…
前言

 Android 12系统休眠时,需要不管接什么型号usb tp都能够触摸唤醒。

Android12系统中,usb tp要能够触摸唤醒,需要在frameworks/native/services/inputflinger/reader/mapper/TouchInputMapper.cpp中将mParameters.wake赋值为true,才能够在系统休眠的时候,触摸usb tp唤醒系统。(在TouchInputMapper.cpp中mParameters.wake的值是由getDeviceContext().isExternal();决定的,getDeviceContext().isExternal();是通过EventHub.cpp中的bool EventHub::Device::isExternalDeviceLocked()获得的。这个函数是通过读取对应tp idc文件中的device.internal属性来决定的。)我们现在要求所有的usb tp的能够触摸唤醒,只需按如下修改即可:

Index: reader/mapper/TouchInputMapper.cpp
===================================================================
--- reader/mapper/TouchInputMapper.cpp  (revision 2066)
+++ reader/mapper/TouchInputMapper.cpp  (working copy)
@@ -508,7 +508,7 @@// Initial downs on external touch devices should wake the device.// Normally we don't do this for internal touch screens to prevent them from waking// up in your pocket but you can enable it using the input device configuration.
-    mParameters.wake = getDeviceContext().isExternal();
+    mParameters.wake = true;getDeviceContext().getConfiguration().tryGetProperty(String8("touch.wake"), mParameters.wake);}

 

09-20 21:45:13.715   664   818 I InputReader: Disabling eGalax Inc. eGalaxTouch P80H84 2331 v00_T1 k4.10.143 (device 3) because the associated viewport is not active

 修改方法

@@ -664,12 +664,12 @@return;}-    if (!newViewport->isActive) {
-        ALOGI("Disabling %s (device %i) because the associated viewport is not active",
-              getDeviceName().c_str(), getDeviceId());
-        mDeviceMode = DeviceMode::DISABLED;
-        return;
-    }
+    // if (!newViewport->isActive) {
+        // ALOGI("Disabling %s (device %i) because the associated viewport is not active",
+              // getDeviceName().c_str(), getDeviceId());
+        // mDeviceMode = DeviceMode::DISABLED;
+        // return;
+    // }// Raw width and height in the natural orientation.int32_t rawWidth = mRawPointerAxes.getRawWidth();

 

http://www.cairui.net.cn/news/232/

相关文章:

  • 西安网站建设公英语网站的建设需要
  • 上海网站开发建设服务郑州市金水区
  • 富阳科技网站有哪些提升网站流量的方法
  • 太原的网站建设公司哪家好wordpress仿唯品会
  • 云网站开发动态字设计网站
  • 做网站必须要dreamever做网站销售电话术语
  • 做网站怎么搭建环境平台设计软件
  • 深圳模板建站多少钱成都天府新区网站建设
  • 阿里云服务器ip做网站wordpress安装到万网
  • 服装网站建设企业需求调查100m网站空间服务费
  • 网站留言板模版那个网站做外贸好
  • 网站建设费用报告微信网站cms
  • 有做义工的相亲网站吗做网站的工作量
  • 有关设计的网站服务器域名查询
  • 网站开发用C扬州西区网站建设
  • 湖北长安建设集团股份有限公司网站南京小程序开发公司
  • 温州 网站优化中国工程建设标准化网站
  • 郑州网站制作网页网站建设源代码版权问题
  • 莆田网站建设招标搜狗seo查询
  • 海燕网站建设公司wordpress添加水印
  • 个人备案的网站可以做宣传typecho导入wordpress
  • 网站程序的设计费用网站的建设可以起到什么作用
  • 手机网站设置怎么自己写代码做网站
  • 做一个15页的网站怎么做网页编辑和发布流程不包括以下哪个选项
  • 四川省建设厅官方培训网站有没有教如何做衣服的网站
  • 个人做论坛网站要什么证件做网站用windows和 linux
  • 微信网站开发框架医院做网站运维
  • 个人网站域名后缀网站建设怎么选择MySQL数据库大小
  • 博州住房和城乡建设局网站wordpress做推送
  • 静态网页模板免费网站广州统一企业官网建设