• Home
  • Raw
  • Download

Lines Matching refs:msgLen

170 bool encodeSnsStdAttrReq(UniquePtr<pb_byte_t> *msg, size_t *msgLen) {  in encodeSnsStdAttrReq()  argument
172 CHRE_ASSERT(msgLen); in encodeSnsStdAttrReq()
177 bool success = pb_get_encoded_size(msgLen, sns_std_attr_req_fields, &req); in encodeSnsStdAttrReq()
181 UniquePtr<pb_byte_t> buf(static_cast<pb_byte_t *>(memoryAlloc(*msgLen))); in encodeSnsStdAttrReq()
185 if (msg->isNull() && *msgLen > 0) { in encodeSnsStdAttrReq()
188 pb_ostream_t stream = pb_ostream_from_buffer(msg->get(), *msgLen); in encodeSnsStdAttrReq()
210 size_t *msgLen) { in encodeSnsSuidReq() argument
212 CHRE_ASSERT(msgLen); in encodeSnsSuidReq()
225 if (!pb_get_encoded_size(msgLen, sns_suid_req_fields, &req)) { in encodeSnsSuidReq()
227 } else if (*msgLen == 0) { in encodeSnsSuidReq()
230 UniquePtr<pb_byte_t> buf(static_cast<pb_byte_t *>(memoryAlloc(*msgLen))); in encodeSnsSuidReq()
235 pb_ostream_t stream = pb_ostream_from_buffer(msg->get(), *msgLen); in encodeSnsSuidReq()
259 UniquePtr<pb_byte_t> *msg, size_t *msgLen) { in encodeSnsResamplerConfig() argument
261 CHRE_ASSERT(msgLen); in encodeSnsResamplerConfig()
274 if (!pb_get_encoded_size(msgLen, sns_resampler_config_fields, &req)) { in encodeSnsResamplerConfig()
276 } else if (*msgLen == 0) { in encodeSnsResamplerConfig()
279 UniquePtr<pb_byte_t> buf(static_cast<pb_byte_t *>(memoryAlloc(*msgLen))); in encodeSnsResamplerConfig()
284 pb_ostream_t stream = pb_ostream_from_buffer(msg->get(), *msgLen); in encodeSnsResamplerConfig()
306 UniquePtr<pb_byte_t> *msg, size_t *msgLen) { in encodeSnsStdSensorConfig() argument
308 CHRE_ASSERT(msgLen); in encodeSnsStdSensorConfig()
316 if (!pb_get_encoded_size(msgLen, sns_std_sensor_config_fields, &req)) { in encodeSnsStdSensorConfig()
318 } else if (*msgLen == 0) { in encodeSnsStdSensorConfig()
321 UniquePtr<pb_byte_t> buf(static_cast<pb_byte_t *>(memoryAlloc(*msgLen))); in encodeSnsStdSensorConfig()
326 pb_ostream_t stream = pb_ostream_from_buffer(msg->get(), *msgLen); in encodeSnsStdSensorConfig()
338 size_t *msgLen, in encodeSnsRemoteProcSensorConfig() argument
341 CHRE_ASSERT(msgLen); in encodeSnsRemoteProcSensorConfig()
353 *msgLen = stream.bytes_written; in encodeSnsRemoteProcSensorConfig()
1658 size_t msgLen; in findSuidSync() local
1659 if (encodeSnsSuidReq(dataType, &msg, &msgLen)) { in findSuidSync()
1673 SNS_SUID_MSGID_SNS_SUID_REQ, msg.get(), msgLen, in findSuidSync()
1702 size_t msgLen; in getAttributesSync() local
1703 success = encodeSnsStdAttrReq(&msg, &msgLen); in getAttributesSync()
1707 SNS_STD_MSGID_SNS_STD_ATTR_REQ, msg.get(), msgLen, in getAttributesSync()
1750 size_t msgLen = 0; in makeRequest() local
1760 request, sensorInfo->physicalSuid, &msg, &msgLen); in makeRequest()
1763 encodeSuccess = encodeSnsStdSensorConfig(request, &msg, &msgLen); in makeRequest()
1773 nullptr /* syncDataType */, msgId, msg.get(), msgLen, in makeRequest()
1936 void SeeHelper::seeIndCb(sns_client *client, void *msg, uint32_t msgLen, in seeIndCb() argument
1939 obj->handleSnsClientEventMsg(client, msg, msgLen); in seeIndCb()
2034 size_t msgLen; in initRemoteProcSensor() local
2035 if (encodeSnsRemoteProcSensorConfig(msgBuffer, kBufferSize, &msgLen, in initRemoteProcSensor()
2038 nullptr /* syncDataType */, msgId, msgBuffer, msgLen, in initRemoteProcSensor()