/system/chre/apps/test/chqts/src/general_test/ |
D | send_event_test.cc | 27 using nanoapp_testing::sendFatalFailureToHost; 71 sendFatalFailureToHost( in completeCallback() 76 sendFatalFailureToHost("completeCallback called with nullptr or odd data."); in completeCallback() 99 sendFatalFailureToHost("completeCallback given bad data.", &num); in completeCallback() 102 sendFatalFailureToHost("completeCallback bad/eventType mismatch."); in completeCallback() 105 sendFatalFailureToHost("Incorrect callback function called."); in completeCallback() 109 sendFatalFailureToHost("Complete callback invoked multiple times for ", in completeCallback() 116 sendFatalFailureToHost("Failed chreSendEvent in callback."); in completeCallback() 134 sendFatalFailureToHost("SendEvent message expects 0 additional bytes, got ", in setUp() 145 sendFatalFailureToHost("Failed chreSendEvent num 0"); in setUp() [all …]
|
D | send_message_to_host_test.cc | 31 using nanoapp_testing::sendFatalFailureToHost; 98 sendFatalFailureToHost( in smallMessageCallback() 103 sendFatalFailureToHost("smallMessageCallback given null message"); in smallMessageCallback() 107 sendFatalFailureToHost("smallMessageCallback given bad messageSize:", in smallMessageCallback() 113 sendFatalFailureToHost("Corrupt data in smallMessageCallback"); in smallMessageCallback() 128 sendFatalFailureToHost("callback invoked when null callback given"); in smallMessageCallback() 134 sendFatalFailureToHost("Incorrect callback function called."); in smallMessageCallback() 158 sendFatalFailureToHost("Bad memory sent to smallMessageCallback"); in getSmallDataIndex() 166 sendFatalFailureToHost( in largeMessageCallback() 171 sendFatalFailureToHost("largeMessageCallback given null message"); in largeMessageCallback() [all …]
|
D | basic_sensor_test_base.cc | 34 using nanoapp_testing::sendFatalFailureToHost; 92 sendFatalFailureToHost("Beginning message expects 0 additional bytes, got ", in setUp() 106 sendFatalFailureToHost("Failed chreSendEvent to begin test"); in sendStartTestMessage() 121 sendFatalFailureToHost( in checkPassiveConfigure() 126 sendFatalFailureToHost( in checkPassiveConfigure() 141 sendFatalFailureToHost( in checkPassiveConfigure() 145 sendFatalFailureToHost( in checkPassiveConfigure() 155 sendFatalFailureToHost( in checkPassiveConfigure() 159 sendFatalFailureToHost( in checkPassiveConfigure() 168 sendFatalFailureToHost( in checkPassiveConfigure() [all …]
|
D | timer_stress_test.cc | 26 using nanoapp_testing::sendFatalFailureToHost; 71 sendFatalFailureToHost("No timers available"); in startStages() 83 sendFatalFailureToHost("Insufficient timers available"); in startStages() 86 sendFatalFailureToHost("Unable to cancel timer"); in startStages() 90 sendFatalFailureToHost("Unable to set new timer after successful cancel."); in startStages() 104 sendFatalFailureToHost( in setUp() 116 sendFatalFailureToHost("Canceled timer fired:", &index); in handleStageEvent() 131 sendFatalFailureToHost("Unexpected event stage:", &index); in handleStageEvent() 138 sendFatalFailureToHost( in handleEvent() 143 sendFatalFailureToHost("handleEvent got event from unexpected sender:", in handleEvent() [all …]
|
D | basic_gnss_test.cc | 32 using nanoapp_testing::sendFatalFailureToHost; 38 sendFatalFailureToHost("Failed to start a location session"); in testLocationSessionAsync() 45 sendFatalFailureToHost("Failed to start a measurement session"); in testMeasurementSessionAsync() 52 sendFatalFailureToHost("Failed to enable passive location listener"); in testPassiveListener() 54 sendFatalFailureToHost("Failed to disable passive location listener"); in testPassiveListener() 68 sendFatalFailureToHost("Expected 0 byte message, got more bytes:", in setUp() 99 sendFatalFailureToHost("Received unsuccessful GNSS async result"); in handleGnssAsyncResult() 105 sendFatalFailureToHost("Failed to stop a location session"); in handleGnssAsyncResult() 116 sendFatalFailureToHost("Failed to stop a measurement session"); in handleGnssAsyncResult() 126 sendFatalFailureToHost("Unexpected request type"); in handleGnssAsyncResult()
|
D | timer_cancel_test.cc | 28 using nanoapp_testing::sendFatalFailureToHost; 50 sendFatalFailureToHost("Unable to set timer:", &i); in startStages() 58 sendFatalFailureToHost("Unable to cancel timer:", &i); in startStages() 61 sendFatalFailureToHost("Claimed success in second cancel:", &i); in startStages() 87 sendFatalFailureToHost( in setUp() 94 sendFatalFailureToHost("Claimed success canceling timer we don't own"); in setUp() 106 sendFatalFailureToHost("Timer didn't cancel:", &stage->stage); in handleStageEvent() 115 sendFatalFailureToHost( in handleStageEvent() 120 sendFatalFailureToHost("Unable to cancel recurring timer:", in handleStageEvent() 125 sendFatalFailureToHost("Claimed success in second cancel:", &stage->stage); in handleStageEvent() [all …]
|
D | basic_audio_test.cc | 28 using nanoapp_testing::sendFatalFailureToHost; 110 sendFatalFailureToHost("Invalid audio source name for handle ", &handle); in validateAudioSource() 113 sendFatalFailureToHost("Invalid audio sample rate for handle ", &handle); in validateAudioSource() 116 sendFatalFailureToHost("Invalid min buffer duration for handle ", &handle); in validateAudioSource() 119 sendFatalFailureToHost("Invalid max buffer duration for handle ", &handle); in validateAudioSource() 122 sendFatalFailureToHost("Invalid audio format for handle ", &handle); in validateAudioSource() 157 sendFatalFailureToHost("Gap detected in audio handles at ", &handle); in validateAudioSources() 171 sendFatalFailureToHost( in validateAudioSources() 176 sendFatalFailureToHost("System is reporting too many audio sources"); in validateAudioSources() 190 sendFatalFailureToHost("Failed to query source for handle 0"); in requestAudioData() [all …]
|
D | heap_exhaustion_stability_test.cc | 30 using nanoapp_testing::sendFatalFailureToHost; 69 sendFatalFailureToHost("Insufficient free heap to exhaust the heap."); in exhaustHeap() 93 sendFatalFailureToHost("Failed to allocate anything for heap exhaustion"); in exhaustHeap() 111 sendFatalFailureToHost( in setUp() 118 sendFatalFailureToHost("Unable to set initial timer"); in setUp() 170 sendFatalFailureToHost("chreSensorFindDefault failed"); in testSensor() 175 sendFatalFailureToHost("chreGetSensorInfo failed"); in testSensor() 178 sendFatalFailureToHost("Invalid sensor info provided"); in testSensor() 184 sendFatalFailureToHost("chreGetSensorSamplingStatus failed"); in testSensor() 213 sendFatalFailureToHost( in handleEvent() [all …]
|
D | send_event_stress_test.cc | 25 using nanoapp_testing::sendFatalFailureToHost; 62 sendFatalFailureToHost( in setUp() 84 sendFatalFailureToHost("Insufficient events available"); in setUp() 98 sendFatalFailureToHost( in handleEvent() 103 sendFatalFailureToHost("handleEvent got event from unexpected sender:", in handleEvent() 110 sendFatalFailureToHost("Too many events delivered"); in handleEvent() 123 sendFatalFailureToHost("bad event data:", &num); in verifyEvent() 139 sendFatalFailureToHost( in completeCallback() 147 sendFatalFailureToHost("completeCallbacks delivered before events"); in completeCallback() 153 sendFatalFailureToHost("completeCallback called too many times"); in completeCallback()
|
D | sensor_info_test.cc | 26 nanoapp_testing::sendFatalFailureToHost( in setUp() 30 nanoapp_testing::sendFatalFailureToHost( in setUp() 36 nanoapp_testing::sendFatalFailureToHost("Failed to gather sensor info"); in setUp() 47 nanoapp_testing::sendFatalFailureToHost( in validateSensorInfo() 50 nanoapp_testing::sendFatalFailureToHost( in validateSensorInfo() 55 nanoapp_testing::sendFatalFailureToHost( in validateSensorInfo() 59 nanoapp_testing::sendFatalFailureToHost( in validateSensorInfo()
|
D | basic_flush_async_test.cc | 27 using nanoapp_testing::sendFatalFailureToHost; 39 sendFatalFailureToHost("Expected 0 byte message, got more bytes:", in setUp() 47 sendFatalFailureToHost("Default Accelerometer not found"); in setUp() 56 sendFatalFailureToHost("Failed to get sensor info"); in setUp() 62 sendFatalFailureToHost("Failed to configure the accelerometer"); in setUp() 74 sendFatalFailureToHost("Failed to set flush start timer"); in setUp() 113 sendFatalFailureToHost("Failed to set flush start timer"); in start() 126 sendFatalFailureToHost("Failed to release sensor handle"); in finish() 131 sendFatalFailureToHost(message); in finish() 190 sendFatalFailureToHost("Unexpected timer handle received"); in handleTimerExpired() [all …]
|
D | version_consistency_test.cc | 25 using nanoapp_testing::sendFatalFailureToHost; 35 sendFatalFailureToHost( in setUp() 41 sendFatalFailureToHost("API version less than 1.0", &mApiVersion); in setUp() 44 sendFatalFailureToHost("API version has two LSB set", &mApiVersion); in setUp() 51 sendFatalFailureToHost("API and platform version mismatch", in setUp() 61 sendFatalFailureToHost("App built against different major version", in setUp() 67 sendFatalFailureToHost("Bogus platform ID"); in setUp()
|
D | timer_set_test.cc | 30 using nanoapp_testing::sendFatalFailureToHost; 68 sendFatalFailureToHost("Unable to set timer ", &mStage); in start() 71 sendFatalFailureToHost("chreGetTime() gave 0"); in start() 83 sendFatalFailureToHost("Timer triggered too soon ", &mStage); in processEvent() 87 sendFatalFailureToHost("Timer triggered over a second late ", &mStage); in processEvent() 92 sendFatalFailureToHost("One shot timer called multiple times ", &mStage); in processEvent() 102 sendFatalFailureToHost("Could not cancel recurring timer", &mStage); in processEvent() 112 sendFatalFailureToHost("Insufficient heap"); in initStages() 141 sendFatalFailureToHost("TimerSet message expects 0 additional bytes, got ", in setUp() 161 sendFatalFailureToHost( in handleEvent() [all …]
|
D | event_between_apps_test.cc | 31 using nanoapp_testing::sendFatalFailureToHost; 45 sendFatalFailureToHost("Initial message expects 0 additional bytes, got ", in setUp() 60 sendFatalFailureToHost("Multiple kContinue messages sent"); in handleEvent() 82 sendFatalFailureToHost("Initial message expects 0 additional bytes, got ", in setUp() 100 sendFatalFailureToHost("Multiple kContinue messages from host."); in handleEvent() 107 sendFatalFailureToHost("Multiple messages from other nanoapp."); in handleEvent() 110 sendFatalFailureToHost( in handleEvent() 117 sendFatalFailureToHost("Got incorrect magic data: ", &magic); in handleEvent() 129 sendFatalFailureToHost("Got bad sender instance ID for nanoapp event: ", in handleEvent()
|
D | get_time_test.cc | 28 using nanoapp_testing::sendFatalFailureToHost; 36 sendFatalFailureToHost("GetTime message expects 0 additional bytes, got ", in setUp() 42 sendFatalFailureToHost("chreGetTime() gave 0 well after system boot."); in setUp() 56 sendFatalFailureToHost("chreGetTime() is not monotonically increasing"); in setUp() 63 sendFatalFailureToHost( in setUp() 79 sendFatalFailureToHost("Multiple kContinue messages sent"); in handleEvent()
|
D | test.cc | 25 using nanoapp_testing::sendFatalFailureToHost; 51 sendFatalFailureToHost("Test received unexpected event:", &localEvent); in unexpectedEvent() 72 sendFatalFailureToHost("Request cookie mismatch"); in validateChreAsyncResult() 77 sendFatalFailureToHost("Request requestType mismatch"); in validateChreAsyncResult() 91 sendFatalFailureToHost("Unexpected sender ID:", &senderInstanceId); in getMessageDataFromHostEvent() 97 sendFatalFailureToHost("NULL eventData given"); in getMessageDataFromHostEvent() 101 sendFatalFailureToHost("Unexpected reservedMessageType:", in getMessageDataFromHostEvent() 105 sendFatalFailureToHost("Unexpected messageSize:", &(data->messageSize)); in getMessageDataFromHostEvent()
|
D | wwan_cell_info_test.cc | 43 nanoapp_testing::sendFatalFailureToHost( in setUp() 50 nanoapp_testing::sendFatalFailureToHost( in setUp() 65 nanoapp_testing::sendFatalFailureToHost( in handleEvent() 72 nanoapp_testing::sendFatalFailureToHost( in handleEvent() 76 nanoapp_testing::sendFatalFailureToHost( in handleEvent() 139 nanoapp_testing::sendFatalFailureToHost("Received eventData is null"); in validateCellInfoResult() 141 nanoapp_testing::sendFatalFailureToHost( in validateCellInfoResult() 144 nanoapp_testing::sendFatalFailureToHost("Received reserved field non-zero"); in validateCellInfoResult() 150 nanoapp_testing::sendFatalFailureToHost("Received cookie does not match"); in validateCellInfoResult()
|
D | simple_heap_alloc_test.cc | 30 using nanoapp_testing::sendFatalFailureToHost; 80 sendFatalFailureToHost("Float math is wrong"); in testMaxAlignment() 97 sendFatalFailureToHost("Long long math is wrong"); in testMaxAlignment() 110 sendFatalFailureToHost( in setUp() 127 sendFatalFailureToHost("Failed first allocation of mPtrs[2]"); in setUp() 139 sendFatalFailureToHost("Failed to allocate index ", &i); in setUp() 143 sendFatalFailureToHost("Misaligned allocation at index ", &i); in setUp() 166 sendFatalFailureToHost("Multiple kContinue messages sent"); in handleEvent()
|
D | nanoapp_info.cc | 34 nanoapp_testing::sendFatalFailureToHost( in NanoappInfo() 52 nanoapp_testing::sendFatalFailureToHost("app IDs do not match"); in validate() 55 nanoapp_testing::sendFatalFailureToHost("instance IDs do not match"); in validate() 66 nanoapp_testing::sendFatalFailureToHost( in queryByAppId() 77 nanoapp_testing::sendFatalFailureToHost( in queryByInstanceId()
|
D | heap_alloc_stress_test.cc | 28 using nanoapp_testing::sendFatalFailureToHost; 48 sendFatalFailureToHost( in setUp() 76 sendFatalFailureToHost("Insufficient free heap to test heap exhaustion."); in setUp() 98 sendFatalFailureToHost("Failed to allocate anything for heap exhaustion"); in setUp() 106 sendFatalFailureToHost( in setUp()
|
D | basic_wifi_test.cc | 31 using nanoapp_testing::sendFatalFailureToHost; 92 sendFatalFailureToHost("Failed to request to enable scan monitor."); in testConfigureScanMonitorAsync() 94 sendFatalFailureToHost("Failed to request to disable scan monitor."); in testConfigureScanMonitorAsync() 116 sendFatalFailureToHost("Failed to request for on-demand WiFi scan."); in testRequestScanAsync() 159 sendFatalFailureToHost( in testRequestRangingAsync() 226 sendFatalFailureToHost( in validateCenterFreq() 319 sendFatalFailureToHost( in validateLci() 330 sendFatalFailureToHost("Expected 0 byte message, got more bytes:", in setUp() 347 sendFatalFailureToHost("WiFi scan event received when not requested"); in handleEvent() 363 sendFatalFailureToHost( in handleEvent() [all …]
|
D | nanoapp_info_events_test_observer.cc | 93 nanoapp_testing::sendFatalFailureToHost("Received too many Start events"); in processStartStopHistory() 95 nanoapp_testing::sendFatalFailureToHost("Did not receive Start event"); in processStartStopHistory() 97 nanoapp_testing::sendFatalFailureToHost("Received too many Stop events"); in processStartStopHistory() 99 nanoapp_testing::sendFatalFailureToHost("Did not receive Stop event"); in processStartStopHistory() 101 nanoapp_testing::sendFatalFailureToHost( in processStartStopHistory()
|
/system/chre/apps/test/chqts/src/busy_startup/ |
D | busy_startup.cc | 54 using nanoapp_testing::sendFatalFailureToHost; 84 sendFatalFailureToHost("Event from self, bad event type:", &e); in checkSelfEvent() 87 sendFatalFailureToHost("Event from self, null data"); in checkSelfEvent() 90 sendFatalFailureToHost("Event from self, bad data:", eventData); in checkSelfEvent() 97 sendFatalFailureToHost("TimerEvent, null data"); in checkTimerEvent() 100 sendFatalFailureToHost("TimerEvent, bad data:", eventData); in checkTimerEvent() 109 sendFatalFailureToHost("sensorEvent, null data"); in checkSensorEvent() 112 sendFatalFailureToHost("sensorEvent for wrong handle", in checkSensorEvent() 116 sendFatalFailureToHost("sensorEvent has readingCount of 0"); in checkSensorEvent() 119 sendFatalFailureToHost("sensorEvent has non-zero reserved field"); in checkSensorEvent() [all …]
|
/system/chre/apps/test/chqts/src/shared/ |
D | macros.h | 27 if ((val1) != (val2)) sendFatalFailureToHost(failureMessage) 34 if ((val1) == (val2)) sendFatalFailureToHost(failureMessage) 41 if ((value) < (lower)) sendFatalFailureToHost(failureMessage) 48 if ((value) > (upper)) sendFatalFailureToHost(failureMessage) 55 if ((value) >= (upper)) sendFatalFailureToHost(failureMessage)
|
/system/chre/apps/test/chqts/src/echo_message/ |
D | echo_message.cc | 35 using nanoapp_testing::sendFatalFailureToHost; 47 sendFatalFailureToHost("Invalid sender instance ID:", &senderInstanceId); in nanoappHandleEvent() 53 sendFatalFailureToHost("Failed to allocate memory for message buffer"); in nanoappHandleEvent() 62 sendFatalFailureToHost("Failed to send message to host"); in nanoappHandleEvent()
|