Home
last modified time | relevance | path

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

/device/google/contexthub/util/nanotool/
Dsensorevent.cpp35 SensorEvent *sensor_event = nullptr; in FromBytes() local
53 sensor_event = new TripleAxisSensorEvent(); in FromBytes()
61 sensor_event = new SingleAxisSensorEvent(); in FromBytes()
82 sensor_event = new SingleAxisIntSensorEvent(); in FromBytes()
87 sensor_event = new CompressedTripleAxisSensorEvent(); in FromBytes()
95 if (sensor_event && in FromBytes()
96 (!sensor_event->Populate(buffer) || !sensor_event->SizeIsValid())) { in FromBytes()
98 delete sensor_event; in FromBytes()
99 sensor_event = nullptr; in FromBytes()
102 return std::unique_ptr<SensorEvent>(sensor_event); in FromBytes()
Dcontexthub.cpp565 SensorEvent *sensor_event = reinterpret_cast<SensorEvent*>( in ReadSensorEvents() local
567 keep_going = callback(*sensor_event); in ReadSensorEvents()