/foundation/distributeddatamgr/distributeddatamgr/services/distributeddataservice/adapter/autils/src/ |
D | kv_scheduler.cpp | 42 void KvScheduler::Every(const std::chrono::system_clock::duration interval, std::function<void()> t… in Every() argument 44 std::function<void()> waitFunc = [this, interval, task]() { in Every() 46 this->Every(interval, task); in Every() 48 At(std::chrono::system_clock::now() + interval, waitFunc); in Every() 51 …ler::Every(std::chrono::system_clock::duration delay, std::chrono::system_clock::duration interval, in Every() argument 54 std::function<void()> waitFunc = [this, interval, func]() { in Every() 56 this->Every(interval, func); in Every() 62 std::chrono::system_clock::duration interval, std::function<void()> func) in Every() argument 64 std::function<void()> waitFunc = [this, times, interval, func]() { in Every() 69 this->Every(count, interval, interval, func); in Every()
|
/foundation/communication/netmanager_base/services/common/include/ |
D | timer.h | 46 void Start(int interval, std::function<void()> taskFun) in Start() argument 53 std::thread([this, interval, taskFun]() { in Start() 55 std::this_thread::sleep_for(std::chrono::milliseconds(interval)); in Start() 67 void StartOnce(int interval, std::function<void()> taskFun) in StartOnce() argument 74 std::thread([this, interval, taskFun]() { in StartOnce() 76 std::this_thread::sleep_for(std::chrono::milliseconds(interval)); in StartOnce()
|
/foundation/graphic/ui/frameworks/layout/ |
D | flex_layout.cpp | 37 int16_t& interval, in GetStartPos() argument 46 interval = 0; in GetStartPos() 60 interval = (length - validLengths[count]) / childsNum[count]; in GetStartPos() 61 pos = interval / 2; // 2: half in GetStartPos() 63 interval = (length - validLengths[count]) / (childsNum[count] + 1); in GetStartPos() 64 pos = interval; in GetStartPos() 69 interval = (length - validLengths[count]) / (childsNum[count] - 1); in GetStartPos() 74 void FlexLayout::GetNoWrapStartPos(const int16_t& length, int16_t& majorPos, int16_t& interval) in GetNoWrapStartPos() argument 80 GetStartPos(length, majorPos, interval, 0, &totalValidLength, &childrenNum); in GetNoWrapStartPos() 84 int16_t& interval, in GetRowStartPos() argument [all …]
|
/foundation/aafwk/standard/services/formmgr/include/ |
D | form_timer_option.h | 34 virtual void SetInterval(const uint64_t &interval) override; 72 void FormTimerOption::SetInterval(const uint64_t &interval) in SetInterval() argument 74 this->interval = interval; in SetInterval()
|
/foundation/filemanagement/dfs_service/utils/system/include/ |
D | dfsu_thread.h | 52 bool RunLoop(std::function<bool()> task, uint64_t interval, uint32_t retryTimes = UINT32_MAX) 59 thread_ = std::make_unique<std::thread>([this, task, interval, retryTimes] { 66 …sleepCv_.wait_for(lock, std::chrono::milliseconds(interval), [this]() { return !this->running_; }); 76 …bool RunLoopFlexible(std::function<bool(uint64_t &)> task, uint64_t interval, uint32_t retryTimes … 83 thread_ = std::make_unique<std::thread>([this, task, interval, retryTimes] { 85 uint64_t duration = interval;
|
/foundation/graphic/ui/test/unittest/components/ |
D | ui_repeat_button_unit_test.cpp | 74 const uint16_t interval = 10; variable 75 repeatBtn_->SetInterval(interval); 76 EXPECT_EQ(repeatBtn_->GetInterval(), interval);
|
/foundation/ace/ace_engine_lite/frameworks/examples/airquality/src/main/js/default/pages/index/ |
D | index.js | 74 var interval = setInterval(function () { variable 76 clearInterval(interval); 95 var interval = setInterval(function () { 97 clearInterval(interval);
|
/foundation/communication/dsoftbus/components/nstackx/fillp/src/fillp_lib/src/fillp/ |
D | fillp_timer.c | 204 pcb->sendTimerNode.interval); in FillpEnableSendTimer() 210 pcb->send.flowControl.sendTime + pcb->sendTimerNode.interval); in FillpEnableSendTimer() 212 pcb->send.flowControl.sendTime + pcb->sendTimerNode.interval, &pcb->sendTimerNode); in FillpEnableSendTimer() 226 pcb->packTimerNode.interval); in FillpEnablePackTimer() 228 pcb->packTimerNode.interval + pcb->pcbInst->curTime, &pcb->packTimerNode); in FillpEnablePackTimer() 243 pcb->FcTimerNode.interval + pcb->pcbInst->curTime, &pcb->FcTimerNode); in FillpEnableFcTimer() 257 pcb->keepAliveTimerNode.interval + pcb->pcbInst->curTime, &pcb->keepAliveTimerNode); in FillpEnableKeepAliveTimer() 272 pcb->delayNackTimerNode.interval); in FillpEnableDelayNackTimer() 274 pcb->pcbInst->curTime + pcb->delayNackTimerNode.interval, &pcb->delayNackTimerNode); in FillpEnableDelayNackTimer() 289 pcb->dataBurstTimerNode.interval); in FillpEnableDataBurstTimer() [all …]
|
/foundation/graphic/ui/interfaces/kits/layout/ |
D | flex_layout.h | 118 void GetStartPos(const int16_t& length, int16_t& pos, int16_t& interval, int16_t count, 120 void GetNoWrapStartPos(const int16_t& length, int16_t& majorPos, int16_t& interval); 124 void GetRowStartPos(int16_t& pos, int16_t& interval, int16_t count, 129 void GetColumnStartPos(int16_t& pos, int16_t& interval, int16_t count,
|
/foundation/distributeddatamgr/distributeddatamgr/services/distributeddataservice/adapter/include/autils/ |
D | kv_scheduler.h | 37 …KVSTORE_API void Every(const std::chrono::system_clock::duration interval, std::function<void()> t… 42 std::chrono::system_clock::duration interval, std::function<void()> func); 45 std::chrono::system_clock::duration interval, std::function<void()> func);
|
/foundation/communication/wifi/interfaces/innerkits/native_cpp/wifi_standard/interfaces/ |
D | wifi_scan_msg.h | 192 int interval; /* Interval, in seconds. */ member 197 interval = 0; in tagScanInterval() 213 int interval; /* Interval, in seconds. */ member 221 interval = 0; in tagScanIntervalMode()
|
/foundation/communication/wifi/tests/wifi_standard/wifi_framework/wifi_manage/wifi_scan/Mock/ |
D | mock_scan_state_machine.cpp | 46 void MockScanStateMachine::StartTimer(int timerName, int64_t interval) in StartTimer() argument 49 (void)interval; in StartTimer()
|
/foundation/distributeddatamgr/distributeddatamgr/services/distributeddataservice/framework/include/utils/ |
D | block_integer.h | 22 API_EXPORT explicit BlockInteger(int interval) : interval_(interval) {}; in BlockInteger() argument
|
/foundation/communication/wifi/services/wifi_standard/wifi_framework/wifi_manage/wifi_scan/ |
D | scan_service.cpp | 701 if (pnoScanIntervalMode.scanIntervalMode.interval > 0) { in BeginPnoScan() 702 pnoScanConfig.scanInterval = pnoScanIntervalMode.scanIntervalMode.interval; in BeginPnoScan() 934 WIFI_LOGD("iter->interval is:%{public}d", iter->interval); in SystemScanProcess() 937 systemScanIntervalMode.scanIntervalMode.interval = iter->interval; in SystemScanProcess() 988 WIFI_LOGD("interval:%{public}d", systemScanIntervalMode.scanIntervalMode.interval); in StartSystemTimerScan() 989 if (systemScanIntervalMode.scanIntervalMode.interval > 0) { in StartSystemTimerScan() 990 scanTime = systemScanIntervalMode.scanIntervalMode.interval; in StartSystemTimerScan() 993 (sinceLastScan >= systemScanIntervalMode.scanIntervalMode.interval)) { in StartSystemTimerScan() 999 scanTime = systemScanIntervalMode.scanIntervalMode.interval - sinceLastScan; in StartSystemTimerScan() 1003 systemScanIntervalMode.scanIntervalMode.interval, in StartSystemTimerScan() [all …]
|
D | scan_service.h | 601 bool SystemScanByInterval(int &expScanCount, int &interval, int &count); 612 bool PnoScanByInterval(int &fixedScanCount, time_t &fixedScanTime, int interval, int count); 650 …bool AllowScanByIntervalFixed(int &fixedScanCount, time_t &fixedScanTime, int &interval, int &coun… 660 bool AllowScanByIntervalExp(int &expScanCount, int &interval, int &count); 671 …yIntervalContinue(time_t &continueScanTime, int &lessThanIntervalCount, int &interval, int &count); 684 … int appId, time_t &blockListScanTime, int &lessThanIntervalCount, int &interval, int &count);
|
/foundation/graphic/ui/interfaces/kits/components/ |
D | ui_repeat_button.h | 89 virtual void SetInterval(uint16_t interval) in SetInterval() argument 91 ticksInterval_ = interval; in SetInterval()
|
/foundation/communication/wifi/tests/wifi_standard/wifi_framework/wifi_manage/wifi_scan/ |
D | scan_service_test.cpp | 1179 int interval = 0; in PnoScanByIntervalSuccess1() local 1181 … EXPECT_EQ(pScanService->PnoScanByInterval(fixedScanCount, fixedScanTime, interval, count), true); in PnoScanByIntervalSuccess1() 1188 int interval = 0; in PnoScanByIntervalSuccess2() local 1190 … EXPECT_EQ(pScanService->PnoScanByInterval(fixedScanCount, fixedScanTime, interval, count), true); in PnoScanByIntervalSuccess2() 1197 int interval = 1; in PnoScanByIntervalSuccess3() local 1199 … EXPECT_EQ(pScanService->PnoScanByInterval(fixedScanCount, fixedScanTime, interval, count), true); in PnoScanByIntervalSuccess3() 1206 int interval = 1; in PnoScanByIntervalFail1() local 1208 … EXPECT_EQ(pScanService->PnoScanByInterval(fixedScanCount, fixedScanTime, interval, count), false); in PnoScanByIntervalFail1() 1214 int interval = 1; in SystemScanByIntervalSuccess() local 1217 EXPECT_EQ(pScanService->SystemScanByInterval(expScanCount, interval, count), true); in SystemScanByIntervalSuccess() [all …]
|
/foundation/resourceschedule/background_task_mgr/services/transient_task/src/ |
D | timer_manager.cpp | 33 bool TimerManager::AddTimer(int32_t requestId, int32_t interval) in AddTimer() argument 36 return SendEvent(requestId, 0, interval); in AddTimer()
|
/foundation/resourceschedule/work_scheduler/services/native/src/ |
D | watchdog.cpp | 34 bool Watchdog::AddWatchdog(uint32_t watchdogId, int32_t interval) in AddWatchdog() argument 37 return SendEvent(watchdogId, 0, interval); in AddWatchdog()
|
/foundation/ace/ace_engine/frameworks/core/components/declaration/piece/ |
D | piece_declaration.h | 29 Dimension interval; // Interval between text and icon. member 91 return attribute.interval; in GetInterval() 93 void SetInterval(const Dimension& interval) in SetInterval() argument 96 attribute.interval = interval; in SetInterval()
|
/foundation/communication/bluetooth/services/bluetooth_standard/service/src/common/ |
D | power_device.cpp | 137 void PowerDevice::ModeChangeCallBack(uint8_t status, uint8_t currentMode, uint16_t interval) in ModeChangeCallBack() argument 140 …}d, currentMode: %{public}d, interval: %{public}d\n", __FUNCTION__, status, currentMode, interval); in ModeChangeCallBack() 148 … if (interval <= SNIFF_LEVEL_LOW_MAX_INTERVAL && interval >= SNIFF_LEVEL_LOW_MIN_INTERVAL) { in ModeChangeCallBack() 150 … } else if (interval <= SNIFF_LEVEL_MID_MAX_INTERVAL && interval >= SNIFF_LEVEL_MID_MIN_INTERVAL) { in ModeChangeCallBack() 152 … } else if (interval <= SNIFF_LEVEL_HIG_MAX_INTERVAL && interval >= SNIFF_LEVEL_HIG_MIN_INTERVAL) { in ModeChangeCallBack()
|
D | power_manager.cpp | 85 …eCallBackProcess(uint8_t status, const RawAddress rawAddr, uint8_t currentMode, uint16_t interval); 87 … uint8_t status, const BtAddr *btAddr, uint8_t currentMode, uint16_t interval, void *context); 194 uint8_t status, const RawAddress rawAddr, uint8_t currentMode, uint16_t interval) in ModeChangeCallBackProcess() argument 200 interval, in ModeChangeCallBackProcess() 212 powerDevices_[rawAddr]->ModeChangeCallBack(status, currentMode, interval); in ModeChangeCallBackProcess() 216 uint8_t status, const BtAddr *btAddr, uint8_t currentMode, uint16_t interval, void *context) in ModeChangeCallBack() argument 225 interval)); in ModeChangeCallBack()
|
/foundation/communication/dsoftbus/components/nstackx/fillp/src/fillp_lib/src/ |
D | pcb.c | 267 void SpungePcbSetPackInterval(struct SpungePcb *pcb, FILLP_UINT32 interval) in SpungePcbSetPackInterval() argument 269 pcb->fpcb.statistics.pack.packInterval = interval; in SpungePcbSetPackInterval() 270 pcb->fpcb.packTimerNode.interval = interval; in SpungePcbSetPackInterval() 271 pcb->fpcb.FcTimerNode.interval = interval; in SpungePcbSetPackInterval()
|
/foundation/ace/ace_engine/frameworks/core/components/select_popup/ |
D | rosen_render_select_popup.cpp | 91 auto interval = NormalizeToPx(optionInterval_); in PaintGradient() local 93 gradientRect.SetOffset(Offset(GetOptionLeft() + interval, yPos)); in PaintGradient() 95 gradientRect.SetWidth(GetOptionWidth() - 2 * interval); in PaintGradient()
|
D | flutter_render_select_popup.cpp | 91 auto interval = NormalizeToPx(optionInterval_); in PaintGradient() local 93 gradientRect.SetOffset(Offset(GetOptionLeft() + interval, yPos)); in PaintGradient() 95 gradientRect.SetWidth(GetOptionWidth() - 2 * interval); in PaintGradient()
|