Home
last modified time | relevance | path

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

/device/google/contexthub/util/nanotool/
Dsensorevent.cpp33 SensorEvent *sensor_event = nullptr; in FromBytes() local
51 sensor_event = new TripleAxisSensorEvent(); in FromBytes()
58 sensor_event = new SingleAxisSensorEvent(); in FromBytes()
79 sensor_event = new SingleAxisIntSensorEvent(); in FromBytes()
83 sensor_event = new CompressedTripleAxisSensorEvent(); in FromBytes()
91 if (sensor_event && in FromBytes()
92 (!sensor_event->Populate(buffer) || !sensor_event->SizeIsValid())) { in FromBytes()
94 delete sensor_event; in FromBytes()
95 sensor_event = nullptr; in FromBytes()
98 return std::unique_ptr<SensorEvent>(sensor_event); in FromBytes()
Dcontexthub.cpp563 SensorEvent *sensor_event = reinterpret_cast<SensorEvent*>( in ReadSensorEvents() local
565 keep_going = callback(*sensor_event); in ReadSensorEvents()