/drivers/peripheral/codec/hal/idl_service/src/ |
D | component_node.cpp | 102 auto err = mgr_->CreateComponentInstance(name.c_str(), &callbacks_, this, &comp); in OpenHandle() local 103 if (err != OMX_ErrorNone) { in OpenHandle() 104 CODEC_LOGE("CreateComponentInstance err = %{public}x ", err); in OpenHandle() 105 return err; in OpenHandle() 118 auto err = mgr_->DeleteComponentInstance(reinterpret_cast<OMX_COMPONENTTYPE *>(comp_)); in CloseHandle() local 119 if (err != OMX_ErrorNone) { in CloseHandle() 120 CODEC_LOGE("DeleteComponentInstance err = %{public}x ", err); in CloseHandle() 121 return err; in CloseHandle() 133 int32_t err = OMX_GetComponentVersion(comp_, name, &compVersion, &sepcVersion, &uuid); in GetComponentVersion() local 134 if (err != OMX_ErrorNone) { in GetComponentVersion() [all …]
|
D | codec_omx_core.cpp | 91 uint32_t err = (*(componentNameEnum_))(tmpComponentName, OMX_MAX_STRINGNAME_SIZE, index); in ComponentNameEnum() local 92 if (err == HDF_SUCCESS) { in ComponentNameEnum() 95 return err; in ComponentNameEnum() 104 uint32_t err = (*getRoles_)(const_cast<char *>(name.c_str()), &roleCount, nullptr); in GetRolesOfComponent() local 105 if (err != HDF_SUCCESS) { in GetRolesOfComponent() 106 CODEC_LOGE("get roleCount return err [%{public}x].", err); in GetRolesOfComponent() 107 return err; in GetRolesOfComponent() 110 return err; in GetRolesOfComponent() 125 …err = (*getRoles_)(const_cast<char *>(name.c_str()), &roleCount, reinterpret_cast<OMX_U8 **>(role)… in GetRolesOfComponent() 126 if (err != HDF_SUCCESS) { in GetRolesOfComponent() [all …]
|
D | component_mgr.cpp | 36 int32_t err = HDF_ERR_INVALID_PARAM; in CreateComponentInstance() local 42 return err; in CreateComponentInstance() 47 err = core->GetHandle(handle, name, appData, *callbacks); in CreateComponentInstance() 48 if (err == OMX_ErrorNone && handle) { in CreateComponentInstance() 55 return err; in CreateComponentInstance() 61 int32_t err = OMX_ErrorInvalidComponent; in DeleteComponentInstance() local 64 err = components_[i].core->FreeHandle(components_[i].handle); in DeleteComponentInstance() 69 return err; in DeleteComponentInstance()
|
/drivers/peripheral/codec/test/demo/idl/src/ |
D | codec_hdi_decode.cpp | 156 int32_t err = GetComponentName(compName); in Init() local 157 if (err != HDF_SUCCESS) { in Init() 161 …err = omxMgr_->CreateComponent(client_, componentId_, compName, reinterpret_cast<int64_t>(this), c… in Init() 162 if (err != HDF_SUCCESS) { in Init() 167 err = memset_s(&verInfo, sizeof(verInfo), 0, sizeof(verInfo)); in Init() 168 if (err != EOK) { in Init() 169 HDF_LOGE("%{public}s: memset_s verInfo err [%{public}d].", __func__, err); in Init() 172 err = client_->GetComponentVersion(verInfo); in Init() 173 if (err != HDF_SUCCESS) { in Init() 192 auto err = client_->GetParameter(OMX_IndexParamPortDefinition, inVec, outVec); in ConfigPortDefine() local [all …]
|
D | codec_hdi_encode.cpp | 117 auto err = GetComponentName(compName); in Init() local 118 if (err != HDF_SUCCESS) { in Init() 123 …err = omxMgr_->CreateComponent(client_, componentId_, compName, reinterpret_cast<int64_t>(this), c… in Init() 124 if (err != HDF_SUCCESS) { in Init() 130 err = memset_s(&verInfo, sizeof(verInfo), 0, sizeof(verInfo)); in Init() 131 if (err != EOK) { in Init() 132 HDF_LOGE("%{public}s: memset_s verInfo err [%{public}d].", __func__, err); in Init() 135 err = client_->GetComponentVersion(verInfo); in Init() 136 if (err != HDF_SUCCESS) { in Init() 173 auto err = GetParameterSupportBufferType(inVec, outVec); in CheckAndUseBufferHandle() local [all …]
|
/drivers/peripheral/codec/test/demo/v2.0/src/ |
D | codec_hdi_encode.cpp | 124 auto err = GetComponent(); in Init() local 125 if (err != HDF_SUCCESS) { in Init() 132 err = client_->GetComponentVersion(client_, &verInfo); in Init() 133 if (err != HDF_SUCCESS) { in Init() 173 …auto err = client_->GetParameter(client_, OMX_IndexParamSupportBufferType, reinterpret_cast<int8_t… in CheckAndUseBufferHandle() local 177 err, param.bufferTypes); in CheckAndUseBufferHandle() 178 if (err != HDF_SUCCESS) { in CheckAndUseBufferHandle() 179 return err; in CheckAndUseBufferHandle() 183 …err = client_->GetParameter(client_, OMX_IndexParamSupportBufferType, reinterpret_cast<int8_t *>(&… in CheckAndUseBufferHandle() 187 err, param.bufferTypes); in CheckAndUseBufferHandle() [all …]
|
D | codec_hdi_decode.cpp | 120 int32_t err = GetComponent(); in Init() local 121 if (err != HDF_SUCCESS) { in Init() 127 err = memset_s(&verInfo, sizeof(verInfo), 0, sizeof(verInfo)); in Init() 128 if (err != EOK) { in Init() 129 HDF_LOGE("%{public}s: memset_s verInfo err [%{public}d].", __func__, err); in Init() 132 err = client_->GetComponentVersion(client_, &verInfo); in Init() 133 if (err != HDF_SUCCESS) { in Init() 147 auto err = in ConfigPortDefine() local 149 if (err != HDF_SUCCESS) { in ConfigPortDefine() 151 return err; in ConfigPortDefine() [all …]
|
/drivers/peripheral/codec/test/unittest/idl_omx/ |
D | codec_hdi_omx_dec_test.cpp | 54 auto err = g_manager->GetComponentCapabilityList(capList, count); in SetUpTestCase() local 55 ASSERT_TRUE(err == HDF_SUCCESS); in SetUpTestCase() 115 auto err = func_->UseBufferOnPort(g_component, PortIndex::INDEX_INPUT, param.nBufferCountActual, variable 117 ASSERT_TRUE(err); 119 … err = func_->InitBufferHandleParameter(g_component, param, outputIndex, CODEC_BUFFER_TYPE_HANDLE); 120 ASSERT_TRUE(err); 123 …err = func_->UseHandleBuffer(g_component, PortIndex::INDEX_OUTPUT, param.nBufferCountActual, param… 124 ASSERT_TRUE(err); 128 err = func_->WaitState(g_component, CODEC_STATE_EXECUTING); 129 ASSERT_TRUE(err); [all …]
|
D | codec_hdi_omx_enc_test.cpp | 53 auto err = g_manager->GetComponentCapabilityList(capList, count); in SetUpTestCase() local 54 ASSERT_TRUE(err == HDF_SUCCESS); in SetUpTestCase() 498 auto err = g_component->SendCommand(CODEC_COMMAND_STATE_SET, CODEC_STATE_IDLE, cmdData); variable 499 ASSERT_EQ(err, HDF_SUCCESS); 504 err = g_component->AllocateBuffer(inputIndex, allocBuffer, outBuffer); 505 ASSERT_EQ(err, HDF_SUCCESS); 507 err = g_component->FreeBuffer(inputIndex, outBuffer); 508 ASSERT_EQ(err, HDF_SUCCESS); 515 auto err = g_component->SendCommand(CODEC_COMMAND_STATE_SET, CODEC_STATE_IDLE, cmdData); variable 516 ASSERT_EQ(err, HDF_SUCCESS); [all …]
|
/drivers/peripheral/codec/hal/v2.0/hdi_impl/src/ |
D | codec_omx_core.cpp | 91 uint32_t err = (*(componentNameEnum_))(tmpComponentName, OMX_MAX_STRINGNAME_SIZE, index); in ComponentNameEnum() local 92 if (err == HDF_SUCCESS) { in ComponentNameEnum() 95 return err; in ComponentNameEnum() 105 int32_t err = (*getRoles_)(const_cast<char *>(name.c_str()), &roleCount, nullptr); in GetRolesOfComponent() local 106 if (err != HDF_SUCCESS) { in GetRolesOfComponent() 107 CODEC_LOGE("getRoles_ nullptr return err [%{public}x].", err); in GetRolesOfComponent() 108 return err; in GetRolesOfComponent() 112 return err; in GetRolesOfComponent() 127 …err = (*getRoles_)(const_cast<char *>(name.c_str()), &roleCount, reinterpret_cast<OMX_U8 **>(role)… in GetRolesOfComponent() 128 if (err != HDF_SUCCESS) { in GetRolesOfComponent() [all …]
|
D | component_node.cpp | 100 int32_t err = in GetComponentVersion() local 102 if (err != OMX_ErrorNone) { in GetComponentVersion() 103 CODEC_LOGE("OMX_GetComponentVersion err = %{public}d", err); in GetComponentVersion() 104 return err; in GetComponentVersion() 106 return err; in GetComponentVersion() 209 auto err = OMX_UseEGLImage(comp_, &pBufferHdrType, portIndex, nullptr, eglImage); in UseEglImage() local 210 if (err != OMX_ErrorNone) { in UseEglImage() 211 CODEC_LOGE("OMX_UseEGLImage error[0x%{public}x]", err); in UseEglImage() 212 return err; in UseEglImage() 227 int32_t err = comType->ComponentRoleEnum(comp_, omxRole, index); in ComponentRoleEnum() local [all …]
|
D | component_mgr.cpp | 37 int32_t err = HDF_ERR_INVALID_PARAM; in CreateComponentInstance() local 43 return err; in CreateComponentInstance() 48 err = core->GetHandle(handle, name, appData, *callbacks); in CreateComponentInstance() 49 if (err == OMX_ErrorNone && handle) { in CreateComponentInstance() 56 return err; in CreateComponentInstance() 61 int32_t err = OMX_ErrorInvalidComponent; in DeleteComponentInstance() local 64 err = components_[i].core->FreeHandle(components_[i].handle); in DeleteComponentInstance() 69 return err; in DeleteComponentInstance()
|
/drivers/peripheral/codec/test/fuzztest/image_fuzzer/imageallocateinbuffer_fuzzer/ |
D | imageallocateinbuffer_fuzzer.cpp | 44 auto err = image->AllocateInBuffer(inBuffer, bufferSize); in AllocateInBuffer() local 45 if (err != HDF_SUCCESS) { in AllocateInBuffer() 46 HDF_LOGE("%{public}s AllocateInBuffer return %{public}d", __func__, err); in AllocateInBuffer() 49 err = image->FreeInBuffer(inBuffer); in AllocateInBuffer() 50 if (err != HDF_SUCCESS) { in AllocateInBuffer() 51 HDF_LOGE("%{public}s FreeInBuffer return %{public}d", __func__, err); in AllocateInBuffer()
|
/drivers/peripheral/codec/test/fuzztest/hdi_fuzzer/codecgetcomponentcapabilitylisthdi_fuzzer/ |
D | codecgetcomponentcapabilitylist_fuzzer.cpp | 38 auto err = omxMgr_->GetComponentNum(count); in CodecGetComponentCapabilityList() local 39 if (err != HDF_SUCCESS || count <= 0) { in CodecGetComponentCapabilityList() 40 …HDF_LOGE("%{public}s GetComponentNum return %{public}d, count = %{public}d", __func__, err, count); in CodecGetComponentCapabilityList() 50 err = omxMgr_->GetComponentCapabilityList(caps, in CodecGetComponentCapabilityList() 52 if (err != HDF_SUCCESS) { in CodecGetComponentCapabilityList() 53 HDF_LOGE("%{public}s GetComponentCapabilityList return %{public}d", __func__, err); in CodecGetComponentCapabilityList()
|
/drivers/peripheral/codec/hal/src/ |
D | codec_component_manager_service.c | 87 int32_t err = GetComponentCapabilityList(capList, count); in OmxManagerGetComponentCapabilityList() local 88 if (err != HDF_SUCCESS) { in OmxManagerGetComponentCapabilityList() 91 return err; in OmxManagerGetComponentCapabilityList() 104 int32_t err = HDF_SUCCESS; in OmxManagerDestroyComponent() local 115 err = OmxAdapterDestroyComponent(codecNode); in OmxManagerDestroyComponent() 116 if (err != HDF_SUCCESS) { in OmxManagerDestroyComponent() 117 CODEC_LOGE("OmxAdapterDestroyComponent ret err[%{public}d]!", err); in OmxManagerDestroyComponent() 131 return err; in OmxManagerDestroyComponent() 157 int32_t err = OMXAdapterCreateComponent(&codecNode, compName, appData, callbacks); in OmxManagerCreateComponent() local 158 if (err != HDF_SUCCESS) { in OmxManagerCreateComponent() [all …]
|
D | codec_component_type_service.c | 52 … int32_t err = OmxAdapterGetParameter(service->codecNode, paramIndex, paramStruct, paramStructLen); in CodecComponentTypeGetParameter() local 53 if (err != HDF_SUCCESS) { in CodecComponentTypeGetParameter() 54 CODEC_LOGE("index [%{public}u], ret value [%{public}x]!", paramIndex, err); in CodecComponentTypeGetParameter() 57 return err; in CodecComponentTypeGetParameter() 66 int32_t err = OmxAdapterSetParameter(service->codecNode, index, paramStruct, paramStructLen); in CodecComponentTypeSetParameter() local 67 if (err != HDF_SUCCESS) { in CodecComponentTypeSetParameter() 68 CODEC_LOGE("index [%{public}u], ret value [%{public}x]!", index, err); in CodecComponentTypeSetParameter() 70 return err; in CodecComponentTypeSetParameter() 79 int32_t err = OmxAdapterGetConfig(service->codecNode, index, cfgStruct, cfgStructLen); in CodecComponentTypeGetConfig() local 80 if (err != HDF_SUCCESS) { in CodecComponentTypeGetConfig() [all …]
|
/drivers/hdf_core/framework/model/storage/src/mmc/ |
D | mmc_protocol.c | 134 int32_t err; in MmcSendOpCond() local 151 err = MmcSendCmd(cntlr, &cmd, NULL, 1); in MmcSendOpCond() 152 if (err != HDF_SUCCESS) { in MmcSendOpCond() 159 err = HDF_ERR_TIMEOUT; in MmcSendOpCond() 166 return err; in MmcSendOpCond() 173 int32_t err; in MmcAllSendCid() local 185 err = MmcSendCmd(cntlr, &cmd, NULL, MMC_CMD_DEFAULT_RETRY_TIMES); in MmcAllSendCid() 186 if (err != HDF_SUCCESS) { in MmcAllSendCid() 188 return err; in MmcAllSendCid() 195 return err; in MmcAllSendCid() [all …]
|
/drivers/peripheral/codec/test/fuzztest/hdi_fuzzer/codeccreatecomponenthdi_fuzzer/ |
D | codeccreatecomponent_fuzzer.cpp | 41 auto err = omxMgr_->GetComponentNum(count); in CodecCreateComponent() local 42 if (err != HDF_SUCCESS || count <= 0) { in CodecCreateComponent() 43 …HDF_LOGE("%{public}s GetComponentNum return %{public}d, count = %{public}d", __func__, err, count); in CodecCreateComponent() 48 err = omxMgr_->GetComponentCapabilityList(caps, count); in CodecCreateComponent() 49 if (err != HDF_SUCCESS) { in CodecCreateComponent() 50 HDF_LOGE("%{public}s GetComponentCapabilityList return %{public}d", __func__, err); in CodecCreateComponent()
|
/drivers/external_device_manager/services/native/driver_extension/src/ |
D | driver_extension_context.cpp | 30 ErrCode err = ERR_OK; in UpdateDriverState() local 31 if (err != ERR_OK) { in UpdateDriverState() 32 HILOG_ERROR("DriverContext::UpdateDriverState is failed %{public}d", err); in UpdateDriverState() 34 return err; in UpdateDriverState()
|
/drivers/peripheral/codec/utils/src/ |
D | codec_util.c | 21 int err = mallopt(M_FLUSH_THREAD_CACHE, 0); in ReleaseCodecCache() local 22 if (err != HDF_SUCCESS) { in ReleaseCodecCache() 23 CODEC_LOGE(":release cache error, m_purge = %{public}d", err); in ReleaseCodecCache()
|
/drivers/peripheral/codec/test/fuzztest/hdi_fuzzer/codeccommonhdi_fuzzer/ |
D | codeccommon_fuzzer.cpp | 78 auto err = g_manager->GetComponentNum(count); in Preconditions() local 79 if (err != HDF_SUCCESS || count <= 0) { in Preconditions() 80 …HDF_LOGE("%{public}s GetComponentNum return %{public}d, count = %{public}d", __func__, err, count); in Preconditions() 86 err = g_manager->GetComponentCapabilityList(caps, count); in Preconditions() 87 if (err != HDF_SUCCESS) { in Preconditions() 88 HDF_LOGE("%{public}s GetComponentCapabilityList return %{public}d", __func__, err); in Preconditions() 90 return err; in Preconditions()
|
/drivers/hdf_core/framework/model/audio/usb/src/ |
D | audio_usb_mixer.c | 222 int32_t err; in AudioUsbAutoResume() local 234 err = usb_autopm_get_interface(audioUsbDriver->usbIf); in AudioUsbAutoResume() 235 if (err < HDF_SUCCESS) { in AudioUsbAutoResume() 240 return err; in AudioUsbAutoResume() 249 int32_t err; in AudioUsbLockShutdown() local 261 err = AudioUsbAutoResume(audioUsbDriver); in AudioUsbLockShutdown() 262 if (err < HDF_SUCCESS) { in AudioUsbLockShutdown() 267 return err; in AudioUsbLockShutdown() 322 static inline int32_t AudioUsbFilterError(struct UsbMixerElemInfo *mixElemInfo, int32_t err) in AudioUsbFilterError() argument 329 return (mixElemInfo->head.mixer->ignoreCtlError != 0) ? 0 : err; in AudioUsbFilterError() [all …]
|
/drivers/peripheral/codec/test/unittest/hdi_omx/ |
D | codec_hdi_omx_test.cpp | 154 … auto err = component_->UseBuffer(component_, static_cast<uint32_t>(portIndex), omxBuffer.get()); in UseBufferOnPort() local 155 if (err != HDF_SUCCESS) { in UseBufferOnPort() 212 auto err = gralloc_->AllocMem(alloc, *bufferHandle); in InitBufferHandle() local 213 ASSERT_EQ(err, DISPLAY_SUCCESS); in InitBufferHandle() 237 auto err = manager_->GetComponentCapabilityList(capList, count); in SetUpTestCase() local 238 ASSERT_TRUE(err == HDF_SUCCESS); in SetUpTestCase() 677 …auto err = component_->UseBuffer(component_, static_cast<uint32_t>(PortIndex::PORT_INDEX_INPUT), o… variable 678 ASSERT_NE(err, HDF_SUCCESS); 696 …auto err = component_->UseBuffer(component_, static_cast<uint32_t>(PortIndex::PORT_INDEX_OUTPUT), … variable 697 ASSERT_NE(err, HDF_SUCCESS); [all …]
|
/drivers/peripheral/codec/test/fuzztest/image_fuzzer/imagegetcapability_fuzzer/ |
D | imagegetcapability_fuzzer.cpp | 39 auto err = image->GetImageCapability(caps); in GetCapabilityList() local 40 if (err != HDF_SUCCESS) { in GetCapabilityList() 41 HDF_LOGE("%{public}s GetImageCapability return %{public}d", __func__, err); in GetCapabilityList()
|
/drivers/peripheral/codec/test/fuzztest/image_fuzzer/imagefreeinbuffer_fuzzer/ |
D | imagefreeinbuffer_fuzzer.cpp | 42 auto err = image->FreeInBuffer(inBuffer); in FreeInBuffer() local 43 if (err != HDF_SUCCESS) { in FreeInBuffer() 44 HDF_LOGE("%{public}s FreeInBuffer return %{public}d", __func__, err); in FreeInBuffer()
|