/drivers/peripheral/power/interfaces/hdi_service/src/ |
D | running_lock_timer_handler.cpp | 79 auto nameIter = typeIter->second.find(name); in GetRunningLockTimerId() 80 if (nameIter != typeIter->second.end()) { in GetRunningLockTimerId() 81 timerId = nameIter->second; in GetRunningLockTimerId() 96 auto nameIter = typeIter->second.find(name); in AddRunningLockTimerMap() 97 if (nameIter == typeIter->second.end()) { in AddRunningLockTimerMap() 98 typeIter->second.emplace(name, timerId); in AddRunningLockTimerMap() 101 nameIter->second = timerId; in AddRunningLockTimerMap() 108 auto nameIter = typeIter->second.find(name); in RemoveRunningLockTimerMap() 109 if (nameIter != typeIter->second.end()) { in RemoveRunningLockTimerMap() 110 typeIter->second.erase(name); in RemoveRunningLockTimerMap() [all …]
|
D | running_lock_impl.cpp | 56 if (pair.second == false) { in Hold() 62 std::shared_ptr<RunningLockCounter> lockCounter = iterator->second; in Hold() 96 std::shared_ptr<RunningLockCounter> lockCounter = iterator->second; in Unhold() 107 count = iterator->second->GetCount(); in GetCount()
|
/drivers/peripheral/thermal/interfaces/hdi_service/src/ |
D | thermal_zone_manager.cpp | 175 for (auto &group : polling.second) { in UpdateThermalZoneData() 176 auto tzInfoList = group.second->GetXMLThermalZoneInfo(); in UpdateThermalZoneData() 177 auto tnInfoList = group.second->GetXMLThermalNodeInfo(); in UpdateThermalZoneData() 178 group.second->thermalDataList_.clear(); in UpdateThermalZoneData() 187 data.tempPath = typeIter->second; in UpdateThermalZoneData() 188 group.second->thermalDataList_.push_back(data); in UpdateThermalZoneData() 198 group.second->thermalDataList_.push_back(data); in UpdateThermalZoneData() 217 for (auto &group : polling.second) { in CalculateMaxCd() 218 intervalList.emplace_back(group.second->GetInterval()); in CalculateMaxCd() 229 for (auto &group : polling.second) { in CalculateMaxCd() [all …]
|
/drivers/hdf_core/adapter/uhdf2/hdi/src/ |
D | stub_collector.cpp | 60 return stub->second; in StubCollectorGetOrNewObject() 75 if (constructor->second->constructor == nullptr) { in StubCollectorGetOrNewObject() 80 HdfRemoteService **stubObject = constructor->second->constructor(servPtr); in StubCollectorGetOrNewObject() 107 if (constructor->second->destructor != nullptr) { in StubCollectorRemoveObject() 108 constructor->second->destructor(stub->second); in StubCollectorRemoveObject()
|
D | object_collector.cpp | 56 return constructor->second(interface); in NewObjectLocked() 79 if (it->second->GetSptrRefCount() == 0) { in GetOrNewObject() 87 return it->second; in GetOrNewObject()
|
/drivers/peripheral/camera/vdi_base/v4l2/src/stream_operator/ |
D | capture_message.cpp | 85 for (auto& mit : it->second) { in SendMessage() 106 it->second.emplace_back(mg); in SendMessage() 150 for (auto& vit : lit.second) { in HandleMessage() 160 for (auto it = lit.second.begin(); it != lit.second.end();) { in HandleMessage() 162 it = lit.second.erase(it); in HandleMessage()
|
/drivers/peripheral/input/udriver/src/ |
D | input_device_manager.cpp | 53 dumpInfoList(inputDev.second); in Init() 137 if (callbackFunc.second != nullptr && ret != INPUT_FAILURE) { in DoRead() 138 …callbackFunc.second->EventPkgCallback(const_cast<const InputEventPackage **>(evtPkg), count, index… in DoRead() 172 if (string(inputDev.second.devPathNode) == devPath) { in CloseInputDevice() 173 int32_t fd = inputDev.second.fd; in CloseInputDevice() 177 inputDev.second.fd = -1; in CloseInputDevice() 178 inputDev.second.status = INPUT_DEVICE_STATUS_CLOSED; in CloseInputDevice() 335 if (string(it->second.detailInfo.attrSet.devName) == sDevName) { in DoWithEventDeviceAdd() 336 it->second.fd = fd; in DoWithEventDeviceAdd() 337 it->second.status = INPUT_DEVICE_STATUS_OPENED; in DoWithEventDeviceAdd() [all …]
|
/drivers/peripheral/codec/hal/src/ |
D | codec_death_recipient.cpp | 41 comps->second.insert(componentId); in RegisterService() 64 uint32_t remotePid = addrPid->second; in CleanMapperOfDiedService() 71 std::set<uint32_t> ids = comps->second; in CleanMapperOfDiedService() 91 comps->second.erase(componentId); in RemoveDestoryedComponent()
|
/drivers/hdf_core/framework/test/unittest/platform/common/ |
D | rtc_test.c | 127 (readTime->second < writeTime->second)) { in IsSameRtcTestTime() 170 tester->time.second = tester->config.second; in RtcReadWriteTimeTest() 192 tester->time.second = RTC_MAX_SECOND; in RtcReadWriteMaxTimeTest() 214 tester->time.second = 0; in RtcReadWriteMinTimeTest() 263 tester->time.second = tester->config.second; in RtcReadWriteAlarmTimeTest() 285 tester->time.second = RTC_MAX_SECOND; in RtcReadWriteAlarmMaxTimeTest() 307 tester->time.second = 0; in RtcReadWriteAlarmMinTimeTest() 330 tester->time.second = tester->config.second; in RtcAlarmEnableTest() 386 tester->time.second = tester->config.second; in RtcAlarmIrqTest() 403 tester->time.second = tester->config.second + 1; in RtcAlarmIrqTest() [all …]
|
/drivers/peripheral/camera/vdi_base/common/adapter/platform/v4l2/src/driver_adapter/src/ |
D | v4l2_buffer.cpp | 91 itr->second[buf.index] = frameSpec; in V4L2QueueBuffer() 206 auto& bufferMap = IterMap->second; in V4L2DequeueBuffer() 217 dequeueBuffer_(Iter->second); in V4L2DequeueBuffer() 365 if (mem.second.dmafd > 0) { in V4L2ReleaseBuffers() 368 int ret = ioctl(mem.second.dmafd, DMA_BUF_IOCTL_SYNC, &sync); in V4L2ReleaseBuffers() 373 if (mem.second.start) { in V4L2ReleaseBuffers() 374 if (munmap(mem.second.start, mem.second.length) < 0) { in V4L2ReleaseBuffers() 378 if (mem.second.dmafd > 0) { in V4L2ReleaseBuffers() 379 close(mem.second.dmafd); in V4L2ReleaseBuffers() 381 if (mem.second.heapfd > 0) { in V4L2ReleaseBuffers() [all …]
|
/drivers/hdf_core/framework/support/platform/src/rtc/ |
D | rtc_base.c | 50 IS_INVALID_SECOND(time->second) || IS_INVALID_MS(time->millisecond)); in RtcIsInvalid() 92 … time->year, time->month, time->day, time->hour, time->minute, time->second, time->millisecond); in RtcTimeToTimestamp() 98 … seconds = ((uint64_t)time->hour * RTC_MAX_MINUTE + time->minute) * RTC_MAX_SECOND + time->second; in RtcTimeToTimestamp() 138 time->second = daySeconds % RTC_MAX_SECOND; in TimestampToRtcTime() 145 …time->year, time->month, time->day, time->weekday, time->hour, time->minute, time->second, time->m… in TimestampToRtcTime()
|
/drivers/peripheral/camera/vdi_base/common/utils/exif/ |
D | exif_utils.cpp | 76 int32_t second = 0; in AddLatOrLongInfo() local 105 ConvertGpsDataToDms(number, °ree, &minute, &second); in AddLatOrLongInfo() 110 gpsRational[2].numerator = second; // Index in AddLatOrLongInfo() 304 int32_t second = static_cast<int32_t>(((number - hour) * timePeriod - minute) * timePeriod); in ConvertGpsDataToDms() local 306 approximateNumber = ((number - hour) * timePeriod - minute) * timePeriod - second; in ConvertGpsDataToDms() 308 second = second + 1; in ConvertGpsDataToDms() 310 if (second == timePeriod) { in ConvertGpsDataToDms() 311 second = 0; in ConvertGpsDataToDms() 320 *seconds = second; in ConvertGpsDataToDms()
|
/drivers/peripheral/codec/hal/v2.0/hdi_impl/src/ |
D | component_mgr.cpp | 41 if (iter == compoentsCore_.end() || iter->second == nullptr) { in CreateComponentInstance() 45 auto core = iter->second; in CreateComponentInstance() 121 if (iter == compoentsCore_.end() || iter->second == nullptr) { in GetCoreOfComponent() 125 core = iter->second.get(); in GetCoreOfComponent()
|
/drivers/external_device_manager/services/native/driver_extension_manager/src/device_manager/ |
D | etx_device_mgr.cpp | 43 for (auto iterId = iter.second.begin(); iterId != iter.second.end(); ++iterId) { in PrintMatchDriverMap() 81 auto pairRet = pos->second.emplace(deviceId); in AddDevIdOfBundleInfoMap() 83 if (!pairRet.second || pos->second.size() > 1) { in AddDevIdOfBundleInfoMap() 118 if (pos->second.size() > 1) { in RemoveDevIdOfBundleInfoMap() 119 pos->second.erase(deviceId); in RemoveDevIdOfBundleInfoMap() 190 shared_ptr<Device> device = iter.second; in AddBundleInfo() 239 shared_ptr<Device> device = iter.second; in RemoveBundleInfo() 320 device = map.find(deviceId)->second; in RegisterDevice() 417 devInfoVec.emplace_back(device.second->GetDeviceInfo()); in QueryDevice() 474 const auto &devices = deviceMapIter->second; in QueryDeviceByDeviceID() [all …]
|
/drivers/peripheral/codec/hal/idl_service/src/ |
D | component_mgr.cpp | 40 if (iter == compoentsCore_.end() || iter->second == nullptr) { in CreateComponentInstance() 44 auto core = iter->second; in CreateComponentInstance() 121 if (iter == compoentsCore_.end() || iter->second == nullptr) { in GetCoreOfComponent() 125 core = iter->second.get(); in GetCoreOfComponent()
|
/drivers/peripheral/camera/vdi_base/v4l2/src/offline_stream_operator/ |
D | offline_stream_operator_vdi_impl.cpp | 82 it->second->Release(); in Release() 108 if (it->second->CheckCaptureIdExist(captureId)) { in FindStreamByCaptureId() 109 stream = it->second; in FindStreamByCaptureId()
|
/drivers/peripheral/distributed_camera/hdi_service/src/dcamera_host/ |
D | dcamera_host.cpp | 59 if (!(iter->second).empty()) { in GetCameraIds() 60 cameraIds.push_back(iter->second); in GetCameraIds() 78 int32_t ret = (iter->second)->GetDCameraAbility(ability); in GetCameraAbility() 131 OHOS::sptr<DCameraDevice> dcameraDevice = iter->second; in OpenCamera() 238 if (cameraId == iter->second) { in IsCameraIdInvalid() 253 return iter->second; in GetCameraIdByDHBase() 269 return iter->second; in GetDCameraDeviceByDHBase()
|
/drivers/peripheral/location/gnss/hdi_service/ |
D | gnss_interface_impl.cpp | 66 auto& callback = iter.second; in LocationUpdate() 81 auto& callback = iter.second; in StatusCallback() 110 auto& callback = iter.second; in SvStatusCallback() 124 auto& callback = iter.second; in NmeaCallback() 200 … const sptr<IRemoteObject>& rhs = OHOS::HDI::hdi_objcast<IGnssCallback>(callBackIter->second); in EnableGnss() 307 auto recipient = iter->second; in RemoveGnssDeathRecipient() 321 const auto& callback = iter.second; in ResetGnssDeathRecipient()
|
/drivers/peripheral/display/hal/default_standard/src/display_device/drm/ |
D | drm_encoder.cpp | 40 crtc = crtcIter->second; in PickIdleCrtcId() 46 auto &posCrts = posCrtcPair.second; in PickIdleCrtcId()
|
/drivers/hdf_core/framework/tools/hdi-gen/util/ |
D | options.cpp | 112 systemLevel = levelIter->second; in SetSystemLevel() 130 genMode = codeGenIter->second; in SetGenerateMode() 149 genLanguage = kindIter->second; in SetLanguage() 166 if (sourceFiles.insert(realPath).second == false) { in AddSources() 299 return packageRoot.second; in GetRootPath() 334 rootPath = packageRoot.second; in GetPackagePath()
|
/drivers/peripheral/distributed_camera/hdi_service/src/dstream_operator/ |
D | dstream_operator.cpp | 150 dstStreamInfo.streamId_ = streamInfo.second->streamId_; in ExtractStreamInfo() 151 dstStreamInfo.width_ = streamInfo.second->width_; in ExtractStreamInfo() 152 dstStreamInfo.height_ = streamInfo.second->height_; in ExtractStreamInfo() 153 dstStreamInfo.stride_ = streamInfo.second->stride_; in ExtractStreamInfo() 154 dstStreamInfo.format_ = streamInfo.second->format_; in ExtractStreamInfo() 155 dstStreamInfo.dataspace_ = streamInfo.second->dataspace_; in ExtractStreamInfo() 156 dstStreamInfo.encodeType_ = streamInfo.second->encodeType_; in ExtractStreamInfo() 157 dstStreamInfo.type_ = streamInfo.second->type_; in ExtractStreamInfo() 232 DCamRetCode ret = stream.second->GetDCameraStreamAttribute(attribute); in GetStreamAttributes() 461 for (auto id : iter.second->streamIds_) { in HasContinuousCaptureInfo() [all …]
|
/drivers/peripheral/codec/hal/v1.0/codec_instance/src/ |
D | codec_instance_manager.cpp | 35 bool result = ret.second; in AddToCodecInstanceManager() 47 uintptr_t ret = it->second; in FindInCodecInstanceManager()
|
/drivers/peripheral/location/agnss/hdi_service/ |
D | agnss_interface_impl.cpp | 61 auto& callback = iter.second; in OnStatusChangedCb() 72 auto& callback = iter.second; in GetSetidCb() 82 auto& callback = iter.second; in GetRefLocationidCb() 126 … const sptr<IRemoteObject>& rhs = OHOS::HDI::hdi_objcast<IAGnssCallback>(callBackIter->second); in SetAgnssCallback() 255 auto recipient = iter->second; in RemoveAgnssDeathRecipient() 269 const auto& callback = iter.second; in ResetAgnssDeathRecipient()
|
/drivers/peripheral/usb/ddk_service/src/ |
D | usb_ddk_hash.cpp | 62 if (it->second.busNum == info.busNum && it->second.devNum == info.devNum) { in UsbDdkGetRecordByVal()
|
/drivers/peripheral/camera/vdi_base/usb_camera/vdi_impl/src/camera_host/ |
D | camera_host_usb_config.cpp | 60 pCameraIds = itr->second; in GetPhysicCameraIds() 71 ability = itr->second; in GetCameraAbility() 149 if (iter->second == physicalCameraId) { in ReturnPhysicalCameraIdToString() 159 if (iter->second[0] == physicalCameraId) { in ReturnLogicalCameraIdToString()
|