/system/chre/test/simulation/ |
D | ble_test.cc | 79 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 …]
|
D | memory_test.cc | 79 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 …]
|
D | wifi_timeout_test.cc | 124 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 …]
|
D | settings_test.cc | 145 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()
|
D | wifi_scan_test.cc | 127 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 …]
|
D | wifi_nan_test.cc | 118 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 …]
|
D | gnss_test.cc | 135 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 …]
|
D | wifi_test.cc | 90 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()
|
D | audio_test.cc | 108 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()
|
D | timer_test.cc | 102 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()
|
D | sensor_test.cc | 88 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()
|
D | README.md | 66 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);
|
D | rpc_test.cc | 175 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()
|
D | host_endpoint_notification_test.cc | 97 waitForEvent(SETUP_NOTIFICATION, &success); in TEST_F() 112 waitForEvent(CHRE_EVENT_HOST_ENDPOINT_NOTIFICATION, ¬ification); in TEST_F()
|
D | test_util.cc | 193 TestEventQueueSingleton::get()->waitForEvent( in loadNanoapp() 231 TestEventQueueSingleton::get()->waitForEvent( in unloadNanoapp()
|
D | test_base.cc | 100 waitForEvent(CHRE_EVENT_SIMULATION_TEST_NANOAPP_LOADED); in TEST_F()
|
/system/chre/test/simulation/inc/ |
D | test_base.h | 61 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()
|
D | test_event_queue.h | 90 void waitForEvent(uint16_t eventType) { in waitForEvent() function 106 void waitForEvent(uint16_t eventType, T *data) { in waitForEvent() function
|