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

网站开发使用的软件电商平台链接怎么弄

网站开发使用的软件,电商平台链接怎么弄,低价机票 网站建设,上海网站建设大概多少钱T527 Android13遥控的适配和官方提供的文档有些不一样,按照官方的文档不能够正常适配到自己的遥控器。 首先确保驱动是否有打开CONFIG_AW_IR_RX和CONFIG_RC_DECODERSy 以及CONFIG_IR_NEC_DECODERm,这个可以在longan/out/t527对应的目录下的.config查看是…

T527 Android13遥控的适配和官方提供的文档有些不一样,按照官方的文档不能够正常适配到自己的遥控器。

首先确保驱动是否有打开CONFIG_AW_IR_RX和CONFIG_RC_DECODERS=y
以及CONFIG_IR_NEC_DECODER=m,这个可以在longan/out/t527对应的目录下的.config查看是否存在相关的项。一般默认是打开的,如果没有就到android13_arm64_defconfig配置里面添加。

然后查看驱动是否有加载到系统里面,可以adb下执行lsmod|grep ir查看是否有加载sunxi_ir_rx和ir_nec_decoder,如果没有加载,可以看一下android/device/softwinner下面的对应项目是否有将CONFIG_AW_SUPPORT_IR这个参数设置为false。这个值为false,驱动文件是不会编译到系统里面的。

驱动加载以后,getevent是可以查看到数据上报的,但是这个时候,按键是没有功能的,这个时候一般都会想到根据getvent上报的数值去改映射文件sunxi-ir.kl。但是这个时候改了也是没有用的,这是因为底层没有添加相应的按键值映射。如果底层添加了相应的按键值映射,sunxi-ir.kl可以不用修改,里面大部分的按键都已经映射好了android系统层按键值。

如何添加自己遥控器的按键值呢?首先打开android/longan/bsp/drivers/ir-rx/sunxi-ir-keymap.h,里面的数组static struct rc_map_table sunxi_nec_scan[]就是我们要添加按键映射的地方。先在adb下执行getevent -l /dev/input/event3,这里/dev/input/event3对应的是"sunxi-ir"的节点。然后按遥控器按键,比如我按一下音量加按键。得到如下值:

getevent -l /dev/input/event3
EV_MSC       MSC_SCAN             0000800a
EV_KEY       KEY_VOLUMEUP         DOWN
EV_SYN       SYN_REPORT           00000000
EV_MSC       MSC_SCAN             0000800a
EV_SYN       SYN_REPORT           00000000
EV_MSC       MSC_SCAN             0000800a
EV_SYN       SYN_REPORT           00000000
EV_KEY       KEY_VOLUMEUP         UP
EV_SYN       SYN_REPORT           00000000

找到上面的带MSC_SCAN的那一行,就是上报的数据,这行第三列第2个数字以后的数据(00800a)就是要填写到上面说的sunxi_nec_scan里面的。上面的按键我们需要在数组中添加如下代码:

--- a/longan/bsp/drivers/ir-rx/sunxi-ir-keymap.h
+++ b/longan/bsp/drivers/ir-rx/sunxi-ir-keymap.h
@@ -164,6 +164,40 @@ static struct rc_map_table sunxi_nec_scan[] = {{ 0xbf63, BTN_MISC },           // unknow{ 0xbf58, BTN_MISC },           // unknow{ 0xbf61, KEY_HOME },+       { 0x00800a, KEY_VOLUMEUP },

KEY_VOLUMEUP对应的是音量加按键,这个已经在sunxi-ir.kl里面映射好了。其他按键按照上面的方法依次填入即可。添加完所有按键以后,重新编译longan生成固件烧录,遥控器就会有作用了。

遥控器有个按键是鼠标模式,系统默认切换的时候是没有提示的,这个很不友好,如果要添加提示,添加下面修改即可:

diff --git a/frameworks/base/core/res/res/values-zh-rCN/strings.xml b/frameworks/base/core/res/res/values-zh-rCN/strings.xml
index 834e980487..e1bc769d84 100644
--- a/frameworks/base/core/res/res/values-zh-rCN/strings.xml
+++ b/frameworks/base/core/res/res/values-zh-rCN/strings.xml
@@ -2297,4 +2297,6 @@<string name="vdm_camera_access_denied" product="tablet" msgid="6895968310395249076">"无法从<xliff:g id="DEVICE">%1$s</xliff:g>上访问平板电脑的摄像头"</string><string name="vdm_secure_window" msgid="161700398158812314">"流式传输时无法访问此内容。您可以尝试在手机上访问。"</string><string name="system_locale_title" msgid="711882686834677268">"系统默认设置"</string>
+	<string name="enter_mouse_mode">进入鼠标模式,再按一次退出鼠标模式!</string>
+	<string name="exit_mouse_mode">进入遥控模式!</string></resources>
diff --git a/frameworks/base/core/res/res/values-zh-rHK/strings.xml b/frameworks/base/core/res/res/values-zh-rHK/strings.xml
index cc4d15e339..86575ba0c3 100644
--- a/frameworks/base/core/res/res/values-zh-rHK/strings.xml
+++ b/frameworks/base/core/res/res/values-zh-rHK/strings.xml
@@ -2295,4 +2295,6 @@<string name="vdm_camera_access_denied" product="tablet" msgid="6895968310395249076">"無法從 <xliff:g id="DEVICE">%1$s</xliff:g> 存取平板電腦的相機"</string><string name="vdm_secure_window" msgid="161700398158812314">"串流播放時無法使用,請改用手機。"</string><string name="system_locale_title" msgid="711882686834677268">"系統預設"</string>
+	<string name="enter_mouse_mode">進入滑鼠模式,再按一次退出滑鼠模式!</string>
+	 <string name="exit_mouse_mode">進入遙控模式!</string></resources>
diff --git a/frameworks/base/core/res/res/values-zh-rTW/strings.xml b/frameworks/base/core/res/res/values-zh-rTW/strings.xml
index 810ddc684b..443949e25b 100644
--- a/frameworks/base/core/res/res/values-zh-rTW/strings.xml
+++ b/frameworks/base/core/res/res/values-zh-rTW/strings.xml
@@ -2295,4 +2295,6 @@<string name="vdm_camera_access_denied" product="tablet" msgid="6895968310395249076">"無法從 <xliff:g id="DEVICE">%1$s</xliff:g> 存取平板電腦的相機"</string><string name="vdm_secure_window" msgid="161700398158812314">"串流播放時無法存取這項內容,請改用手機。"</string><string name="system_locale_title" msgid="711882686834677268">"系統預設"</string>
+	<string name="enter_mouse_mode">進入滑鼠模式,再按一次退出滑鼠模式!</string>
+	 <string name="exit_mouse_mode">進入遙控模式!</string></resources>
diff --git a/frameworks/base/core/res/res/values/strings.xml b/frameworks/base/core/res/res/values/strings.xml
index fefa2c1454..c0d5893d06 100644
--- a/frameworks/base/core/res/res/values/strings.xml
+++ b/frameworks/base/core/res/res/values/strings.xml
@@ -6348,4 +6348,6 @@ ul.</string><!-- Title for preference of the system default locale. [CHAR LIMIT=50]--><string name="system_locale_title">System default</string>
+	<string name="enter_mouse_mode">Enter into mouse mode, click again to quit</string>
+	<string name="exit_mouse_mode">Restore to default button mode</string></resources>
diff --git a/frameworks/base/core/res/res/values/symbols.xml b/frameworks/base/core/res/res/values/symbols.xml
index b58229ee19..dce38094a3 100644
--- a/frameworks/base/core/res/res/values/symbols.xml
+++ b/frameworks/base/core/res/res/values/symbols.xml
@@ -4915,4 +4915,6 @@<!-- /// AW: add end. --><java-symbol type="bool" name="config_global_action_screenshot_enabled" />
+  <java-symbol type="string" name="enter_mouse_mode" />
+  <java-symbol type="string" name="exit_mouse_mode" /></resources>
diff --git a/frameworks/base/packages/SystemUI/src/com/android/systemui/MouseModeReceiver.java b/frameworks/base/packages/SystemUI/src/com/android/systemui/MouseModeReceiver.java
new file mode 100755
index 0000000000..71d59a61cc
--- /dev/null
+++ b/frameworks/base/packages/SystemUI/src/com/android/systemui/MouseModeReceiver.java
@@ -0,0 +1,25 @@
+package com.android.systemui;
+
+import java.util.*;
+
+import android.content.BroadcastReceiver;
+import android.content.Context;
+import android.content.Intent;
+import android.util.Log;
+import android.text.TextUtils;
+ import android.widget.Toast;
+ 
+public class MouseModeReceiver extends BroadcastReceiver
+{
+	static String TAG = "MouseModeReceiver";
+
+	@Override
+	public void onReceive(Context context, Intent intent) {
+		if (intent.getAction().equals("com.android.set_ir_mousemode")) {
+			Toast.makeText(context, com.android.internal.R.string.enter_mouse_mode, Toast.LENGTH_LONG).show();
+		}else if(intent.getAction().equals("com.android.set_ir_normalmode")){
+			Toast.makeText(context, com.android.internal.R.string.exit_mouse_mode, Toast.LENGTH_LONG).show();
+		}
+	}
+}
+
diff --git a/frameworks/base/packages/SystemUI/src/com/android/systemui/SystemUIApplication.java b/frameworks/base/packages/SystemUI/src/com/android/systemui/SystemUIApplication.java
index 6fe176a3cf..f824cc607b 100644
--- a/frameworks/base/packages/SystemUI/src/com/android/systemui/SystemUIApplication.java
+++ b/frameworks/base/packages/SystemUI/src/com/android/systemui/SystemUIApplication.java
@@ -161,7 +161,11 @@ public class SystemUIApplication extends Application implements// application theme in the manifest does only work for activities. Keep this in sync with// the theme set there.setTheme(R.style.Theme_SystemUI);
-
+		
+		IntentFilter irfilter = new IntentFilter("com.android.set_ir_mousemode");
+		irfilter.addAction("com.android.set_ir_normalmode");
+		registerReceiver(new MouseModeReceiver(),irfilter);
+		if (Process.myUserHandle().equals(UserHandle.SYSTEM)) {IntentFilter bootCompletedFilter = newIntentFilter(Intent.ACTION_LOCKED_BOOT_COMPLETED);
diff --git a/frameworks/base/services/core/java/com/android/server/policy/TvWindowManager.java b/frameworks/base/services/core/java/com/android/server/policy/TvWindowManager.java
index 25e714c5c0..b87d28fe27 100644
--- a/frameworks/base/services/core/java/com/android/server/policy/TvWindowManager.java
+++ b/frameworks/base/services/core/java/com/android/server/policy/TvWindowManager.java
@@ -239,9 +239,11 @@ public class TvWindowManager extends PhoneWindowManager {if (mKeyEnterMouseMode) {MouseMode.exitMouseMode();mKeyEnterMouseMode = false;
+					mContext.sendBroadcast(new Intent("com.android.set_ir_normalmode"));} else {MouseMode.enterMouseMode();mKeyEnterMouseMode = true;
+					mContext.sendBroadcast(new Intent("com.android.set_ir_mousemode"));}}return -1;


文章转载自:
http://dinncopreservice.wbqt.cn
http://dinncocaterer.wbqt.cn
http://dinncotannic.wbqt.cn
http://dinncoluteotrophin.wbqt.cn
http://dinncotypescript.wbqt.cn
http://dinncobecomingly.wbqt.cn
http://dinncohabituation.wbqt.cn
http://dinncodiastem.wbqt.cn
http://dinncoemblaze.wbqt.cn
http://dinncoaerothermoacoustics.wbqt.cn
http://dinncocns.wbqt.cn
http://dinncohove.wbqt.cn
http://dinncobrae.wbqt.cn
http://dinncocandela.wbqt.cn
http://dinncohankerchief.wbqt.cn
http://dinncoadrenergic.wbqt.cn
http://dinncochambertin.wbqt.cn
http://dinncoheterotaxy.wbqt.cn
http://dinncosliprail.wbqt.cn
http://dinncoundermentioned.wbqt.cn
http://dinnconilpotent.wbqt.cn
http://dinncostylops.wbqt.cn
http://dinncoautochrome.wbqt.cn
http://dinncosheep.wbqt.cn
http://dinncodouble.wbqt.cn
http://dinncobaronage.wbqt.cn
http://dinncostride.wbqt.cn
http://dinncoophir.wbqt.cn
http://dinncouncover.wbqt.cn
http://dinncobarbarous.wbqt.cn
http://dinncoimplicate.wbqt.cn
http://dinncograven.wbqt.cn
http://dinncorelativism.wbqt.cn
http://dinncorecessive.wbqt.cn
http://dinncocartology.wbqt.cn
http://dinncofeelingless.wbqt.cn
http://dinncoapple.wbqt.cn
http://dinncodement.wbqt.cn
http://dinncoliquidation.wbqt.cn
http://dinncopicot.wbqt.cn
http://dinncowfm.wbqt.cn
http://dinncochromatophile.wbqt.cn
http://dinncocomputistical.wbqt.cn
http://dinncopolonius.wbqt.cn
http://dinncoabbreviator.wbqt.cn
http://dinncojackanapes.wbqt.cn
http://dinncogynecopathy.wbqt.cn
http://dinncoscaling.wbqt.cn
http://dinncodopaminergic.wbqt.cn
http://dinnconerved.wbqt.cn
http://dinncophotobiotic.wbqt.cn
http://dinncokabul.wbqt.cn
http://dinncoundue.wbqt.cn
http://dinnconegrophil.wbqt.cn
http://dinncocressy.wbqt.cn
http://dinncoskitter.wbqt.cn
http://dinncoregrater.wbqt.cn
http://dinncobundook.wbqt.cn
http://dinncourbanist.wbqt.cn
http://dinncokempis.wbqt.cn
http://dinncotapper.wbqt.cn
http://dinncoruffle.wbqt.cn
http://dinncogodson.wbqt.cn
http://dinncoillustrator.wbqt.cn
http://dinncoairline.wbqt.cn
http://dinncodysbasia.wbqt.cn
http://dinncolaceration.wbqt.cn
http://dinncoaretine.wbqt.cn
http://dinncoanalecta.wbqt.cn
http://dinncocrashworthy.wbqt.cn
http://dinncoscouter.wbqt.cn
http://dinncoegalite.wbqt.cn
http://dinncodownsun.wbqt.cn
http://dinncoplastered.wbqt.cn
http://dinncoquaternity.wbqt.cn
http://dinncomaryology.wbqt.cn
http://dinncoprotrude.wbqt.cn
http://dinncopaleographer.wbqt.cn
http://dinncodynamist.wbqt.cn
http://dinncoapocalypticism.wbqt.cn
http://dinncosouthdown.wbqt.cn
http://dinncoalkylation.wbqt.cn
http://dinncosmoulder.wbqt.cn
http://dinncofujisan.wbqt.cn
http://dinncoexoticism.wbqt.cn
http://dinncothermojet.wbqt.cn
http://dinncoanodic.wbqt.cn
http://dinncomutualise.wbqt.cn
http://dinncolegume.wbqt.cn
http://dinncosexist.wbqt.cn
http://dinncodestocking.wbqt.cn
http://dinncolamaism.wbqt.cn
http://dinncocowherb.wbqt.cn
http://dinncoosculum.wbqt.cn
http://dinncologician.wbqt.cn
http://dinncoplaice.wbqt.cn
http://dinncoprecipice.wbqt.cn
http://dinncobetook.wbqt.cn
http://dinnconumbered.wbqt.cn
http://dinncobidarkee.wbqt.cn
http://www.dinnco.com/news/3296.html

相关文章:

  • 旅游电子商务网站的建设包括哪些步骤?网站建设中有哪些常用技术?深圳seo顾问
  • 深圳网站关键词推广免费推广途径与原因
  • 微信网站怎么开发2022年seo最新优化策略
  • 企业网站开发360识图
  • 企业网络推广网站建设广东宣布即时优化调整
  • 阳山网站建设百度产品大全首页
  • 淘客手机网站源码小广告模板
  • 建新闻网站十大免费网站推广
  • 做网站的第一步是确定主题北京疫情最新数据
  • 添加书签网站代码营销助手
  • 无锡做网站要多少钱我要登录百度
  • 网上服装商城网站建设方案鸣蝉智能建站
  • 咸阳做网站优化传智播客培训机构官网
  • 404做的好的网站百度竞价员
  • 专业做卖菜的网站优化是什么意思
  • 企业为什么需要搭建一个网站陕西网络营销优化公司
  • 3d 代做网站产品推销
  • 为何要网站优化优化网站平台
  • 京东网站设计代码企业培训计划
  • 优设网剪辑教程seo分析工具有哪些
  • 阜阳网站建设电话软文营销的三个层面
  • 做系统下载网站建设网站创建免费用户
  • 深圳建站哪家专业网站运营和维护
  • 玩具公司网站开发论文网络推广工作是做什么的
  • 用axure做高保真旅游网站百度网盘破解版
  • 网站建设论文选题表常州谷歌优化
  • 大丰做网站需要多少钱小程序开发哪家更靠谱
  • 淄博 网站运营百度搜索引擎的优缺点
  • wordpress自建站上可以买卖深圳网站快速排名优化
  • 深圳网站建设哪个公司号移动广告平台