Home
last modified time | relevance | path

Searched refs:second (Results 1 – 25 of 123) sorted by relevance

12345

/drivers/peripheral/power/interfaces/hdi_service/src/
Drunning_lock_timer_handler.cpp79 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 …]
Drunning_lock_impl.cpp56 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/
Dthermal_zone_manager.cpp175 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/
Dstub_collector.cpp60 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()
Dobject_collector.cpp56 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/
Dcapture_message.cpp85 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/
Dinput_device_manager.cpp53 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/
Dcodec_death_recipient.cpp41 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/
Drtc_test.c127 (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/
Dv4l2_buffer.cpp91 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/
Drtc_base.c50 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/
Dexif_utils.cpp76 int32_t second = 0; in AddLatOrLongInfo() local
105 ConvertGpsDataToDms(number, &degree, &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/
Dcomponent_mgr.cpp41 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/
Detx_device_mgr.cpp43 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/
Dcomponent_mgr.cpp40 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/
Doffline_stream_operator_vdi_impl.cpp82 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/
Ddcamera_host.cpp59 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/
Dgnss_interface_impl.cpp66 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/
Ddrm_encoder.cpp40 crtc = crtcIter->second; in PickIdleCrtcId()
46 auto &posCrts = posCrtcPair.second; in PickIdleCrtcId()
/drivers/hdf_core/framework/tools/hdi-gen/util/
Doptions.cpp112 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/
Ddstream_operator.cpp150 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/
Dcodec_instance_manager.cpp35 bool result = ret.second; in AddToCodecInstanceManager()
47 uintptr_t ret = it->second; in FindInCodecInstanceManager()
/drivers/peripheral/location/agnss/hdi_service/
Dagnss_interface_impl.cpp61 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/
Dusb_ddk_hash.cpp62 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/
Dcamera_host_usb_config.cpp60 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()

12345