Home
last modified time | relevance | path

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

/frameworks/native/services/sensorservice/
DSensorDevice.cpp286 const sensor_t& prevSensor = oldSensorList[j]; in sensorHandlesChanged() local
287 if (prevSensor.handle == newSensor.handle) { in sensorHandlesChanged()
289 if (!sensorIsEquivalent(prevSensor, newSensor)) { 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()
312 (prevSensor.version != newSensor.version) || in sensorIsEquivalent()
313 (prevSensor.type != newSensor.type) || in sensorIsEquivalent()
[all …]
DSensorDevice.h197 static bool sensorIsEquivalent(const sensor_t& prevSensor, const sensor_t& newSensor);