OSDN Git Service

Enlarge buffer size for direct report testing
authorPeng Xu <pengxu@google.com>
Wed, 11 Oct 2017 01:19:18 +0000 (18:19 -0700)
committerPeng Xu <pengxu@google.com>
Thu, 12 Oct 2017 00:26:12 +0000 (00:26 +0000)
This change is part of "Sensor direct report test - gralloc support".

Bug: 67439052
Test: vts test no longer fail on sailfish device
Change-Id: Id67a2a181b2d8847e2b1b9dbe46f5186e97e8563
Merged-In: Ibe1d076c24dc2cfe61dfd19aa5055c9075aa9e14

sensors/1.0/vts/functional/VtsHalSensorsV1_0TargetTest.cpp

index a6f6852..e4736bc 100644 (file)
@@ -1224,7 +1224,7 @@ TEST_F(SensorsHidlTest, MagnetometerBatchingOperation) {
 void SensorsHidlTest::testDirectReportOperation(
     SensorType type, SharedMemType memType, RateLevel rate, const SensorEventsChecker &checker) {
   constexpr size_t kEventSize = static_cast<size_t>(SensorsEventFormatOffset::TOTAL_LENGTH);
-  constexpr size_t kNEvent = 500;
+  constexpr size_t kNEvent = 4096;
   constexpr size_t kMemSize = kEventSize * kNEvent;
 
   constexpr float kNormalNominal = 50;