Lines Matching refs:rec
573 SensorRecord* rec = mActiveSensors.valueFor(sensor_handle); in threadLoop() local
574 if (rec != NULL) { in threadLoop()
575 mMapFlushEventsToConnections[i] = rec->getFirstPendingFlushConnection(); in threadLoop()
576 rec->removeFirstPendingFlushConnection(); in threadLoop()
802 SensorRecord* rec = mActiveSensors.valueAt(i); in cleanupConnection() local
803 ALOGE_IF(!rec, "mActiveSensors[%zu] is null (handle=0x%08x)!", i, handle); in cleanupConnection()
808 if (rec && rec->removeConnection(connection)) { in cleanupConnection()
812 delete rec; in cleanupConnection()
852 SensorRecord* rec = mActiveSensors.valueFor(handle); in enable() local
853 if (rec == 0) { in enable()
854 rec = new SensorRecord(connection); in enable()
855 mActiveSensors.add(handle, rec); in enable()
860 if (rec->addConnection(connection)) { in enable()
919 rec->getNumConnections() > 1) { in enable()
924 rec->addPendingFlushConnection(connection.get()); in enable()
996 SensorRecord* rec = mActiveSensors.valueFor(handle); in cleanupWithoutDisableLocked() local
997 if (rec) { in cleanupWithoutDisableLocked()
1007 if (rec->removeConnection(connection)) { in cleanupWithoutDisableLocked()
1010 delete rec; in cleanupWithoutDisableLocked()
1069 SensorRecord* rec = mActiveSensors.valueFor(handle); in flushSensor() local
1070 if (rec != NULL) rec->addPendingFlushConnection(connection); in flushSensor()