Home
last modified time | relevance | path

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

/frameworks/native/services/sensorservice/
DSensorDevice.cpp200 const sensor_t& prevSensor = oldSensorList[j]; in sensorHandlesChanged() local
201 if (prevSensor.handle == newSensor.handle) { in sensorHandlesChanged()
203 if (!sensorIsEquivalent(prevSensor, newSensor)) { in sensorHandlesChanged()
220 bool SensorDevice::sensorIsEquivalent(const sensor_t& prevSensor, const sensor_t& newSensor) { in sensorIsEquivalent() argument
222 if (prevSensor.handle != newSensor.handle || in sensorIsEquivalent()
223 (strcmp(prevSensor.vendor, newSensor.vendor) != 0) || in sensorIsEquivalent()
224 (strcmp(prevSensor.stringType, newSensor.stringType) != 0) || in sensorIsEquivalent()
225 (strcmp(prevSensor.requiredPermission, newSensor.requiredPermission) != 0) || in sensorIsEquivalent()
226 (prevSensor.version != newSensor.version) || (prevSensor.type != newSensor.type) || in sensorIsEquivalent()
227 (std::abs(prevSensor.maxRange - newSensor.maxRange) > 0.001f) || in sensorIsEquivalent()
[all …]
DSensorDevice.h223 static bool sensorIsEquivalent(const sensor_t& prevSensor, const sensor_t& newSensor);