Home
last modified time | relevance | path

Searched refs:aconsts (Results 1 – 24 of 24) sorted by relevance

/tools/test/connectivity/acts_tests/tests/google/wifi/aware/functional/
DDiscoveryTest.py22 from acts_contrib.test_utils.wifi.aware import aware_const as aconsts unknown
62 config[aconsts.DISCOVERY_KEY_DISCOVERY_TYPE] = ptype
64 config[aconsts.DISCOVERY_KEY_DISCOVERY_TYPE] = stype
65 config[aconsts.DISCOVERY_KEY_TTL] = ttl
66 config[aconsts.DISCOVERY_KEY_TERM_CB_ENABLED] = term_ind_on
68 config[aconsts.DISCOVERY_KEY_SERVICE_NAME] = "a"
69 config[aconsts.DISCOVERY_KEY_SSI] = None
70 config[aconsts.DISCOVERY_KEY_MATCH_FILTER_LIST] = []
72 config[aconsts.DISCOVERY_KEY_SERVICE_NAME] = "GoogleTestServiceX"
74 config[aconsts.DISCOVERY_KEY_SSI] = string.ascii_letters
[all …]
DDataPathTest.py24 from acts_contrib.test_utils.wifi.aware import aware_const as aconsts unknown
65 config[aconsts.DISCOVERY_KEY_DISCOVERY_TYPE] = dtype
67 aconsts.DISCOVERY_KEY_SERVICE_NAME] = "GoogleTestServiceDataPath"
105 autils.wait_for_event(p_dut, aconsts.EVENT_CB_ON_ATTACHED)
108 autils.wait_for_event(s_dut, aconsts.EVENT_CB_ON_ATTACHED)
113 autils.wait_for_event(p_dut, aconsts.SESSION_CB_ON_PUBLISH_STARTED)
119 p2_config[aconsts.DISCOVERY_KEY_SERVICE_NAME] = (
120 p2_config[aconsts.DISCOVERY_KEY_SERVICE_NAME] + "-XYZXYZ")
122 autils.wait_for_event(s_dut, aconsts.SESSION_CB_ON_PUBLISH_STARTED)
127 autils.wait_for_event(s_dut, aconsts.SESSION_CB_ON_SUBSCRIBE_STARTED)
[all …]
DCapabilitiesTest.py21 from acts_contrib.test_utils.wifi.aware import aware_const as aconsts unknown
43 config[aconsts.DISCOVERY_KEY_DISCOVERY_TYPE] = dtype
44 config[aconsts.DISCOVERY_KEY_SERVICE_NAME] = service_name
63 config[aconsts.DISCOVERY_KEY_DISCOVERY_TYPE] = dtype
64 config[aconsts.DISCOVERY_KEY_SERVICE_NAME] = service_name
68 event_name = aconsts.SESSION_CB_ON_PUBLISH_STARTED
71 event_name = aconsts.SESSION_CB_ON_SUBSCRIBE_STARTED
77 aconsts.SESSION_CB_ON_SESSION_CONFIG_FAILED)
92 autils.wait_for_event(dut, aconsts.EVENT_CB_ON_ATTACHED)
97 for i in range(dut.aware_capabilities[aconsts.CAP_MAX_PUBLISHES]):
[all …]
DMessageTest.py23 from acts_contrib.test_utils.wifi.aware import aware_const as aconsts unknown
58 caps[aconsts.CAP_MAX_SERVICE_SPECIFIC_INFO_LEN] - 15)
74 aconsts.
75 DISCOVERY_KEY_DISCOVERY_TYPE] = aconsts.PUBLISH_TYPE_UNSOLICITED
78 aconsts.
79 DISCOVERY_KEY_DISCOVERY_TYPE] = aconsts.SUBSCRIBE_TYPE_PASSIVE
80 config[aconsts.DISCOVERY_KEY_SERVICE_NAME] = "GoogleTestServiceX" + (
104 p_dut, aconsts.EVENT_CB_ON_ATTACHED
106 aconsts.EVENT_CB_ON_ATTACHED, p_id))
110 s_dut, aconsts.EVENT_CB_ON_ATTACHED
[all …]
DAttachTest.py23 from acts_contrib.test_utils.wifi.aware import aware_const as aconsts unknown
38 autils.wait_for_event(dut, aconsts.EVENT_CB_ON_ATTACHED)
39 autils.fail_on_event(dut, aconsts.EVENT_CB_ON_IDENTITY_CHANGED)
50 autils.wait_for_event(dut, aconsts.EVENT_CB_ON_ATTACHED)
51 autils.wait_for_event(dut, aconsts.EVENT_CB_ON_IDENTITY_CHANGED)
73 dut, autils.decorate_event(aconsts.EVENT_CB_ON_ATTACHED, id1))
76 autils.decorate_event(aconsts.EVENT_CB_ON_IDENTITY_CHANGED, id1))
80 dut, autils.decorate_event(aconsts.EVENT_CB_ON_ATTACHED, id2))
83 autils.decorate_event(aconsts.EVENT_CB_ON_IDENTITY_CHANGED, id2))
87 dut, autils.decorate_event(aconsts.EVENT_CB_ON_ATTACHED, id3))
[all …]
DNonConcurrencyTest.py25 from acts_contrib.test_utils.wifi.aware import aware_const as aconsts unknown
61 aconsts.PUBLISH_TYPE_UNSOLICITED)
65 autils.wait_for_event(dut, aconsts.EVENT_CB_ON_ATTACHED)
80 autils.fail_on_event(dut, aconsts.BROADCAST_WIFI_AWARE_NOT_AVAILABLE)
83 autils.wait_for_event(dut, aconsts.SESSION_CB_ON_SESSION_CONFIG_FAILED)
86 autils.wait_for_event(dut, aconsts.BROADCAST_WIFI_AWARE_AVAILABLE)
91 autils.wait_for_event(dut, aconsts.EVENT_CB_ON_ATTACHED)
93 autils.wait_for_event(dut, aconsts.SESSION_CB_ON_PUBLISH_STARTED)
96 autils.fail_on_event(dut, aconsts.EVENT_CB_ON_ATTACHED)
115 autils.fail_on_event(dut, aconsts.BROADCAST_WIFI_AWARE_NOT_AVAILABLE)
[all …]
DMacRandomNoLeakageTest.py20 from acts_contrib.test_utils.wifi.aware import aware_const as aconsts unknown
99 autils.wait_for_event(dut, aconsts.EVENT_CB_ON_ATTACHED)
100 event = autils.wait_for_event(dut, aconsts.EVENT_CB_ON_IDENTITY_CHANGED)
106 aconsts.PUBLISH_TYPE_UNSOLICITED)
108 autils.wait_for_event(dut, aconsts.SESSION_CB_ON_PUBLISH_STARTED)
111 aconsts.SUBSCRIBE_TYPE_PASSIVE)
113 autils.wait_for_event(dut, aconsts.SESSION_CB_ON_SUBSCRIBE_STARTED)
178 s_ipv6 = p_net_event_nc["data"][aconsts.NET_CAP_IPV6]
179 p_ipv6 = s_net_event_nc["data"][aconsts.NET_CAP_IPV6]
218 discovery_event = autils.wait_for_event(s_dut, aconsts.SESSION_CB_ON_SERVICE_DISCOVERED)
[all …]
DMatchFilterTest.py23 from acts_contrib.test_utils.wifi.aware import aware_const as aconsts unknown
83 autils.wait_for_event(p_dut, aconsts.EVENT_CB_ON_ATTACHED)
86 autils.wait_for_event(s_dut, aconsts.EVENT_CB_ON_ATTACHED)
93 d_type=aconsts.PUBLISH_TYPE_UNSOLICITED
94 if do_unsolicited_passive else aconsts.PUBLISH_TYPE_SOLICITED,
96 autils.wait_for_event(p_dut, aconsts.SESSION_CB_ON_PUBLISH_STARTED)
103 d_type=aconsts.SUBSCRIBE_TYPE_PASSIVE
104 if do_unsolicited_passive else aconsts.SUBSCRIBE_TYPE_ACTIVE,
106 autils.wait_for_event(s_dut, aconsts.SESSION_CB_ON_SUBSCRIBE_STARTED)
112 aconsts.SESSION_CB_ON_SERVICE_DISCOVERED, autils.EVENT_TIMEOUT)
DMacRandomTest.py22 from acts_contrib.test_utils.wifi.aware import aware_const as aconsts unknown
65 autils.wait_for_event(dut, aconsts.EVENT_CB_ON_ATTACHED)
67 dut, aconsts.EVENT_CB_ON_IDENTITY_CHANGED)
80 dut.aware_capabilities[aconsts.CAP_MAX_NDI_INTERFACES]):
81 ndi_interface = "%s%d" % (aconsts.AWARE_NDI_PREFIX, j)
118 autils.wait_for_event(dut, aconsts.EVENT_CB_ON_ATTACHED)
120 dut, aconsts.EVENT_CB_ON_IDENTITY_CHANGED)
128 aconsts.EVENT_CB_ON_IDENTITY_CHANGED,
DProtocolsTest.py20 from acts_contrib.test_utils.wifi.aware import aware_const as aconsts unknown
82 self.SERVICE_NAME, aconsts.PUBLISH_TYPE_UNSOLICITED),
84 self.SERVICE_NAME, aconsts.SUBSCRIBE_TYPE_PASSIVE),
110 self.SERVICE_NAME, aconsts.PUBLISH_TYPE_SOLICITED),
112 self.SERVICE_NAME, aconsts.SUBSCRIBE_TYPE_ACTIVE),
136 max_ndp = dut.aware_capabilities[aconsts.CAP_MAX_NDP_SESSIONS]
DProtocolsMultiCountryTest.py29 from acts_contrib.test_utils.wifi.aware import aware_const as aconsts unknown
150 self.SERVICE_NAME, aconsts.PUBLISH_TYPE_UNSOLICITED),
152 self.SERVICE_NAME, aconsts.SUBSCRIBE_TYPE_PASSIVE),
199 self.SERVICE_NAME, aconsts.PUBLISH_TYPE_SOLICITED),
201 self.SERVICE_NAME, aconsts.SUBSCRIBE_TYPE_ACTIVE),
/tools/test/connectivity/acts_tests/tests/google/wifi/rtt/functional/
DAwareDiscoveryWithRangingTest.py23 from acts_contrib.test_utils.wifi.aware import aware_const as aconsts unknown
84 autils.wait_for_event(p_dut, aconsts.EVENT_CB_ON_ATTACHED)
87 autils.wait_for_event(s_dut, aconsts.EVENT_CB_ON_ATTACHED)
91 autils.wait_for_event(p_dut, aconsts.SESSION_CB_ON_PUBLISH_STARTED)
95 autils.wait_for_event(s_dut, aconsts.SESSION_CB_ON_SUBSCRIBE_STARTED)
100 s_dut, aconsts.SESSION_CB_ON_SERVICE_DISCOVERED)
103 aconsts.SESSION_CB_KEY_DISTANCE_MM in event["data"],
107 aconsts.SESSION_CB_KEY_DISTANCE_MM in event["data"],
111 aconsts.SESSION_CB_ON_SERVICE_DISCOVERED)
152 aconsts.SESSION_CB_ON_SESSION_CONFIG_UPDATED)
[all …]
DRangeAwareTest.py22 from acts_contrib.test_utils.wifi.aware import aware_const as aconsts unknown
123 self.SERVICE_NAME, aconsts.PUBLISH_TYPE_UNSOLICITED),
127 self.SERVICE_NAME, aconsts.SUBSCRIBE_TYPE_PASSIVE),
184 aconsts.PUBLISH_TYPE_UNSOLICITED),
187 autils.wait_for_event(dut1, aconsts.SESSION_CB_ON_PUBLISH_STARTED)
190 autils.wait_for_event(dut0, aconsts.SESSION_CB_ON_PUBLISH_STARTED)
309 self.SERVICE_NAME, aconsts.PUBLISH_TYPE_UNSOLICITED)
311 self.SERVICE_NAME, aconsts.SUBSCRIBE_TYPE_PASSIVE)
461 autils.wait_for_event(resp_dut, aconsts.EVENT_CB_ON_ATTACHED)
463 resp_dut, aconsts.EVENT_CB_ON_IDENTITY_CHANGED)
[all …]
/tools/test/connectivity/acts_tests/tests/google/wifi/aware/performance/
DLatencyTest.py22 from acts_contrib.test_utils.wifi.aware import aware_const as aconsts unknown
49 config[aconsts.DISCOVERY_KEY_DISCOVERY_TYPE] = dtype
50 config[aconsts.DISCOVERY_KEY_SERVICE_NAME] = "GoogleTestServiceXY"
54 event_name = aconsts.SESSION_CB_ON_PUBLISH_STARTED
57 event_name = aconsts.SESSION_CB_ON_SUBSCRIBE_STARTED
101 autils.wait_for_event(p_dut, aconsts.EVENT_CB_ON_ATTACHED)
104 autils.wait_for_event(s_dut, aconsts.EVENT_CB_ON_ATTACHED)
108 p_dut, p_id, True, aconsts.PUBLISH_TYPE_UNSOLICITED
109 if do_unsolicited_passive else aconsts.PUBLISH_TYPE_SOLICITED)
113 s_dut, s_id, False, aconsts.SUBSCRIBE_TYPE_PASSIVE
[all …]
DThroughputTest.py26 from acts_contrib.test_utils.wifi.aware import aware_const as aconsts unknown
67 self.SERVICE_NAME, aconsts.PUBLISH_TYPE_UNSOLICITED),
69 self.SERVICE_NAME, aconsts.SUBSCRIBE_TYPE_PASSIVE),
138 max_ndp = dut.aware_capabilities[aconsts.CAP_MAX_NDP_SESSIONS]
271 init_dut.aware_capabilities[aconsts.CAP_MAX_NDI_INTERFACES] <
273 or resp_dut.aware_capabilities[aconsts.CAP_MAX_NDI_INTERFACES] <
297 aconsts.DATA_PATH_RESPONDER,
305 aconsts.DATA_PATH_INITIATOR,
332 resp_ipv6 = init_net_event_nc["data"][aconsts.NET_CAP_IPV6]
333 init_ipv6 = resp_net_event_nc["data"][aconsts.NET_CAP_IPV6]
[all …]
DWifiAwareRvrTest.py34 from acts_contrib.test_utils.wifi.aware import aware_const as aconsts unknown
239 aconsts.BROADCAST_WIFI_AWARE_AVAILABLE,
264 aconsts.PUBLISH_TYPE_UNSOLICITED),
266 aconsts.SUBSCRIBE_TYPE_PASSIVE),
/tools/test/connectivity/acts_tests/acts_contrib/test_utils/wifi/aware/
Daware_test_utils.py27 from acts_contrib.test_utils.wifi.aware import aware_const as aconsts unknown
620 aconsts.POWER_DW_24_INTERACTIVE)
622 aconsts.POWER_DW_5_INTERACTIVE)
624 aconsts.POWER_DISC_BEACON_INTERVAL_INTERACTIVE)
626 aconsts.POWER_NUM_SS_IN_DISC_INTERACTIVE)
628 aconsts.POWER_ENABLE_DW_EARLY_TERM_INTERACTIVE)
631 aconsts.POWER_DW_24_INTERACTIVE)
633 aconsts.POWER_DW_5_INTERACTIVE)
635 aconsts.POWER_DISC_BEACON_INTERVAL_INTERACTIVE)
637 aconsts.POWER_NUM_SS_IN_DISC_INTERACTIVE)
[all …]
DAwareBaseTest.py25 from acts_contrib.test_utils.wifi.aware import aware_const as aconsts unknown
67 aconsts.BROADCAST_WIFI_AWARE_AVAILABLE)
/tools/test/connectivity/acts_tests/tests/google/wifi/aware/stress/
DDiscoveryStressTest.py21 from acts_contrib.test_utils.wifi.aware import aware_const as aconsts unknown
49 autils.wait_for_event(dut, aconsts.EVENT_CB_ON_ATTACHED)
62 service_name, aconsts.PUBLISH_TYPE_UNSOLICITED)
65 service_name, aconsts.PUBLISH_TYPE_SOLICITED)
68 service_name, aconsts.SUBSCRIBE_TYPE_PASSIVE)
71 service_name, aconsts.SUBSCRIBE_TYPE_ACTIVE)
75 aconsts.CAP_MAX_PUBLISHES]:
78 dut.aware_capabilities[aconsts.
82 event_name = aconsts.SESSION_CB_ON_PUBLISH_STARTED
86 aconsts.CAP_MAX_SUBSCRIBES]:
[all …]
DDataPathStressTest.py23 from acts_contrib.test_utils.wifi.aware import aware_const as aconsts unknown
69 autils.wait_for_event(init_dut, aconsts.EVENT_CB_ON_ATTACHED)
71 init_dut, aconsts.EVENT_CB_ON_IDENTITY_CHANGED)
75 autils.wait_for_event(resp_dut, aconsts.EVENT_CB_ON_ATTACHED)
77 resp_dut, aconsts.EVENT_CB_ON_IDENTITY_CHANGED)
91 resp_id, aconsts.DATA_PATH_RESPONDER, init_mac,
104 init_id, aconsts.DATA_PATH_INITIATOR, resp_mac,
111 init_id, aconsts.DATA_PATH_INITIATOR, resp_mac,
122 resp_id, aconsts.DATA_PATH_RESPONDER, init_mac,
147 if aconsts.NET_CAP_IPV6 in nc_event["data"]:
[all …]
DMessagesStressTest.py21 from acts_contrib.test_utils.wifi.aware import aware_const as aconsts unknown
85 tx_events_regex = "%s|%s" % (aconsts.SESSION_CB_ON_MESSAGE_SEND_FAILED,
86 aconsts.SESSION_CB_ON_MESSAGE_SENT)
92 if (event["name"] != aconsts.SESSION_CB_ON_MESSAGE_SENT
94 aconsts.SESSION_CB_ON_MESSAGE_SEND_FAILED):
97 "name"] == aconsts.SESSION_CB_ON_MESSAGE_SENT
99 id = event["data"][aconsts.SESSION_CB_KEY_MESSAGE_ID]
138 aconsts.SESSION_CB_ON_MESSAGE_RECEIVED,
140 msg = event["data"][aconsts.SESSION_CB_KEY_MESSAGE_AS_STRING]
217 self.SERVICE_NAME, aconsts.PUBLISH_TYPE_UNSOLICITED),
[all …]
DInfraAssociationStressTest.py22 from acts_contrib.test_utils.wifi.aware import aware_const as aconsts unknown
131 autils.wait_for_event(dut, aconsts.EVENT_CB_ON_ATTACHED)
137 aconsts.PUBLISH_TYPE_UNSOLICITED))
138 autils.wait_for_event(dut, aconsts.SESSION_CB_ON_PUBLISH_STARTED)
/tools/test/connectivity/acts_tests/tests/google/wifi/aware/ota/
DServiceIdsTest.py20 from acts_contrib.test_utils.wifi.aware import aware_const as aconsts unknown
47 config[aconsts.DISCOVERY_KEY_DISCOVERY_TYPE] = dtype
48 config[aconsts.DISCOVERY_KEY_SERVICE_NAME] = service_name
52 event_name = aconsts.SESSION_CB_ON_PUBLISH_STARTED
55 event_name = aconsts.SESSION_CB_ON_SUBSCRIBE_STARTED
71 autils.wait_for_event(dut, aconsts.EVENT_CB_ON_ATTACHED)
73 dut, aconsts.EVENT_CB_ON_IDENTITY_CHANGED)
84 aconsts.PUBLISH_TYPE_UNSOLICITED,
87 aconsts.PUBLISH_TYPE_SOLICITED,
90 aconsts.SUBSCRIBE_TYPE_ACTIVE,
[all …]
/tools/test/connectivity/acts_tests/tests/google/wifi/rtt/stress/
DStressRangeAwareTest.py21 from acts_contrib.test_utils.wifi.aware import aware_const as aconsts unknown
96 self.SERVICE_NAME, aconsts.PUBLISH_TYPE_UNSOLICITED),
100 self.SERVICE_NAME, aconsts.SUBSCRIBE_TYPE_PASSIVE), True),