/drivers/hdf_core/framework/test/unittest/platform/virtual/ |
H A D | watchdog_virtual.c | 17 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 D | rtc_base.c | 87 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 D | watchdog_core.h | 36 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 D | watchdog_core.c | 182 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 D | watchdog_if.c | 116 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 D | watchdog_if_u.c | 201 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 D | watchdog_wm.c | 31 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 D | watchdog_bes.c | 24 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 D | watchdog_stm32f4xx.c | 37 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 D | hci_watcher.cpp | 59 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 D | watchdog_if.h | 142 * @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 D | rtc_base.h | 23 #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 D | watchdog_adapter.c | 196 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 D | hiview_hievent.h | 56 int HiviewHieventSetTime(struct HiviewHievent *event, long long seconds);
|
/drivers/peripheral/camera/vdi_base/common/utils/exif/ |
H A D | exif_utils.h | 57 static void ConvertGpsDataToDms(double number, int32_t *degrees, int32_t *minutes, int32_t *seconds);
|
H A D | exif_utils.cpp | 329 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 D | hiview_hievent.c | 251 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 D | buffer_manager_utest.cpp | 114 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 D | driver_pkg_manager_test.cpp | 83 std::this_thread::sleep_for(std::chrono::seconds(START_SA_SERVICE_WAIT_TIME)); in SetUpTestCase()
|
H A D | pkg_db_helper_test.cpp | 138 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 D | buffer_pool.cpp | 192 if (cv_.wait_for(l, std::chrono::seconds(timeout), [this] { in AcquireBuffer()
|
/drivers/peripheral/camera/test/ut/v4l2/ |
H A D | usb_camera_test_mult.cpp | 204 auto seconds = time(nullptr); in OpenVideoFile() local 205 if (sprintf_s(path, sizeof(path), "%svideo222%ld.h264", prefix, seconds) < 0) { in OpenVideoFile()
|
H A D | test_camera_base.cpp | 104 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 D | dcamera_device.cpp | 395 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 D | driver_extension_manager_client_test.cpp | 152 std::this_thread::sleep_for(std::chrono::seconds(START_SA_SERVICE_WAIT_TIME));
in HWTEST_F()
|