Home
last modified time | relevance | path

Searched refs:seconds (Results 1 - 25 of 31) sorted by relevance

12

/drivers/hdf_core/framework/test/unittest/platform/virtual/
H A Dwatchdog_virtual.c17 int32_t seconds; member
73 static int32_t VirtualWatchdogSetTimeout(struct WatchdogCntlr *wdt, uint32_t seconds) in VirtualWatchdogSetTimeout() argument
82 virtual->seconds = seconds; in VirtualWatchdogSetTimeout()
87 static int32_t VirtualWatchdogGetTimeout(struct WatchdogCntlr *wdt, uint32_t *seconds) in VirtualWatchdogGetTimeout() argument
91 if (wdt == NULL || seconds == NULL) { in VirtualWatchdogGetTimeout()
92 HDF_LOGE("VirtualWatchdogGetTimeout: wdt or seconds is null!"); in VirtualWatchdogGetTimeout()
96 *seconds = virtual->seconds; in VirtualWatchdogGetTimeout()
/drivers/hdf_core/framework/support/platform/src/rtc/
H A Drtc_base.c87 uint64_t seconds; in RtcTimeToTimestamp() local
103 seconds = ((uint64_t)time->hour * RTC_MAX_MINUTE + time->minute) * RTC_MAX_SECOND + time->second; in RtcTimeToTimestamp()
116 seconds += days * RTC_DAY_SECONDS; in RtcTimeToTimestamp()
117 return seconds; in RtcTimeToTimestamp()
120 void TimestampToRtcTime(struct RtcTime *time, const uint64_t seconds) in TimestampToRtcTime() argument
122 uint32_t daySeconds = (uint32_t)(seconds % RTC_DAY_SECONDS); in TimestampToRtcTime()
123 uint32_t days = (uint32_t)(seconds / RTC_DAY_SECONDS); in TimestampToRtcTime()
/drivers/hdf_core/framework/support/platform/include/watchdog/
H A Dwatchdog_core.h36 int32_t (*setTimeout)(struct WatchdogCntlr *wdt, uint32_t seconds);
37 int32_t (*getTimeout)(struct WatchdogCntlr *wdt, uint32_t *seconds);
97 int32_t WatchdogCntlrSetTimeout(struct WatchdogCntlr *cntlr, uint32_t seconds);
99 int32_t WatchdogCntlrGetTimeout(struct WatchdogCntlr *cntlr, uint32_t *seconds);
/drivers/hdf_core/framework/support/platform/src/watchdog/
H A Dwatchdog_core.c182 int32_t WatchdogCntlrSetTimeout(struct WatchdogCntlr *cntlr, uint32_t seconds) in WatchdogCntlrSetTimeout() argument
200 ret = cntlr->ops->setTimeout(cntlr, seconds); in WatchdogCntlrSetTimeout()
205 int32_t WatchdogCntlrGetTimeout(struct WatchdogCntlr *cntlr, uint32_t *seconds) in WatchdogCntlrGetTimeout() argument
218 if (seconds == NULL) { in WatchdogCntlrGetTimeout()
219 HDF_LOGE("WatchdogCntlrGetTimeout: seconds is null!"); in WatchdogCntlrGetTimeout()
227 ret = cntlr->ops->getTimeout(cntlr, seconds); in WatchdogCntlrGetTimeout()
294 uint32_t seconds; in WatchdogUserSetTimeout() local
301 if (!HdfSbufReadUint32(data, &seconds)) { in WatchdogUserSetTimeout()
302 HDF_LOGE("WatchdogUserSetTimeout: sbuf read seconds fail!"); in WatchdogUserSetTimeout()
306 return WatchdogCntlrSetTimeout(cntlr, seconds); in WatchdogUserSetTimeout()
312 uint32_t seconds; WatchdogUserGetTimeout() local
[all...]
H A Dwatchdog_if.c116 int32_t WatchdogSetTimeout(DevHandle handle, uint32_t seconds) in WatchdogSetTimeout() argument
122 return WatchdogCntlrSetTimeout((struct WatchdogCntlr *)handle, seconds); in WatchdogSetTimeout()
125 int32_t WatchdogGetTimeout(DevHandle handle, uint32_t *seconds) in WatchdogGetTimeout() argument
131 return WatchdogCntlrGetTimeout((struct WatchdogCntlr *)handle, seconds); in WatchdogGetTimeout()
H A Dwatchdog_if_u.c201 int32_t WatchdogSetTimeout(DevHandle handle, uint32_t seconds) in WatchdogSetTimeout() argument
219 if (!HdfSbufWriteUint32(data, seconds)) { in WatchdogSetTimeout()
220 HDF_LOGE("WatchdogSetTimeout: sbuf write seconds fail!"); in WatchdogSetTimeout()
235 int32_t WatchdogGetTimeout(DevHandle handle, uint32_t *seconds) in WatchdogGetTimeout() argument
241 if ((handle == NULL) || (seconds == NULL)) { in WatchdogGetTimeout()
265 if (!HdfSbufReadUint32(reply, seconds)) { in WatchdogGetTimeout()
266 HDF_LOGE("WatchdogGetTimeout: sbuf read seconds fail!"); in WatchdogGetTimeout()
/drivers/hdf_core/adapter/platform/watchdog/
H A Dwatchdog_wm.c31 static int32_t WatchdogDevSetTimeout(struct WatchdogCntlr *watchdogCntlr, uint32_t seconds);
32 static int32_t WatchdogDevGetTimeout(struct WatchdogCntlr *watchdogCntlr, uint32_t *seconds);
54 static int32_t WatchdogDevSetTimeout(struct WatchdogCntlr *watchdogCntlr, uint32_t seconds) in WatchdogDevSetTimeout() argument
56 g_watchdogTimeout = seconds; in WatchdogDevSetTimeout()
57 tls_watchdog_init(seconds); in WatchdogDevSetTimeout()
61 static int32_t WatchdogDevGetTimeout(struct WatchdogCntlr *watchdogCntlr, uint32_t *seconds) in WatchdogDevGetTimeout() argument
63 if (watchdogCntlr == NULL || seconds == NULL) { in WatchdogDevGetTimeout()
70 *seconds = g_watchdogTimeout; in WatchdogDevGetTimeout()
H A Dwatchdog_bes.c24 static int32_t WatchdogDevSetTimeout(struct WatchdogCntlr *watchdogCntlr, uint32_t seconds);
25 static int32_t WatchdogDevGetTimeout(struct WatchdogCntlr *watchdogCntlr, uint32_t *seconds);
245 static int32_t WatchdogDevSetTimeout(struct WatchdogCntlr *watchdogCntlr, uint32_t seconds) in WatchdogDevSetTimeout() argument
254 g_watchdogTimeout = seconds; in WatchdogDevSetTimeout()
257 hal_wdt_set_timeout(watchdogId, seconds); in WatchdogDevSetTimeout()
261 static int32_t WatchdogDevGetTimeout(struct WatchdogCntlr *watchdogCntlr, uint32_t *seconds) in WatchdogDevGetTimeout() argument
263 if (watchdogCntlr == NULL || seconds == NULL) { in WatchdogDevGetTimeout()
267 *seconds = g_watchdogTimeout; in WatchdogDevGetTimeout()
H A Dwatchdog_stm32f4xx.c37 static int32_t WatchdogDevSetTimeout(struct WatchdogCntlr *watchdogCntlr, uint32_t seconds);
38 static int32_t WatchdogDevGetTimeout(struct WatchdogCntlr *watchdogCntlr, uint32_t *seconds);
303 static int32_t WatchdogDevSetTimeout(struct WatchdogCntlr *watchdogCntlr, uint32_t seconds) argument
313 watchdogdeviceinfo->timeout = seconds;
317 static int32_t WatchdogDevGetTimeout(struct WatchdogCntlr *watchdogCntlr, uint32_t *seconds) argument
321 if (watchdogCntlr == NULL || seconds == NULL) {
332 *seconds = watchdogdeviceinfo->timeout;
/drivers/peripheral/bluetooth/hci/hdi_service/implement/
H A Dhci_watcher.cpp59 std::chrono::seconds seconds = std::chrono::duration_cast<std::chrono::seconds>(timeout); in SetTimeout() local
61 timeoutTimer_.tv_sec = seconds.count(); in SetTimeout()
62 timeoutTimer_.tv_usec = (timeout - seconds).count(); in SetTimeout()
/drivers/hdf_core/framework/include/platform/
H A Dwatchdog_if.h142 * @param seconds Indicates the timeout duration, in seconds.
147 int32_t WatchdogSetTimeout(DevHandle handle, uint32_t seconds);
153 * @param seconds Indicates the pointer to the timeout duration, in seconds.
158 int32_t WatchdogGetTimeout(DevHandle handle, uint32_t *seconds);
H A Drtc_base.h23 #define RTC_DAY_SECONDS 86400ULL /* 24 hours * 60 minutes * 60 seconds */
25 #define RTC_HOUR_SECONDS 3600UL /* 60 minutes * 60 seconds */
73 void TimestampToRtcTime(struct RtcTime *time, const uint64_t seconds);
/drivers/hdf_core/adapter/khdf/linux/platform/watchdog/
H A Dwatchdog_adapter.c196 static int32_t WdtAdapterSetTimeout(struct WatchdogCntlr *wdt, uint32_t seconds) in WdtAdapterSetTimeout() argument
206 arg = seconds; in WdtAdapterSetTimeout()
214 static int32_t WdtAdapterGetTimeout(struct WatchdogCntlr *wdt, uint32_t *seconds) in WdtAdapterGetTimeout() argument
228 *seconds = arg; in WdtAdapterGetTimeout()
/drivers/liteos/hievent/include/
H A Dhiview_hievent.h56 int HiviewHieventSetTime(struct HiviewHievent *event, long long seconds);
/drivers/peripheral/camera/vdi_base/common/utils/exif/
H A Dexif_utils.h57 static void ConvertGpsDataToDms(double number, int32_t *degrees, int32_t *minutes, int32_t *seconds);
H A Dexif_utils.cpp329 void ExifUtils::ConvertGpsDataToDms(double number, int32_t *degrees, int32_t *minutes, int32_t *seconds) in ConvertGpsDataToDms() argument
354 *seconds = second; in ConvertGpsDataToDms()
/drivers/liteos/hievent/src/
H A Dhiview_hievent.c251 int HiviewHieventSetTime(struct HiviewHievent *event, long long seconds) in HiviewHieventSetTime() argument
253 if ((!event) || (seconds == 0)) { in HiviewHieventSetTime()
257 event->time = seconds; in HiviewHieventSetTime()
/drivers/peripheral/camera/test/ut/buffer_manager/
H A Dbuffer_manager_utest.cpp114 std::this_thread::sleep_for(std::chrono::seconds(10)); in HWTEST_F()
253 std::this_thread::sleep_for(std::chrono::seconds(5)); in HWTEST_F()
334 std::this_thread::sleep_for(std::chrono::seconds(3)); in HWTEST_F()
367 std::this_thread::sleep_for(std::chrono::seconds(3)); in HWTEST_F()
/drivers/external_device_manager/test/unittest/drivers_pkg_manager_test/src/
H A Ddriver_pkg_manager_test.cpp83 std::this_thread::sleep_for(std::chrono::seconds(START_SA_SERVICE_WAIT_TIME)); in SetUpTestCase()
H A Dpkg_db_helper_test.cpp138 std::this_thread::sleep_for(std::chrono::seconds(START_SA_SERVICE_WAIT_TIME)); in LoadSaService()
/drivers/peripheral/camera/vdi_base/common/buffer_manager/src/
H A Dbuffer_pool.cpp192 if (cv_.wait_for(l, std::chrono::seconds(timeout), [this] { in AcquireBuffer()
/drivers/peripheral/camera/test/ut/v4l2/
H A Dusb_camera_test_mult.cpp204 auto seconds = time(nullptr); in OpenVideoFile() local
205 if (sprintf_s(path, sizeof(path), "%svideo222%ld.h264", prefix, seconds) < 0) { in OpenVideoFile()
H A Dtest_camera_base.cpp104 auto seconds = time(nullptr); in OpenVideoFile() local
105 if (sprintf_s(path, sizeof(path), "%svideo%ld.h264", prefix, seconds) < 0) { in OpenVideoFile()
/drivers/peripheral/distributed_camera/hdi_service/src/dcamera_device/
H A Ddcamera_device.cpp395 auto st = openSessCV_.wait_for(lock, chrono::seconds(WAIT_OPEN_TIMEOUT_SEC)); in OpenDCamera()
431 auto status = getFullWaitCond_.wait_for(lck, std::chrono::seconds(GET_FULL_WAIT_SECONDS)); in TriggerGetFullCaps()
/drivers/external_device_manager/test/unittest/driver_extension_manager_client_test/
H A Ddriver_extension_manager_client_test.cpp152 std::this_thread::sleep_for(std::chrono::seconds(START_SA_SERVICE_WAIT_TIME)); in HWTEST_F()

Completed in 14 milliseconds

12