Lines Matching refs:param

295     for (std::unique_ptr<C2Param> &param : *vec) {  in updateParamsFromMessage()
296 if (param && *param) { in updateParamsFromMessage()
297 paramsMap[param->index()] = &param; in updateParamsFromMessage()
304 std::unique_ptr<C2Param> *param = nullptr; in updateParamsFromMessage() local
311 param = paramIt->second; in updateParamsFromMessage()
334 if (param->get()->size() < offset + size) { in updateParamsFromMessage()
340 new (newParam) _C2Param(offset + size, param->get()->index()); in updateParamsFromMessage()
342 memcpy(newParam + 1, param->get() + 1, offset - sizeof(C2Param)); in updateParamsFromMessage()
344 param->reset(newParam); in updateParamsFromMessage()
345 } else if (param->get()->size() > offset + size) { in updateParamsFromMessage()
347 _C2ParamInspector::TrimParam(param->get(), offset + size); in updateParamsFromMessage()
352 memset((uint8_t *)(param->get()) + offset + size, 0, in updateParamsFromMessage()
357 memcpy((uint8_t *)(param->get()) + offset, ptr, size); in updateParamsFromMessage()
367 auto param = params.find(name); in parseMessageAndDoWork() local
368 if (param == params.end()) { in parseMessageAndDoWork()
375 if (param->second.find(&tmp) && tmp != nullptr) { in parseMessageAndDoWork()
396 if ((param->second.find(&c2Value) && c2Value.get(&int32Value)) in parseMessageAndDoWork()
397 || param->second.find(&int32Value)) { in parseMessageAndDoWork()
402 if ((param->second.find(&c2Value) && c2Value.get((uint32_t*)&int32Value)) in parseMessageAndDoWork()
403 || param->second.find(&int32Value)) { in parseMessageAndDoWork()
408 if ((param->second.find(&c2Value) && c2Value.get((c2_cntr32_t*)&int32Value)) in parseMessageAndDoWork()
409 || param->second.find(&int32Value)) { in parseMessageAndDoWork()
414 if ((param->second.find(&c2Value) && c2Value.get(&int64Value)) in parseMessageAndDoWork()
415 || param->second.find(&int64Value)) { in parseMessageAndDoWork()
420 if ((param->second.find(&c2Value) && c2Value.get((uint64_t*)&int64Value)) in parseMessageAndDoWork()
421 || param->second.find(&int64Value)) { in parseMessageAndDoWork()
426 if ((param->second.find(&c2Value) && c2Value.get((c2_cntr64_t*)&int64Value)) in parseMessageAndDoWork()
427 || param->second.find(&int64Value)) { in parseMessageAndDoWork()
433 if (param->second.find(&c2Value) && c2Value.get(&tmp)) { in parseMessageAndDoWork()
440 if (!param->second.find(&tmp)) { in parseMessageAndDoWork()
455 if (!param->second.find(&tmp) || tmp == nullptr) { in parseMessageAndDoWork()
489 for (C2Param *param : params) { in getParams()
490 if (param != nullptr && *param) { in getParams()
491 paramsMap[param->index()] = param; in getParams()
501 C2Param *param = paramsMap[desc.paramDesc->index()]; in getParams() local
506 sp<ABuffer> buf = ABuffer::CreateAsCopy(param, param->size()); in getParams()
514 uint8_t *data = (uint8_t *)param + offset; in getParams()
520 length = param->size() - offset; in getParams()
523 if (param->size() < length || param->size() - length < offset) { in getParams()
525 length, param->size(), offset); in getParams()
535 length = param->size() - offset; in getParams()
538 if (param->size() < length || param->size() - length < offset) { in getParams()
540 length, param->size(), offset); in getParams()
551 if (param->size() < valueSize || param->size() - valueSize < offset) { in getParams()
553 param->size(), offset); in getParams()