/drivers/peripheral/camera/vdi_base/common/adapter/platform/v4l2/src/device_manager/ |
D | sensor_manager.cpp | 50 for (auto iter = sensorList_.cbegin(); iter != sensorList_.cend(); iter++) { in GetController() local 51 if ((*iter)->GetName() == hardwareName) { in GetController() 52 return *iter; in GetController() 63 for (auto iter = sensorList_.cbegin(); iter != sensorList_.cend(); iter++) { in Configure() local 64 (*iter)->Configure(meta); in Configure() 70 for (auto iter = sensorList_.cbegin(); iter != sensorList_.cend(); iter++) { in PowerUp() local 71 if ((*iter)->GetName() == hardwareName) { in PowerUp() 72 return (*iter)->PowerUp(); in PowerUp() 80 for (auto iter = sensorList_.cbegin(); iter != sensorList_.cend(); iter++) { in PowerDown() local 81 if ((*iter)->GetName() == hardwareName) { in PowerDown() [all …]
|
D | isp_manager.cpp | 49 for (auto iter = ispList_.cbegin(); iter != ispList_.cend(); iter++) { in GetController() local 50 if ((*iter)->GetName() == hardwareName) { in GetController() 51 return *iter; in GetController() 59 for (auto iter = ispList_.cbegin(); iter != ispList_.cend(); iter++) { in PowerUp() local 60 if ((*iter)->GetName() == hardwareName) { in PowerUp() 61 return (*iter)->PowerUp(); in PowerUp() 69 for (auto iter = ispList_.cbegin(); iter != ispList_.cend(); iter++) { in PowerDown() local 70 if ((*iter)->GetName() == hardwareName) { in PowerDown() 71 return (*iter)->PowerDown(); in PowerDown() 82 for (auto iter = ispList_.cbegin(); iter != ispList_.cend(); iter++) { in Configure() local [all …]
|
D | flash_manager.cpp | 49 for (auto iter = flashList_.cbegin(); iter != flashList_.cend(); iter++) { in GetController() local 50 if ((*iter)->GetName() == hardwareName) { in GetController() 51 return *iter; in GetController() 62 for (auto iter = flashList_.cbegin(); iter != flashList_.cend(); iter++) { in Configure() local 63 (*iter)->Configure(meta); in Configure() 69 for (auto iter = flashList_.cbegin(); iter != flashList_.cend(); iter++) { in SetFlashlight() local 70 if ((*iter)->GetName() == hardwareName) { in SetFlashlight() 71 return (*iter)->SetFlashlight(flashMode, enable); in SetFlashlight() 82 for (auto iter = flashList_.cbegin(); iter != flashList_.cend(); iter++) { in CheckCameraIdList() local 83 if ((*iter)->GetName() == hardwareName) { in CheckCameraIdList() [all …]
|
D | v4l2_device_manager.cpp | 38 for (auto iter = hardware.cbegin(); iter != hardware.cend(); iter++) { in Init() local 39 if ((*iter).controllerId == DM_C_SENSOR) { in Init() 40 hardwareName.push_back((*iter).hardwareName); in Init() 49 for (auto iter = hardware.cbegin(); iter != hardware.cend(); iter++) { in Init() local 52 if ((*iter).controllerId == DM_C_SENSOR && (*iterName) == (*iter).hardwareName) { in Init() 56 if (eraseHardwareNameFlag == true && (*iter).controllerId == DM_C_SENSOR) { in Init() 57 hardware.erase(iter); in Init() 60 for (auto iter = hardware.cbegin(); iter != hardware.cend(); iter++) { in Init() local 61 hardwareList_.push_back(*iter); in Init() 80 for (auto iter = hardwareList_.cbegin(); iter != hardwareList_.cend(); iter++) { in GetCameraId() local [all …]
|
/drivers/peripheral/camera/vdi_base/common/adapter/platform/mpp/src/device_manager/ |
D | mpi_device_manager.cpp | 39 for (auto iter = hardware.cbegin(); iter != hardware.cend(); iter++) { in Init() local 40 hardwareList_.push_back(*iter); in Init() 66 for (auto iter = hardwareList_.cbegin(); iter != hardwareList_.cend(); iter++) { in GetCameraId() local 67 if ((*iter).controllerId == DM_C_SENSOR) { in GetCameraId() 68 sensor_list.push_back((*iter).cameraId); in GetCameraId() 84 for (auto iter = managerList_.cbegin(); iter != managerList_.cend(); iter++) { in PowerUp() local 85 rc = (*iter)->PowerUp(cameraId); in PowerUp() 99 for (auto iter = managerList_.cbegin(); iter != managerList_.cend(); iter++) { in PowerDown() local 100 rc = (*iter)->PowerDown(cameraId); in PowerDown() 114 for (auto iter = hardwareList_.cbegin(); iter != hardwareList_.cend(); iter++) { in GetSensor() local [all …]
|
D | vi_controller.cpp | 107 for (auto iter = abilityMetaDataTag.cbegin(); iter != abilityMetaDataTag.cend(); iter++) { in SetAbilityMetaDataTag() local 108 switch (*iter) { in SetAbilityMetaDataTag() 110 abilityMetaData_.push_back(*iter); in SetAbilityMetaDataTag() 114 abilityMetaData_.push_back((*iter)); in SetAbilityMetaDataTag() 213 for (auto iter = abilityMetaData_.cbegin(); iter != abilityMetaData_.cend(); iter++) { in GetAEMetaData() local 214 if (*iter == OHOS_SENSOR_EXPOSURE_TIME) { in GetAEMetaData() 236 for (auto iter = abilityMetaData_.cbegin(); iter != abilityMetaData_.cend(); iter++) { in GetAWBMetaData() local 237 if (*iter == OHOS_SENSOR_COLOR_CORRECTION_GAINS) { in GetAWBMetaData()
|
/drivers/peripheral/camera/vdi_base/usb_camera/adapter/platform/v4l2/src/device_manager/ |
D | v4l2_device_manager.cpp | 52 for (auto iter = hardwareList_.cbegin(); iter != hardwareList_.cend(); iter++) { in GetCameraId() local 53 if ((*iter).controllerId == DM_C_SENSOR) { in GetCameraId() 54 sensor_list.push_back((*iter).cameraId); in GetCameraId() 66 for (auto iter = managerList_.cbegin(); iter != managerList_.cend(); iter++) { in PowerUp() local 67 rc = (*iter)->PowerUp(CameraIdToHardware(cameraId, (*iter)->GetManagerId())); in PowerUp() 81 for (auto iter = managerList_.cbegin(); iter != managerList_.cend(); iter++) { in PowerDown() local 82 rc = (*iter)->PowerDown(CameraIdToHardware(cameraId, (*iter)->GetManagerId())); in PowerDown() 92 for (auto iter = hardwareList_.cbegin(); iter != hardwareList_.cend(); iter++) { in GetSensor() local 93 if ((*iter).controllerId == DM_C_SENSOR && (*iter).cameraId == cameraId) { in GetSensor() 94 …std::static_pointer_cast<SensorManager>(GetManager(DM_M_SENSOR)))->GetSensor((*iter).hardwareName); in GetSensor() [all …]
|
/drivers/peripheral/battery/interfaces/hdi_service/test/unittest/src/ |
D | hdi_service_test.cpp | 116 for (auto iter = g_nodeInfo.begin(); iter != g_nodeInfo.end(); ++iter) { in CheckSubfolderNode() local 117 … if ((strcmp(entry->d_name, iter->first.c_str()) == 0) && (g_nodeInfo[iter->first] == "")) { in CheckSubfolderNode() 118 g_nodeInfo[iter->first] = path; in CheckSubfolderNode() 144 auto iter = g_filenodeName.begin(); in TraversalBaseNode() local 145 while (iter != g_filenodeName.end()) { in TraversalBaseNode() 146 if (*iter == "battery") { in TraversalBaseNode() 147 CheckSubfolderNode(*iter); in TraversalBaseNode() 148 iter = g_filenodeName.erase(iter); in TraversalBaseNode() 150 iter++; in TraversalBaseNode() 154 iter = g_filenodeName.begin(); in TraversalBaseNode() [all …]
|
/drivers/peripheral/sensor/test/unittest/hdi/ |
D | hdf_sensor_hdi_test.cpp | 138 for (auto iter : g_info) { variable 139 …tf("get sensoriId[%d], info name[%s], power[%f]\n\r", iter.sensorId, iter.sensorName.c_str(), iter… 141 if (iter.sensorId == g_sensorList[j].sensorTypeId) { 142 EXPECT_GT(iter.sensorName.size(), 0); 220 for (auto iter : g_info) { variable 221 ret = g_sensorInterface->SetBatch(iter.sensorId, SENSOR_INTERVAL1, SENSOR_POLL_TIME); 223 ret = g_sensorInterface->Enable(iter.sensorId); 226 ret = g_sensorInterface->Disable(iter.sensorId); 268 for (auto iter : g_info) { variable 269 ret = g_sensorInterface->SetBatch(iter.sensorId, SENSOR_INTERVAL2, SENSOR_POLL_TIME); [all …]
|
/drivers/peripheral/light/test/benchmarktest/ |
D | hdf_light_benchmark_test.cpp | 77 for (auto iter : info) { in BENCHMARK_F() local 78 EXPECT_GE(iter.lightId, MIN_LIGHT_ID); in BENCHMARK_F() 79 EXPECT_LE(iter.lightId, MAX_LIGHT_ID); in BENCHMARK_F() 101 for (auto iter : info) { in BENCHMARK_F() local 102 EXPECT_GE(iter.lightId, MIN_LIGHT_ID); in BENCHMARK_F() 103 EXPECT_LE(iter.lightId, MAX_LIGHT_ID); in BENCHMARK_F() 112 ret = g_lightInterface->TurnOnLight(iter.lightId, effect); in BENCHMARK_F() 116 ret = g_lightInterface->TurnOffLight(iter.lightId); in BENCHMARK_F() 139 for (auto iter : info) { in BENCHMARK_F() local 140 EXPECT_GE(iter.lightId, MIN_LIGHT_ID); in BENCHMARK_F() [all …]
|
/drivers/peripheral/distributed_camera/hdi_service/src/dcamera_host/ |
D | dcamera_host.cpp | 57 auto iter = dhBaseHashDCamIdMap_.begin(); in GetCameraIds() local 58 while (iter != dhBaseHashDCamIdMap_.end()) { in GetCameraIds() 59 if (!(iter->second).empty()) { in GetCameraIds() 60 cameraIds.push_back(iter->second); in GetCameraIds() 62 iter++; in GetCameraIds() 76 auto iter = dCameraDeviceMap_.find(cameraId); in GetCameraAbility() local 78 int32_t ret = (iter->second)->GetDCameraAbility(ability); in GetCameraAbility() 125 auto iter = dCameraDeviceMap_.find(cameraId); in OpenCamera() local 126 if (iter == dCameraDeviceMap_.end()) { in OpenCamera() 131 OHOS::sptr<DCameraDevice> dcameraDevice = iter->second; in OpenCamera() [all …]
|
/drivers/peripheral/camera/vdi_base/usb_camera/vdi_impl/src/camera_host/ |
D | camera_host_usb_config.cpp | 148 for (auto iter = enumCameraIdMap_.begin(); iter != enumCameraIdMap_.end(); iter++) { in ReturnPhysicalCameraIdToString() local 149 if (iter->second == physicalCameraId) { in ReturnPhysicalCameraIdToString() 150 return iter->first; in ReturnPhysicalCameraIdToString() 158 for (auto iter = cameraIdMap_.begin(); iter != cameraIdMap_.end(); iter++) { in ReturnLogicalCameraIdToString() local 159 if (iter->second[0] == physicalCameraId) { in ReturnLogicalCameraIdToString() 160 return iter->first; in ReturnLogicalCameraIdToString() 173 auto iter = std::find(usbCameraIdVector_.begin(), usbCameraIdVector_.end(), cameraId); in SearchUsbCameraId() local 174 if (iter != usbCameraIdVector_.end()) { in SearchUsbCameraId()
|
/drivers/peripheral/display/hal/default_standard/src/display_device/core/ |
D | hdi_session.h | 38 auto iter = mHdiDisplays.find(devId); in CallDisplayFunction() local 39 DISPLAY_CHK_RETURN((iter == mHdiDisplays.end()), DISPLAY_FAILURE, in CallDisplayFunction() 41 auto display = iter->second.get(); in CallDisplayFunction() 50 auto iter = mHdiDisplays.find(devId); in CallLayerFunction() local 51 DISPLAY_CHK_RETURN((iter == mHdiDisplays.end()), DISPLAY_FAILURE, in CallLayerFunction() 53 auto display = iter->second.get(); in CallLayerFunction()
|
D | hdi_display.cpp | 33 auto iter = mIdSets.find(mIdleId); in GetIdleId() local 34 if (iter == mIdSets.end()) { in GetIdleId() 68 auto iter = mLayersMap.find(layerId); in SetLayerZorder() local 69 DISPLAY_CHK_RETURN((iter == mLayersMap.end()), DISPLAY_FAILURE, in SetLayerZorder() 118 auto iter = mLayersMap.find(layerId); in CloseLayer() local 119 DISPLAY_CHK_RETURN((iter == mLayersMap.end()), DISPLAY_FAILURE, in CloseLayer() 121 auto layer = iter->second.get(); in CloseLayer() 218 auto iter = mLayersMap.find(id); in GetHdiLayer() local 219 …DISPLAY_CHK_RETURN((iter == mLayersMap.end()), nullptr, DISPLAY_LOGE("can not find the layer %{pub… in GetHdiLayer() 220 return iter->second.get(); in GetHdiLayer()
|
/drivers/peripheral/light/hdi_service/ |
D | light_if_service.cpp | 104 for (const auto &iter : lightInfoVdi) { in GetLightInfo() local 106 hdfLightInfo.lightId = iter.lightId; in GetLightInfo() 107 hdfLightInfo.lightType = iter.lightType; in GetLightInfo() 108 hdfLightInfo.lightName = iter.lightName; in GetLightInfo() 109 hdfLightInfo.lightNumber = iter.lightNumber; in GetLightInfo() 154 for (auto iter : colors) { in TurnOnMultiLights() local 156 lightColorVdi.colorValue.rgbColor.b = iter.colorValue.rgbColor.b; in TurnOnMultiLights() 157 lightColorVdi.colorValue.rgbColor.g = iter.colorValue.rgbColor.g; in TurnOnMultiLights() 158 lightColorVdi.colorValue.rgbColor.r = iter.colorValue.rgbColor.r; in TurnOnMultiLights() 159 lightColorVdi.colorValue.wrgbColor.b = iter.colorValue.wrgbColor.b; in TurnOnMultiLights() [all …]
|
/drivers/peripheral/codec/hal/v2.0/hdi_impl/src/ |
D | component_mgr.cpp | 40 auto iter = compoentsCore_.find(componentName); in CreateComponentInstance() local 41 if (iter == compoentsCore_.end() || iter->second == nullptr) { in CreateComponentInstance() 45 auto core = iter->second; in CreateComponentInstance() 120 auto iter = compoentsCore_.find(componentName); in GetCoreOfComponent() local 121 if (iter == compoentsCore_.end() || iter->second == nullptr) { in GetCoreOfComponent() 125 core = iter->second.get(); in GetCoreOfComponent()
|
/drivers/peripheral/camera/vdi_base/v4l2/src/camera_host/ |
D | camera_host_config.cpp | 189 for (auto iter = enumCameraIdMap_.begin(); iter != enumCameraIdMap_.end(); iter++) { in ReturnPhysicalCameraIdToString() local 190 if (iter->second == physicalCameraId) { in ReturnPhysicalCameraIdToString() 191 return iter->first; in ReturnPhysicalCameraIdToString() 199 for (auto iter = cameraIdMap_.begin(); iter != cameraIdMap_.end(); iter++) { in ReturnLogicalCameraIdToString() local 200 if (iter->second[0] == physicalCameraId) { in ReturnLogicalCameraIdToString() 201 return iter->first; in ReturnLogicalCameraIdToString() 214 auto iter = std::find(usbCameraIdVector_.begin(), usbCameraIdVector_.end(), cameraId); in SearchUsbCameraId() local 215 if (iter != usbCameraIdVector_.end()) { in SearchUsbCameraId()
|
/drivers/peripheral/light/test/performance/hdi/ |
D | hdf_light_hdi_performance_test.cpp | 102 for (auto iter : info) variable 104 EXPECT_GE(iter.lightId, MIN_LIGHT_ID); 105 EXPECT_LE(iter.lightId, MAX_LIGHT_ID); 113 ret = g_lightInterface->TurnOnLight(iter.lightId, effect); 122 ret = g_lightInterface->TurnOffLight(iter.lightId); 144 for (auto iter : info) variable 146 EXPECT_GE(iter.lightId, MIN_LIGHT_ID); 147 EXPECT_LE(iter.lightId, MAX_LIGHT_ID); 158 ret = g_lightInterface->TurnOnLight(iter.lightId, effect); 167 ret = g_lightInterface->TurnOffLight(iter.lightId);
|
/drivers/peripheral/codec/hal/idl_service/src/ |
D | component_mgr.cpp | 39 auto iter = compoentsCore_.find(componentName); in CreateComponentInstance() local 40 if (iter == compoentsCore_.end() || iter->second == nullptr) { in CreateComponentInstance() 44 auto core = iter->second; in CreateComponentInstance() 120 auto iter = compoentsCore_.find(compName); in GetCoreOfComponent() local 121 if (iter == compoentsCore_.end() || iter->second == nullptr) { in GetCoreOfComponent() 125 core = iter->second.get(); in GetCoreOfComponent()
|
/drivers/external_device_manager/test/moduletest/bus_extension_core_mt/ |
D | ext_device_manager_mt.cpp | 40 for (auto &iter : map) { in PrintAllDevice() local 41 std::shared_ptr<Device> device = iter.second; in PrintAllDevice() 47 for (auto &iter : bundleMatchMap) { in PrintAllDevice() local 48 cout << "bundleInfo [" << iter.first << "]: "; in PrintAllDevice() 49 for (auto &devId : iter.second) { in PrintAllDevice()
|
/drivers/peripheral/location/gnss/hdi_service/ |
D | gnss_interface_impl.cpp | 65 for (const auto& iter : g_locationCallBackMap) { in LocationUpdate() local 66 auto& callback = iter.second; in LocationUpdate() 80 for (const auto& iter : g_locationCallBackMap) { in StatusCallback() local 81 auto& callback = iter.second; in StatusCallback() 109 for (const auto& iter : g_locationCallBackMap) { in SvStatusCallback() local 110 auto& callback = iter.second; in SvStatusCallback() 123 for (const auto& iter : g_locationCallBackMap) { in NmeaCallback() local 124 auto& callback = iter.second; in NmeaCallback() 302 auto iter = g_gnssCallBackDeathRecipientMap.find(remote.GetRefPtr()); in RemoveGnssDeathRecipient() local 303 if (iter == g_gnssCallBackDeathRecipientMap.end()) { in RemoveGnssDeathRecipient() [all …]
|
/drivers/peripheral/location/agnss/hdi_service/ |
D | agnss_interface_impl.cpp | 60 for (const auto& iter : g_agnssCallBackMap) { in OnStatusChangedCb() local 61 auto& callback = iter.second; in OnStatusChangedCb() 71 for (const auto& iter : g_agnssCallBackMap) { in GetSetidCb() local 72 auto& callback = iter.second; in GetSetidCb() 81 for (const auto& iter : g_agnssCallBackMap) { in GetRefLocationidCb() local 82 auto& callback = iter.second; in GetRefLocationidCb() 250 auto iter = g_agnssCallBackDeathRecipientMap.find(remote.GetRefPtr()); in RemoveAgnssDeathRecipient() local 251 if (iter == g_agnssCallBackDeathRecipientMap.end()) { in RemoveAgnssDeathRecipient() 255 auto recipient = iter->second; in RemoveAgnssDeathRecipient() 257 g_agnssCallBackDeathRecipientMap.erase(iter); in RemoveAgnssDeathRecipient() [all …]
|
/drivers/peripheral/camera/vdi_base/common/device_manager/include/ |
D | create_devicemanager_factory.h | 31 std::map<std::string, createClass>::const_iterator iter; in GetDeviceManagerByName() local 33 iter = deviceManagerMap_.find(className); in GetDeviceManagerByName() 34 if (iter == deviceManagerMap_.end()) { in GetDeviceManagerByName() 37 return iter->second(); in GetDeviceManagerByName()
|
D | create_sensor_factory.h | 31 std::map<std::string, createClass>::const_iterator iter; in GetSensorByName() local 33 iter = senorMap_.find(className); in GetSensorByName() 34 if (iter == senorMap_.end()) { in GetSensorByName() 37 return iter->second(); in GetSensorByName()
|
/drivers/hdf_core/framework/tools/hdi-gen/lexer/ |
D | lexer.cpp | 393 auto iter = symbols_.find(symbol); in ReadShiftLeftOp() local 394 token.kind = (iter != symbols_.end()) ? iter->second : TokenType::UNKNOWN; in ReadShiftLeftOp() 410 auto iter = symbols_.find(symbol); in ReadShiftRightOp() local 411 token.kind = (iter != symbols_.end()) ? iter->second : TokenType::UNKNOWN; in ReadShiftRightOp() 427 auto iter = symbols_.find(symbol); in ReadPPlusOp() local 428 token.kind = (iter != symbols_.end()) ? iter->second : TokenType::UNKNOWN; in ReadPPlusOp() 444 auto iter = symbols_.find(symbol); in ReadMMinusOp() local 445 token.kind = (iter != symbols_.end()) ? iter->second : TokenType::UNKNOWN; in ReadMMinusOp() 462 auto iter = symbols_.find(symbol); in ReadComment() local 463 token.kind = (iter != symbols_.end()) ? iter->second : TokenType::UNKNOWN; in ReadComment() [all …]
|