Home
last modified time | relevance | path

Searched refs:waitForEvent (Results 1 – 18 of 18) sorted by relevance

/system/chre/test/simulation/
Dble_test.cc79 waitForEvent(GET_CAPABILITIES, &capabilities); in TEST_F()
85 waitForEvent(GET_FILTER_CAPABILITIES, &capabilities); in TEST_F()
167 waitForEvent(START_SCAN, &success); in TEST_F()
169 waitForEvent(SCAN_STARTED); in TEST_F()
171 waitForEvent(CHRE_EVENT_BLE_ADVERTISEMENT); in TEST_F()
174 waitForEvent(STOP_SCAN, &success); in TEST_F()
176 waitForEvent(SCAN_STOPPED); in TEST_F()
218 waitForEvent(START_SCAN, &success); in TEST_F()
220 waitForEvent(SCAN_STARTED); in TEST_F()
284 waitForEvent(START_SCAN, &success); in TEST_F()
[all …]
Dmemory_test.cc79 waitForEvent(ALLOCATE, &ptr1); in TEST_F()
87 waitForEvent(ALLOCATE, &ptr2); in TEST_F()
94 waitForEvent(FREE); in TEST_F()
100 waitForEvent(FREE); in TEST_F()
142 waitForEvent(ALLOCATE, &ptr1); in TEST_F()
150 waitForEvent(ALLOCATE, &ptr2); in TEST_F()
204 waitForEvent(ALLOCATE, &ptr1); in TEST_F()
206 waitForEvent(ALLOCATE, &ptr2); in TEST_F()
208 waitForEvent(ALLOCATE, &ptr3); in TEST_F()
214 waitForEvent(FREE); in TEST_F()
[all …]
Dwifi_timeout_test.cc124 waitForEvent(SCAN_REQUEST, &success); in TEST_F()
127 waitForEvent(REQUEST_TIMED_OUT); in TEST_F()
135 waitForEvent(SCAN_REQUEST, &success); in TEST_F()
137 waitForEvent(CHRE_EVENT_WIFI_SCAN_RESULT); in TEST_F()
232 waitForEvent(SCAN_REQUEST, &success); in TEST_F()
235 waitForEvent(SCAN_REQUEST, &success); in TEST_F()
238 waitForEvent(REQUEST_TIMED_OUT); in TEST_F()
246 waitForEvent(SCAN_REQUEST, &success); in TEST_F()
248 waitForEvent(CHRE_EVENT_WIFI_SCAN_RESULT); in TEST_F()
250 waitForEvent(SCAN_REQUEST, &success); in TEST_F()
[all …]
Dsettings_test.cc145 waitForEvent(CHRE_EVENT_SIMULATION_TEST_NANOAPP_LOADED); in TEST_F()
147 waitForEvent(CHRE_EVENT_GNSS_ASYNC_RESULT); in TEST_F()
149 waitForEvent(CHRE_EVENT_GNSS_LOCATION); in TEST_F()
154 waitForEvent(CHRE_EVENT_SETTING_CHANGED_LOCATION); in TEST_F()
165 waitForEvent(CHRE_EVENT_SETTING_CHANGED_LOCATION); in TEST_F()
171 waitForEvent(CHRE_EVENT_GNSS_LOCATION); in TEST_F()
188 waitForEvent(CHRE_EVENT_WIFI_NAN_IDENTIFIER_RESULT); in TEST_F()
192 waitForEvent(CHRE_EVENT_WIFI_NAN_SESSION_TERMINATED); in TEST_F()
193 waitForEvent(CHRE_EVENT_SETTING_CHANGED_WIFI_AVAILABLE); in TEST_F()
198 waitForEvent(CHRE_EVENT_SETTING_CHANGED_WIFI_AVAILABLE); in TEST_F()
Dwifi_scan_test.cc127 waitForEvent(SCAN_REQUEST, &success); in TEST_F()
130 waitForEvent(CHRE_EVENT_WIFI_ASYNC_RESULT, &wifiAsyncData); in TEST_F()
133 waitForEvent(CHRE_EVENT_WIFI_SCAN_RESULT); in TEST_F()
140 waitForEvent(SCAN_REQUEST, &success); in TEST_F()
143 waitForEvent(CHRE_EVENT_WIFI_ASYNC_RESULT, &wifiAsyncData); in TEST_F()
218 waitForEvent(SCAN_REQUEST, &success); in TEST_F()
221 waitForEvent(SCAN_REQUEST, &success); in TEST_F()
229 waitForEvent(CONCURRENT_NANOAPP_RECEIVED_EXPECTED_ASYNC_EVENT_COUNT); in TEST_F()
233 waitForEvent(CONCURRENT_NANOAPP_READ_ASYNC_EVENT, &wifiAsyncData); in TEST_F()
238 waitForEvent(CONCURRENT_NANOAPP_READ_ASYNC_EVENT, &wifiAsyncData); in TEST_F()
[all …]
Dwifi_nan_test.cc118 waitForEvent(CHRE_EVENT_WIFI_ASYNC_RESULT); in TEST_F()
178 waitForEvent(NAN_SUBSCRIBE, &success); in TEST_F()
182 waitForEvent(CHRE_EVENT_WIFI_NAN_IDENTIFIER_RESULT, &id); in TEST_F()
187 waitForEvent(CHRE_EVENT_WIFI_NAN_DISCOVERY_RESULT, &subscribeId); in TEST_F()
236 waitForEvent(NAN_SUBSCRIBE, &success); in TEST_F()
240 waitForEvent(CHRE_EVENT_WIFI_NAN_IDENTIFIER_RESULT, &id); in TEST_F()
299 waitForEvent(NAN_SUBSCRIBE, &success); in TEST_F()
302 waitForEvent(CHRE_EVENT_WIFI_NAN_IDENTIFIER_RESULT); in TEST_F()
369 waitForEvent(NAN_SUBSCRIBE, &success); in TEST_F()
373 waitForEvent(CHRE_EVENT_WIFI_NAN_IDENTIFIER_RESULT, &id); in TEST_F()
[all …]
Dgnss_test.cc135 waitForEvent(LOCATION_REQUEST, &success); in TEST_F()
139 waitForEvent(CHRE_EVENT_GNSS_ASYNC_RESULT, &cookie); in TEST_F()
146 waitForEvent(CHRE_EVENT_SETTING_CHANGED_LOCATION); in TEST_F()
155 waitForEvent(CHRE_EVENT_SETTING_CHANGED_LOCATION); in TEST_F()
163 waitForEvent(LOCATION_REQUEST, &success); in TEST_F()
166 waitForEvent(CHRE_EVENT_GNSS_ASYNC_RESULT, &cookie); in TEST_F()
233 waitForEvent(LOCATION_REQUEST, &success); in TEST_F()
236 waitForEvent(CHRE_EVENT_GNSS_ASYNC_RESULT, &cookie); in TEST_F()
242 waitForEvent(LOCATION_REQUEST, &success); in TEST_F()
244 waitForEvent(CHRE_EVENT_GNSS_ASYNC_RESULT, &cookie); in TEST_F()
[all …]
Dwifi_test.cc90 waitForEvent(CHRE_EVENT_WIFI_ASYNC_RESULT, &cookie); in TEST_F()
97 waitForEvent(MONITORING_REQUEST, &success); in TEST_F()
99 waitForEvent(CHRE_EVENT_WIFI_ASYNC_RESULT, &cookie); in TEST_F()
158 waitForEvent(MONITORING_REQUEST, &success); in TEST_F()
161 waitForEvent(CHRE_EVENT_WIFI_ASYNC_RESULT, &cookie); in TEST_F()
223 waitForEvent(MONITORING_REQUEST, &success); in TEST_F()
226 waitForEvent(CHRE_EVENT_WIFI_ASYNC_RESULT, &cookie); in TEST_F()
238 waitForEvent(MONITORING_REQUEST, &success); in TEST_F()
240 waitForEvent(CHRE_EVENT_WIFI_ASYNC_RESULT, &cookie); in TEST_F()
Daudio_test.cc108 waitForEvent(CONFIGURE, &success); in TEST_F()
110 waitForEvent(CHRE_EVENT_AUDIO_SAMPLING_CHANGE); in TEST_F()
113 waitForEvent(CHRE_EVENT_AUDIO_DATA); in TEST_F()
117 waitForEvent(CONFIGURE, &success); in TEST_F()
162 waitForEvent(CONFIGURE, &success); in TEST_F()
164 waitForEvent(CHRE_EVENT_AUDIO_SAMPLING_CHANGE); in TEST_F()
Dtimer_test.cc102 waitForEvent(START_TIMER, &handle); in TEST_F()
106 waitForEvent(CHRE_EVENT_TIMER); in TEST_F()
112 waitForEvent(STOP_TIMER, &success); in TEST_F()
118 waitForEvent(STOP_TIMER, &success); in TEST_F()
171 waitForEvent(START_TIMER, &handle); in TEST_F()
175 waitForEvent(CHRE_EVENT_TIMER); in TEST_F()
Dsensor_test.cc88 waitForEvent(CONFIGURE, &success); in TEST_F()
91 waitForEvent(CHRE_EVENT_SENSOR_SAMPLING_CHANGE, &event); in TEST_F()
101 waitForEvent(CONFIGURE, &success); in TEST_F()
154 waitForEvent(CONFIGURE, &success); in TEST_F()
157 waitForEvent(CHRE_EVENT_SENSOR_SAMPLING_CHANGE, &event); in TEST_F()
DREADME.md66 waitForEvent(CHRE_EVENT_WIFI_ASYNC_RESULT);
133 Use `waitForEvent` to wait for an event in your test code:
137 waitForEvent(CHRE_EVENT_WIFI_ASYNC_RESULT);
140 waitForEvent(MY_TEST_EVENT);
161 With the above snippet `waitForEvent(CHRE_EVENT_WIFI_ASYNC_RESULT)` will timeout
185 Use the second argument of `waitForEvent` to retrieve the data in your test
190 waitForEvent(CHRE_EVENT_WIFI_ASYNC_RESULT, &cookie);
Drpc_test.cc175 waitForEvent(PUBLISH_SERVICES, &success); in TEST_F()
256 waitForEvent(QUERY_INFO, &pInfo); in TEST_F()
348 waitForEvent(INCREMENT_REQUEST, &status); in TEST_F()
402 waitForEvent(QUERY_HAS_SERVICE, &hasService); in TEST_F()
406 waitForEvent(QUERY_HAS_SERVICE, &hasService); in TEST_F()
Dhost_endpoint_notification_test.cc97 waitForEvent(SETUP_NOTIFICATION, &success); in TEST_F()
112 waitForEvent(CHRE_EVENT_HOST_ENDPOINT_NOTIFICATION, &notification); in TEST_F()
Dtest_util.cc193 TestEventQueueSingleton::get()->waitForEvent( in loadNanoapp()
231 TestEventQueueSingleton::get()->waitForEvent( in unloadNanoapp()
Dtest_base.cc100 waitForEvent(CHRE_EVENT_SIMULATION_TEST_NANOAPP_LOADED); in TEST_F()
/system/chre/test/simulation/inc/
Dtest_base.h61 void waitForEvent(uint16_t eventType) { in waitForEvent() function
62 TestEventQueueSingleton::get()->waitForEvent(eventType); in waitForEvent()
75 void waitForEvent(uint16_t eventType, T *eventData) { in waitForEvent() function
76 TestEventQueueSingleton::get()->waitForEvent(eventType, eventData); in waitForEvent()
Dtest_event_queue.h90 void waitForEvent(uint16_t eventType) { in waitForEvent() function
106 void waitForEvent(uint16_t eventType, T *data) { in waitForEvent() function