Home
last modified time | relevance | path

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

/frameworks/native/services/sensorservice/
DSensorDevice.cpp355 const sensor_t& prevSensor = oldSensorList[j]; in sensorHandlesChanged() local
356 if (prevSensor.handle == newSensor.handle) { in sensorHandlesChanged()
358 if (!sensorIsEquivalent(prevSensor, newSensor)) { in sensorHandlesChanged()
375 bool SensorDevice::sensorIsEquivalent(const sensor_t& prevSensor, const sensor_t& newSensor) { in sensorIsEquivalent() argument
377 if (prevSensor.handle != newSensor.handle || in sensorIsEquivalent()
378 (strcmp(prevSensor.vendor, newSensor.vendor) != 0) || in sensorIsEquivalent()
379 (strcmp(prevSensor.stringType, newSensor.stringType) != 0) || in sensorIsEquivalent()
380 (strcmp(prevSensor.requiredPermission, newSensor.requiredPermission) != 0) || in sensorIsEquivalent()
381 (prevSensor.version != newSensor.version) || in sensorIsEquivalent()
382 (prevSensor.type != newSensor.type) || in sensorIsEquivalent()
[all …]
DSensorDevice.h230 static bool sensorIsEquivalent(const sensor_t& prevSensor, const sensor_t& newSensor);