Home
last modified time | relevance | path

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

/frameworks/native/services/sensorservice/
DSensorDevice.cpp284 const sensor_t& newSensor = newSensorList[i]; in sensorHandlesChanged() local
287 if (prevSensor.handle == newSensor.handle) { in sensorHandlesChanged()
289 if (!sensorIsEquivalent(prevSensor, newSensor)) { in sensorHandlesChanged()
290 ALOGI("Sensor %s not equivalent to previous version", newSensor.name); in sensorHandlesChanged()
299 ALOGI("Sensor %s (handle %d) did not exist before", newSensor.name, newSensor.handle); in sensorHandlesChanged()
306 bool SensorDevice::sensorIsEquivalent(const sensor_t& prevSensor, const sensor_t& newSensor) { in sensorIsEquivalent() argument
308 if (prevSensor.handle != newSensor.handle || in sensorIsEquivalent()
309 (strcmp(prevSensor.vendor, newSensor.vendor) != 0) || in sensorIsEquivalent()
310 (strcmp(prevSensor.stringType, newSensor.stringType) != 0) || in sensorIsEquivalent()
311 (strcmp(prevSensor.requiredPermission, newSensor.requiredPermission) != 0) || in sensorIsEquivalent()
[all …]
DSensorDevice.h197 static bool sensorIsEquivalent(const sensor_t& prevSensor, const sensor_t& newSensor);