/base/hiviewdfx/hicollie/frameworks/native/test/moduletest/common/ |
D | xcollie_watchdog_test.cpp | 47 void XCollieWatchdogTest::Init(const int timeout) in Init() argument 50 XCollieInner::GetInstance().SetCheckerInterval(timeout); in Init() 63 int timeout = 1; variable 69 Init(timeout); 97 int timeout = 1; variable 104 Init(timeout); 131 int timeout = 1; variable 138 Init(timeout); 169 int timeout = 1; variable 176 Init(timeout); [all …]
|
D | xcollie_watchdog_test.h | 29 void Init(const int timeout);
|
/base/hiviewdfx/hicollie/frameworks/native/ |
D | timer_ring.cpp | 56 taskNode->timerTask.timeout = 0; in InitTaskNode() 94 node->pos = CALC_RING_POS(node->timerTask.timeout); in TryRecycle() 95 node->round = CALC_RING_ROUND(node->timerTask.timeout); in TryRecycle() 167 if (task.timeout == 0) { in AddTask() 168 XCOLLIE_LOGE("timeout %u invalid, add %s failed", task.timeout, task.name.c_str()); in AddTask() 180 taskNode->timerTask.timeout = task.timeout; in AddTask() 185 …unsigned int timeout = ((task.timeout < TIMER_RING_CHECK_INTERVAL) ? TIMER_RING_CHECK_INTERVAL : t… in AddTask() local 186 taskNode->round = CALC_RING_ROUND(timeout); in AddTask() 187 taskNode->pos = CALC_RING_POS(timeout); in AddTask() 189 taskNode->pos = CALC_RING_POS(timeout - TIMER_RING_CHECK_INTERVAL); in AddTask() [all …]
|
D | timer_ring.h | 34 unsigned int timeout; member 42 unsigned int timeout; member 67 #define CALC_RING_POS(timeout) ((ringPos_ + (((timeout) - 1) / TIMER_RING_CHECK_INTERVAL + 1)) % MA… argument 68 #define CALC_RING_ROUND(timeout) (((timeout) / TIMER_RING_CHECK_INTERVAL) / MAX_TIMERRING_SIZE) argument 77 bool UpdateTask(int id, unsigned int timeout);
|
D | xcollie.cpp | 37 int XCollie::SetTimer(const std::string &name, unsigned int timeout, std::function<void(void *)> fu… in SetTimer() argument 40 return XCollieInner::GetInstance().SetTimer(name, timeout, func, arg, flag); in SetTimer() 48 bool XCollie::UpdateTimer(int id, unsigned int timeout) in UpdateTimer() argument 50 return XCollieInner::GetInstance().UpdateTimer(id, timeout); in UpdateTimer()
|
D | xcollie_inner.cpp | 175 … std::to_string(task->startTime) + " to check " + std::to_string(task->timeout) + "s ago"; in DoTimerCallback() 179 … XCOLLIE_LOGE("%s blocked, after timeout %u , will be exit", task->name.c_str(), task->timeout); in DoTimerCallback() 184 }, task->timeout); in DoTimerCallback() 194 int XCollieInner::SetTimer(const std::string &name, unsigned int timeout, in SetTimer() argument 211 newTask->timeout = timeout; in SetTimer() 219 .timeout = timeout, in SetTimer() 233 bool XCollieInner::UpdateTimer(int id, unsigned int timeout) in UpdateTimer() argument 240 return timerRing_->UpdateTask(id, timeout); in UpdateTimer()
|
D | xcollie_inner.h | 53 int SetTimer(const std::string &name, unsigned int timeout, 56 bool UpdateTimer(int id, unsigned int timeout);
|
/base/telephony/ril_adapter/services/hril/src/ |
D | hril_event.cpp | 51 …"next = %{public}ds + %{public}dus", (int32_t)eventIt->timeout.tv_sec, (int32_t)eventIt->timeout.t… in GetNextTimeOut() 52 if (timercmp(&eventIt->timeout, &now, >)) { in GetNextTimeOut() 53 timersub(&eventIt->timeout, &now, &tv); in GetNextTimeOut() 69 while ((eventIt != timerList_.end()) && (timercmp(&now, &eventIt->timeout, >))) { in ProcessTimerList() 75 evMsg.timeout = eventIt->timeout; in ProcessTimerList() 143 timeradd(&now, &tv, &eventMsg.timeout); in AddTimerEvent() 147 if (timercmp(&it->timeout, &eventMsg.timeout, >)) { in AddTimerEvent() 199 struct timeval timeout; in EventMessageLoop() local 205 if (!GetNextTimeOut(timeout)) { in EventMessageLoop() 211 …"Setting timeout for %{public}ds + %{public}dus", (int32_t)timeout.tv_sec, (int32_t)timeout.tv_use… in EventMessageLoop() [all …]
|
D | hril_timer_callback.cpp | 71 struct timeval timeout; in HRilSetTimerCallbackInfo() local 77 (void)memset_s(&timeout, sizeof(timeout), 0, sizeof(timeout)); in HRilSetTimerCallbackInfo() 79 (void)memcpy_s(&timeout, sizeof(timeout), tv, sizeof(timeout)); in HRilSetTimerCallbackInfo() 85 event_->AddTimerEvent(pCbMsg->event, timeout); in HRilSetTimerCallbackInfo()
|
/base/telephony/ril_adapter/services/vendor/include/ |
D | at_support.h | 56 int32_t SendCommandLock(const char *command, const char *prefix, long long timeout, ResponseInfo **… 59 const char *command, const char *prefix, long long timeout, ResponseInfo **outResponse); 62 …const char *command, const char *smsPdu, const char *prefix, long long timeout, ResponseInfo **out… 64 int32_t SendCommandNoLock(const char *command, long long timeout, ResponseInfo **outResponse);
|
/base/usb/usb_manager/test/native/js_unittest/ |
D | UsbDevicePipeJsunit.test.js | 359 function callControlTransfer(pip, controlParam, timeout, caseName) { argument 360 usb.controlTransfer(pip, controlParam, timeout).then(data => { 385 var timeout = 5000; 388 …callControlTransfer(testParam.pip, controlParam, timeout, 'control_transfer_test_01 GetDescriptor') 404 var timeout = 5000; 407 callControlTransfer(testParam.pip, controlParam, timeout, 'control_transfer_test_02 GetStatus') 423 var timeout = 5000; 426 …callControlTransfer(testParam.pip, controlParam, timeout, 'control_transfer_test_03 GetConfigurati… 442 var timeout = 5000; 445 … callControlTransfer(testParam.pip, controlParam, timeout, 'control_transfer_test_04 GetInterface') [all …]
|
/base/startup/init_lite/services/loopevent/timer/ |
D | le_timer.c | 27 static LE_STATUS SetTimer_(int tfd, uint64_t timeout) in SetTimer_() argument 30 time_t sec = timeout / TIMEOUT_BASE; in SetTimer_() 32 long nsec = (timeout % TIMEOUT_BASE) * TIMEOUT_BASE; in SetTimer_() 98 const TimerHandle timer, uint64_t timeout, uint64_t repeat) in LE_StartTimer() argument 103 task->timeout = timeout; in LE_StartTimer() 105 int ret = SetTimer_(GetSocketFd(timer), task->timeout); in LE_StartTimer()
|
D | le_timer.h | 26 uint64_t timeout; member
|
/base/telephony/ril_adapter/services/vendor/src/ |
D | at_support.c | 217 int32_t SendCommandLock(const char *command, const char *prefix, long long timeout, ResponseInfo **… in SendCommandLock() argument 229 err = SendCommandNoLock(atCmd, timeout, outResponse); in SendCommandLock() 240 err = SendCommandNoLock(command, timeout, outResponse); in SendCommandLock() 253 int32_t SendCommandNetWorksLock(const char *command, const char *prefix, long long timeout, Respons… in SendCommandNetWorksLock() argument 263 err = SendCommandNoLock(command, timeout, outResponse); in SendCommandNetWorksLock() 274 …const char *command, const char *smsPdu, const char *prefix, long long timeout, ResponseInfo **out… in SendCommandSmsLock() argument 284 err = SendCommandNoLock(command, timeout, outResponse); in SendCommandSmsLock() 313 int32_t SendCommandNoLock(const char *command, long long timeout, ResponseInfo **outResponse) in SendCommandNoLock() argument 330 SetWaitTimeout(&time, (timeout != 0) ? timeout : defaultTimeOut); in SendCommandNoLock()
|
/base/hiviewdfx/hicollie/interfaces/native/innerkits/include/xcollie/ |
D | xcollie.h | 44 int SetTimer(const std::string &name, unsigned int timeout, 54 bool UpdateTimer(int id, unsigned int timeout);
|
/base/accessibility/test/resource/native_application/tools/src/ |
D | event.cpp | 19 int WaitCompleted(Event &event, const std::string &eventName, const int code, const int timeout) in WaitCompleted() argument 21 return event.WaitingMessage(std::to_string(code) + eventName, timeout, false); in WaitCompleted() 75 if (cv_.wait_for(lock, std::chrono::seconds(timeout_ms)) == std::cv_status::timeout) { in WaitingMessage()
|
/base/startup/syspara_lite/interfaces/kits/js/ |
D | @ohos.systemparameter.d.ts | 106 … function wait(key: string, value: string, timeout: number, callback: AsyncCallback<void>): void; 119 function wait(key: string, value: string, timeout: number): Promise<void>;
|
/base/hiviewdfx/hicollie/ |
D | README.md | 14 …u locate software timeout faults resulting from system service deadlock, application main thread b… 28 …he HiCollie API. Excess timers are invalid and cannot be registered to implement timeout detection.
|
/base/notification/ans_standard/test/resource/notificationfuzztest/src/ |
D | notificationfuzztestmanager.cpp | 168 int64_t timeout = 0; in RegisterNotificationHelper() local 171 timeout = OHOS::GetSecondsBetween(start, end); in RegisterNotificationHelper() 172 if (timeout >= 5L) { in RegisterNotificationHelper() 182 timeout = OHOS::GetSecondsBetween(start, end); in RegisterNotificationHelper() 183 if (timeout >= 5L) { in RegisterNotificationHelper() 200 int64_t timeout = 0; in RegisterNotificationHelper() local 203 timeout = OHOS::GetSecondsBetween(start, end); in RegisterNotificationHelper() 204 if (timeout >= 5L) { in RegisterNotificationHelper() 214 timeout = OHOS::GetSecondsBetween(start, end); in RegisterNotificationHelper() 215 if (timeout >= 5L) { in RegisterNotificationHelper() [all …]
|
/base/startup/init_lite/services/loopevent/loop/ |
D | le_loop.c | 52 static LE_STATUS CreateLoop_(EventLoop **loop, uint32_t maxevents, uint32_t timeout) in CreateLoop_() argument 55 LE_STATUS ret = CreateEpollLoop(loop, maxevents, timeout); in CreateLoop_() 59 (*loop)->timeout = timeout; in CreateLoop_()
|
D | le_epoll.h | 28 LE_STATUS CreateEpollLoop(EventLoop **loop, uint32_t maxevents, uint32_t timeout);
|
/base/security/device_security_level/services/sa/standard/ |
D | dslm_ipc_process.cpp | 89 option.timeout = data.ReadUint32(); in DslmGetRequestFromParcel() 90 if (option.timeout < MIN_TIMEOUT || option.timeout > MAX_TIMEOUT) { in DslmGetRequestFromParcel() 91 option.timeout = DFT_TIMEOUT; in DslmGetRequestFromParcel()
|
/base/startup/init_lite/services/begetctl/ |
D | service_control.c | 56 uint64_t timeout = strtoull(timeBuffer, NULL, DECIMAL_BASE); in main_cmd() local 60 StartServiceByTimer(argv[1], timeout); in main_cmd()
|
/base/startup/init_lite/ueventd/standard/ |
D | ueventd_parameter.c | 73 const long timeout = 5000; // wait time 5000ms in ThreadRun() local 75 … long nsec = now.tv_usec * 1000 + (timeout % 1000) * 1000000; // 1000 unit 1000000 unit nsec in ThreadRun() 76 …abstime.tv_sec = now.tv_sec + nsec / 1000000000 + timeout / 1000; // 1000 unit 1000000000 unit nsec in ThreadRun()
|
/base/hiviewdfx/hilog/frameworks/native/ |
D | socket_server.cpp | 87 int SocketServer::Poll(short inEvent, short& outEvent, const std::chrono::milliseconds& timeout) in Poll() argument 90 int result = poll(&info, 1, timeout.count()); in Poll()
|