/drivers/peripheral/audio/hal/hdi_binder/server/src/ |
D | hdf_audio_server_manager.c | 39 for (int i = 0; i < g_serverAdapterNum; i++) { in AudioInfoInAdapterFindDesc() local 40 if (g_renderAndCaptureManage[i].adapterName == NULL) { in AudioInfoInAdapterFindDesc() 41 AUDIO_FUNC_LOGW("g_renderAndCaptureManage[%{public}d].adapterName is NULL", i); in AudioInfoInAdapterFindDesc() 44 … if (strncmp(g_renderAndCaptureManage[i].adapterName, adapterName, strlen(adapterName)) == 0) { in AudioInfoInAdapterFindDesc() 45 if (i != index) { in AudioInfoInAdapterFindDesc() 47 &g_renderAndCaptureManage[i], sizeof(struct AudioInfoInAdapter)); in AudioInfoInAdapterFindDesc() 48 (void)memset_s(&g_renderAndCaptureManage[i], sizeof(struct AudioInfoInAdapter), in AudioInfoInAdapterFindDesc() 127 int32_t i; in AdaptersServerManageRelease() local 135 for (i = 0; i < num; i++) { in AdaptersServerManageRelease() 136 if (adaptersManage[i].adapterName != NULL) { in AdaptersServerManageRelease() [all …]
|
/drivers/peripheral/wlan/client/src/ |
D | wifi_driver_client.c | 39 uint32_t i; in WifiEventReport() local 41 for (i = 0; i < MAX_CALL_BACK_COUNT; i++) { in WifiEventReport() 42 if (g_callbackEventMap[i] != NULL && (strcmp(g_callbackEventMap[i]->ifName, ifName) == 0) && in WifiEventReport() 43 (((1 << event) & g_callbackEventMap[i]->eventType) != 0)) { in WifiEventReport() 45 g_callbackEventMap[i]->onRecFunc(event, data, ifName); in WifiEventReport() 52 uint32_t i; in WifiRegisterEventCallback() local 59 for (i = 0; i < MAX_CALL_BACK_COUNT; i++) { in WifiRegisterEventCallback() 60 if (g_callbackEventMap[i] != NULL && g_callbackEventMap[i]->eventType == eventType && in WifiRegisterEventCallback() 61 …(strcmp(g_callbackEventMap[i]->ifName, ifName) == 0) && g_callbackEventMap[i]->onRecFunc == onRecF… in WifiRegisterEventCallback() 78 for (i = 0; i < MAX_CALL_BACK_COUNT; i++) { in WifiRegisterEventCallback() [all …]
|
/drivers/hdf_core/framework/model/misc/dsoftbus/src/ |
D | module_manager.c | 40 int32_t i; in SoftbusDispatchModuleCommand() local 42 for (i = 0; i < HDF_ARRAY_SIZE(g_modules); ++i) { in SoftbusDispatchModuleCommand() 43 if (g_modules[i].moduleId != moduleId) { in SoftbusDispatchModuleCommand() 46 if (g_modules[i].process == NULL) { in SoftbusDispatchModuleCommand() 50 g_modules[i].process(reqData, rspData); in SoftbusDispatchModuleCommand() 58 int32_t i; in SoftbusModuleManagerInit() local 60 for (i = 0; i < HDF_ARRAY_SIZE(g_modules); ++i) { in SoftbusModuleManagerInit() 61 if (g_modules[i].init == NULL) { in SoftbusModuleManagerInit() 62 HDF_LOGE("module(%d) is no init function", g_modules[i].moduleId); in SoftbusModuleManagerInit() 65 if (g_modules[i].init(device) != HDF_SUCCESS) { in SoftbusModuleManagerInit() [all …]
|
/drivers/hdf_core/framework/support/platform/src/hdmi/ |
D | hdmi_ncts.c | 71 uint32_t i; in HdmiGetN() local 73 for (i = 0; i < sizeof(g_audioNctsMap) / sizeof(g_audioNctsMap[0]); i++) { in HdmiGetN() 74 if (g_audioNctsMap[i].sampleRate == sampleRate && in HdmiGetN() 75 g_audioNctsMap[i].tmdsClock == tmdsClock) { in HdmiGetN() 76 return g_audioNctsMap[i].n; in HdmiGetN() 78 if (g_audioNctsMap[i].sampleRate == sampleRate && in HdmiGetN() 79 g_audioNctsMap[i].tmdsClock >= (tmdsClock - HDMI_NCTS_TMDS_DEVIATION) && in HdmiGetN() 80 g_audioNctsMap[i].tmdsClock <= (tmdsClock + HDMI_NCTS_TMDS_DEVIATION)) { in HdmiGetN() 81 return g_audioNctsMap[i].n; in HdmiGetN() 83 if (g_audioNctsMap[i].sampleRate == sampleRate && in HdmiGetN() [all …]
|
/drivers/peripheral/camera/interfaces/hdi_ipc/utils/src/ |
D | utils_data_stub.cpp | 22 for (size_t i = 0; i < entry.count; i++) { in WriteMetadataDataToVec() local 23 WriteData<int8_t>(*(entry.data.u8 + i), cameraAbility); in WriteMetadataDataToVec() 26 for (size_t i = 0; i < entry.count; i++) { in WriteMetadataDataToVec() local 27 WriteData<int32_t>(*(entry.data.i32 + i), cameraAbility); in WriteMetadataDataToVec() 30 for (size_t i = 0; i < entry.count; i++) { in WriteMetadataDataToVec() local 31 WriteData<float>(*(entry.data.f + i), cameraAbility); in WriteMetadataDataToVec() 34 for (size_t i = 0; i < entry.count; i++) { in WriteMetadataDataToVec() local 35 WriteData<int64_t>(*(entry.data.i64 + i), cameraAbility); in WriteMetadataDataToVec() 38 for (size_t i = 0; i < entry.count; i++) { in WriteMetadataDataToVec() local 39 WriteData<double>(*(entry.data.d + i), cameraAbility); in WriteMetadataDataToVec() [all …]
|
/drivers/hdf_core/framework/model/camera/utils/src/ |
D | camera_utils.c | 27 uint32_t i; in FindAvailableId() local 32 for (i = 0; i < ID_MAX_NUM; i++) { in FindAvailableId() 33 if (g_cameraIdMap[i] == 0) { in FindAvailableId() 34 *id = i; in FindAvailableId() 57 int32_t i; in RemovePermissionId() local 58 for (i = 0; i < ID_MAX_NUM; i++) { in RemovePermissionId() 59 if (g_cameraIdMap[i] != 0) { in RemovePermissionId() 60 if (g_cameraIdMap[i] == id) { in RemovePermissionId() 61 g_cameraIdMap[i] = 0; in RemovePermissionId() 72 int32_t i = 0; in GetCameraId() local [all …]
|
/drivers/peripheral/bluetooth/audio/hal/hdi_binder/server/src/ |
D | hdf_audio_server_common.cpp | 77 int32_t i; in AdaptersServerManageRelease() local 86 for (i = 0; i < num; i++) { in AdaptersServerManageRelease() 87 if (adaptersManage[i].adapterName != NULL) { in AdaptersServerManageRelease() 88 AudioMemFree((void **)&adaptersManage[i].adapterName); in AdaptersServerManageRelease() 103 int32_t i, ret; in AdaptersServerManageInit() local 119 for (i = 0; i < num; i++) { in AdaptersServerManageInit() 120 ret = AdapterManageInit(&adaptersManage[i], descs[i].adapterName); in AdaptersServerManageInit() 250 int32_t i, num; in AudioAdapterListGetAdapter() local 263 for (i = 0; i < num; i++) { in AudioAdapterListGetAdapter() 264 if (g_renderAndCaptureManage[i].adapterName == NULL) { in AudioAdapterListGetAdapter() [all …]
|
/drivers/hdf_core/framework/support/platform/src/i2c/ |
D | i2c_msg.c | 19 int16_t i; in AssignReplayBuffer() local 27 for (i = 0, buf = *bufReply; i < count && buf < (*bufReply + lenReply); i++) { in AssignReplayBuffer() 28 if ((msgs[i].flags & I2C_FLAG_READ) != 0) { in AssignReplayBuffer() 29 msgs[i].buf = buf; in AssignReplayBuffer() 30 buf += msgs[i].len; in AssignReplayBuffer() 39 int16_t i; in RebuildMsgs() local 55 for (i = 0; i < count; i++) { in RebuildMsgs() 62 msgs[i].addr = userMsgs->addr; in RebuildMsgs() 63 msgs[i].len = userMsgs->len; in RebuildMsgs() 64 msgs[i].buf = NULL; in RebuildMsgs() [all …]
|
/drivers/interface/camera/metadata/src/ |
D | metadata_utils.cpp | 35 for (size_t i = 0; i < entry.count; i++) { in WriteMetadataDataToVec() local 36 WriteData<int8_t>(*(entry.data.u8 + i), cameraAbility); in WriteMetadataDataToVec() 39 for (size_t i = 0; i < entry.count; i++) { in WriteMetadataDataToVec() local 40 WriteData<int32_t>(*(entry.data.i32 + i), cameraAbility); in WriteMetadataDataToVec() 43 for (size_t i = 0; i < entry.count; i++) { in WriteMetadataDataToVec() local 44 WriteData<float>(*(entry.data.f + i), cameraAbility); in WriteMetadataDataToVec() 47 for (size_t i = 0; i < entry.count; i++) { in WriteMetadataDataToVec() local 48 WriteData<int64_t>(*(entry.data.i64 + i), cameraAbility); in WriteMetadataDataToVec() 51 for (size_t i = 0; i < entry.count; i++) { in WriteMetadataDataToVec() local 52 WriteData<double>(*(entry.data.d + i), cameraAbility); in WriteMetadataDataToVec() [all …]
|
/drivers/peripheral/camera/vdi_base/common/utils/event/ |
D | event_base.h | 73 for (int i = 0; i < EVENT_LIST_MAX_NUM; i++) { in EventBaseArray() local 74 m_func[i] = NULL; in EventBaseArray() 92 int i; in DisAssociate() local 93 for (i = 0; i < m_totalFunc; i++) { in DisAssociate() 94 if (m_func[i] == func) { in DisAssociate() 98 for (i = 0; i < m_totalFunc - 1; i++) { in DisAssociate() 99 m_func[i] = m_func[i + 1]; in DisAssociate() 102 m_func[i] = NULL; in DisAssociate() 108 for (int i = 0; i < m_totalFunc; i++) { in SendEvent() local 109 if (m_func[i] != NULL) { in SendEvent() [all …]
|
/drivers/hdf_core/framework/support/platform/src/fwk/ |
D | platform_trace_transfer.c | 26 uint32_t i = 0; in PlatformTraceModuleExplainGet() local 27 for (i = 0; i < sizeof(g_traceModuleExplain) / sizeof(g_traceModuleExplain[0]); i++) { in PlatformTraceModuleExplainGet() 28 if (traceModule == g_traceModuleExplain[i].moduleInfo) { in PlatformTraceModuleExplainGet() 29 return g_traceModuleExplain[i].moduleMean; in PlatformTraceModuleExplainGet() 37 uint32_t i = 0; in PlatformTraceFunExplainGet() local 38 for (i = 0; i < sizeof(g_traceModuleExplain) / sizeof(g_traceModuleExplain[0]); i++) { in PlatformTraceFunExplainGet() 39 if (traceFun == g_traceModuleExplain[i].moduleInfo) { in PlatformTraceFunExplainGet() 40 return g_traceModuleExplain[i].moduleMean; in PlatformTraceFunExplainGet()
|
/drivers/hdf_core/framework/test/unittest/model/audio/src/ |
D | audio_host_test.c | 29 int i; in AudioHostCreateAndBindTest() local 38 for (i = 0; i < sizeof(g_audioServiceName) / sizeof(g_audioServiceName[0]); ++i) { in AudioHostCreateAndBindTest() 39 device = DevSvcManagerClntGetDeviceObject(g_audioServiceName[i]); in AudioHostCreateAndBindTest() 41 HDF_LOGE("audiohost:%s create and bind fail!", g_audioServiceName[i]); in AudioHostCreateAndBindTest() 51 int i; in GetCardInstanceTest() local 54 for (i = 0; i < sizeof(g_audioServiceName) / sizeof(g_audioServiceName[0]); ++i) { in GetCardInstanceTest() 55 if (GetCardInstance(g_audioServiceName[i]) == NULL) { in GetCardInstanceTest() 56 HDF_LOGE("%s: get %s fail!", __func__, g_audioServiceName[i]); in GetCardInstanceTest()
|
/drivers/hdf_core/framework/tools/hcs-view/hcsWebView/src/hcs/ |
D | ModifyNode.js | 27 for (let i in node.value_) { 28 if (node.value_[i].name_ == name) { 67 for (let i = 1; i < 256; i++) { 68 let name = 'attr_' + i; 84 for (let i = 1; i < 256; i++) { 85 let name = 'node_' + i; 106 for (let i in parent.value_) { 107 if (parent.value_[i] == node) { 108 parent.value_.splice(i, 1); 118 for (let i in parent.value_) { [all …]
|
/drivers/peripheral/camera/hal_c/hdi_cif/src/ |
D | stream_operator_callback_wrapper.cpp | 34 for (int i = 0; i < count; i++) { in StreamCBOnCaptureStarted() local 35 ids.push_back(streamId[i]); in StreamCBOnCaptureStarted() 48 for (int i = 0; i < count; i++) { in StreamCBOnCaptureEnded() local 51 …MERA_LOGE("it is nullptr captureId: %{public}d streamId: %{public}d", captureId, info[i].streamId); in StreamCBOnCaptureEnded() 54 it->streamId_ = info[i].streamId; in StreamCBOnCaptureEnded() 55 it->frameCount_ = info[i].frameCount; in StreamCBOnCaptureEnded() 71 for (int i = 0; i < count; i++) { in StreamCBOnCaptureError() local 74 …MERA_LOGE("it is nullptr captureId: %{public}d streamId: %{public}d", captureId, info[i].streamId); in StreamCBOnCaptureError() 77 it->streamId_ = info[i].streamId; in StreamCBOnCaptureError() 78 it->error_ = static_cast<OHOS::Camera::StreamError>(info[i].error); in StreamCBOnCaptureError() [all …]
|
D | stream_operator.cpp | 84 for (int i = 0; i < count; i++) { in CreateStreams() local 85 sis[i].streamId = streamInfos[i]->streamId_; in CreateStreams() 86 sis[i].width = streamInfos[i]->width_; in CreateStreams() 87 sis[i].height = streamInfos[i]->height_; in CreateStreams() 88 sis[i].format = streamInfos[i]->format_; in CreateStreams() 89 sis[i].dataspace = streamInfos[i]->dataspace_; in CreateStreams() 90 sis[i].intent = streamInfos[i]->intent_; in CreateStreams() 91 sis[i].tunneledMode = streamInfos[i]->tunneledMode_; in CreateStreams() 92 sis[i].minFrameDuration = streamInfos[i]->minFrameDuration_; in CreateStreams() 95 BindBufferProducer(streamInfos[i]->streamId_, streamInfos[i]->bufferQueue_); in CreateStreams() [all …]
|
/drivers/peripheral/camera/vdi_base/common/pipeline_core/pipeline_impl/src/parser/ |
D | config_parser.cpp | 23 for (int i = 0; i < size; i++) { in GetTypeId() local 24 if (info[i].name != nullptr) { in GetTypeId() 25 if (std::string(info[i].name) == str) { in GetTypeId() 26 return info[i].id; in GetTypeId() 41 for (int i = 0; i < size; i++) { in GetTypeStr() local 42 if (((info + i) != nullptr) && (info[i].name != nullptr)) { in GetTypeStr() 43 if (info[i].id == type) { in GetTypeStr() 44 result = info[i].name; in GetTypeStr()
|
/drivers/hdf_core/framework/model/camera/device_manager/src/ |
D | camera_device_manager.c | 29 uint32_t i; in FindAvailableIndex() local 30 for (i = 0; i < CAMERA_MAX_NUM; i++) { in FindAvailableIndex() 31 if (g_cameraDeviceTable[i] == NULL) { in FindAvailableIndex() 32 *index = i; in FindAvailableIndex() 55 int32_t i; in RemoveCameraDeviceFromTable() local 56 for (i = 0; i < CAMERA_MAX_NUM; i++) { in RemoveCameraDeviceFromTable() 57 if (g_cameraDeviceTable[i] == cameraDevice) { in RemoveCameraDeviceFromTable() 58 g_cameraDeviceTable[i] = NULL; in RemoveCameraDeviceFromTable() 109 int32_t i; in CameraDeviceGetByName() local 115 for (i = 0; i < CAMERA_MAX_NUM; i++) { in CameraDeviceGetByName() [all …]
|
/drivers/peripheral/display/buffer/test/moduletest/ |
D | display_buffer_mt.cpp | 54 int i = 0; in WriteBuffer() local 61 for (; i < handle.size - strSize;) { in WriteBuffer() 62 errno_t ret = memcpy_s(&ptr[i], sizeof(VERIFY_MSG), VERIFY_MSG, sizeof(VERIFY_MSG)); in WriteBuffer() 67 i += strSize; in WriteBuffer() 68 ptr[i - 1] = 0; in WriteBuffer() 70 for (i = i - 1; i < handle.size; i++) { in WriteBuffer() 71 ptr[i] = 'z'; in WriteBuffer() 78 for (i = 0; i < handle.size - SIZE_TIMES * strSize; i = i + strSize) { in WriteBuffer() 79 if (strncmp(VERIFY_MSG, &ptr[i], sizeof(VERIFY_MSG)) != 0) { in WriteBuffer() 81 __func__, __LINE__, i, &ptr[i]); in WriteBuffer() [all …]
|
/drivers/peripheral/usb/sample/host/liteos_test/src/ |
D | usbhost_sdkapi_speed.c | 58 int32_t i, dbn; in AcmDbAlloc() local 61 i = 0; in AcmDbAlloc() 73 if (++i >= TEST_CYCLE) { in AcmDbAlloc() 81 int32_t i, n; in AcmDbIsAvail() local 83 for (i = 0; i < TEST_CYCLE; i++) { in AcmDbIsAvail() 84 n -= acm->db[i].use; in AcmDbIsAvail() 96 for (int32_t i = 0; i < acm->interfaceCnt; i++) { in InterfaceIdToHandle() local 97 if (acm->iface[i]->info.interfaceIndex == id) { in InterfaceIdToHandle() 98 devHandle = acm->devHandle[i]; in InterfaceIdToHandle() 121 int32_t i; in AcmDataBufAlloc() local [all …]
|
/drivers/peripheral/usb/test/unittest/host_sdk/ |
D | usb_host_sdk_if_test_io.cpp | 78 int32_t i; in AcmWriteBufAlloc() local 80 for (wb = &acm->wb[0], i = 0; i < ACM_NW; i++, wb++) { in AcmWriteBufAlloc() 83 while (i != 0) { in AcmWriteBufAlloc() 84 --i; in AcmWriteBufAlloc() 134 for (int32_t i = 0; i <= g_acm->dataIface->info.pipeNum; i++) { in AcmGetPipe() local 135 ret = UsbGetPipeInfo(g_acm->data_devHandle, g_acm->dataIface->info.curAltSetting, i, &p); in AcmGetPipe() 154 for (int32_t i = 0; i <= g_acm->intIface->info.pipeNum; i++) { in AcmGetPipe() local 155 ret = UsbGetPipeInfo(g_acm->int_devHandle, g_acm->intIface->info.curAltSetting, i, &p); in AcmGetPipe() 168 for (int32_t i = 0; i <= g_acm->ctrIface->info.pipeNum; i++) { in AcmGetPipe() local 169 ret = UsbGetPipeInfo(g_acm->ctrl_devHandle, g_acm->ctrIface->info.curAltSetting, i, &p); in AcmGetPipe() [all …]
|
/drivers/hdf_core/framework/model/network/bluetooth/ |
D | hdf_power.c | 152 for (uint8_t i = 0; i < mutiPower->innerPowerCount; i++) { in ActiveMutiPower() local 153 if (mutiPower->powers[i] == NULL || mutiPower->powers[i]->ops == NULL || in ActiveMutiPower() 154 mutiPower->powers[i]->ops->On == NULL) { in ActiveMutiPower() 155 HDF_LOGW("%s:bad power!index=%d", __func__, i); in ActiveMutiPower() 159 if (i > 0) { in ActiveMutiPower() 160 struct NoManagablePower *innerPower = (struct NoManagablePower *)mutiPower->powers[i]; in ActiveMutiPower() 163 ret = mutiPower->powers[i]->ops->On(mutiPower->powers[i]); in ActiveMutiPower() 179 for (uint8_t i = 0; i < mutiPower->innerPowerCount; i++) { in DeactiveMutiPower() local 180 if (mutiPower->powers[i] == NULL || mutiPower->powers[i]->ops == NULL || in DeactiveMutiPower() 181 mutiPower->powers[i]->ops->Off == NULL) { in DeactiveMutiPower() [all …]
|
/drivers/peripheral/usb/sample/host/src/ |
D | usbhost_nosdk_speed.c | 159 int32_t i; in SendProcess() local 162 for (i = 0; i < TEST_CYCLE; i++) { in SendProcess() 163 if (urb[i].inUse == 0) { in SendProcess() 164 urb[i].inUse = 1; in SendProcess() 165 urb[i].urb->userContext = (void *)(&urb[i]); in SendProcess() 170 if (i == TEST_CYCLE) { in SendProcess() 171 i = TEST_CYCLE - 1; in SendProcess() 173 g_sendUrb = urb[i].urb; in SendProcess() 178 urb[i].inUse = 0; in SendProcess() 219 for (int32_t i = 0; i < urbrecv->actualLength; i++) { in ReapProcess() local [all …]
|
/drivers/hdf_core/framework/model/network/wifi/core/module/ |
D | wifi_module.c | 29 uint32_t i; in InitFeatures() local 45 for (i = 0; i < HDF_WIFI_FEATURE_NUM; i++) { in InitFeatures() 46 … if ((module->moduleConfig.hslConfig->featureMap & (1 << i)) && module->feList.fe[i] != NULL) { in InitFeatures() 47 module->feList.fe[i]->init(module->feList.fe[i]); in InitFeatures() 57 uint32_t i; in DeInitFeatures() local 63 for (i = 0; i < HDF_WIFI_FEATURE_NUM; i++) { in DeInitFeatures() 64 if ((module->feList.fe[i] != NULL) && (module->feList.fe[i]->deInit != NULL)) { in DeInitFeatures() 65 module->feList.fe[i]->deInit(module->feList.fe[i]); in DeInitFeatures() 66 module->feList.fe[i] = NULL; in DeInitFeatures()
|
/drivers/peripheral/codec/hdi_service/common/ |
D | common_msgproc.c | 47 for (uint32_t i = 0; i < handle->reserveFds; i++) { in PackBufferHandle() local 48 if (!HdfSbufWriteFileDescriptor(data, handle->reserve[i])) { in PackBufferHandle() 49 HDF_LOGE("%{public}s: write handle->reserve[%{public}d] failed!", __func__, i); in PackBufferHandle() 54 for (uint32_t i = 0; i < handle->reserveInts; i++) { in PackBufferHandle() local 55 if (!HdfSbufWriteInt32(data, handle->reserve[i + handle->reserveFds])) { in PackBufferHandle() 56 …HDF_LOGE("%{public}s: write handle->reserve[%{public}d] failed!", __func__, i + handle->reserveFds… in PackBufferHandle() 99 for (uint32_t i = 0; i < tmpHandle->reserveFds; i++) { in ParseBufferHandle() local 100 tmpHandle->reserve[i] = HdfSbufReadFileDescriptor(data); in ParseBufferHandle() 103 for (uint32_t i = 0; i < tmpHandle->reserveInts; i++) { in ParseBufferHandle() local 104 if (!HdfSbufReadInt32(data, &tmpHandle->reserve[tmpHandle->reserveFds + i])) { in ParseBufferHandle()
|
/drivers/hdf_core/adapter/khdf/uniproton/test/sample_driver/src/ |
D | i2c_test.c | 94 for (int i = 0; i < sizeof(writeBuf); i++) { in TestCaseI2cWriteRead() local 95 printf("0x%x, ", writeBuf[i]); in TestCaseI2cWriteRead() 118 for (int i = 0; i < sizeof(readBuf); i++) { in TestCaseI2cWriteRead() local 119 printf("0x%x, ", readBuf[i]); in TestCaseI2cWriteRead() 125 for (int i = 0; i < sizeof(readBuf); i++) { in TestCaseI2cWriteRead() local 126 if (readBuf[i] != writeBuf[i + 1]) { in TestCaseI2cWriteRead() 127 …("%s: I2cWriteReadData fail! i:%d, read=0x%x, write=0x%x\n", __func__, i, readBuf[i], writeBuf[i]); in TestCaseI2cWriteRead()
|