Lines Matching refs:limit
272 void ContextHub::PrintAllEvents(unsigned int limit) { in PrintAllEvents() argument
273 bool continuous = (limit == 0); in PrintAllEvents()
274 auto event_printer = [&limit, continuous](const SensorEvent& event) -> bool { in PrintAllEvents()
276 return (continuous || --limit > 0); in PrintAllEvents()
330 void ContextHub::PrintSensorEvents(SensorType type, int limit) { in PrintSensorEvents() argument
331 bool continuous = (limit == 0); in PrintSensorEvents()
332 auto event_printer = [type, &limit, continuous](const SensorEvent& event) -> bool { in PrintSensorEvents()
336 limit -= event.GetNumSamples(); in PrintSensorEvents()
338 return (continuous || limit > 0); in PrintSensorEvents()
343 void ContextHub::PrintSensorEvents(const std::vector<SensorSpec>& sensors, int limit) { in PrintSensorEvents() argument
344 bool continuous = (limit == 0); in PrintSensorEvents()
345 auto event_printer = [&sensors, &limit, continuous](const SensorEvent& event) -> bool { in PrintSensorEvents()
351 limit -= event.GetNumSamples(); in PrintSensorEvents()
355 return (continuous || limit > 0); in PrintSensorEvents()