Home
last modified time | relevance | path

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

1234

/system/chre/apps/test/chqts/src/general_test/
Dsend_message_to_host_test.cc96 size_t messageSize) { in smallMessageCallback() argument
105 if (messageSize != kSmallMessageSize) { in smallMessageCallback()
106 uint32_t size = static_cast<uint32_t>(messageSize); in smallMessageCallback()
111 for (size_t i = 0; i < messageSize; i++) { in smallMessageCallback()
142 size_t messageSize) { in smallMessageCallback0() argument
143 smallMessageCallback<0>(message, messageSize); in smallMessageCallback0()
147 size_t messageSize) { in smallMessageCallback1() argument
148 smallMessageCallback<1>(message, messageSize); in smallMessageCallback1()
164 size_t messageSize) { in largeMessageCallback() argument
181 if (messageSize != kLargeSizes[index]) { in largeMessageCallback()
[all …]
Dsend_message_to_host_test.h57 void setUp(uint32_t messageSize, const void *message) override;
83 static void smallMessageCallback(void *message, size_t messageSize);
85 static void smallMessageCallback0(void *message, size_t messageSize);
86 static void smallMessageCallback1(void *message, size_t messageSize);
88 static void largeMessageCallback(void *message, size_t messageSize);
94 static bool sendMessageToHost(void *message, uint32_t messageSize,
Devent_between_apps_test.cc42 void EventBetweenApps0::setUp(uint32_t messageSize, in setUp() argument
44 if (messageSize != 0) { in setUp()
46 &messageSize); in setUp()
79 void EventBetweenApps1::setUp(uint32_t messageSize, in setUp() argument
81 if (messageSize != 0) { in setUp()
83 &messageSize); in setUp()
Dhello_world_test.cc28 void HelloWorldTest::setUp(uint32_t messageSize, const void * /* message */) { in setUp() argument
29 if (messageSize != 0) { in setUp()
31 &messageSize); in setUp()
Dhost_awake_suspend_test.cc29 void HostAwakeSuspendTest::setUp(uint32_t messageSize, in setUp() argument
31 if (messageSize != 0) { in setUp()
33 "Expected 0 byte message, got more bytes:", &messageSize); in setUp()
Dwwan_capabilities_test.cc26 void WwanCapabilitiesTest::setUp(uint32_t messageSize, in setUp() argument
28 if (messageSize != 0) { in setUp()
30 "Expected 0 byte message, got more bytes:", &messageSize); in setUp()
Dgnss_capabilities_test.cc26 void GnssCapabilitiesTest::setUp(uint32_t messageSize, in setUp() argument
28 if (messageSize != 0) { in setUp()
30 "Expected 0 byte message, got more bytes:", &messageSize); in setUp()
Dwifi_capabilities_test.cc26 void WifiCapabilitiesTest::setUp(uint32_t messageSize, in setUp() argument
28 if (messageSize != 0) { in setUp()
30 "Expected 0 byte message, got more bytes:", &messageSize); in setUp()
Dsensor_info_test.cc24 void SensorInfoTest::setUp(uint32_t messageSize, const void * /* message */) { in setUp() argument
25 if (messageSize != 0) { in setUp()
27 "Expected 0 byte message, got more bytes:", &messageSize); in setUp()
Dversion_consistency_test.cc32 void VersionConsistencyTest::setUp(uint32_t messageSize, in setUp() argument
34 if (messageSize != 0) { in setUp()
37 &messageSize); in setUp()
Dget_time_test.cc34 void GetTimeTest::setUp(uint32_t messageSize, const void * /* message */) { in setUp() argument
35 if (messageSize != 0) { in setUp()
37 &messageSize); in setUp()
Dtest.cc34 void Test::testSetUp(uint32_t messageSize, const void *message) { in testSetUp() argument
36 setUp(messageSize, message); in testSetUp()
104 if (data->messageSize != expectedMessageSize) { in getMessageDataFromHostEvent()
105 sendFatalFailureToHost("Unexpected messageSize:", &(data->messageSize)); in getMessageDataFromHostEvent()
Dbasic_gnss_test.cc66 void BasicGnssTest::setUp(uint32_t messageSize, const void * /* message */) { in setUp() argument
67 if (messageSize != 0) { in setUp()
69 &messageSize); in setUp()
Dheap_alloc_stress_test.cc45 void HeapAllocStressTest::setUp(uint32_t messageSize, in setUp() argument
47 if (messageSize != 0) { in setUp()
50 &messageSize); in setUp()
/system/chre/core/
Dhost_comms_manager.cc29 Nanoapp *nanoapp, void *messageData, size_t messageSize, in sendMessageToHostFromNanoapp() argument
33 if (messageSize > 0 && messageData == nullptr) { in sendMessageToHostFromNanoapp()
35 } else if (messageSize > CHRE_MESSAGE_TO_HOST_MAX_SIZE) { in sendMessageToHostFromNanoapp()
36 LOGW("Rejecting message of size %zu bytes (max %d)", messageSize, in sendMessageToHostFromNanoapp()
51 msgToHost->message.wrap(static_cast<uint8_t *>(messageData), messageSize); in sendMessageToHostFromNanoapp()
83 const void *messageData, uint32_t messageSize) { in craftNanoappMessageFromHost() argument
88 static_cast<const uint8_t *>(messageData), messageSize)) { in craftNanoappMessageFromHost()
92 messageSize, hostEndpoint, messageType); in craftNanoappMessageFromHost()
98 msgFromHost->fromHostData.messageSize = messageSize; in craftNanoappMessageFromHost()
130 size_t messageSize) { in sendMessageToNanoappFromHost() argument
[all …]
/system/chre/apps/test/chqts/src/echo_message/
Decho_message.cc51 static_cast<uint8_t *>(chreHeapAlloc(msg->messageSize)); in nanoappHandleEvent()
52 if (msg->messageSize != 0 && messageBuffer == nullptr) { in nanoappHandleEvent()
57 const_cast<void *>(msg->message), msg->messageSize); in nanoappHandleEvent()
60 static_cast<void *>(messageBuffer), msg->messageSize, in nanoappHandleEvent()
/system/chre/platform/shared/
Dchre_api_core.cc68 DLL_EXPORT bool chreSendMessageToHost(void *message, uint32_t messageSize, in chreSendMessageToHost() argument
72 message, static_cast<size_t>(messageSize), messageType, in chreSendMessageToHost()
77 void *message, size_t messageSize, uint32_t messageType, in chreSendMessageWithPermissions() argument
92 nanoapp, message, messageSize, messageType, hostEndpoint, in chreSendMessageWithPermissions()
97 freeCallback(message, messageSize); in chreSendMessageWithPermissions()
104 void *message, size_t messageSize, uint32_t messageType, in chreSendMessageToHostEndpoint() argument
107 message, messageSize, messageType, hostEndpoint, in chreSendMessageToHostEndpoint()
/system/chre/apps/message_world/
Dmessage_world.cc34 void messageFreeCallback(void *message, size_t messageSize) { in messageFreeCallback() argument
38 message, (message == gMessageData), messageSize, in messageFreeCallback()
39 (messageSize == sizeof(gMessageData))); in messageFreeCallback()
64 msg->messageType, msg->messageSize, msg->message, msg->hostEndpoint); in nanoappHandleEvent()
/system/chre/chre_api/include/chre_api/chre/
Devent.h327 uint32_t messageSize; member
414 typedef void (chreMessageFreeFunction)(void *message, size_t messageSize);
459 bool chreSendMessageToHost(void *message, uint32_t messageSize,
475 bool chreSendMessageToHostEndpoint(void *message, size_t messageSize,
558 bool chreSendMessageWithPermissions(void *message, size_t messageSize,
/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/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/chre_api/legacy/v1_3/chre/
Devent.h259 uint32_t messageSize; member
345 typedef void (chreMessageFreeFunction)(void *message, size_t messageSize);
390 bool chreSendMessageToHost(void *message, uint32_t messageSize,
450 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_4/chre/
Devent.h273 uint32_t messageSize; member
360 typedef void (chreMessageFreeFunction)(void *message, size_t messageSize);
405 bool chreSendMessageToHost(void *message, uint32_t messageSize,
466 bool chreSendMessageToHostEndpoint(void *message, size_t messageSize,
/system/chre/core/include/chre/core/
Dhost_comms_manager.h122 size_t messageSize, uint32_t messageType,
144 size_t messageSize);
207 uint32_t messageSize);

1234