/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 | 74 for (auto iter = hardwareList_.cbegin(); iter != hardwareList_.cend(); iter++) { in GetCameraId() local 75 if ((*iter).controllerId == DM_C_SENSOR) { in GetCameraId() 76 sensor_list.push_back((*iter).cameraId); in GetCameraId() 88 for (auto iter = managerList_.cbegin(); iter != managerList_.cend(); iter++) { in PowerUp() local 89 rc = (*iter)->PowerUp(CameraIdToHardware(cameraId, (*iter)->GetManagerId())); in PowerUp() 103 for (auto iter = managerList_.cbegin(); iter != managerList_.cend(); iter++) { in PowerDown() local 104 rc = (*iter)->PowerDown(CameraIdToHardware(cameraId, (*iter)->GetManagerId())); in PowerDown() 114 for (auto iter = hardwareList_.cbegin(); iter != hardwareList_.cend(); iter++) { in GetSensor() local 115 if ((*iter).controllerId == DM_C_SENSOR && (*iter).cameraId == cameraId) { in GetSensor() 116 …std::static_pointer_cast<SensorManager>(GetManager(DM_M_SENSOR)))->GetSensor((*iter).hardwareName); in GetSensor() [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/sensor/test/benchmarktest/ |
D | sensor_benchmark_test.cpp | 151 for (auto iter : g_info) { in BENCHMARK_F() local 153 iter.sensorId, iter.sensorName.c_str(), iter.power); in BENCHMARK_F() 154 ret = g_sensorInterface->SetBatch(iter.sensorId, SENSOR_INTERVAL1, SENSOR_POLL_TIME); in BENCHMARK_F() 157 ret = g_sensorInterface->Enable(iter.sensorId); in BENCHMARK_F() 161 ret = g_sensorInterface->Disable(iter.sensorId); in BENCHMARK_F() 188 for (auto iter : g_info) { in BENCHMARK_F() local 190 iter.sensorId, iter.sensorName.c_str(), iter.power); in BENCHMARK_F() 191 ret = g_sensorInterface->SetBatch(iter.sensorId, SENSOR_INTERVAL1, SENSOR_POLL_TIME); in BENCHMARK_F() 193 ret = g_sensorInterface->Enable(iter.sensorId); in BENCHMARK_F() 197 ret = g_sensorInterface->Disable(iter.sensorId); in BENCHMARK_F() [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/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/sensor/test/unittest/hdi/ |
D | hdf_sensor_hdi_test.cpp | 143 for (auto iter : g_info) { variable 144 …tf("get sensoriId[%d], info name[%s], power[%f]\n\r", iter.sensorId, iter.sensorName.c_str(), iter… 146 if (iter.sensorId == g_sensorList[j].sensorTypeId) { 147 EXPECT_GT(iter.sensorName.size(), 0); 225 for (auto iter : g_info) { variable 226 ret = g_sensorInterface->SetBatch(iter.sensorId, SENSOR_INTERVAL1, SENSOR_POLL_TIME); 228 ret = g_sensorInterface->Enable(iter.sensorId); 231 ret = g_sensorInterface->Disable(iter.sensorId); 273 for (auto iter : g_info) { variable 274 ret = g_sensorInterface->SetBatch(iter.sensorId, SENSOR_INTERVAL2, SENSOR_POLL_TIME); [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/external_device_manager/test/moduletest/bus_extension_core_mt/ |
D | ext_device_manager_mt.cpp | 40 for (auto &iter :devicesInfo) { in PrintAllDevice() local 41 cout << "description: " << iter->GetDeviceDescription().c_str() << endl; in PrintAllDevice() 42 cout << "deviceId: " << std::hex << iter->GetDeviceId() << endl; in PrintAllDevice() 46 for (auto &iter : bundleMatchMap) { in PrintAllDevice() local 47 cout << "bundleInfo [" << iter.first << "]: "; in PrintAllDevice() 48 for (auto &devId : iter.second) { in PrintAllDevice()
|
/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()
|
/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/display/composer/vdi_base/include/ |
D | hdi_session.h | 41 auto iter = mHdiDisplays.find(devId); in CallDisplayFunction() local 42 DISPLAY_CHK_RETURN((iter == mHdiDisplays.end()), DISPLAY_FAILURE, in CallDisplayFunction() 44 auto display = iter->second.get(); in CallDisplayFunction() 53 auto iter = mHdiDisplays.find(devId); in CallLayerFunction() local 54 DISPLAY_CHK_RETURN((iter == mHdiDisplays.end()), DISPLAY_FAILURE, in CallLayerFunction() 56 auto display = iter->second.get(); in CallLayerFunction()
|
/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/distributed_camera/hdi_service/src/dcamera_host/ |
D | dcamera_host.cpp | 64 auto iter = dCameraDeviceMap_.begin(); in GetCameraIds() local 65 while (iter != dCameraDeviceMap_.end()) { in GetCameraIds() 66 if (!(iter->first).empty()) { in GetCameraIds() 67 cameraIds.push_back(iter->first); in GetCameraIds() 69 iter++; in GetCameraIds() 87 auto iter = dCameraDeviceMap_.find(cameraId); in GetCameraAbility() local 88 ret = (iter->second)->GetDCameraAbility(ability); in GetCameraAbility() 140 auto iter = dCameraDeviceMap_.find(cameraId); in OpenCamera() local 141 if (iter == dCameraDeviceMap_.end()) { in OpenCamera() 146 dcameraDevice = iter->second; in OpenCamera() [all …]
|
/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/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() 130 auto iter = compoentsCore_.find(componentName); in GetCoreOfComponent() local 131 if (iter == compoentsCore_.end() || iter->second == nullptr) { in GetCoreOfComponent() 135 core = iter->second.get(); in GetCoreOfComponent()
|
/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() 131 auto iter = compoentsCore_.find(compName); in GetCoreOfComponent() local 132 if (iter == compoentsCore_.end() || iter->second == nullptr) { in GetCoreOfComponent() 136 core = iter->second.get(); in GetCoreOfComponent()
|
/drivers/peripheral/pin_auth/hdi_service/service/src/ |
D | all_in_one_impl.cpp | 383 for (auto iter = scheduleInfoList_.begin(); iter != scheduleInfoList_.end(); ++iter) { in AddScheduleInfo() local 384 if ((*iter).scheduleId == scheduleInfo.scheduleId) { in AddScheduleInfo() 408 for (auto iter = scheduleInfoList_.begin(); iter != scheduleInfoList_.end(); ++iter) { in GetAndDelScheduleInfo() local 409 if ((*iter).scheduleId == scheduleId) { in GetAndDelScheduleInfo() 410 scheduleInfo = (*iter); in GetAndDelScheduleInfo() 411 scheduleInfoList_.erase(iter); in GetAndDelScheduleInfo() 424 for (auto iter = scheduleInfoList_.begin(); iter != scheduleInfoList_.end(); ++iter) { in UpdateScheduleInfo() local 425 if ((*iter).scheduleId == scheduleId) { in UpdateScheduleInfo() 426 (*iter).authExpiredSysTime = authExpiredSysTime; in UpdateScheduleInfo() 438 for (auto iter = scheduleInfoList_.begin(); iter != scheduleInfoList_.end(); ++iter) { in DelScheduleInfo() local [all …]
|
/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 …]
|
/drivers/peripheral/vibrator/test/unittest/hdi/ |
D | hdf_vibrator_hdi_test.cpp | 139 for (auto iter : g_effect_list) { variable 140 printf("VibratorEffect : %s\n", iter.c_str()); 141 ret = g_vibratorInterface->Start(iter); 163 for (auto iter : g_effect_list) { variable 164 printf("VibratorEffect : %s\n", iter.c_str()); 165 ret = g_vibratorInterface->Start(iter); 187 for (auto iter : g_effect_list) { variable 188 printf("VibratorEffect : %s\n", iter.c_str()); 189 ret = g_vibratorInterface->Start(iter); 215 for (auto iter : g_effect_list) { variable [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()
|