Home
last modified time | relevance | path

Searched refs:messageType (Results 1 – 25 of 42) sorted by relevance

12

/system/chre/apps/test/chqts/src/shared/
Dsend_message.cc97 static void *prependMessageType(MessageType messageType, void *memory) { in prependMessageType() argument
102 nanoapp_testing::hostToLittleEndian(static_cast<uint32_t>(messageType)); in prependMessageType()
109 static void internalSendMessage(MessageType messageType, void *data, in internalSendMessage() argument
115 data, dataSize, static_cast<uint32_t>(messageType), in internalSendMessage()
122 void sendMessageToHost(MessageType messageType, const void *data, in sendMessageToHost() argument
130 void *ptr = prependMessageType(messageType, myMessageBase); in sendMessageToHost()
132 internalSendMessage(messageType, myMessageBase, fullMessageSize, ChunkAlloc); in sendMessageToHost()
135 void sendStringToHost(MessageType messageType, const char *message, in sendStringToHost() argument
152 char *ptr = static_cast<char *>(prependMessageType(messageType, fullMessage)); in sendStringToHost()
162 internalSendMessage(messageType, fullMessage, fullMessageLen, ChunkAlloc); in sendStringToHost()
Dsend_message.h115 void sendMessageToHost(MessageType messageType, const void *data = nullptr,
133 void sendStringToHost(MessageType messageType, const char *message,
/system/chre/apps/test/common/shared/src/
Dsend_message.cc45 void sendTestResultWithMsgToHost(uint16_t hostEndpointId, uint32_t messageType, in sendTestResultWithMsgToHost() argument
77 chreSendMessageToHostEndpoint(bytes, size, messageType, hostEndpointId, in sendTestResultWithMsgToHost()
89 void sendTestResultToHost(uint16_t hostEndpointId, uint32_t messageType, in sendTestResultToHost() argument
91 sendTestResultWithMsgToHost(hostEndpointId, messageType, success, in sendTestResultToHost()
95 void sendEmptyMessageToHost(uint16_t hostEndpointId, uint32_t messageType) { in sendEmptyMessageToHost() argument
105 messageType, hostEndpointId, in sendEmptyMessageToHost()
/system/chre/apps/test/common/shared/inc/
Dsend_message.h30 void sendTestResultToHost(uint16_t hostEndpointId, uint32_t messageType,
43 void sendTestResultWithMsgToHost(uint16_t hostEndpointId, uint32_t messageType,
52 void sendEmptyMessageToHost(uint16_t hostEndpointId, uint32_t messageType);
/system/chre/apps/test/common/ping_test/src/
Dping_test.cc38 uint32_t messageType = hostData->messageType; in handleMessageFromHost() local
41 } else if (messageType != ping_test_MessageType_PING_COMMAND) { in handleMessageFromHost()
42 LOGE("Invalid message type %" PRIu32, messageType); in handleMessageFromHost()
/system/chre/core/
Dhost_comms_manager.cc30 uint32_t messageType, uint16_t hostEndpoint, uint32_t messagePermissions, in sendMessageToHostFromNanoapp() argument
53 msgToHost->toHostData.messageType = messageType; in sendMessageToHostFromNanoapp()
82 uint64_t appId, uint16_t hostEndpoint, uint32_t messageType, in craftNanoappMessageFromHost() argument
92 messageSize, hostEndpoint, messageType); in craftNanoappMessageFromHost()
97 msgFromHost->fromHostData.messageType = messageType; in craftNanoappMessageFromHost()
127 uint32_t messageType, in sendMessageToNanoappFromHost() argument
140 appId, hostEndpoint, messageType, messageData, in sendMessageToNanoappFromHost()
/system/chre/platform/shared/
Dchre_api_core.cc69 uint32_t messageType, 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()
104 void *message, size_t messageSize, uint32_t messageType, in chreSendMessageToHostEndpoint() argument
107 message, messageSize, messageType, hostEndpoint, in chreSendMessageToHostEndpoint()
Dhost_protocol_common.cc30 FlatBufferBuilder &builder, uint64_t appId, uint32_t messageType, in encodeNanoappMessage() argument
37 builder, appId, messageType, hostEndpoint, messageDataOffset, in encodeNanoappMessage()
49 fbs::ChreMessage messageType, in finalize() argument
54 fbs::CreateMessageContainer(builder, messageType, message, &hostAddr); in finalize()
/system/chre/core/include/chre/core/
Dhost_comms_manager.h53 uint32_t messageType; member
122 size_t messageSize, uint32_t messageType,
141 void sendMessageToNanoappFromHost(uint64_t appId, uint32_t messageType,
205 uint32_t messageType,
/system/chre/apps/test/common/permission_test/src/
Dpermission_test.cc123 uint32_t messageType = hostData->messageType; in handleMessageFromHost() local
126 } else if (messageType != permission_test_MessageType_TEST_COMMAND) { in handleMessageFromHost()
127 LOGE("Invalid message type %" PRIu32, messageType); in handleMessageFromHost()
/system/chre/chre_api/include/chre_api/chre/
Devent.h311 uint32_t messageType; member
460 uint32_t messageType,
476 uint32_t messageType, uint16_t hostEndpoint,
559 uint32_t messageType, uint16_t hostEndpoint,
/system/chre/chre_api/legacy/v1_1/chre/
Devent.h215 uint32_t messageType; member
366 uint32_t messageType,
426 uint32_t messageType, uint16_t hostEndpoint,
/system/chre/host/common/
Ddaemon_base.cc168 fbs::ChreMessage messageType; in onMessageReceived() local
170 messageBuffer, messageLen, &hostClientId, &messageType)) { in onMessageReceived()
175 if (messageType == fbs::ChreMessage::LogMessage) { in onMessageReceived()
183 } else if (messageType == fbs::ChreMessage::LogMessageV2) { in onMessageReceived()
192 } else if (messageType == fbs::ChreMessage::TimeSyncRequest) { in onMessageReceived()
194 } else if (messageType == fbs::ChreMessage::LowPowerMicAccessRequest) { in onMessageReceived()
196 } else if (messageType == fbs::ChreMessage::LowPowerMicAccessRelease) { in onMessageReceived()
/system/chre/chre_api/legacy/v1_3/chre/
Devent.h243 uint32_t messageType; member
391 uint32_t messageType,
451 uint32_t messageType, uint16_t hostEndpoint,
/system/chre/chre_api/legacy/v1_2/chre/
Devent.h243 uint32_t messageType; member
394 uint32_t messageType,
454 uint32_t messageType, uint16_t hostEndpoint,
/system/chre/chre_api/legacy/v1_4/chre/
Devent.h257 uint32_t messageType; member
406 uint32_t messageType,
467 uint32_t messageType, uint16_t hostEndpoint,
/system/chre/apps/test/common/chre_settings_test/src/
Dchre_settings_test_util.cc66 void sendEmptyMessageToHost(uint16_t hostEndpointId, uint32_t messageType) { in sendEmptyMessageToHost() argument
73 messageType, hostEndpointId, in sendEmptyMessageToHost()
/system/chre/platform/shared/include/chre/platform/shared/
Dhost_protocol_common.h75 uint32_t messageType, uint16_t hostEndpoint, const void *messageData,
106 fbs::ChreMessage messageType,
/system/chre/apps/test/common/chre_audio_concurrency_test/src/
Dchre_audio_concurrency_test_manager.cc113 uint32_t messageType = hostData->messageType; in handleMessageFromHost() local
116 } else if (messageType != in handleMessageFromHost()
118 LOGE("Invalid message type %" PRIu32, messageType); in handleMessageFromHost()
/system/chre/java/test/cross_validation/src/com/google/android/chre/test/crossvalidator/
DChreCrossValidatorWifi.java166 int messageType = ChreCrossValidationWifi.MessageType.STEP_START_VALUE; in makeStepStartMessage() local
171 mNappBinary.getNanoAppId(), messageType, stepStartCommand.toByteArray()); in makeStepStartMessage()
219 int messageType = ChreCrossValidationWifi.MessageType.USE_SCAN_RESULTS_SIZE_THRESHOLD_VALUE; in sendMessageUseScanResultsThresholdMessage() local
224 mNappBinary.getNanoAppId(), messageType, messageProto.toByteArray()); in sendMessageUseScanResultsThresholdMessage()
230 int messageType = ChreCrossValidationWifi.MessageType.SCAN_RESULT_VALUE; in makeWifiScanResultMessage() local
236 mNappBinary.getNanoAppId(), messageType, scanResult.toByteArray()); in makeWifiScanResultMessage()
/system/chre/apps/test/common/chre_cross_validator_wifi/src/
Dchre_cross_validator_wifi_manager.cc66 switch (hostData->messageType) { in handleMessageFromHost()
87 hostData->messageType); in handleMessageFromHost()
278 uint32_t messageType) { in encodeAndSendMessageToHost() argument
291 static_cast<void *>(buffer), encodedSize, messageType, in encodeAndSendMessageToHost()
/system/chre/apps/test/common/chre_settings_test/inc/
Dchre_settings_test_util.h28 void sendEmptyMessageToHost(uint16_t hostEndpointId, uint32_t messageType);
/system/chre/chpp/
Dapp.c275 enum ChppMessageType messageType = in chppDatagramLenIsOk() local
278 switch (messageType) { in chppDatagramLenIsOk()
302 CHPP_LOGE("Invalid type=%d or H#%" PRIu8, messageType, handle); in chppDatagramLenIsOk()
565 enum ChppMessageType messageType = CHPP_APP_GET_MESSAGE_TYPE(rxHeader->type); in chppProcessNegotiatedHandleDatagram() local
568 chppClientServiceContextOfHandle(context, rxHeader->handle, messageType); in chppProcessNegotiatedHandleDatagram()
579 chppGetDispatchFunction(context, rxHeader->handle, messageType); in chppProcessNegotiatedHandleDatagram()
599 if (messageType == CHPP_MESSAGE_TYPE_CLIENT_REQUEST) { in chppProcessNegotiatedHandleDatagram()
610 } else if (messageType == CHPP_MESSAGE_TYPE_SERVICE_RESPONSE) { in chppProcessNegotiatedHandleDatagram()
/system/chre/apps/test/pts/audio_enable_disable_test/src/
Daudio_enable_disable_test.cc97 if (message->messageType != pts_chre_MessageType_PTS_TEST_START) { in handleMessageFromHost()
98 LOGE("Unexpected message from host: type %" PRIu32, message->messageType); in handleMessageFromHost()
/system/chre/apps/test/chqts/src/who_am_i/
Dwho_am_i.cc53 sizeof(messageBuffer), msg->messageType, in nanoappHandleEvent()

12