Lines Matching refs:signal_name
74 def clear_signal_content(self, signal_name): argument
80 if signal_name in self.__signal_content:
81 self.__signal_content[signal_name] = None
83 def get_signal_content(self, signal_name): argument
92 return self.__signal_content.get(signal_name)
94 def handle_signal(self, interface, signal_name, argument_names=()): argument
102 if signal_name in self.__signal_content:
105 self.__signal_content[signal_name] = None
108 self.__signal_content[signal_name] = dict(zip(argument_names, args))
111 signal_name, ', '.join(argument_names), interface)
112 self.proxy_object.connect_to_signal(signal_name, signal_handler,
115 def wait_for_signal(self, signal_name): argument
124 if signal_name not in self.__signal_content:
131 return self.__signal_content[signal_name] is not None
133 logging.debug('Waiting for D-Bus signal "%s"', signal_name)
135 desc='%s signal' % signal_name,
137 content = self.__signal_content[signal_name]
138 logging.debug('Received D-Bus signal "%s(%s)"', signal_name, content)
139 self.__signal_content[signal_name] = None
142 def expect_signal(self, signal_name, expected_content): argument
158 actual_content = self.wait_for_signal(signal_name)
160 signal_name, expected_content, actual_content)
165 (signal_name, argument, expected_content, actual_content))
170 (signal_name, argument, expected_content, actual_content))