Home
last modified time | relevance | path

Searched refs:intervalMs (Results 1 - 18 of 18) sorted by relevance

/foundation/multimodalinput/input/service/timer_manager/src/
H A Dtimer_manager.cpp37 int32_t TimerManager::AddTimer(int32_t intervalMs, int32_t repeatCount, std::function<void()> callback) in AddTimer() argument
39 if (intervalMs < MIN_INTERVAL) { in AddTimer()
40 intervalMs = MIN_INTERVAL; in AddTimer()
41 } else if (intervalMs > MAX_INTERVAL_MS) { in AddTimer()
42 intervalMs = MAX_INTERVAL_MS; in AddTimer()
44 return AddTimerInternal(intervalMs, repeatCount, callback); in AddTimer()
47 int32_t TimerManager::AddLongTimer(int32_t intervalMs, int32_t repeatCount, std::function<void()> callback) in AddLongTimer() argument
49 if (intervalMs < MIN_INTERVAL) { in AddLongTimer()
50 intervalMs = MIN_INTERVAL; in AddLongTimer()
51 } else if (intervalMs > MAX_LONG_INTERVAL_M in AddLongTimer()
99 AddTimerInternal(int32_t intervalMs, int32_t repeatCount, std::function<void()> callback) AddTimerInternal() argument
[all...]
/foundation/multimodalinput/input/service/timer_manager/test/
H A Dtimer_manager_test.cpp54 int32_t intervalMs = 1000; in HWTEST_F() local
55 int32_t timerld = TimerMgr->AddTimer(intervalMs, repeatCount, AddTimerCallback); in HWTEST_F()
69 int32_t intervalMs = 1000; in HWTEST_F() local
70 int32_t timerld = TimerMgr->AddTimer(intervalMs, repeatCount, AddTimerCallback); in HWTEST_F()
84 int32_t intervalMs = 1000; in HWTEST_F() local
85 int32_t timerld = TimerMgr->AddTimer(intervalMs, repeatCount, AddTimerCallback); in HWTEST_F()
100 int32_t intervalMs = 1000; in HWTEST_F() local
101 int32_t timerld = TimerMgr->AddTimer(intervalMs, repeatCount, AddTimerCallback); in HWTEST_F()
115 int32_t intervalMs = 1000; in HWTEST_F() local
116 int32_t timerld = TimerMgr->AddTimer(intervalMs, repeatCoun in HWTEST_F()
130 int32_t intervalMs = 0; HWTEST_F() local
234 int32_t intervalMs = 50; HWTEST_F() local
[all...]
/foundation/multimedia/camera_framework/services/deferred_processing_service/src/base/timer/
H A Dtimer.cpp26 uint32_t intervalMs, TimerCallback callback) in Create()
28 DP_DEBUG_LOG("name: %s, timer type: %{public}d(0: once, 1: periodic), intervalMs: %u", in Create()
29 name.c_str(), timerType, intervalMs); in Create()
31 MakeSharedHelper(const std::string& name, TimerType timerType, uint32_t intervalMs, TimerCallback callback) in Create()
32 : Timer(name, timerType, intervalMs, std::move(callback)) in Create()
36 auto timer = std::make_shared<MakeSharedHelper>(name, timerType, intervalMs, std::move(callback)); in Create()
43 Timer::Timer(const std::string& name, TimerType timerType, uint32_t intervalMs, TimerCallback callback) in Timer() argument
44 : name_(name), timerType_(timerType), intervalMs_(intervalMs), callback_(std::move(callback)), expiredTimeMs_(0) in Timer()
46 DP_DEBUG_LOG("name: %s, timer type: %{public}d(0: once, 1: periodic), intervalMs: %u", in Timer()
47 name_.c_str(), timerType, intervalMs); in Timer()
25 Create(const std::string& name, TimerType timerType, uint32_t intervalMs, TimerCallback callback) Create() argument
[all...]
/foundation/multimodalinput/input/intention/scheduler/timer_manager/src/
H A Dtimer_manager.cpp62 int32_t TimerManager::OnAddTimer(int32_t intervalMs, int32_t repeatCount, std::function<void()> callback) in OnAddTimer() argument
64 int32_t timerId = AddTimerInternal(intervalMs, repeatCount, callback); in OnAddTimer()
69 int32_t TimerManager::AddTimer(int32_t intervalMs, int32_t repeatCount, std::function<void()> callback) in AddTimer() argument
73 return context_->GetDelegateTasks().PostSyncTask([this, intervalMs, repeatCount, callback] { in AddTimer()
74 return this->OnAddTimer(intervalMs, repeatCount, callback); in AddTimer()
176 int32_t TimerManager::AddTimerInternal(int32_t intervalMs, int32_t repeatCount, std::function<void()> callback)
179 if (intervalMs < MIN_INTERVAL) {
180 intervalMs = MIN_INTERVAL;
181 } else if (intervalMs > MAX_INTERVAL_MS) {
182 intervalMs
[all...]
/foundation/multimodalinput/input/service/timer_manager/include/
H A Dtimer_manager.h36 int32_t AddTimer(int32_t intervalMs, int32_t repeatCount, std::function<void()> callback);
37 int32_t AddLongTimer(int32_t intervalMs, int32_t repeatCount, std::function<void()> callback);
47 int32_t intervalMs { 0 };
55 int32_t AddTimerInternal(int32_t intervalMs, int32_t repeatCount, std::function<void()> callback);
/foundation/multimodalinput/input/intention/scheduler/timer_manager/include/
H A Dtimer_manager.h38 int32_t AddTimer(int32_t intervalMs, int32_t repeatCount, std::function<void()> callback) override;
48 int32_t intervalMs { 0 };
56 int32_t OnAddTimer(int32_t intervalMs, int32_t repeatCount, std::function<void()> callback);
63 int32_t AddTimerInternal(int32_t intervalMs, int32_t repeatCount, std::function<void()> callback);
/foundation/multimodalinput/input/service/subscriber/test/src/
H A Dtimer_manager.cpp38 int32_t TimerManager::AddTimer(int32_t intervalMs, int32_t repeatCount, std::function<void()> callback) in AddTimer() argument
46 std::this_thread::sleep_for(std::chrono::milliseconds(intervalMs)); in AddTimer()
/foundation/arkui/ace_engine/frameworks/component_test/core/
H A Daction.cpp147 uint32_t intervalMs = timeCostMs / steps_ + 1; in Decompose() local
151 PointerEventAction { PointerActionState::DOWN, { from_.GetX(), from_.GetY() }, intervalMs }); in Decompose()
155 pointer.PushEventAction(PointerEventAction { PointerActionState::MOVE, { pointX, pointY }, intervalMs }); in Decompose()
188 float intervalMs = distance * 1000 / speed / steps; in Decompose() local
189 intervalMs = intervalMs > 0 ? intervalMs : -intervalMs; in Decompose()
192 PointerEventAction { PointerActionState::DOWN, { left.first.GetX(), left.first.GetY() }, intervalMs }); in Decompose()
195 recv.PushEventAction(PointerEventAction { PointerActionState::MOVE, { pointX, centerY }, intervalMs }); in Decompose()
294 float intervalMs = timeCostMs / (steps_ + 1) / time; Decompose() local
[all...]
/foundation/multimedia/camera_framework/services/deferred_processing_service/include/base/timer/
H A Dtimer.h40 uint32_t intervalMs, TimerCallback callback);
50 Timer(const std::string& name, TimerType timerType, uint32_t intervalMs, TimerCallback callback);
/foundation/multimodalinput/input/service/touch_event_normalize/include/
H A Dtouch_transform_processor.h53 [](int32_t intervalMs, int32_t repeatCount, std::function<void()> callback) -> int32_t { variable
54 return TimerMgr->AddTimer(intervalMs, repeatCount, std::move(callback));
H A Dtouchpad_transform_processor.h120 [](int32_t intervalMs, int32_t repeatCount, std::function<void()> callback) -> int32_t { variable
121 return TimerMgr->AddTimer(intervalMs, repeatCount, std::move(callback));
/foundation/window/window_manager/window_scene/screen_session_manager/src/fold_screen_controller/
H A Dfold_screen_policy.cpp81 auto intervalMs = std::chrono::duration_cast<std::chrono::milliseconds>(currentTime - startTimePoint_).count(); in GetModeChangeRunningStatus() local
82 if (intervalMs > MODE_CHANGE_TIMEOUT_MS) { in GetModeChangeRunningStatus()
/foundation/multimodalinput/input/service/subscriber/test/include/
H A Dtimer_manager.h36 int32_t AddTimer(int32_t intervalMs, int32_t repeatCount, std::function<void()> callback);
/foundation/multimodalinput/input/service/mouse_event_normalize/include/
H A Dmouse_transform_processor.h149 [](int32_t intervalMs, int32_t repeatCount, std::function<void()> callback) -> int32_t { variable
150 return TimerMgr->AddTimer(intervalMs, repeatCount, std::move(callback));
/foundation/multimodalinput/input/frameworks/proxy/event_handler/include/
H A Dclient_msg_handler.h76 [](int32_t intervalMs, int32_t repeatCount, std::function<void()> callback) -> int32_t { variable
/foundation/multimodalinput/input/service/window_manager/test/
H A Dmock.cpp209 int32_t TimerManager::AddTimer(int32_t intervalMs, int32_t repeatCount, std::function<void()> callback) in AddTimer() argument
/foundation/communication/netstack/frameworks/js/napi/socket/socket_exec/src/
H A Dsocket_exec.cpp839 auto intervalMs = std::chrono::duration_cast<std::chrono::milliseconds>(endTime - startTime); in NonBlockConnect() local
840 timeoutMs -= static_cast<int>(intervalMs.count()); in NonBlockConnect()
/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/engine/jsi/nativeModule/
H A Darkts_native_frame_node_bridge.cpp1608 int32_t intervalMs = static_cast<int32_t>(intervalArg->ToNumber(vm)->Value());
1610 frameNode, std::move(onVisibleAreaApproximateChange), ratioVec, intervalMs);

Completed in 24 milliseconds