当前位置: 首页 > 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.tj-hxxt.cn/news/98324.html

相关文章:

  • 做飞象金服的网站湖南关键词优化快速
  • 咖啡网站开发懂得网站推广
  • 西安网站建设哪个平台好站长之家官网
  • 一般做外贸上什么网站搜索引擎优化的概念是什么
  • 北京市城乡结合部建设领导小组办公室网站代做百度关键词排名
  • 有域名怎么建立网站宁波seo优化公司
  • 佛山新网站建设怎么样重庆今日头条新闻消息
  • 网站开发去哪里找工作seo优化培训
  • 网站psd设计稿百度关键词数据
  • 上海做网站 公司百度网址安全中心怎么关闭
  • 织梦末班和dw建设网站哪个方便优化百度小说官网
  • 企业展示网站建设宁波seo专员
  • 南宁做网站 的山东今日热搜
  • 十堰h5响应式网站百度app下载安装 官方
  • 网上服务大厅登录平台牛排seo系统
  • 中国十大门窗品牌昆明优化网站公司
  • 地产网站开发公司网络营销策划方案3000字
  • 网站建设 企业智能建站网站模板
  • 网站权重一直做不上去网页优化seo公司
  • 典当 网站鹤壁网络推广哪家好
  • 潍坊城市建设官方网站晚上看b站
  • 做地税电子签章的网站百度题库
  • 网站分布网站建设的基本流程
  • 义乌营销型网站建设全网品牌推广
  • 网站开发技术现状千网推软文推广平台
  • 有什么可以在线做数学题的网站成都关键词优化报价
  • 重庆无障碍网站建设培训计划和培训内容
  • 武侯区网站建设哪里好点西安网站外包
  • WordPress如何发布内容到页面上郑州关键词网站优化排名
  • 国家建设安全局网站seo教程论坛