Lines Matching refs:builder
74 FlatBufferBuilder *builder; member
105 PendingMessage(PendingMessageType msgType, FlatBufferBuilder *builder) { in PendingMessage()
107 data.builder = builder; in PendingMessage()
114 FlatBufferBuilder *builder; member
134 typedef void (MessageBuilderFunction)(FlatBufferBuilder& builder, void *cookie);
139 int copyToHostBuffer(const FlatBufferBuilder& builder, unsigned char *buffer, in copyToHostBuffer() argument
141 uint8_t *data = builder.GetBufferPointer(); in copyToHostBuffer()
142 size_t size = builder.GetSize(); in copyToHostBuffer()
199 auto builder = MakeUnique<FlatBufferBuilder>(initialBufferSize); in buildAndEnqueueMessage() local
200 if (builder.isNull()) { in buildAndEnqueueMessage()
204 msgBuilder(*builder, cookie); in buildAndEnqueueMessage()
208 if (!enqueueMessage(PendingMessage(msgType, builder.get()))) { in buildAndEnqueueMessage()
212 builder.release(); in buildAndEnqueueMessage()
223 void buildNanoappListResponse(FlatBufferBuilder& builder, void *cookie) { in buildNanoappListResponse() argument
227 *(cbData->builder), cbData->nanoappEntries, nanoapp->getAppId(), in buildNanoappListResponse()
234 cbData->builder = &builder; in buildNanoappListResponse()
238 builder, cbData->nanoappEntries, cbData->hostClientId); in buildNanoappListResponse()
265 auto msgBuilder = [](FlatBufferBuilder& builder, void *cookie) { in finishLoadingNanoappCallback() argument
273 builder, cbData->hostClientId, cbData->transactionId, in finishLoadingNanoappCallback()
287 auto msgBuilder = [](FlatBufferBuilder& builder, void *cookie) { in handleUnloadNanoappCallback() argument
301 builder, cbData->hostClientId, cbData->transactionId, success); in handleUnloadNanoappCallback()
315 FlatBufferBuilder builder(msgToHost->message.size() + kFixedSizePortion); in generateMessageToHost() local
317 builder, msgToHost->appId, msgToHost->toHostData.messageType, in generateMessageToHost()
321 int result = copyToHostBuffer(builder, buffer, bufferSize, messageLen); in generateMessageToHost()
351 FlatBufferBuilder builder(kInitialBufferSize); in generateHubInfoResponse() local
353 builder, kHubName, kVendor, kToolchain, kLegacyPlatformVersion, in generateHubInfoResponse()
358 return copyToHostBuffer(builder, buffer, bufferSize, messageLen); in generateHubInfoResponse()
362 FlatBufferBuilder *builder, unsigned char *buffer, size_t bufferSize, in generateMessageFromBuilder() argument
364 CHRE_ASSERT(builder != nullptr); in generateMessageFromBuilder()
365 int result = copyToHostBuffer(*builder, buffer, bufferSize, messageLen); in generateMessageFromBuilder()
366 builder->~FlatBufferBuilder(); in generateMessageFromBuilder()
367 memoryFree(builder); in generateMessageFromBuilder()
379 auto msgBuilder = [](FlatBufferBuilder& builder, void *cookie) { in sendDebugDumpData() argument
382 builder, data->hostClientId, data->debugStr, data->debugStrSize); in sendDebugDumpData()
395 auto msgBuilder = [](FlatBufferBuilder& builder, void *cookie) { in sendDebugDumpResponse() argument
398 builder, cbData->hostClientId, cbData->success, cbData->dataCount); in sendDebugDumpResponse()
435 auto msgBuilder = [](FlatBufferBuilder& builder, void *cookie) { in sendFragmentResponse() argument
438 builder, cbData->hostClientId, cbData->transactionId, in sendFragmentResponse()
457 auto msgBuilder = [](FlatBufferBuilder& builder, void *cookie) { in sendTimeSyncRequest() argument
458 HostProtocolChre::encodeTimeSyncRequest(builder); in sendTimeSyncRequest()
632 result = generateMessageFromBuilder(pendingMsg.data.builder, in chre_slpi_get_message_to_host()
742 auto msgBuilder = [](FlatBufferBuilder& builder, void *cookie) { in sendAudioRequest() argument
743 HostProtocolChre::encodeLowPowerMicAccessRequest(builder); in sendAudioRequest()
752 auto msgBuilder = [](FlatBufferBuilder& builder, void *cookie) { in sendAudioRelease() argument
753 HostProtocolChre::encodeLowPowerMicAccessRelease(builder); in sendAudioRelease()