Home
last modified time | relevance | path

Searched refs:messageSize (Results 1 – 25 of 71) sorted by relevance

123

/system/chre/apps/chqts/src/general_test/
Dsend_message_to_host_test.cc94 size_t messageSize) { in smallMessageCallback() argument
103 if (messageSize != kSmallMessageSize) { in smallMessageCallback()
104 uint32_t size = static_cast<uint32_t>(messageSize); in smallMessageCallback()
109 for (size_t i = 0; i < messageSize; i++) { in smallMessageCallback()
141 size_t messageSize) { in smallMessageCallback0() argument
142 smallMessageCallback<0>(message, messageSize); in smallMessageCallback0()
146 size_t messageSize) { in smallMessageCallback1() argument
147 smallMessageCallback<1>(message, messageSize); in smallMessageCallback1()
163 size_t messageSize) { in largeMessageCallback() argument
180 if (messageSize != kLargeSizes[index]) { in largeMessageCallback()
[all …]
Dsend_message_to_host_test.h57 void setUp(uint32_t messageSize, const void *message) override;
85 static void smallMessageCallback(void *message, size_t messageSize);
87 static void smallMessageCallback0(void *message, size_t messageSize);
88 static void smallMessageCallback1(void *message, size_t messageSize);
90 static void largeMessageCallback(void *message, size_t messageSize);
96 static bool sendMessageToHost(void *message, uint32_t messageSize,
Devent_between_apps_test.cc43 void EventBetweenApps0::setUp(uint32_t messageSize, in setUp() argument
45 if (messageSize != 0) { in setUp()
48 &messageSize); in setUp()
83 void EventBetweenApps1::setUp(uint32_t messageSize, in setUp() argument
85 if (messageSize != 0) { in setUp()
88 &messageSize); in setUp()
Dhello_world_test.cc30 void HelloWorldTest::setUp(uint32_t messageSize, const void * /* message */) { in setUp() argument
31 if (messageSize != 0) { in setUp()
33 &messageSize); in setUp()
Dhost_awake_suspend_test.cc32 uint32_t messageSize, const void * /* message */) { in setUp() argument
33 if (messageSize != 0) { in setUp()
35 "Expected 0 byte message, got more bytes:", &messageSize); in setUp()
Dbasic_gnss_test.cc52 uint32_t messageSize, const void * /* message */) { in setUp() argument
53 if (messageSize != 0) { in setUp()
55 "Expected 0 byte message, got more bytes:", &messageSize); in setUp()
Dwwan_capabilities_test.cc28 void WwanCapabilitiesTest::setUp(uint32_t messageSize, in setUp() argument
30 if (messageSize != 0) { in setUp()
32 "Expected 0 byte message, got more bytes:", &messageSize); in setUp()
Dgnss_capabilities_test.cc28 void GnssCapabilitiesTest::setUp(uint32_t messageSize, in setUp() argument
30 if (messageSize != 0) { in setUp()
32 "Expected 0 byte message, got more bytes:", &messageSize); in setUp()
Dwifi_capabilities_test.cc28 void WifiCapabilitiesTest::setUp(uint32_t messageSize, in setUp() argument
30 if (messageSize != 0) { in setUp()
32 "Expected 0 byte message, got more bytes:", &messageSize); in setUp()
Dsensor_info_test.cc26 void SensorInfoTest::setUp(uint32_t messageSize, const void * /* message */) { in setUp() argument
27 if (messageSize != 0) { in setUp()
29 "Expected 0 byte message, got more bytes:", &messageSize); in setUp()
Dversion_sanity_test.cc34 void VersionSanityTest::setUp(uint32_t messageSize, const void * /* message */) { in setUp() argument
35 if (messageSize != 0) { in setUp()
38 &messageSize); in setUp()
Dtest.cc35 void Test::testSetUp(uint32_t messageSize, const void *message) { in testSetUp() argument
37 setUp(messageSize, message); in testSetUp()
105 if (data->messageSize != expectedMessageSize) { in getMessageDataFromHostEvent()
106 sendFatalFailureToHost("Unexpected messageSize:", &(data->messageSize)); in getMessageDataFromHostEvent()
Dget_time_test.cc36 void GetTimeTest::setUp(uint32_t messageSize, const void * /* message */) { in setUp() argument
37 if (messageSize != 0) { in setUp()
40 &messageSize); in setUp()
Dheap_alloc_stress_test.cc47 void HeapAllocStressTest::setUp(uint32_t messageSize, in setUp() argument
49 if (messageSize != 0) { in setUp()
52 &messageSize); in setUp()
Dlogging_sanity_test.cc37 void LoggingSanityTest::setUp(uint32_t messageSize, in setUp() argument
39 if (messageSize != 0) { in setUp()
42 &messageSize); in setUp()
Dsimple_heap_alloc_test.cc108 void SimpleHeapAllocTest::setUp(uint32_t messageSize, in setUp() argument
112 if (messageSize != 0) { in setUp()
115 &messageSize); in setUp()
158 testMaxAlignment(messageSize); in setUp()
/system/chre/core/
Dhost_comms_manager.cc34 Nanoapp *nanoapp, void *messageData, size_t messageSize, in sendMessageToHostFromNanoapp() argument
38 if (messageSize > 0 && messageData == nullptr) { in sendMessageToHostFromNanoapp()
40 } else if (messageSize > CHRE_MESSAGE_TO_HOST_MAX_SIZE) { in sendMessageToHostFromNanoapp()
42 messageSize, CHRE_MESSAGE_TO_HOST_MAX_SIZE); in sendMessageToHostFromNanoapp()
52 msgToHost->message.wrap(static_cast<uint8_t *>(messageData), messageSize); in sendMessageToHostFromNanoapp()
73 const void *messageData, uint32_t messageSize, uint32_t targetInstanceId) { in deliverNanoappMessageFromHost() argument
80 static_cast<const uint8_t *>(messageData), messageSize)) { in deliverNanoappMessageFromHost()
82 "(endpoint 0x%" PRIx16 " type %" PRIu32 ")", messageSize, in deliverNanoappMessageFromHost()
87 msgFromHost->fromHostData.messageSize = static_cast<uint32_t>( in deliverNanoappMessageFromHost()
88 messageSize); in deliverNanoappMessageFromHost()
[all …]
/system/chre/apps/chqts/src/echo_message/
Decho_message.cc52 static_cast<uint8_t*>(chreHeapAlloc(msg->messageSize)); in nanoappHandleEvent()
53 if (msg->messageSize != 0 && messageBuffer == nullptr) { in nanoappHandleEvent()
58 msg->messageSize); in nanoappHandleEvent()
61 static_cast<void*>(messageBuffer), msg->messageSize, in nanoappHandleEvent()
/system/chre/apps/message_world/
Dmessage_world.cc34 void messageFreeCallback(void *message, size_t messageSize) { in messageFreeCallback() argument
38 messageSize, (messageSize == sizeof(gMessageData))); in messageFreeCallback()
64 msg->messageType, msg->messageSize, msg->message, msg->hostEndpoint); in nanoappHandleEvent()
/system/chre/platform/shared/
Dchre_api_core.cc67 DLL_EXPORT bool chreSendMessageToHost(void *message, uint32_t messageSize, in chreSendMessageToHost() argument
71 message, static_cast<size_t>(messageSize), messageType, in chreSendMessageToHost()
76 void *message, size_t messageSize, uint32_t messageType, in chreSendMessageToHostEndpoint() argument
90 nanoapp, message, messageSize, messageType, hostEndpoint, freeCallback); in chreSendMessageToHostEndpoint()
94 freeCallback(message, messageSize); in chreSendMessageToHostEndpoint()
/system/chre/chre_api/legacy/v1_1/chre/
Devent.h231 uint32_t messageSize; member
317 typedef void (chreMessageFreeFunction)(void *message, size_t messageSize);
365 bool chreSendMessageToHost(void *message, uint32_t messageSize,
425 bool chreSendMessageToHostEndpoint(void *message, size_t messageSize,
/system/chre/chre_api/include/chre_api/chre/
Devent.h259 uint32_t messageSize; member
345 typedef void (chreMessageFreeFunction)(void *message, size_t messageSize);
393 bool chreSendMessageToHost(void *message, uint32_t messageSize,
453 bool chreSendMessageToHostEndpoint(void *message, size_t messageSize,
/system/chre/chre_api/legacy/v1_2/chre/
Devent.h259 uint32_t messageSize; member
345 typedef void (chreMessageFreeFunction)(void *message, size_t messageSize);
393 bool chreSendMessageToHost(void *message, uint32_t messageSize,
453 bool chreSendMessageToHostEndpoint(void *message, size_t messageSize,
/system/chre/chre_api/legacy/v1_0/chre/
Devent.h134 uint32_t messageSize; member
177 typedef void (chreMessageFreeFunction)(void *message, size_t messageSize);
263 bool chreSendMessageToHost(void *message, uint32_t messageSize,
/system/chre/core/include/chre/core/
Dhost_comms_manager.h111 Nanoapp *nanoapp, void *messageData, size_t messageSize,
131 const void *messageData, size_t messageSize);
170 const void *messageData, uint32_t messageSize, uint32_t targetInstanceId);

123