/system/chre/apps/test/chqts/src/general_test/ |
D | estimated_host_time_test.cc | 42 nanoapp_testing::sendFatalFailureToHost( in setUp() 62 nanoapp_testing::MessageType::kContinue, sizeof(givenHostTime)); in handleEvent() 64 nanoapp_testing::memcpy(&givenHostTime, message, sizeof(givenHostTime)); in handleEvent() 65 givenHostTime = nanoapp_testing::littleEndianToHost(givenHostTime); in handleEvent() 69 nanoapp_testing::sendSuccessToHost(); in handleEvent() 71 nanoapp_testing::sendFatalFailureToHost( in handleEvent() 75 nanoapp_testing::sendSuccessToHost(); in handleEvent() 77 nanoapp_testing::sendFatalFailureToHost( in handleEvent() 89 nanoapp_testing::sendMessageToHost( in verifyIncreasingTime() 90 nanoapp_testing::MessageType::kContinue); in verifyIncreasingTime() [all …]
|
D | nanoapp_info_events_test_observer.cc | 30 nanoapp_testing::sendMessageToHost(nanoapp_testing::MessageType::kContinue); in setUp() 52 nanoapp_testing::MessageType::kContinue, sizeof(performerInstanceId)); in handleEvent() 54 nanoapp_testing::memcpy(&performerInstanceId, message, in handleEvent() 57 nanoapp_testing::littleEndianToHost(performerInstanceId); in handleEvent() 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() 104 nanoapp_testing::sendSuccessToHost(); in processStartStopHistory()
|
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() 62 nanoapp_testing::sendSuccessToHost(); in validateSensorInfo()
|
D | nanoapp_info.cc | 34 nanoapp_testing::sendFatalFailureToHost( in NanoappInfo() 41 .appId = nanoapp_testing::hostToLittleEndian(mAppId), in sendToHost() 42 .instanceId = nanoapp_testing::hostToLittleEndian(mInstanceId), in sendToHost() 45 sendMessageToHost(nanoapp_testing::MessageType::kContinue, &info, in sendToHost() 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 | nanoapp_info_by_app_id_test.cc | 33 nanoapp_testing::sendMessageToHost(nanoapp_testing::MessageType::kContinue); in setUp() 43 nanoapp_testing::MessageType::kContinue, sizeof(&appVersion)); in handleEvent() 45 nanoapp_testing::memcpy(&appVersion, message, sizeof(appVersion)); in handleEvent() 46 appVersion = nanoapp_testing::littleEndianToHost(appVersion); in handleEvent() 51 nanoapp_testing::sendSuccessToHost(); in handleEvent()
|
D | nanoapp_info_by_instance_id_test.cc | 34 nanoapp_testing::sendMessageToHost(nanoapp_testing::MessageType::kContinue); in setUp() 44 nanoapp_testing::MessageType::kContinue, sizeof(&appVersion)); in handleEvent() 46 nanoapp_testing::memcpy(&appVersion, message, sizeof(appVersion)); in handleEvent() 47 appVersion = nanoapp_testing::littleEndianToHost(appVersion); in handleEvent() 52 nanoapp_testing::sendSuccessToHost(); in handleEvent()
|
D | wwan_cell_info_test.cc | 41 sendMessageToHost(nanoapp_testing::MessageType::kSkipped); in setUp() 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() 130 nanoapp_testing::sendSuccessToHost(); in validateCellInfo() 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() [all …]
|
D | event_between_apps_test.cc | 30 using nanoapp_testing::MessageType; 31 using nanoapp_testing::sendFatalFailureToHost; 32 using nanoapp_testing::sendSuccessToHost; 64 nanoapp_testing::memcpy(&app1InstanceId, message, sizeof(app1InstanceId)); in handleEvent() 65 app1InstanceId = nanoapp_testing::littleEndianToHost(app1InstanceId); in handleEvent() 102 nanoapp_testing::memcpy(&mApp0InstanceId, message, sizeof(mApp0InstanceId)); in handleEvent() 103 mApp0InstanceId = nanoapp_testing::littleEndianToHost(mApp0InstanceId); in handleEvent() 115 nanoapp_testing::memcpy(&magic, eventData, sizeof(magic)); in handleEvent()
|
D | basic_gnss_test.cc | 36 nanoapp_testing::sendFatalFailureToHost( in testLocationSessionAsync() 40 nanoapp_testing::sendFatalFailureToHost( in testLocationSessionAsync() 51 nanoapp_testing::sendFatalFailureToHost( in setUp() 62 nanoapp_testing::sendSuccessToHost(); in setUp()
|
D | wwan_capabilities_test.cc | 29 nanoapp_testing::sendFatalFailureToHost( in setUp() 44 nanoapp_testing::sendFatalFailureToHost( in setUp() 48 nanoapp_testing::sendFatalFailureToHost( in setUp() 52 nanoapp_testing::sendSuccessToHost(); in setUp()
|
D | gnss_capabilities_test.cc | 29 nanoapp_testing::sendFatalFailureToHost( in setUp() 49 nanoapp_testing::sendFatalFailureToHost( in setUp() 53 nanoapp_testing::sendFatalFailureToHost( in setUp() 57 nanoapp_testing::sendSuccessToHost(); in setUp()
|
D | wifi_capabilities_test.cc | 29 nanoapp_testing::sendFatalFailureToHost( in setUp() 49 nanoapp_testing::sendFatalFailureToHost( in setUp() 53 nanoapp_testing::sendFatalFailureToHost( in setUp() 57 nanoapp_testing::sendSuccessToHost(); in setUp()
|
D | test.cc | 25 using nanoapp_testing::sendFatalFailureToHost; 26 using nanoapp_testing::sendFatalFailureToHostUint8; 38 sendMessageToHost(nanoapp_testing::MessageType::kSkipped); in testSetUp() 80 nanoapp_testing::sendFatalFailureToHostUint8( in validateChreAsyncResult() 82 request.timeoutNs / nanoapp_testing::kOneSecondInNanoseconds); in validateChreAsyncResult() 88 nanoapp_testing::MessageType expectedMessageType, in getMessageDataFromHostEvent()
|
D | host_awake_suspend_test.cc | 32 nanoapp_testing::sendFatalFailureToHost( in setUp() 41 nanoapp_testing::sendFatalFailureToHost( in setUp() 45 nanoapp_testing::sendSuccessToHost(); in setUp()
|
D | get_time_test.cc | 27 using nanoapp_testing::MessageType; 28 using nanoapp_testing::sendFatalFailureToHost; 67 prevTime = nanoapp_testing::hostToLittleEndian(prevTime); in setUp() 83 uint64_t time = nanoapp_testing::hostToLittleEndian(chreGetTime()); in handleEvent()
|
D | simple_heap_alloc_test.cc | 29 using nanoapp_testing::MessageType; 30 using nanoapp_testing::sendFatalFailureToHost; 31 using nanoapp_testing::sendMessageToHost; 32 using nanoapp_testing::sendSuccessToHost; 107 nanoapp_testing::memset(mPtrs, 0, sizeof(mPtrs)); in setUp() 151 nanoapp_testing::memset(mPtrs[i], 0xFF, kSizes[i]); in setUp()
|
D | running_info.cc | 34 nanoapp_testing::sendFatalFailureToHost( in validate() 38 nanoapp_testing::sendFatalFailureToHost( in validate() 42 nanoapp_testing::sendFatalFailureToHost( in validate()
|
D | send_message_to_host_test.cc | 30 using nanoapp_testing::MessageType; 31 using nanoapp_testing::sendFatalFailureToHost; 32 using nanoapp_testing::sendInternalFailureToHost; 33 using nanoapp_testing::sendSuccessToHost; 213 nanoapp_testing::memset(sSmallMessageData, kDataByte, in prepTestMemory() 221 nanoapp_testing::memset(sLargeMessageData[i], kDataByte, kLargeSizes[i]); in prepTestMemory() 228 uint32_t maxSize = nanoapp_testing::hostToLittleEndian( in sendMessageMaxSize() 235 nanoapp_testing::sendMessageToHost(MessageType::kContinue, &maxSize, in sendMessageMaxSize()
|
D | heap_alloc_stress_test.cc | 27 using nanoapp_testing::sendFailureToHost; 28 using nanoapp_testing::sendFatalFailureToHost; 29 using nanoapp_testing::sendSuccessToHost; 39 nanoapp_testing::abort(); in tryAbsurdMalloc()
|
D | cell_info_base.cc | 40 nanoapp_testing::sendFatalFailureToHost(message, &val); in sendFatalFailureInt32() 45 nanoapp_testing::sendFatalFailureToHost(message, &val); in sendFatalFailureUint8() 49 nanoapp_testing::sendFatalFailureToHost(message, nullptr /* value */); in sendFatalFailure()
|
D | app.cc | 60 using nanoapp_testing::AbortBlame; 61 using nanoapp_testing::MessageType; 62 using nanoapp_testing::sendFatalFailureToHost; 63 using nanoapp_testing::sendInternalFailureToHost; 140 nanoapp_testing::memcpy(&(ret.reservedMessageType), messageBytes, in adjustHostMessageForNYC() 143 nanoapp_testing::littleEndianToHost(ret.reservedMessageType); in adjustHostMessageForNYC() 287 nanoapp_testing::abort(AbortBlame::kChreInNanoappEnd); in nanoappEnd()
|
D | heap_exhaustion_stability_test.cc | 27 using nanoapp_testing::kOneMillisecondInNanoseconds; 28 using nanoapp_testing::kOneSecondInNanoseconds; 29 using nanoapp_testing::sendFailureToHost; 30 using nanoapp_testing::sendFatalFailureToHost; 31 using nanoapp_testing::sendSuccessToHost;
|
/system/chre/apps/test/chqts/src/busy_startup/ |
D | busy_startup.cc | 53 using nanoapp_testing::MessageType; 54 using nanoapp_testing::sendFatalFailureToHost; 55 using nanoapp_testing::sendFatalFailureToHostUint8; 56 using nanoapp_testing::sendMessageToHost; 57 using nanoapp_testing::sendSuccessToHost; 58 using nanoapp_testing::TestSuccessMarker; 207 20 * nanoapp_testing::kOneMillisecondInNanoseconds, in nanoappStart()
|
/system/chre/apps/test/chqts/src/shared/ |
D | nano_string_test.cc | 31 using namespace nanoapp_testing; 48 nanoapp_testing::memset(actual, kNewValue, kLenToSet); in testMemset() 80 nanoapp_testing::memcpy(actual, kMemcpySrc, kLenToCopy); in testMemcpy() 99 EXPECT_EQ(::strlen(str), nanoapp_testing::strlen(str)); in TEST() 104 EXPECT_EQ(::strlen(str), nanoapp_testing::strlen(str)); in TEST() 120 nanoapp_testing::strncpy(actual, str, len); in testStrncpy() 150 nanoapp_testing::kUint32ToHexAsciiBufferMinLen; in testHexAscii()
|
/system/chre/apps/test/chqts/src/fail_startup/ |
D | fail_startup.cc | 45 nanoapp_testing::abort(nanoapp_testing::AbortBlame::kChreInNanoappEnd); in nanoappEnd()
|