Home
last modified time | relevance | path

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

123

/system/chre/apps/chqts/src/general_test/
Destimated_host_time_test.cc43 nanoapp_testing::sendFatalFailureToHost( in setUp()
64 nanoapp_testing::MessageType::kContinue, in handleEvent()
67 nanoapp_testing::memcpy(&givenHostTime, message, sizeof(givenHostTime)); in handleEvent()
68 givenHostTime = nanoapp_testing::littleEndianToHost(givenHostTime); in handleEvent()
72 nanoapp_testing::sendSuccessToHost(); in handleEvent()
74 nanoapp_testing::sendFatalFailureToHost( in handleEvent()
78 nanoapp_testing::sendSuccessToHost(); in handleEvent()
80 nanoapp_testing::sendFatalFailureToHost( in handleEvent()
92 nanoapp_testing::sendMessageToHost( in verifyIncreasingTime()
93 nanoapp_testing::MessageType::kContinue); in verifyIncreasingTime()
[all …]
Dnanoapp_info_events_test_observer.cc31 nanoapp_testing::sendMessageToHost(nanoapp_testing::MessageType::kContinue); in setUp()
55 nanoapp_testing::MessageType::kContinue, sizeof(performerInstanceId)); in handleEvent()
57 nanoapp_testing::memcpy(&performerInstanceId, message, in handleEvent()
60 nanoapp_testing::littleEndianToHost(performerInstanceId); in handleEvent()
96 nanoapp_testing::sendFatalFailureToHost( in processStartStopHistory()
99 nanoapp_testing::sendFatalFailureToHost( in processStartStopHistory()
102 nanoapp_testing::sendFatalFailureToHost( in processStartStopHistory()
105 nanoapp_testing::sendFatalFailureToHost( in processStartStopHistory()
108 nanoapp_testing::sendFatalFailureToHost( in processStartStopHistory()
111 nanoapp_testing::sendSuccessToHost(); in processStartStopHistory()
Dsensor_info_test.cc28 nanoapp_testing::sendFatalFailureToHost( in setUp()
32 nanoapp_testing::sendFatalFailureToHost( in setUp()
38 nanoapp_testing::sendFatalFailureToHost( in setUp()
49 nanoapp_testing::sendFatalFailureToHost( in validateSensorInfo()
52 nanoapp_testing::sendFatalFailureToHost( in validateSensorInfo()
58 nanoapp_testing::sendFatalFailureToHost( in validateSensorInfo()
62 nanoapp_testing::sendFatalFailureToHost( in validateSensorInfo()
65 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, in sendToHost()
52 nanoapp_testing::sendFatalFailureToHost( in validate()
56 nanoapp_testing::sendFatalFailureToHost( in validate()
68 nanoapp_testing::sendFatalFailureToHost( in queryByAppId()
79 nanoapp_testing::sendFatalFailureToHost( in queryByInstanceId()
Dnanoapp_info_by_instance_id_test.cc35 nanoapp_testing::sendMessageToHost(nanoapp_testing::MessageType::kContinue); in setUp()
46 nanoapp_testing::MessageType::kContinue, in handleEvent()
49 nanoapp_testing::memcpy(&appVersion, message, sizeof(appVersion)); in handleEvent()
50 appVersion = nanoapp_testing::littleEndianToHost(appVersion); in handleEvent()
55 nanoapp_testing::sendSuccessToHost(); in handleEvent()
Dnanoapp_info_by_app_id_test.cc35 nanoapp_testing::sendMessageToHost(nanoapp_testing::MessageType::kContinue); in setUp()
46 nanoapp_testing::MessageType::kContinue, in handleEvent()
49 nanoapp_testing::memcpy(&appVersion, message, sizeof(appVersion)); in handleEvent()
50 appVersion = nanoapp_testing::littleEndianToHost(appVersion); in handleEvent()
55 nanoapp_testing::sendSuccessToHost(); in handleEvent()
Dwwan_cell_info_test.cc42 sendMessageToHost(nanoapp_testing::MessageType::kSkipped); in setUp()
44 nanoapp_testing::sendFatalFailureToHost( in setUp()
51 nanoapp_testing::sendFatalFailureToHost( in setUp()
67 nanoapp_testing::sendFatalFailureToHost( in handleEvent()
74 nanoapp_testing::sendFatalFailureToHost( in handleEvent()
78 nanoapp_testing::sendFatalFailureToHost( in handleEvent()
141 nanoapp_testing::sendSuccessToHost(); in validateCellInfo()
150 nanoapp_testing::sendFatalFailureToHost("Received eventData is null"); in validateCellInfoResult()
152 nanoapp_testing::sendFatalFailureToHost( in validateCellInfoResult()
155 nanoapp_testing::sendFatalFailureToHost( in validateCellInfoResult()
[all …]
Devent_between_apps_test.cc30 using nanoapp_testing::MessageType;
31 using nanoapp_testing::sendFatalFailureToHost;
32 using nanoapp_testing::sendSuccessToHost;
67 nanoapp_testing::memcpy(&app1InstanceId, message, sizeof(app1InstanceId)); in handleEvent()
68 app1InstanceId = nanoapp_testing::littleEndianToHost(app1InstanceId); in handleEvent()
108 nanoapp_testing::memcpy(&mApp0InstanceId, message, in handleEvent()
110 mApp0InstanceId = nanoapp_testing::littleEndianToHost(mApp0InstanceId); in handleEvent()
122 nanoapp_testing::memcpy(&magic, eventData, sizeof(magic)); in handleEvent()
Dbasic_gnss_test.cc36 nanoapp_testing::sendFatalFailureToHost( in testLocationSessionAsync()
40 nanoapp_testing::sendFatalFailureToHost( in testLocationSessionAsync()
54 nanoapp_testing::sendFatalFailureToHost( in setUp()
65 nanoapp_testing::sendSuccessToHost(); in setUp()
Dwwan_capabilities_test.cc31 nanoapp_testing::sendFatalFailureToHost( in setUp()
46 nanoapp_testing::sendFatalFailureToHost( in setUp()
50 nanoapp_testing::sendFatalFailureToHost( in setUp()
54 nanoapp_testing::sendSuccessToHost(); in setUp()
Dgnss_capabilities_test.cc31 nanoapp_testing::sendFatalFailureToHost( in setUp()
51 nanoapp_testing::sendFatalFailureToHost( in setUp()
55 nanoapp_testing::sendFatalFailureToHost( in setUp()
59 nanoapp_testing::sendSuccessToHost(); in setUp()
Dwifi_capabilities_test.cc31 nanoapp_testing::sendFatalFailureToHost( in setUp()
51 nanoapp_testing::sendFatalFailureToHost( in setUp()
55 nanoapp_testing::sendFatalFailureToHost( in setUp()
59 nanoapp_testing::sendSuccessToHost(); in setUp()
Dtest.cc25 using nanoapp_testing::sendFatalFailureToHost;
26 using nanoapp_testing::sendFatalFailureToHostUint8;
39 sendMessageToHost(nanoapp_testing::MessageType::kSkipped); in testSetUp()
81 nanoapp_testing::sendFatalFailureToHostUint8( in validateChreAsyncResult()
83 request.timeoutNs / nanoapp_testing::kOneSecondInNanoseconds); in validateChreAsyncResult()
89 nanoapp_testing::MessageType expectedMessageType, in getMessageDataFromHostEvent()
Dhost_awake_suspend_test.cc34 nanoapp_testing::sendFatalFailureToHost( in setUp()
43 nanoapp_testing::sendFatalFailureToHost( in setUp()
47 nanoapp_testing::sendSuccessToHost(); in setUp()
Dget_time_test.cc27 using nanoapp_testing::MessageType;
28 using nanoapp_testing::sendFatalFailureToHost;
71 prevTime = nanoapp_testing::hostToLittleEndian(prevTime); in setUp()
87 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;
110 nanoapp_testing::memset(mPtrs, 0, sizeof(mPtrs)); in setUp()
155 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.cc28 using nanoapp_testing::MessageType;
29 using nanoapp_testing::sendFatalFailureToHost;
30 using nanoapp_testing::sendInternalFailureToHost;
31 using nanoapp_testing::sendSuccessToHost;
214 nanoapp_testing::memset(sSmallMessageData, kDataByte, in prepTestMemory()
222 nanoapp_testing::memset(sLargeMessageData[i], kDataByte, in prepTestMemory()
230 uint32_t maxSize = nanoapp_testing::hostToLittleEndian( in sendMessageMaxSize()
237 nanoapp_testing::sendMessageToHost(MessageType::kContinue, 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()
Dapp.cc59 using nanoapp_testing::AbortBlame;
60 using nanoapp_testing::MessageType;
61 using nanoapp_testing::sendFatalFailureToHost;
62 using nanoapp_testing::sendInternalFailureToHost;
138 nanoapp_testing::memcpy(&(ret.reservedMessageType), messageBytes, in adjustHostMessageForNYC()
141 nanoapp_testing::littleEndianToHost(ret.reservedMessageType); in adjustHostMessageForNYC()
289 nanoapp_testing::abort(AbortBlame::kChreInNanoappEnd); in nanoappEnd()
Dhello_world_test.cc21 using nanoapp_testing::sendFatalFailureToHost;
22 using nanoapp_testing::sendSuccessToHost;
Dtimer_set_test.cc28 using nanoapp_testing::kOneMillisecondInNanoseconds;
29 using nanoapp_testing::kOneSecondInNanoseconds;
30 using nanoapp_testing::sendFatalFailureToHost;
31 using nanoapp_testing::sendInternalFailureToHost;
32 using nanoapp_testing::sendSuccessToHost;
/system/chre/apps/chqts/src/busy_startup/
Dbusy_startup.cc53 using nanoapp_testing::MessageType;
54 using nanoapp_testing::TestSuccessMarker;
55 using nanoapp_testing::sendMessageToHost;
56 using nanoapp_testing::sendFatalFailureToHost;
57 using nanoapp_testing::sendFatalFailureToHostUint8;
58 using nanoapp_testing::sendSuccessToHost;
210 20 * nanoapp_testing::kOneMillisecondInNanoseconds, in nanoappStart()
/system/chre/apps/chqts/src/shared/
Dnano_string_test.cc31 using namespace nanoapp_testing;
48 nanoapp_testing::memset(actual, kNewValue, kLenToSet); in testMemset()
81 nanoapp_testing::memcpy(actual, kMemcpySrc, kLenToCopy); in testMemcpy()
101 EXPECT_EQ(::strlen(str), nanoapp_testing::strlen(str)); in TEST()
106 EXPECT_EQ(::strlen(str), nanoapp_testing::strlen(str)); in TEST()
122 nanoapp_testing::strncpy(actual, str, len); in testStrncpy()
153 nanoapp_testing::kUint32ToHexAsciiBufferMinLen; in testHexAscii()
/system/chre/apps/chqts/src/fail_startup/
Dfail_startup.cc45 nanoapp_testing::abort(nanoapp_testing::AbortBlame::kChreInNanoappEnd); in nanoappEnd()

123