/test/xts/hats/hdf/audio/idl/common/render_additional/src/ |
H A D | AudioRenderMmapTest.cpp | 155 struct AudioTimeStamp time; in HWTEST_F() local 156 time.tvNSec = 0; in HWTEST_F() 157 time.tvSec = 0; in HWTEST_F() 158 EXPECT_EQ(HDF_ERR_INVALID_OBJECT, render_->GetMmapPosition(nullptr, &frames, &time)); in HWTEST_F() 169 struct AudioTimeStamp time; in HWTEST_F() local 170 time.tvNSec = 0; in HWTEST_F() 171 time.tvSec = 0; in HWTEST_F() 172 EXPECT_EQ(HDF_ERR_INVALID_OBJECT, render_->GetMmapPosition(nullptr, &frames, &time)); in HWTEST_F() 183 struct AudioTimeStamp time; in HWTEST_F() local 184 time in HWTEST_F() 197 struct AudioTimeStamp time; HWTEST_F() local 211 struct AudioTimeStamp time; HWTEST_F() local 225 struct AudioTimeStamp time; HWTEST_F() local 238 struct AudioTimeStamp time; HWTEST_F() local 252 struct AudioTimeStamp time; HWTEST_F() local 265 struct AudioTimeStamp time; HWTEST_F() local 282 struct AudioTimeStamp time; HWTEST_F() local 296 struct AudioTimeStamp time; HWTEST_F() local 310 struct AudioTimeStamp time; HWTEST_F() local 324 struct AudioTimeStamp time; HWTEST_F() local 351 struct AudioTimeStamp time; HWTEST_F() local 381 struct AudioTimeStamp time; HWTEST_F() local 397 struct AudioTimeStamp time; HWTEST_F() local 414 struct AudioTimeStamp time; HWTEST_F() local 484 struct AudioTimeStamp time; HWTEST_F() local [all...] |
/vendor/hisilicon/hispark_pegasus/demo/robot_demo/robot_car/ |
H A D | robot_control.c | 142 unsigned int time = 100;
in engine_go_where() local 146 hi_sleep(time);
in engine_go_where() 148 hi_sleep(time);
in engine_go_where() 152 hi_sleep(time);
in engine_go_where() 156 hi_sleep(time);
in engine_go_where() 158 hi_sleep(time);
in engine_go_where() 176 unsigned int time = 500;
in car_where_to_go() local 179 hi_sleep(time);
in car_where_to_go() 181 hi_sleep(time);
in car_where_to_go() 187 hi_sleep(time);
in car_where_to_go() 203 unsigned int time = 20; car_mode_control_func() local 223 unsigned int time = 20; RobotCarTestTask() local [all...] |
/test/testfwk/xdevice/plugins/devicetest/utils/ |
H A D | time_util.py | 24 import time namespace 39 TS.inner_stack.append(time.time()) 54 cur_time = (time.time() - TS.inner_stack.pop()) * 1000 76 time_value: Time to be processed. If the time does not exist, 77 the current time is used. 84 time_value = time.time() 85 return datetime(*(time [all...] |
/test/testfwk/xdevice/plugins/ohos/src/ohos/environment/ |
H A D | dmlib_lite.py | 20 import time namespace 122 current_time = time.time() 123 local_time = time.localtime(current_time) 124 data_head = time.strftime("%Y-%m-%d %H:%M:%S", local_time) 143 time.sleep(2) 144 start_time = time.time() 152 while time.time() [all...] |
H A D | dmlib.py | 24 import time namespace 140 time.sleep(1) 171 time.sleep(2) 208 time.sleep(2) 211 time.sleep(2) 340 time.sleep(3) 603 msg = self.create_req(ID_DONE, int(time.time())) 759 time.sleep(1) 813 time [all...] |
/device/soc/hisilicon/hi3516dv300/sdk_linux/drv/mpp/cbb/based/ext_inc/ |
H A D | valg_plat.h | 37 #include <sys/time.h> 147 osal_timeval_t time; in get_sys_time_by_sec() local 148 osal_gettimeofday(&time); in get_sys_time_by_sec() 150 struct timeval time; in get_sys_time_by_sec() 151 gettimeofday(&time, NULL); in get_sys_time_by_sec() 153 return (hi_u64)time.tv_sec; in get_sys_time_by_sec() 159 osal_timeval_t time; in get_sys_time_by_usec() local 160 osal_gettimeofday(&time); in get_sys_time_by_usec() 162 struct timeval time; in get_sys_time_by_usec() 163 gettimeofday(&time, NUL in get_sys_time_by_usec() [all...] |
/test/testfwk/xdevice/src/xdevice/_core/environment/ |
H A D | device_monitor.py | 19 import time namespace 83 start_time = int(time.time() * 1000) 84 self.device.log.debug("wait for boot complete, and wait time: %s ms" % 86 while int(time.time() * 1000) - start_time < wait_time: 91 time.sleep(5) 96 time.sleep(min(CHECK_POLL_TIME * counter, MAX_CHECK_POLL_TIME)) 103 start_time = int(time.time() * 100 [all...] |
/vendor/hisilicon/hispark_pegasus/demo/robot_demo/robot/ |
H A D | robot_sg90.c | 33 unsigned int time = 20000;
in set_angle() local 38 hi_udelay(time - duty);
in set_angle() 105 unsigned int time = 200;
in RobotTask() local 109 osDelay(time);
in RobotTask() 112 osDelay(time);
in RobotTask() 115 osDelay(time);
in RobotTask() 118 osDelay(time);
in RobotTask() 121 osDelay(time);
in RobotTask()
|
H A D | robot_l9110s.c | 87 unsigned int time = 500;
in RobotTask() local 89 osDelay(time);
in RobotTask() 91 osDelay(time);
in RobotTask() 93 osDelay(time);
in RobotTask() 95 osDelay(time);
in RobotTask() 97 osDelay(time);
in RobotTask()
|
H A D | robot_hcsr04.c | 33 static unsigned long start_time = 0, time = 0;
in GetDistance() local 57 time = hi_get_us() - start_time;
in GetDistance() 62 distance = time * pi / l;
in GetDistance() 70 unsigned int time = 200;
in RobotTask() local 74 osDelay(time);
in RobotTask()
|
/test/testfwk/xdevice/src/xdevice/_core/context/ |
H A D | upload.py | 20 import time namespace 130 current_time = int(time.time() * 1000) 165 start_time = int(time.mktime(time.strptime( 167 end_time = int(time.mktime(time.strptime( 172 cost_time = testsuite_element.get(ReportConstant.time, "") 175 end_time = int(time.mktime(time [all...] |
/device/qemu/riscv32_virt/liteos_m/board/ui/ |
H A D | ui_adapter.cpp | 114 uint32_t time = HALTick::GetInstance().GetElapseTime(temp); in UiAdapterTask() local 115 if (time < DEFAULT_TASK_PERIOD) { in UiAdapterTask() 116 osDelay(DEFAULT_TASK_PERIOD - time); in UiAdapterTask() 121 time = HALTick::GetInstance().GetElapseTime(start); in UiAdapterTask() 122 if (time >= TICKS_OF_SEC && time != 0) { in UiAdapterTask()
|
/device/soc/hisilicon/hi3861v100/sdk_liteos/third_party/mbedtls/include/mbedtls/ |
H A D | platform_time.h | 4 * \brief mbed TLS Platform time abstraction 52 #include <time.h> 57 * The function pointers for time 60 extern mbedtls_time_t (*mbedtls_time)( mbedtls_time_t* time ); 63 * \brief Set your own time function pointer 65 * \param time_func the time function implementation 69 int mbedtls_platform_set_time( mbedtls_time_t (*time_func)( mbedtls_time_t* time ) ); 74 #define mbedtls_time time
|
/device/soc/hisilicon/hi3516dv300/sdk_linux/sample/taurus/uart_sample/ |
H A D | uart.c | 37 #include <sys/time.h> 92 * Set the minimum characters and waiting time, in Uart1Config() 93 * when there are no special requirements for receiving characters and waiting time in Uart1Config() 155 * @param int timeoutMs: read data time 163 struct timeval time; in UartRead() local 169 time.tv_sec = timeout / 1000; /* 1000:转换成秒 */ in UartRead() 170 time.tv_usec = (timeout - time.tv_sec * 1000) * 1000; /* 1000, 1000:转换为微秒 */ in UartRead() 173 ret = select(fd + 1, &rset, NULL, NULL, &time); // 非阻塞式读取数据 in UartRead() 176 printf("time ove in UartRead() [all...] |
/test/xts/hats/hdf/audio/idl/common/render/src/ |
H A D | audio_render_mmap_test.cpp | 169 struct AudioTimeStamp time; in HWTEST_F() local 170 time.tvNSec = 0; in HWTEST_F() 171 time.tvSec = 0; in HWTEST_F() 172 EXPECT_EQ(HDF_ERR_INVALID_OBJECT, render_->GetMmapPosition(nullptr, &frames, &time)); in HWTEST_F() 178 struct AudioTimeStamp time; in HWTEST_F() local 179 time.tvNSec = 0; in HWTEST_F() 180 time.tvSec = 0; in HWTEST_F() 190 ret = render_->GetMmapPosition(render_, &frames, &time); in HWTEST_F()
|
/vendor/ohemu/qemu_riscv32_mini_system_demo/fs_data/data/data/js/pages/index/ |
H A D | index.js | 201 var time = 1000 / self.airData[self.swiperPage].detailData; 203 if (time == 0) { 204 time = 100; 214 }, time); 227 var time = 1000 / self.airData[self.swiperPage].detailData; 229 if (time == 0) { 230 time = 100; 240 }, time);
|
/test/testfwk/arkxtest/uitest/record/ |
H A D | touch_event.h | 45 // nanosecond time stamp. 58 TimeStamp time {std::chrono::duration_cast<TimeStamp::duration>(std::chrono::nanoseconds(actionTime * 1000))}; in GetActionTimeStamp() 59 return time; in GetActionTimeStamp() 63 TimeStamp time {std::chrono::duration_cast<TimeStamp::duration>(std::chrono::nanoseconds(downTime * 1000))}; in GetDownTimeStamp() 64 return time; in GetDownTimeStamp()
|
/device/soc/hisilicon/common/platform/rtc/ |
H A D | rtc_hi35xx.c | 106 static int32_t HiRtcReadTimeData(struct RtcConfigInfo *rtcInfo, struct RtcTimeReg *regAddr, struct RtcTime *time) in HiRtcReadTimeData() argument 118 if (regAddr == NULL || time == NULL) { in HiRtcReadTimeData() 127 time->millisecond = millisecond * MS_OF_ACCURACY; in HiRtcReadTimeData() 152 TimestampToRtcTime(time, seconds); in HiRtcReadTimeData() 169 HDF_LOGW("low voltage detected, date/time is not reliable"); in HiRtcReadPreviousConfig() 197 static int32_t HiRtcReadTime(struct RtcHost *host, struct RtcTime *time) in HiRtcReadTime() argument 233 return HiRtcReadTimeData(rtcInfo, ®Addr, time); in HiRtcReadTime() 236 static int32_t HiRtcWriteTimeData(struct RtcConfigInfo *rtcInfo, struct RtcTimeReg *regAddr, const struct RtcTime *time) in HiRtcWriteTimeData() argument 243 if (regAddr == NULL || time == NULL) { in HiRtcWriteTimeData() 248 seconds = RtcTimeToTimestamp(time); in HiRtcWriteTimeData() 280 HiRtcWriteTime(struct RtcHost *host, const struct RtcTime *time) HiRtcWriteTime() argument 328 HiReadAlarm(struct RtcHost *host, enum RtcAlarmIndex alarmIndex, struct RtcTime *time) HiReadAlarm() argument 354 HiWriteAlarm(struct RtcHost *host, enum RtcAlarmIndex alarmIndex, const struct RtcTime *time) HiWriteAlarm() argument [all...] |
/test/xts/acts/kernel_lite/ipc_posix/message_queue/ |
H A D | IpcMqTest.cpp | 83 tts.tv_sec = time(NULL) + 1;
in HWTEST_F() 92 rts.tv_sec = time(NULL) + 1;
in HWTEST_F() 149 tts.tv_sec = time(NULL) + 1;
in HWTEST_F() 158 rts.tv_sec = time(NULL) + 1;
in HWTEST_F() 255 rts.tv_sec = time(NULL) + 3;
in HWTEST_F() 263 tts.tv_sec = time(NULL) + 3;
in HWTEST_F() 269 tts.tv_sec = time(NULL) + 3;
in HWTEST_F() 281 rts.tv_sec = time(NULL) + 3;
in HWTEST_F() 321 rts.tv_sec = time(NULL) + 1;
in HWTEST_F() 329 tts.tv_sec = time(NUL in HWTEST_F() [all...] |
/test/xts/acts/commonlibrary/thirdparty/musl/entry/src/main/cpp/ |
H A D | timendk.cpp | 36 #include <sys/time.h>
344 time_t timeValue = time(nullptr);
in Time() 384 time(&td);
in Tzset() 389 time(&td1);
in Tzset() 394 time(&td2);
in Tzset() 410 time(&now);
in DiffTime() 429 const time_t time = PARAM_0;
in CTime_r() local 431 checkParam = ctime_r(&time, secondParam);
in CTime_r() 444 const time_t time = PARAM_0;
in CTime() local 445 checkParam = ctime(&time);
in CTime() 636 time_t time = std::time(nullptr); GmtimeR() local [all...] |
/test/xts/acts/distributeddatamgr/relationalStoretest/relationalStoreJstest/hap/entry/src/ohosTest/js/test/ |
H A D | RelationalStoreCloudSync.test.js | 138 * @tc.name get modify time using wrong table null
140 * @tc.desc rdb get modify time using wrong table null
152 console.log(TAG + `get modify time, err code is ${err.code}, message is ${err.message}.`);
160 * @tc.name get modify time using wrong table undefined
162 * @tc.desc rdb get modify time using wrong table undefined
174 console.log(TAG + `get modify time, err code is ${err.code}, message is ${err.message}.`);
182 * @tc.name get modify time using wrong table 123456
184 * @tc.desc rdb get modify time using wrong table 123456
196 console.log(TAG + `get modify time, err code is ${err.code}, message is ${err.message}.`);
203 * @tc.name get modify time usin [all...] |
/test/testfwk/xdevice/plugins/ohos/src/ohos/drivers/ |
H A D | jsunit_driver.py | 21 import time namespace 112 LOG.info("prepare to read device log, may wait some time") 208 self.start_time = time.time() 220 int(time.time() - int(self.start_time)) > \ 231 while time.time() - self.start_time <= timeout: 244 time.sleep(5) # wait for log write to file 325 time [all...] |
/device/soc/hisilicon/common/platform/wifi/hi3881v100/driver/oal/ |
H A D | oal_time.h | 27 #include <linux/time.h> 202 static inline hi_void oal_rtc_time_to_tm(unsigned long time, oal_rtctime_stru *tm) in oal_rtc_time_to_tm() argument 204 rtc_time_to_tm(time, tm); in oal_rtc_time_to_tm() 270 oal_time_t_stru time; in oal_ktime_get() local 271 time.tv64 = (hi_s64)LOS_TickCountGet(); in oal_ktime_get() 272 return time; in oal_ktime_get()
|
/device/soc/hisilicon/hi3516dv300/sdk_linux/drv/osal/linux/ |
H A D | osal_timer.c | 158 void osal_rtc_time_to_tm(unsigned long time, osal_rtc_time_t *tm) in osal_rtc_time_to_tm() argument 163 rtc_time64_to_tm(time, &_tm); in osal_rtc_time_to_tm() 165 rtc_time_to_tm(time, &_tm); in osal_rtc_time_to_tm() 179 void osal_rtc_tm_to_time(osal_rtc_time_t *tm, unsigned long *time) in osal_rtc_tm_to_time() argument 193 *time = rtc_tm_to_time64(&_tm); in osal_rtc_tm_to_time() 195 rtc_tm_to_time(&_tm, time); in osal_rtc_tm_to_time()
|
/device/soc/hisilicon/hi3751v350/sdk_linux/source/common/drv/osal/ |
H A D | osal_timer.c | 204 void osal_rtc_time_to_tm(unsigned long time, osal_rtc_time *tm) in osal_rtc_time_to_tm() argument 209 rtc_time64_to_tm(time, &_tm); in osal_rtc_time_to_tm() 211 rtc_time_to_tm(time, &_tm); in osal_rtc_time_to_tm() 226 void osal_rtc_tm_to_time(osal_rtc_time *tm, unsigned long *time) in osal_rtc_tm_to_time() argument 239 *time = rtc_tm_to_time64(&_tm); in osal_rtc_tm_to_time() 241 rtc_tm_to_time(&_tm, time); in osal_rtc_tm_to_time()
|