Home
last modified time | relevance | path

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

/frameworks/native/services/sensorservice/
DSensorDevice.cpp346 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()
[all …]
DSensorDevice.h226 static bool sensorIsEquivalent(const sensor_t& prevSensor, const sensor_t& newSensor);