• Home
  • Raw
  • Download

Lines Matching refs:desc

119     for (const std::shared_ptr<C2ParamDescriptor> &desc : paramDescs) {  in addParamDesc()  local
121 desc->index().coreIndex()); in addParamDesc()
123 ALOGD("Could not describe %s", desc->name().c_str()); in addParamDesc()
126 addParamDesc(desc, *structDesc, reflector, true /* markVendor */); in addParamDesc()
131 std::shared_ptr<C2ParamDescriptor> desc, in addParamStructDesc() argument
149 addParamStructDesc(desc, fieldName, offset + _C2ParamInspector::GetOffset(*it), in addParamStructDesc()
181 desc, in addParamStructDesc()
192 std::shared_ptr<C2ParamDescriptor> desc, const C2StructDescriptor &structDesc, in addParamDesc() argument
194 C2String paramName = desc->name(); in addParamDesc()
199 if (desc->index() & C2Param::CoreIndex::IS_REQUEST_FLAG) { in addParamDesc()
204 if (desc->index().isVendor() && markVendor) { in addParamDesc()
207 mParamNames.emplace(desc->index(), paramName); in addParamDesc()
212 if (it != mWholeParams.end() && it->second.coreIndex() == desc->index().coreIndex()) { in addParamDesc()
213 mMap.emplace(paramName, FieldDesc{ desc, nullptr, 0 /* offset */ }); in addParamDesc()
218 addParamStructDesc(desc, paramName, 0 /* offset */, structDesc, reflector); in addParamDesc()
244 [&indices](const std::string &, const FieldDesc &desc, const void *, size_t) { in getParamIndicesFromMessage() argument
245 indices.insert(desc.paramDesc->index()); in getParamIndicesFromMessage()
265 const FieldDesc &desc = kv.second; in getParamIndicesForKeys() local
268 indices.insert(desc.paramDesc->index()); in getParamIndicesForKeys()
284 const FieldDesc &desc = kv.second; in getKeysForParamIndex() local
285 if (desc.paramDesc->index() == index) { in getKeysForParamIndex()
319 … [&paramsMap](const std::string &name, const FieldDesc &desc, const void *ptr, size_t size) { in updateParamsFromMessage() argument
321 auto paramIt = paramsMap.find(desc.paramDesc->index()); in updateParamsFromMessage()
324 name.c_str(), (int32_t)desc.paramDesc->index()); in updateParamsFromMessage()
341 if (desc.fieldDesc) { in updateParamsFromMessage()
343 offset = sizeof(C2Param) + desc.offset in updateParamsFromMessage()
344 + _C2ParamInspector::GetOffset(*desc.fieldDesc); in updateParamsFromMessage()
348 if (!desc.fieldDesc /* whole param */ || desc.fieldDesc->extent() == 0) { in updateParamsFromMessage()
365 } else if (desc.fieldDesc->type() == C2FieldDescriptor::BLOB) { in updateParamsFromMessage()
367 if (desc.fieldDesc->extent() > size) { in updateParamsFromMessage()
369 desc.fieldDesc->extent() - size); in updateParamsFromMessage()
382 const FieldDesc &desc = kv.second; in parseMessageAndDoWork() local
389 if (!desc.fieldDesc) { in parseMessageAndDoWork()
393 if (tmpAsParam && tmpAsParam->type().type() == desc.paramDesc->index().type()) { in parseMessageAndDoWork()
394 work(name, desc, tmp->data(), tmp->size()); in parseMessageAndDoWork()
398 desc.paramDesc->index().type()); in parseMessageAndDoWork()
408 C2FieldDescriptor::type_t fieldType = desc.fieldDesc->type(); in parseMessageAndDoWork()
409 size_t fieldExtent = desc.fieldDesc->extent(); in parseMessageAndDoWork()
414 work(name, desc, &int32Value, sizeof(int32Value)); in parseMessageAndDoWork()
420 work(name, desc, &int32Value, sizeof(int32Value)); in parseMessageAndDoWork()
426 work(name, desc, &int32Value, sizeof(int32Value)); in parseMessageAndDoWork()
432 work(name, desc, &int64Value, sizeof(int64Value)); in parseMessageAndDoWork()
438 work(name, desc, &int64Value, sizeof(int64Value)); in parseMessageAndDoWork()
444 work(name, desc, &int64Value, sizeof(int64Value)); in parseMessageAndDoWork()
450 work(name, desc, &tmp, sizeof(tmp)); in parseMessageAndDoWork()
465 work(name, desc, tmp.c_str(), tmp.size() + 1); in parseMessageAndDoWork()
479 work(name, desc, tmp->data(), tmp->size()); in parseMessageAndDoWork()
513 const FieldDesc &desc = kv.second; in getParams() local
514 if (paramsMap.count(desc.paramDesc->index()) == 0) { in getParams()
517 C2Param *param = paramsMap[desc.paramDesc->index()]; in getParams()
521 if (!desc.fieldDesc) { in getParams()
528 size_t offset = sizeof(C2Param) + desc.offset in getParams()
529 + _C2ParamInspector::GetOffset(*desc.fieldDesc); in getParams()
531 C2FieldDescriptor::type_t fieldType = desc.fieldDesc->type(); in getParams()
534 size_t length = desc.fieldDesc->extent(); in getParams()
549 size_t length = desc.fieldDesc->extent(); in getParams()