Home
last modified time | relevance | path

Searched refs:event_name (Results 1 – 16 of 16) sorted by relevance

/tools/test/connectivity/acts/framework/acts/controllers/sl4a_lib/
Devent_dispatcher.py98 event_name = event_obj['name']
100 if event_name == 'EventDispatcherShutdown':
105 if event_name in self._handlers:
106 self.handle_subscribed_event(event_obj, event_name)
109 if event_name in self._event_dict: # otherwise, cache event
110 self._event_dict[event_name].put(event_obj)
114 self._event_dict[event_name] = q
117 def register_handler(self, handler, event_name, args): argument
138 if event_name in self._handlers:
140 'A handler for {} already exists'.format(event_name))
[all …]
/tools/test/connectivity/acts/tests/google/wifi/
DWifiScannerBssidTest.py108 event_name = "%s%sonResults" % (SCAN_EVENT_TAG, scan_idx)
109 self.log.info("Waiting for the scan result event %s", event_name)
110 event = self.dut.ed.pop_event(event_name, waittime)
190 event_name = "%s%sonFound" % (BSSID_EVENT_TAG, idx)
191 self.log.info("Waiting for the BSSID event %s", event_name)
192 event = self.dut.ed.pop_event(event_name, BSSID_EVENT_WAIT)
203 (event_name, track_setting["bssidInfos"],
238 event_name = "%s%sonFound" % (BSSID_EVENT_TAG, idx)
239 self.log.info("Waiting for the BSSID event %s", event_name)
240 event = self.dut.ed.pop_event(event_name, BSSID_EVENT_WAIT)
[all …]
DWifiScannerScanTest.py243 def pop_scan_result_events(self, event_name): argument
254 events = self.dut.ed.pop_all(event_name)
289 event_name = "{}{}onResults".format(EVENT_TAG, idx)
290 self.log.debug("Waiting for event: %s for time %s", event_name,
292 event = self.dut.ed.pop_event(event_name, wait_time)
343 event_name = "%s%sonResults" % (EVENT_TAG, idx)
344 self.log.debug("Waiting for event: %s for time %s", event_name,
346 event = self.dut.ed.pop_event(event_name, wait_time)
353 event_name = "{}{}onFullResult".format(EVENT_TAG, idx)
354 results = self.pop_scan_result_events(event_name)
[all …]
DWifiScannerMultiScanTest.py312 event_name = SCAN_EVENT_TAG
315 event_name, event_wait_time)
316 events = self.dut.ed.pop_events(event_name, event_wait_time)
345 event_name, event_wait_time))
DWifiRttManagerTest.py225 event_name = "WifiScannerScan%donFullResult" % idx
234 event = self.dut.ed.wait_for_event(event_name, condition, 30)
237 event_name = "WifiScannerScan%donResults" % idx
238 event = self.dut.ed.pop_event(event_name, 300)
/tools/test/connectivity/acts/framework/acts/test_utils/wifi/aware/
Daware_test_utils.py41 def decorate_event(event_name, id): argument
42 return '%s_%d' % (event_name, id)
45 def wait_for_event(ad, event_name, timeout=EVENT_TIMEOUT): argument
59 event = ad.ed.pop_event(event_name, timeout)
60 ad.log.info('%s%s: %s', prefix, event_name, event['data'])
63 ad.log.info('%sTimed out while waiting for %s', prefix, event_name)
64 asserts.fail(event_name)
66 def wait_for_event_with_keys(ad, event_name, timeout=EVENT_TIMEOUT, *keyvalues): argument
88 event = ad.ed.wait_for_event(event_name, filter_callbacks, timeout,
90 ad.log.info('%s%s: %s', prefix, event_name, event['data'])
[all …]
/tools/test/connectivity/acts/framework/acts/test_utils/wifi/rtt/
Drtt_test_utils.py29 def decorate_event(event_name, id): argument
30 return '%s_%d' % (event_name, id)
33 def wait_for_event(ad, event_name, timeout=EVENT_TIMEOUT): argument
47 event = ad.ed.pop_event(event_name, timeout)
48 ad.log.info('%s%s: %s', prefix, event_name, event['data'])
51 ad.log.info('%sTimed out while waiting for %s', prefix, event_name)
52 asserts.fail(event_name)
54 def fail_on_event(ad, event_name, timeout=EVENT_TIMEOUT): argument
66 event = ad.ed.pop_event(event_name, timeout)
67 ad.log.info('%sReceived unwanted %s: %s', prefix, event_name, event['data'])
[all …]
/tools/test/connectivity/acts/tests/google/wifi/aware/ota/
DServiceIdsTest.py55 event_name = aconsts.SESSION_CB_ON_PUBLISH_STARTED
58 event_name = aconsts.SESSION_CB_ON_SUBSCRIBE_STARTED
60 autils.wait_for_event(dut, event_name)
/tools/test/connectivity/acts/tests/google/wifi/aware/stress/
DDiscoveryStressTest.py82 event_name = aconsts.SESSION_CB_ON_PUBLISH_STARTED
91 event_name = aconsts.SESSION_CB_ON_SUBSCRIBE_STARTED
95 dut.ed.pop_event(event_name, autils.EVENT_TIMEOUT)
/tools/test/connectivity/acts/tests/google/ble/examples/
DBleExamplesTest.py101 event_name = scan_result.format(scan_callback)
103 event = self.scn_ed.pop_event(event_name, self.default_timeout)
/tools/test/connectivity/acts/tests/google/wifi/aware/functional/
DCapabilitiesTest.py71 event_name = aconsts.SESSION_CB_ON_PUBLISH_STARTED
74 event_name = aconsts.SESSION_CB_ON_SUBSCRIBE_STARTED
77 autils.wait_for_event(dut, event_name)
/tools/test/connectivity/acts/tests/google/ble/scan/
DBleOnLostOnFoundTest.py77 def _verify_no_events_found(self, event_name): argument
79 self.scn_ad.ed.pop_event(event_name, self.default_timeout)
DBleOpportunisticScanTest.py76 def _verify_no_events_found(self, event_name): argument
78 event = self.scn_ad.ed.pop_event(event_name, self.default_timeout)
/tools/test/connectivity/acts/tests/google/wifi/aware/performance/
DLatencyTest.py57 event_name = aconsts.SESSION_CB_ON_PUBLISH_STARTED
60 event_name = aconsts.SESSION_CB_ON_SUBSCRIBE_STARTED
62 event = autils.wait_for_event(dut, event_name)
/tools/test/connectivity/acts/framework/acts/test_utils/bt/
Dgattc_lib.py59 event_name = scan_result.format(scan_callback)
66 event = self.dut.ed.pop_event(event_name, 10)
Dbt_test_utils.py770 event_name="BluetoothActionPairingRequest",
777 event_name="BluetoothActionPairingRequest",