Lines Matching refs:newSensor

346         const sensor_t& newSensor = newSensorList[i];  in sensorHandlesChanged()  local
349 if (prevSensor.handle == newSensor.handle) { in sensorHandlesChanged()
351 if (!sensorIsEquivalent(prevSensor, newSensor)) { in sensorHandlesChanged()
352 ALOGI("Sensor %s not equivalent to previous version", newSensor.name); in sensorHandlesChanged()
361 ALOGI("Sensor %s (handle %d) did not exist before", newSensor.name, newSensor.handle); in sensorHandlesChanged()
368 bool SensorDevice::sensorIsEquivalent(const sensor_t& prevSensor, const sensor_t& newSensor) { in sensorIsEquivalent() argument
370 if (prevSensor.handle != newSensor.handle || in sensorIsEquivalent()
371 (strcmp(prevSensor.vendor, newSensor.vendor) != 0) || in sensorIsEquivalent()
372 (strcmp(prevSensor.stringType, newSensor.stringType) != 0) || in sensorIsEquivalent()
373 (strcmp(prevSensor.requiredPermission, newSensor.requiredPermission) != 0) || in sensorIsEquivalent()
374 (prevSensor.version != newSensor.version) || in sensorIsEquivalent()
375 (prevSensor.type != newSensor.type) || in sensorIsEquivalent()
376 (std::abs(prevSensor.maxRange - newSensor.maxRange) > 0.001f) || in sensorIsEquivalent()
377 (std::abs(prevSensor.resolution - newSensor.resolution) > 0.001f) || in sensorIsEquivalent()
378 (std::abs(prevSensor.power - newSensor.power) > 0.001f) || in sensorIsEquivalent()
379 (prevSensor.minDelay != newSensor.minDelay) || in sensorIsEquivalent()
380 (prevSensor.fifoReservedEventCount != newSensor.fifoReservedEventCount) || in sensorIsEquivalent()
381 (prevSensor.fifoMaxEventCount != newSensor.fifoMaxEventCount) || in sensorIsEquivalent()
382 (prevSensor.maxDelay != newSensor.maxDelay) || in sensorIsEquivalent()
383 (prevSensor.flags != newSensor.flags)) { in sensorIsEquivalent()