Home
last modified time | relevance | path

Searched refs:nanoapp_testing (Results 1 – 25 of 59) sorted by relevance

123

/system/chre/apps/test/chqts/src/general_test/
Destimated_host_time_test.cc42 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 …]
Dnanoapp_info_events_test_observer.cc30 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()
Dsensor_info_test.cc26 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()
Dnanoapp_info.cc34 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()
Dnanoapp_info_by_app_id_test.cc33 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()
Dnanoapp_info_by_instance_id_test.cc34 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()
Dwwan_cell_info_test.cc41 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 …]
Devent_between_apps_test.cc30 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()
Dbasic_gnss_test.cc36 nanoapp_testing::sendFatalFailureToHost( in testLocationSessionAsync()
40 nanoapp_testing::sendFatalFailureToHost( in testLocationSessionAsync()
51 nanoapp_testing::sendFatalFailureToHost( in setUp()
62 nanoapp_testing::sendSuccessToHost(); in setUp()
Dwwan_capabilities_test.cc29 nanoapp_testing::sendFatalFailureToHost( in setUp()
44 nanoapp_testing::sendFatalFailureToHost( in setUp()
48 nanoapp_testing::sendFatalFailureToHost( in setUp()
52 nanoapp_testing::sendSuccessToHost(); in setUp()
Dgnss_capabilities_test.cc29 nanoapp_testing::sendFatalFailureToHost( in setUp()
49 nanoapp_testing::sendFatalFailureToHost( in setUp()
53 nanoapp_testing::sendFatalFailureToHost( in setUp()
57 nanoapp_testing::sendSuccessToHost(); in setUp()
Dwifi_capabilities_test.cc29 nanoapp_testing::sendFatalFailureToHost( in setUp()
49 nanoapp_testing::sendFatalFailureToHost( in setUp()
53 nanoapp_testing::sendFatalFailureToHost( in setUp()
57 nanoapp_testing::sendSuccessToHost(); in setUp()
Dtest.cc25 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()
Dhost_awake_suspend_test.cc32 nanoapp_testing::sendFatalFailureToHost( in setUp()
41 nanoapp_testing::sendFatalFailureToHost( in setUp()
45 nanoapp_testing::sendSuccessToHost(); in setUp()
Dget_time_test.cc27 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()
Dsimple_heap_alloc_test.cc29 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()
Drunning_info.cc34 nanoapp_testing::sendFatalFailureToHost( in validate()
38 nanoapp_testing::sendFatalFailureToHost( in validate()
42 nanoapp_testing::sendFatalFailureToHost( in validate()
Dsend_message_to_host_test.cc30 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()
Dheap_alloc_stress_test.cc27 using nanoapp_testing::sendFailureToHost;
28 using nanoapp_testing::sendFatalFailureToHost;
29 using nanoapp_testing::sendSuccessToHost;
39 nanoapp_testing::abort(); in tryAbsurdMalloc()
Dcell_info_base.cc40 nanoapp_testing::sendFatalFailureToHost(message, &val); in sendFatalFailureInt32()
45 nanoapp_testing::sendFatalFailureToHost(message, &val); in sendFatalFailureUint8()
49 nanoapp_testing::sendFatalFailureToHost(message, nullptr /* value */); in sendFatalFailure()
Dapp.cc60 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()
Dheap_exhaustion_stability_test.cc27 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/
Dbusy_startup.cc53 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/
Dnano_string_test.cc31 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/
Dfail_startup.cc45 nanoapp_testing::abort(nanoapp_testing::AbortBlame::kChreInNanoappEnd); in nanoappEnd()

123