Home
last modified time | relevance | path

Searched refs:event_type (Results 1 – 7 of 7) sorted by relevance

/tools/test/connectivity/acts/framework/acts/event/
Devent_bus.py40 def register(self, event_type, func, filter_fn=None, order=0): argument
61 subscription = EventSubscription(event_type, func,
91 if subscription.event_type in self._subscriptions.keys():
92 subscription_list = self._subscriptions[subscription.event_type]
98 self._subscriptions[subscription.event_type] = subscription_list
158 event_type = subscription.event_type
161 if (event_type in self._subscriptions and
162 subscription in self._subscriptions[event_type]):
163 self._subscriptions[event_type].remove(subscription)
177 if from_event is None or subscription.event_type == from_event:
[all …]
Ddecorators.py21 def subscribe_static(event_type, event_filter=None, order=0): argument
28 super().__init__(event_type, func,
35 def subscribe(event_type, event_filter=None, order=0): argument
39 super().__init__(event_type, func,
Devent_subscription.py28 def __init__(self, event_type, func, event_filter=None, order=0): argument
29 self._event_type = event_type
35 def event_type(self): member in EventSubscription
Dsubscription_handle.py22 def __init__(self, event_type, func, event_filter=None, order=0): argument
23 self._event_type = event_type
Dsubscription_bundle.py28 def add(self, event_type, func, event_filter=None, argument
38 subscription = EventSubscription(event_type, func,
/tools/test/connectivity/acts/framework/tests/event/
Devent_bus_test.py104 mock_subscription.event_type = mock_type
167 subscription.event_type = sub_type
189 subscription.event_type = sub_type
Devent_subscription_test.py39 self.assertEqual(expected_event_type, subscription.event_type)