Home
last modified time | relevance | path

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

/system/chre/core/
Dsensor.cc28 Sensor::Sensor(PlatformSensor&& platformSensor) in Sensor() argument
29 : mPlatformSensor(std::move(platformSensor)) {} in Sensor()
/system/chre/platform/slpi/
Dplatform_sensor.cc251 PlatformSensor platformSensor; in addPlatformSensor() local
252 platformSensor.sensorId = sensorInfo.SensorID; in addPlatformSensor()
253 platformSensor.dataType = sensorInfo.DataType; in addPlatformSensor()
254 platformSensor.calType = calType; in addPlatformSensor()
255 size_t bytesToCopy = std::min(sizeof(platformSensor.sensorName) - 1, in addPlatformSensor()
257 memcpy(platformSensor.sensorName, sensorInfo.SensorName, bytesToCopy); in addPlatformSensor()
258 platformSensor.sensorName[bytesToCopy] = '\0'; in addPlatformSensor()
259 platformSensor.minInterval = static_cast<uint64_t>( in addPlatformSensor()
265 platformSensor.lastEvent = allocateLastEvent(sensorType, in addPlatformSensor()
266 &platformSensor.lastEventSize); in addPlatformSensor()
[all …]
/system/chre/core/include/chre/core/
Dsensor.h38 Sensor(PlatformSensor&& platformSensor);