Home
last modified time | relevance | path

Searched refs:encodedSize (Results 1 – 5 of 5) sorted by relevance

/system/chre/apps/test/common/chre_cross_validator_wifi/src/
Dchre_cross_validator_wifi_manager.cc279 size_t encodedSize; in encodeAndSendMessageToHost() local
280 if (!pb_get_encoded_size(&encodedSize, fields, message)) { in encodeAndSendMessageToHost()
283 pb_byte_t *buffer = static_cast<pb_byte_t *>(chreHeapAlloc(encodedSize)); in encodeAndSendMessageToHost()
287 pb_ostream_t ostream = pb_ostream_from_buffer(buffer, encodedSize); in encodeAndSendMessageToHost()
291 static_cast<void *>(buffer), encodedSize, messageType, in encodeAndSendMessageToHost()
/system/chre/chpp/common/
Dwifi_convert.c39 size_t encodedSize = sizeof(struct ChppWifiScanEventWithHeader); in chppWifiSizeOfScanEventFromChre() local
40 encodedSize += scanEvent->scannedFreqListLen * sizeof(uint32_t); in chppWifiSizeOfScanEventFromChre()
41 encodedSize += scanEvent->resultCount * sizeof(struct ChppWifiScanResult); in chppWifiSizeOfScanEventFromChre()
42 return encodedSize; in chppWifiSizeOfScanEventFromChre()
50 size_t encodedSize = sizeof(struct ChppWifiScanParamsWithHeader); in chppWifiSizeOfScanParamsFromChre() local
51 encodedSize += scanParams->frequencyListLen * sizeof(uint32_t); in chppWifiSizeOfScanParamsFromChre()
52 encodedSize += scanParams->ssidListLen * sizeof(struct ChppWifiSsidListItem); in chppWifiSizeOfScanParamsFromChre()
53 return encodedSize; in chppWifiSizeOfScanParamsFromChre()
61 size_t encodedSize = sizeof(struct ChppWifiRangingEventWithHeader); in chppWifiSizeOfRangingEventFromChre() local
62 encodedSize += in chppWifiSizeOfRangingEventFromChre()
[all …]
Dgnss_convert.c39 size_t encodedSize = sizeof(struct ChppGnssDataEventWithHeader); in chppGnssSizeOfDataEventFromChre() local
40 encodedSize += in chppGnssSizeOfDataEventFromChre()
42 return encodedSize; in chppGnssSizeOfDataEventFromChre()
Dwwan_convert.c39 size_t encodedSize = sizeof(struct ChppWwanCellInfoResultWithHeader); in chppWwanSizeOfCellInfoResultFromChre() local
40 encodedSize += in chppWwanSizeOfCellInfoResultFromChre()
42 return encodedSize; in chppWwanSizeOfCellInfoResultFromChre()
/system/chre/apps/test/common/chre_cross_validator_sensor/src/
Dchre_cross_validator_sensor_manager.cc573 size_t encodedSize; in sendMessageToHost() local
574 if (!pb_get_encoded_size(&encodedSize, fields, srcStruct)) { in sendMessageToHost()
577 pb_byte_t *buffer = static_cast<pb_byte_t *>(chreHeapAlloc(encodedSize)); in sendMessageToHost()
581 pb_ostream_t ostream = pb_ostream_from_buffer(buffer, encodedSize); in sendMessageToHost()
585 static_cast<void *>(buffer), encodedSize, messageType, in sendMessageToHost()