Lines Matching full:reading
87 // Returns true if this is the first successful reading
89 bool updateReading(double reading, int raw) in updateReading() argument
98 // Sensors can use "nan" to indicate unavailable reading in updateReading()
99 if (!(std::isfinite(reading))) in updateReading()
105 << ": Missing reading, byte=" << raw in updateReading()
106 << ", Reading counts good=" << numReadings in updateReading()
122 << ": Recovered reading, value=" << reading << " byte=" in updateReading()
123 << raw << ", Reading counts good=" << numReadings in updateReading()
128 // Initialize min/max if the first successful reading in updateReading()
132 << ": First reading, value=" << reading << " byte=" << raw in updateReading()
135 minValue = reading; in updateReading()
136 maxValue = reading; in updateReading()
144 if (reading < minValue) in updateReading()
147 << ": Lowest reading, value=" << reading in updateReading()
150 minValue = reading; in updateReading()
153 if (reading > maxValue) in updateReading()
156 << ": Highest reading, value=" << reading in updateReading()
159 maxValue = reading; in updateReading()
206 bool updateReading(size_t index, double reading, int raw) in updateReading() argument
209 return entries[index].updateReading(reading, raw); in updateReading()
422 // TODO: Add support for additional reading types as needed in getSensorEventTypeFromPath()
423 return 0x1; // reading type = threshold in getSensorEventTypeFromPath()