Lines Matching refs:event
227 for event in events:
228 self.events.append(ProcessLogger.EventScanner(event.name, self.name,
229 event.regex))
242 for event in self.events:
243 event_map[event.name] = event.count
244 event.count = 0
290 for event in self.events:
292 event.ScanForEvent(line, lock=self.lock)
400 self.event_names = set([event.name for event in config.event])
406 events = [x for x in config.event if x.source == file_to_watch.source]
433 events = [x for x in config.event if x.source == daemon_process.name]
453 for event in test_events:
455 eval(event.condition, # pylint:disable=eval-used
457 self.test_events.append(event)
459 logging.error("Test event %s is not compatible with %s", event.name,
464 for event in config.test_event:
465 if not event.name:
468 if event.condition:
469 self.test_events.append(event)
471 self.device_events.append(event)
485 def __GetExpectedEventCount(self, event): argument
486 if event == "logcat_iteration":
489 event_cnt = getattr(self.cnt_per_iteration, event)
492 logging.exception("%s is not an attribute of expected_result", event)
501 for event, count in list(events.items()):
503 expected_count = self.__GetExpectedEventCount(event)
515 self.event_counter[event] += count
516 visited_events.add(event)
522 (event, count, expected_count * number_of_iterations))
525 for event in self.iterations_since_event:
526 if event in visited_events:
527 self.iterations_since_event[event] = 0
529 self.iterations_since_event[event] += number_of_iterations
557 for event in self.test_events:
558 if eval(event.condition, # pylint:disable=eval-used
560 logging.info("Condition has been met for event '%s'", event.name)
562 event_log_details = self.event_log.event.add()
564 event_log_details.name = event.name
571 self.__ProcessEventActionQueue(event)
575 if device_event.name == event.name:
582 def __ProcessEventActionQueue(self, event): argument
584 for action in event.action:
591 "%s had event '%s' occur" % (self.name, event.name),
710 for event, count in sorted(self.event_counter.items()):
712 event, count, self.iterations_since_event[event]))
737 self.events = config.event