[VTS10.0R3]VtsHalSensorsV2_0Target

问题描述

VtsHalSensorsV2_0Target
VtsHalSensorsV2_0Target#SensorsHidlTest.AccelerometerBatchingOperation(default)_64bit
VtsHalSensorsV2_0Target#SensorsHidlTest.MagnetometerBatchingOperation(default)_64bit
VtsHalSensorsV2_0Target#SensorsHidlTest.AccelerometerBatchingOperation(default)_32bit
VtsHalSensorsV2_0Target#SensorsHidlTest.MagnetometerBatchingOperation(default)_32bit
Fail:
hardware/interfaces/sensors/common/vts/utils/SensorsHidlTestBase.cpp:583 Expected: (nEvent) > ((size_t)(minFifoCount * 9 / 10)), actual: 2700 vs 2700 03-16 15:16:25 I/TestFailureListener: FailureListener.testFailed
Fail:
hardware/interfaces/sensors/common/vts/utils/SensorsHidlTestBase.cpp:583 Expected: (nEvent) > ((size_t)(minFifoCount * 9 / 10)), actual: 540 vs 540 03-16 15:16:25 I/TestFailureListener: FailureListener.testFailed

解决方案

1.把/vendor/mediatek/proprietary/custom/$(you_project)/hal/sensors/sensor/hwmsen_custom.h文件中的
#define ACCELEROMETER_FIFO_MAX_COUNT 4500
#define ACCELEROMETER_FIFO_RESERVE_COUNT 3000
改为:
#define ACCELEROMETER_FIFO_MAX_COUNT 0
#define ACCELEROMETER_FIFO_RESERVE_COUNT 0把
#define MAGNETOMETER_FIFO_MAX_COUNT 4500
#define MAGNETOMETER_FIFO_RESERVE_COUNT 600
改为:
#define MAGNETOMETER_FIFO_MAX_COUNT 0
#define MAGNETOMETER_FIFO_RESERVE_COUNT 0

2、如果在hwmsen_custom.h中没有上面的宏,则把/vendor/mediatek/proprietary/hardware/sensor/sensors-1.0/SensorList.cpp
文件中找到对应的宏并把宏的值改为0。

3、按照上面步骤进行修改,如果测试还是没有通过,则请使用adb命令抓取sensor的dump信息,并把dumpsys_sensorservice.log上传。

adb命令如下:
adb shell dumpsys sensorservice > dumpsys_sensorservice.log

作者: RESSRC

个人资源站

发表评论

邮箱地址不会被公开。 必填项已用*标注

此站点使用Akismet来减少垃圾评论。了解我们如何处理您的评论数据