Lines Matching refs:param

288     for (std::unique_ptr<C2Param> &param : *vec) {  in updateParamsFromMessage()
289 if (param && *param) { in updateParamsFromMessage()
290 paramsMap[param->index()] = &param; in updateParamsFromMessage()
297 std::unique_ptr<C2Param> *param = nullptr; in updateParamsFromMessage() local
304 param = paramIt->second; in updateParamsFromMessage()
327 if (param->get()->size() < offset + size) { in updateParamsFromMessage()
333 new (newParam) _C2Param(offset + size, param->get()->index()); in updateParamsFromMessage()
335 memcpy(newParam + 1, param->get() + 1, offset - sizeof(C2Param)); in updateParamsFromMessage()
337 param->reset(newParam); in updateParamsFromMessage()
338 } else if (param->get()->size() > offset + size) { in updateParamsFromMessage()
340 _C2ParamInspector::TrimParam(param->get(), offset + size); in updateParamsFromMessage()
345 memset((uint8_t *)(param->get()) + offset + size, 0, in updateParamsFromMessage()
350 memcpy((uint8_t *)(param->get()) + offset, ptr, size); in updateParamsFromMessage()
360 auto param = params.find(name); in parseMessageAndDoWork() local
361 if (param == params.end()) { in parseMessageAndDoWork()
368 if (param->second.find(&tmp) && tmp != nullptr) { in parseMessageAndDoWork()
389 if ((param->second.find(&c2Value) && c2Value.get(&int32Value)) in parseMessageAndDoWork()
390 || param->second.find(&int32Value)) { in parseMessageAndDoWork()
395 if ((param->second.find(&c2Value) && c2Value.get((uint32_t*)&int32Value)) in parseMessageAndDoWork()
396 || param->second.find(&int32Value)) { in parseMessageAndDoWork()
401 if ((param->second.find(&c2Value) && c2Value.get((c2_cntr32_t*)&int32Value)) in parseMessageAndDoWork()
402 || param->second.find(&int32Value)) { in parseMessageAndDoWork()
407 if ((param->second.find(&c2Value) && c2Value.get(&int64Value)) in parseMessageAndDoWork()
408 || param->second.find(&int64Value)) { in parseMessageAndDoWork()
413 if ((param->second.find(&c2Value) && c2Value.get((uint64_t*)&int64Value)) in parseMessageAndDoWork()
414 || param->second.find(&int64Value)) { in parseMessageAndDoWork()
419 if ((param->second.find(&c2Value) && c2Value.get((c2_cntr64_t*)&int64Value)) in parseMessageAndDoWork()
420 || param->second.find(&int64Value)) { in parseMessageAndDoWork()
426 if (param->second.find(&c2Value) && c2Value.get(&tmp)) { in parseMessageAndDoWork()
433 if (!param->second.find(&tmp)) { in parseMessageAndDoWork()
448 if (!param->second.find(&tmp) || tmp == nullptr) { in parseMessageAndDoWork()
482 for (C2Param *param : params) { in getParams()
483 if (param != nullptr && *param) { in getParams()
484 paramsMap[param->index()] = param; in getParams()
494 C2Param *param = paramsMap[desc.paramDesc->index()]; in getParams() local
499 sp<ABuffer> buf = ABuffer::CreateAsCopy(param, param->size()); in getParams()
507 uint8_t *data = (uint8_t *)param + offset; in getParams()
513 length = param->size() - offset; in getParams()
516 if (param->size() < length || param->size() - length < offset) { in getParams()
518 length, param->size(), offset); in getParams()
528 length = param->size() - offset; in getParams()
531 if (param->size() < length || param->size() - length < offset) { in getParams()
533 length, param->size(), offset); in getParams()
544 if (param->size() < valueSize || param->size() - valueSize < offset) { in getParams()
546 param->size(), offset); in getParams()