Home
last modified time | relevance | path

Searched refs:injectedEvent (Results 1 – 1 of 1) sorted by relevance

/hardware/interfaces/sensors/2.0/vts/functional/
DVtsHalSensorsV2_0TargetTest.cpp387 Event injectedEvent; in TEST_P() local
388 injectedEvent.timestamp = android::elapsedRealtimeNano(); in TEST_P()
390 injectedEvent.u.vec3 = data; in TEST_P()
396 injectedEvent.sensorType = s.type; in TEST_P()
397 injectedEvent.sensorHandle = s.sensorHandle; in TEST_P()
398 EXPECT_EQ(Result::OK, getSensors()->injectSensorData(injectedEvent)); in TEST_P()
415 ASSERT_EQ(lastEvent.timestamp, injectedEvent.timestamp); in TEST_P()
416 ASSERT_EQ(lastEvent.u.vec3.x, injectedEvent.u.vec3.x); in TEST_P()
417 ASSERT_EQ(lastEvent.u.vec3.y, injectedEvent.u.vec3.y); in TEST_P()
418 ASSERT_EQ(lastEvent.u.vec3.z, injectedEvent.u.vec3.z); in TEST_P()
[all …]