615 lines
22 KiB
JSON
615 lines
22 KiB
JSON
{
|
|
"version": "1.0",
|
|
"product": "rodin",
|
|
"testitems": [
|
|
{
|
|
"name": "home_version_info_test",
|
|
"caption": "版本信息测试",
|
|
"config": {
|
|
"eseNFC_chip_model": "sn220",
|
|
"eseNFC_chip_cn_total_mem": 1010212,
|
|
"eseNFC_chip_gl_total_mem": 1010212
|
|
}
|
|
},
|
|
{
|
|
"name": "home_sim_card_check_test",
|
|
"caption": "SIM卡测试"
|
|
},
|
|
{
|
|
"name": "home_vibrator_check_test",
|
|
"caption": "震动测试"
|
|
},
|
|
{
|
|
"name": "home_led_test",
|
|
"title": "cit_color_leds_check_title",
|
|
"summary": "cit_color_leds_check_summery",
|
|
"caption": "LED灯测试",
|
|
"config": {
|
|
"support_checked_leds": [
|
|
{
|
|
"name": "cit_batterylight_green",
|
|
"type": "colorful_power_led",
|
|
"light_effect_path": "/sys/class/leds/aw21024_led/effect",
|
|
"light_effect_path_val": 3
|
|
},
|
|
{
|
|
"name": "cit_batterylight_red",
|
|
"type": "colorful_power_led",
|
|
"light_effect_path": "/sys/class/leds/aw21024_led/effect",
|
|
"light_effect_path_val": 2
|
|
},
|
|
{
|
|
"name": "cit_batterylight_blue",
|
|
"type": "colorful_power_led",
|
|
"light_effect_path": "/sys/class/leds/aw21024_led/effect",
|
|
"light_effect_path_val": 4
|
|
},
|
|
{
|
|
"name": "cit_batterylight_rgb_all",
|
|
"type": "colorful_power_led",
|
|
"light_effect_path": "/sys/class/leds/aw21024_led/effect",
|
|
"light_effect_path_val": 1
|
|
},
|
|
{
|
|
"name": "cit_batterylight_rgb1",
|
|
"type": "colorful_rgb_led",
|
|
"light_effect_path": "/sys/class/leds/aw21024_led/rgbcolor",
|
|
"light_effect_path_val": "0x03 0xffffff"
|
|
},
|
|
{
|
|
"name": "cit_batterylight_rgb2",
|
|
"type": "colorful_rgb_led",
|
|
"light_effect_path": "/sys/class/leds/aw21024_led/rgbcolor",
|
|
"light_effect_path_val": "0x04 0xffffff"
|
|
},
|
|
{
|
|
"name": "cit_batterylight_rgb3",
|
|
"type": "colorful_rgb_led",
|
|
"light_effect_path": "/sys/class/leds/aw21024_led/rgbcolor",
|
|
"light_effect_path_val": "0x05 0xffffff"
|
|
},
|
|
{
|
|
"name": "cit_batterylight_rgb4",
|
|
"type": "colorful_rgb_led",
|
|
"light_effect_path": "/sys/class/leds/aw21024_led/rgbcolor",
|
|
"light_effect_path_val": "0x06 0xffffff"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"name": "home_keyboard_check_test",
|
|
"caption": "按键测试",
|
|
"config": {
|
|
"support_check_keys": [
|
|
"volumeUp_down",
|
|
"volumeUp_up",
|
|
"volumeDown_down",
|
|
"volumeDown_up",
|
|
"power_down",
|
|
"power_up"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"name": "home_lcdlight_test",
|
|
"caption": "背光灯测试",
|
|
"config": {
|
|
"type": "screen_brightness",
|
|
"min_brightness": 2,
|
|
"max_brightness": 2047
|
|
}
|
|
},
|
|
{
|
|
"name": "home_first_camera_flash_test",
|
|
"caption": "闪光灯测试",
|
|
"title": "test_flash",
|
|
"summary": "test_flash",
|
|
"config": {
|
|
"type": "general_camera_flash",
|
|
"torch_node_path": "/sys/class/flashlight_core/flashlight/torchbrightness",
|
|
"min_brightness":50,
|
|
"max_brightness": 100
|
|
}
|
|
},
|
|
{
|
|
"name": "home_touch_panel_test",
|
|
"caption": "触摸屏测试"
|
|
},
|
|
{
|
|
"name": "home_display_test",
|
|
"caption": "屏幕显示测试"
|
|
},
|
|
{
|
|
"name": "home_audio_ear_piece_test",
|
|
"caption": "听筒测试"
|
|
},
|
|
{
|
|
"name": "home_audio_speaker_test",
|
|
"caption": "主扬声器测试",
|
|
"title": "test_bottom_speaker",
|
|
"summary": "test_bottom_speaker",
|
|
"config": {
|
|
"audio_params": "speaker_number=bottom"
|
|
}
|
|
},
|
|
{
|
|
"name": "home_audio_top_speaker_test",
|
|
"caption": "top扬声器测试",
|
|
"title": "test_top_speaker",
|
|
"summary": "test_top_speaker",
|
|
"config": {
|
|
"audio_params": "speaker_number=top"
|
|
}
|
|
},
|
|
{
|
|
"name": "home_audio_main_mic_test",
|
|
"caption": "main mic测试",
|
|
"title": "test_main_mic",
|
|
"summary": "test_main_mic",
|
|
"config": {
|
|
"mic_type_params": "main_ns",
|
|
"mic_tip_params": "main_mic_check_record_tip"
|
|
}
|
|
},
|
|
{
|
|
"name": "home_audio_top_mic_test",
|
|
"caption": "top mic测试",
|
|
"title": "test_top_mic",
|
|
"summary": "test_top_mic",
|
|
"config": {
|
|
"mic_type_params": "top_ns",
|
|
"mic_tip_params": "top_mic_check_record_tip"
|
|
}
|
|
},
|
|
{
|
|
"name": "home_audio_back_mic_test",
|
|
"caption": "back mic测试",
|
|
"title": "test_back_mic",
|
|
"summary": "test_back_mic",
|
|
"config": {
|
|
"mic_type_params": "back_ns",
|
|
"mic_tip_params": "back_mic_check_record_tip"
|
|
}
|
|
},
|
|
{
|
|
"name": "home_audio_head_set_test",
|
|
"caption": "耳机测试",
|
|
"config": {
|
|
"head_set_config": "type-c"
|
|
}
|
|
},
|
|
{
|
|
"name": "home_wifi_scan_test",
|
|
"caption": "WIFI扫描测试"
|
|
},
|
|
{
|
|
"name": "home_wifi_address_test",
|
|
"caption": "WIFI地址测试"
|
|
},
|
|
{
|
|
"name": "home_bt_scan_test",
|
|
"caption": "BT扫描测试"
|
|
},
|
|
{
|
|
"name": "home_bt_address_test",
|
|
"caption": "BT地址测试"
|
|
},
|
|
{
|
|
"name": "home_sensor_accelermeter_test",
|
|
"caption": "加速度感应器测试"
|
|
},
|
|
{
|
|
"name": "home_sensor_gyroscope_test",
|
|
"caption": "陀螺仪感应器测试"
|
|
},
|
|
{
|
|
"name": "home_sensor_magnetic_test",
|
|
"caption": "磁场感应器测试"
|
|
},
|
|
{
|
|
"name": "home_sensor_proximity_test",
|
|
"caption": "距离感应器测试"
|
|
},
|
|
{
|
|
"name": "home_sensor_flick_test",
|
|
"caption": "Flicker感应器测试"
|
|
},
|
|
{
|
|
"name": "home_sensor_light_test",
|
|
"caption": "光线感应器测试",
|
|
"config": {
|
|
"sensor_light_val_path_config": "/sys/class/mi_display/disp-DSI-0/brightness_clone"
|
|
}
|
|
},
|
|
{
|
|
"name": "home_rear_main_camera_test",
|
|
"caption": "后置主相机测试",
|
|
"config": {
|
|
"camera_id_rear_main": 0
|
|
}
|
|
},
|
|
{
|
|
"name": "home_front_main_test",
|
|
"caption": "前置相机测试",
|
|
"config": {
|
|
"camera_id_front_main": 1
|
|
}
|
|
},
|
|
{
|
|
"name": "home_rear_ultra_camera_test",
|
|
"caption": "广角ultra相机测试",
|
|
"config": {
|
|
"camera_id_rear_ultra": 21
|
|
}
|
|
},
|
|
{
|
|
"name":"home_battery_test",
|
|
"caption":"电池测试",
|
|
"config":{
|
|
"support_dual_connector":true,
|
|
"battery_dual_connector_path_config":"/sys/class/power_supply/usb/battcont_online",
|
|
"battery_id_path_config":"/sys/class/power_supply/bms/resistance_id",
|
|
"battery_chip_ok_path_config":"/sys/class/power_supply/bms/chip_ok",
|
|
"battery_autnentic_path_config":"/sys/class/power_supply/bms/authentic"
|
|
}
|
|
},
|
|
{
|
|
"name": "home_charger_test",
|
|
"caption": "充电器测试",
|
|
"config": {
|
|
"support_pd_charger": true,
|
|
"charger_type_path_config": "/sys/class/power_supply/usb/real_type",
|
|
"cc_orientation_path_config": "/sys/class/power_supply/usb/typec_cc_orientation"
|
|
}
|
|
},
|
|
{
|
|
"name": "home_otg_test",
|
|
"caption": "OTG",
|
|
"config": {
|
|
"cc_orientation_path_config": "/sys/class/power_supply/usb/typec_cc_orientation"
|
|
}
|
|
},
|
|
{
|
|
"name": "home_nfc_test",
|
|
"caption": "NFC测试"
|
|
},
|
|
{
|
|
"name": "home_sensor_gps_test",
|
|
"caption": "GPS测试"
|
|
},
|
|
{
|
|
"name": "home_sensor_sar_data_collect_check",
|
|
"caption": "SAR Sensor数据采集测试",
|
|
"config": {
|
|
"region_config": [
|
|
{
|
|
"region_name": "global",
|
|
"sar_sensor_num": 1,
|
|
"show_fake_cali_bt": true,
|
|
"sar_sensors_config": [
|
|
{
|
|
"sar_sensor_id": 33171015,
|
|
"sar_chanel_total_num": 15,
|
|
"need_check_set_config": [
|
|
0
|
|
],
|
|
"threshold_check_data_config": [
|
|
"-300, 300,8000,150000"
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"region_name": "cn",
|
|
"sar_sensor_num": 1,
|
|
"show_fake_cali_bt": true,
|
|
"sar_sensors_config": [
|
|
{
|
|
"sar_sensor_id": 33171015,
|
|
"sar_chanel_total_num": 15,
|
|
"need_check_set_config": [
|
|
0
|
|
],
|
|
"threshold_check_data_config": [
|
|
"-300, 300,8000,150000"
|
|
]
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"name": "home_fp_sensor_check_test",
|
|
"caption": "指纹传感器测试"
|
|
},
|
|
{
|
|
"name": "home_fp_fod_check_test",
|
|
"caption": "屏下指纹录入测试",
|
|
"config": {
|
|
"finger_print_tips_view_color_generation": 3,
|
|
"finger_print_tips_view_shape": "circle",
|
|
"fp_fod_test_hbm_switch_on_cmd": "echo 9 1 > /sys/class/mi_display/disp-DSI-0/disp_param",
|
|
"fp_fod_test_hbm_switch_off_cmd": "echo 9 0 > /sys/class/mi_display/disp-DSI-0/disp_param"
|
|
}
|
|
}
|
|
],
|
|
"auxiliaryTestItems": [
|
|
{
|
|
"name":"wlan_tool_test",
|
|
"caption":"WLAN测试工具"
|
|
},
|
|
{
|
|
"name": "wlan_sniffer_tool_test",
|
|
"caption": "WLAN抓包测试工具"
|
|
},
|
|
{
|
|
"name":"accelermeter_sensor_cali",
|
|
"caption":"加速度感应器校准"
|
|
},
|
|
{
|
|
"name":"gyroscope_sensor_cali",
|
|
"caption":"陀螺仪感应器校准"
|
|
},
|
|
{
|
|
"name": "fp_fod_cali",
|
|
"caption": "屏下指纹校准",
|
|
"config":{
|
|
"support_frame_cmds":true,
|
|
"fod_cali_cmds":[
|
|
"service call SurfaceFlinger 31111 i32 1",
|
|
"service call SurfaceFlinger 31111 i32 0"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"name":"camera_cali",
|
|
"caption":"相机校准"
|
|
},
|
|
{
|
|
"name":"touch_pointer_location",
|
|
"caption":"触摸屏测试"
|
|
},
|
|
{
|
|
"name":"audio_speaker_cali",
|
|
"caption":"扬声器校准",
|
|
"config":{
|
|
"check_second_smart_pa":true,
|
|
"speaker_calibration_cmds":["spkcal_88263s_o10 -c"]
|
|
}
|
|
},
|
|
{
|
|
"name": "sar_sensor_collect_cali",
|
|
"caption": "SAR感应器数据收集和校准",
|
|
"config": {
|
|
"region_config": [
|
|
{
|
|
"region_name": "global",
|
|
"data_config": {
|
|
"sar_sensor_num": 1,
|
|
"sar_sensors_config": [
|
|
{
|
|
"sar_sensor_id": 33171015,
|
|
"sar_chanel_total_num": 15,
|
|
"need_check_set_config": [
|
|
0
|
|
],
|
|
"threshold_check_data_config": [
|
|
"-300, 300,8000,150000"
|
|
]
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"region_name": "cn",
|
|
"data_config": {
|
|
"sar_sensor_num": 1,
|
|
"sar_sensors_config": [
|
|
{
|
|
"sar_sensor_id": 33171015,
|
|
"sar_chanel_total_num": 15,
|
|
"need_check_set_config": [
|
|
0
|
|
],
|
|
"threshold_check_data_config": [
|
|
"-300, 300,8000,150000"
|
|
]
|
|
}
|
|
]
|
|
}
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"name": "sar_sensor_mtk_authenti",
|
|
"caption": "Sar mtk authenti 测试"
|
|
},
|
|
{
|
|
"name": "query_cust_img_version",
|
|
"caption": "CUST_IMG版本检测工具"
|
|
}
|
|
],
|
|
"autoTestItems": [
|
|
{
|
|
"name": "auto_test_power_ledlight",
|
|
"caption": "自动化测试LED电源灯",
|
|
"config": {
|
|
"support_checked_leds": [
|
|
{
|
|
"led_type": "general_led",
|
|
"led_color":"cit_batterylight_red",
|
|
"open_cmds": [
|
|
"echo 1 > /sys/class/leds/aw21024_led/hwen",
|
|
"echo 2 > /sys/class/leds/aw21024_led/effect"
|
|
],
|
|
"close_cmds": [
|
|
"echo 0 > /sys/class/leds/aw21024_led/effect",
|
|
"echo 0 > /sys/class/leds/aw21024_led/hwen"
|
|
]
|
|
},
|
|
{
|
|
"led_type": "general_led",
|
|
"led_color":"cit_batterylight_green",
|
|
"open_cmds": [
|
|
"echo 1 > /sys/class/leds/aw21024_led/hwen",
|
|
"echo 3 > /sys/class/leds/aw21024_led/effect"
|
|
],
|
|
"close_cmds": [
|
|
"echo 0 > /sys/class/leds/aw21024_led/effect",
|
|
"echo 0 > /sys/class/leds/aw21024_led/hwen"
|
|
]
|
|
},
|
|
{
|
|
"led_type": "general_led",
|
|
"led_color":"cit_batterylight_blue",
|
|
"open_cmds": [
|
|
"echo 1 > /sys/class/leds/aw21024_led/hwen",
|
|
"echo 4 > /sys/class/leds/aw21024_led/effect"
|
|
],
|
|
"close_cmds": [
|
|
"echo 0 > /sys/class/leds/aw21024_led/effect",
|
|
"echo 0 > /sys/class/leds/aw21024_led/hwen"
|
|
]
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"name": "auto_test_configed_bottom_speaker",
|
|
"caption": "自动化测试底部扬声器检测",
|
|
"title": "test_bottom_speaker",
|
|
"summary": "cit_audio_bottom_speaker_summary",
|
|
"config": {
|
|
"audio_params": "speaker_number=bottom",
|
|
"auto_speaker_item_name": "TEST_BOTTOMSPEAKER"
|
|
}
|
|
},
|
|
{
|
|
"name": "auto_test_configed_top_speaker",
|
|
"caption": "自动化测试顶部扬声器检测",
|
|
"title": "test_top_speaker",
|
|
"summary": "cit_audio_top_speaker_summary",
|
|
"config": {
|
|
"audio_params": "speaker_number=top",
|
|
"auto_speaker_item_name": "TEST_TOPSPEAKER"
|
|
}
|
|
},
|
|
{
|
|
"name": "auto_test_configed_main_mic_to_earpiece",
|
|
"caption": "自动化测试底部主mic到听筒回环",
|
|
"title": "cit_audio_lb_mainmic_to_earpiece_title",
|
|
"summary": "cit_audio_lb_summary_mainmic_to_earpiece",
|
|
"config": {
|
|
"mic_type_params": "main_ns",
|
|
"auto_test_item_name": "TEST_MAINMIC_TO_EARPIECE"
|
|
}
|
|
},
|
|
{
|
|
"name": "auto_test_configed_top_mic_to_earpiece",
|
|
"caption": "自动化测试顶部mic到听筒回环",
|
|
"title": "cit_audio_lb_topmic_to_earpiece_title",
|
|
"summary": "cit_audio_lb_summary_topmic_to_earpiece",
|
|
"config": {
|
|
"mic_type_params": "top_ns",
|
|
"auto_test_item_name": "TEST_TOPMIC_TO_EARPIECE"
|
|
}
|
|
},
|
|
{
|
|
"name": "auto_test_configed_back_mic_to_earpiece",
|
|
"caption": "自动化测试背部mic到听筒回环",
|
|
"title": "cit_audio_lb_backmic_to_earpiece_title",
|
|
"summary": "cit_audio_lb_summary_backmic_to_earpiece",
|
|
"config": {
|
|
"mic_type_params": "back_ns",
|
|
"auto_test_item_name": "TEST_BACKMIC_TO_EARPIECE"
|
|
}
|
|
},
|
|
{
|
|
"name": "auto_test_configed_aux_mic_to_earpiece",
|
|
"caption": "自动化测试辅助mic到听筒回环",
|
|
"title": "cit_audio_lb_auxmic_to_earpiece_title",
|
|
"summary": "cit_audio_lb_summary_auxmic_to_earpiece",
|
|
"config": {
|
|
"mic_type_params": "aux_ns",
|
|
"auto_test_item_name": "TEST_AUX_MIC_TO_EARPIECE"
|
|
}
|
|
},
|
|
{
|
|
"name": "auto_test_battery_charge_logger",
|
|
"caption": "自动化测试拷贝充电日志",
|
|
"config": {
|
|
"battery_charge_logger_path_config_a": "/data/vendor/charge_logger/charge_logger_a.csv",
|
|
"battery_charge_logger_path_config_b": "/data/vendor/charge_logger/charge_logger_b.csv"
|
|
}
|
|
},
|
|
{
|
|
"name": "auto_test_battery_dual_connector",
|
|
"caption": "自动化测试电池双连接器",
|
|
"config": {
|
|
"battery_dual_connector_path_config": "/sys/class/power_supply/usb/battcont_online",
|
|
"battery_chip_ok_path_config": "/sys/class/power_supply/bms/chip_ok"
|
|
}
|
|
},
|
|
{
|
|
"name": "auto_test_rear_flash",
|
|
"caption": "后摄闪光灯测试",
|
|
"config": {
|
|
"support_checked_flashes": [
|
|
{
|
|
"name": "cit_torch_first",
|
|
"torch_node_path": "/sys/class/flashlight_core/flashlight/torchbrightness",
|
|
"brightness": 115
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"name": "auto_test_camera_hardware",
|
|
"caption": "自动化测试相机摄像头硬件相关功能",
|
|
"config": {
|
|
"cameras_hardware_check_config": [
|
|
{
|
|
"camera_id": 0,
|
|
"camera_name": "Wide",
|
|
"function_parameter": [
|
|
0,
|
|
1
|
|
]
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"name": "auto_test_camera_fuseid",
|
|
"caption": "摄像头FUSEID信息",
|
|
"config": {
|
|
"support_cam_fuseid_config": [
|
|
{
|
|
"name": "rearMain",
|
|
"fuseid_sysprop": [
|
|
"camera.sensor.rearMain.fuseID",
|
|
"vendor.camera.sensor.rearMain.fuseID"
|
|
]
|
|
},
|
|
{
|
|
"name": "frontMain",
|
|
"fuseid_sysprop": [
|
|
"vendor.camera.sensor.frontMain.fuseID"
|
|
]
|
|
},
|
|
{
|
|
"name": "rearUltra",
|
|
"fuseid_sysprop": [
|
|
"camera.sensor.rearUltra.fuseID",
|
|
"vendor.camera.sensor.rearUltra.fuseID"
|
|
]
|
|
}
|
|
]
|
|
}
|
|
}
|
|
]
|
|
}
|