Lines Matching refs:rec
829 SensorRecord* rec = mActiveSensors.valueFor(sensor_handle); in threadLoop() local
830 if (rec != nullptr) { in threadLoop()
831 mMapFlushEventsToConnections[i] = rec->getFirstPendingFlushConnection(); in threadLoop()
832 rec->removeFirstPendingFlushConnection(); in threadLoop()
1377 SensorRecord* rec = mActiveSensors.valueAt(i); in cleanupConnection() local
1378 ALOGE_IF(!rec, "mActiveSensors[%zu] is null (handle=0x%08x)!", i, handle); in cleanupConnection()
1383 if (rec && rec->removeConnection(connection)) { in cleanupConnection()
1387 delete rec; in cleanupConnection()
1442 SensorRecord* rec = mActiveSensors.valueFor(handle); in enable() local
1443 if (rec == nullptr) { in enable()
1444 rec = new SensorRecord(connection); in enable()
1445 mActiveSensors.add(handle, rec); in enable()
1464 if (rec->addConnection(connection)) { in enable()
1534 rec->getNumConnections() > 1) { in enable()
1539 rec->addPendingFlushConnection(connection.get()); in enable()
1598 SensorRecord* rec = mActiveSensors.valueFor(handle); in cleanupWithoutDisableLocked() local
1599 if (rec) { in cleanupWithoutDisableLocked()
1609 if (rec->removeConnection(connection)) { in cleanupWithoutDisableLocked()
1612 delete rec; in cleanupWithoutDisableLocked()
1671 SensorRecord* rec = mActiveSensors.valueFor(handle); in flushSensor() local
1672 if (rec != nullptr) rec->addPendingFlushConnection(connection); in flushSensor()