工模-在主界面新增一级菜单的步骤(以SensorBoard为例)
2016-11-16 10:13
801 查看
Step1. string.xml中 添加
Step2. test_config_default.xml中的TestItem属性中添加sensor_board=”false”
如
Step3. ControlCenterActivity.java 中添加相应的资源文件索引mTestName 、设置fulltest_flag,新增fulltest_flag为5的情况(1:fulltest;2:pcbatest;3:kb test;4:ub test;5:sensor_board)。
Step4. ControlCenterService.java 中同步更新标记值fulltest_flag。
private int fulltest_flag = -1;//1:fulltest;2:pcbatest;3:kb test;4:ub test;5:sensor_board
Step5. FactoryTestManager中新增testMode == 5(1:fulltest;2:pcbatest;3:kb test;4:ub test;5:sensor_board)的情况判断分支与处理分支。
Step6. ItemTest.java中更新isSupportSensorBoard标记值,新增sensor_board解析字符串,
Step7. XmlUtil.java中更新isSupportSensorBoard,以及新增相应的逻辑处理。
<string name="sensor_board">Sensor Board</string>
Step2. test_config_default.xml中的TestItem属性中添加sensor_board=”false”
如
<TestItem name="ItemBatteryAndLED" enable="true" auto="false" pcba="true" kb="false" ub="true" sensor_board="false">
Step3. ControlCenterActivity.java 中添加相应的资源文件索引mTestName 、设置fulltest_flag,新增fulltest_flag为5的情况(1:fulltest;2:pcbatest;3:kb test;4:ub test;5:sensor_board)。
Step4. ControlCenterService.java 中同步更新标记值fulltest_flag。
private int fulltest_flag = -1;//1:fulltest;2:pcbatest;3:kb test;4:ub test;5:sensor_board
Step5. FactoryTestManager中新增testMode == 5(1:fulltest;2:pcbatest;3:kb test;4:ub test;5:sensor_board)的情况判断分支与处理分支。
Step6. ItemTest.java中更新isSupportSensorBoard标记值,新增sensor_board解析字符串,
Step7. XmlUtil.java中更新isSupportSensorBoard,以及新增相应的逻辑处理。
相关文章推荐
- k3调拨单中新增一级菜单及二级菜单
- eims系统新增一级目录菜单流程
- 菜单关联步骤
- 微信公众平台开发:自定义菜单调试步骤
- 【荐】JS一级横向滑动,二级竖向下拉的综合菜单
- 在对话框中创建菜单以及快捷菜单的步骤
- 开机速度快也是罪 Windows8新增启动选项菜单
- Android应用主界面底部菜单实现
- MFC基于对话框 创建工具栏 工具栏提示 窗口同步缩放 拦截主界面Enter按下 窗口过程 菜单工具栏按钮变灰
- 微信第三方开发平台——微官网新增模板步骤(代码级)
- 右键弹出菜单 并动态新增菜单子项
- DIV+CSS实现的绿色水平一级菜单代码
- 一级菜单不超过4个汉字或8个字母,以字节数为限制条件,包括汉字和字母(此例汉字默认等于3个字节,字母字符为1个字节)
- Android 双侧侧滑菜单(主界面和菜单都会滑动)
- ViewPager+Fragment 滑动菜单效果 实现步骤
- MOSS列表菜单用JS新增后如何取得当前ID和其它当前环境
- Android学习笔记 一级二级菜单的使用
- vue2.0使用嵌套路由实现页面内容切换/公用一级菜单控制页面内容切换
- 一级菜单与二级菜单整理
- 新增WiFi真机同步与实时预览功能 简化真机调试步骤