您的位置:首页 > 其它

工模-在主界面新增一级菜单的步骤(以SensorBoard为例)

2016-11-16 10:13 801 查看
Step1. string.xml中 添加
<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,以及新增相应的逻辑处理。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  工模