Home
last modified time | relevance | path

Searched refs:time (Results 1 - 25 of 42) sorted by relevance

12

/vendor/hisilicon/hispark_pegasus/demo/robot_demo/robot_car/
H A Drobot_control.c142 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...]
H A Drobot_hcsr04.c34 static unsigned long start_time = 0, time = 0; in GetDistance() local
58 time = hi_get_us() - start_time; in GetDistance()
63 distance = time * pi / l; in GetDistance()
H A Drobot_sg90.c31 unsigned int time = 20000; in set_angle() local
37 hi_udelay(time - duty); in set_angle()
/vendor/hisilicon/hispark_pegasus/demo/robot_demo/robot/
H A Drobot_sg90.c33 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 Drobot_l9110s.c87 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 Drobot_hcsr04.c33 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()
H A Drobot_tcrt5000.c52 unsigned int time = 2000; in RobotTask() local
54 hi_sleep(time); in RobotTask()
H A Drobot_sg90_mid.c32 unsigned int time = 20000; in set_angle() local
37 hi_udelay(time - duty); in set_angle()
/applications/standard/contacts_data/test/unittest/src/
H A Dmergecontact_test.cpp18 #include <sys/time.h>
34 int time = Time::SLEEP_TIME_MERGE_DELETE; in DeleteRawContact() local
35 std::chrono::milliseconds dura(time); in DeleteRawContact()
184 int time = Time::SLEEP_TIME_MERGE; in HWTEST_F() local
185 std::chrono::milliseconds dura(time); in HWTEST_F()
218 int time = 2000; in HWTEST_F() local
219 std::chrono::milliseconds dura(time); in HWTEST_F()
252 int time = Time::SLEEP_TIME_MERGE; in HWTEST_F() local
253 std::chrono::milliseconds dura(time); in HWTEST_F()
295 int time in HWTEST_F() local
330 int time = Time::SLEEP_TIME_MERGE; HWTEST_F() local
376 int time = Time::SLEEP_TIME_MERGE; HWTEST_F() local
425 int time = Time::SLEEP_TIME_MERGE; HWTEST_F() local
464 int time = Time::SLEEP_TIME_MERGE; HWTEST_F() local
511 int time = Time::SLEEP_TIME_MERGE; HWTEST_F() local
556 int time = Time::SLEEP_TIME_MERGE; HWTEST_F() local
596 int time = Time::SLEEP_TIME_MERGE; HWTEST_F() local
639 int time = Time::SLEEP_TIME_MERGE; HWTEST_F() local
688 int time = Time::SLEEP_TIME_MERGE; HWTEST_F() local
735 int time = Time::SLEEP_TIME_MERGE; HWTEST_F() local
776 int time = Time::SLEEP_TIME_MERGE; HWTEST_F() local
823 int time = Time::SLEEP_TIME_MERGE; HWTEST_F() local
853 int time = Time::SLEEP_TIME_MERGE; HWTEST_F() local
898 int time = Time::SLEEP_TIME_MERGE; HWTEST_F() local
934 int time = Time::SLEEP_TIME_MERGE; HWTEST_F() local
974 int time = Time::SLEEP_TIME_MERGE; HWTEST_F() local
1059 int time = Time::SLEEP_TIME_MERGE; HWTEST_F() local
1100 int time = Time::SLEEP_TIME_MERGE; HWTEST_F() local
1146 int time = Time::SLEEP_TIME_MERGE; HWTEST_F() local
1182 int time = Time::SLEEP_TIME_MERGE; HWTEST_F() local
1230 int time = Time::SLEEP_TIME_MERGE; HWTEST_F() local
1268 int time = Time::SLEEP_TIME_MERGE; HWTEST_F() local
[all...]
H A Dperformance_test.cpp18 #include <sys/time.h>
35 struct timeval time; in GetCurrentTime() local
36 gettimeofday(&time, nullptr); in GetCurrentTime()
37 return (time.tv_sec * subtle + time.tv_usec); in GetCurrentTime()
58 int time = Time::SLEEP_TIME_MERGE_DELETE; in DeleteContact() local
59 std::chrono::milliseconds dura(time); in DeleteContact()
67 int time = Time::SLEEP_TIME_MERGE_DELETE; in DeleteContact() local
68 std::chrono::milliseconds dura(time); in DeleteContact()
104 HILOG_INFO("raw_contact_insert_performance_test_900 : time i in HWTEST_F()
[all...]
H A Dstability_test.cpp18 #include <sys/time.h>
45 int time = Time::SLEEP_TIME_MERGE_DELETE; in DeleteContact() local
46 std::chrono::milliseconds dura(time); in DeleteContact()
54 int time = Time::SLEEP_TIME_MERGE_DELETE; in DeleteContact() local
55 std::chrono::milliseconds dura(time); in DeleteContact()
H A Drecovery_test.cpp33 int time = 3000; in ClearData() local
34 std::chrono::milliseconds dura(time); in ClearData()
H A Dcontactpinyin_test.cpp99 int time = 1000; in ClearData() local
100 std::chrono::milliseconds dura(time); in ClearData()
/vendor/ohemu/qemu_riscv32_mini_system_demo/fs_data/data/data/js/pages/index/
H A Dindex.js201 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);
/applications/standard/app_samples/code/Project/HapBuild/test-tool/
H A DInstallAndTestSpecial_ci.py24 import time namespace
96 time.sleep(2)
186 time.sleep(5)
201 time.sleep(5)
237 time = 0
242 while time <= repeat_time:
288 time += 1
416 time.sleep(40) # 等待重启
/applications/standard/calendardata/calendarmanager/native/src/
H A Dnative_util.cpp163 const std::tm *time = std::localtime(&now); in GetUTCTime() local
170 if (time != nullptr) { in GetUTCTime()
171 rrule += GetWeeklyRule(event, *time); in GetUTCTime()
175 if (time != nullptr) { in GetUTCTime()
176 rrule += GetMonthlyRule(event, *time); in GetUTCTime()
180 if (time != nullptr) { in GetUTCTime()
181 rrule += GetYearlyRule(event, *time); in GetUTCTime()
204 std::string GetWeeklyRule(const Event &event, const std::tm &time) in GetUTCTime() argument
216 if (time.tm_wday < MAX_DAY_OF_WEEK) { in GetUTCTime()
217 rrule = weekList[time in GetUTCTime()
223 GetMonthlyRule(const Event &event, const std::tm &time) GetUTCTime() argument
247 GetYearlyRule(const Event &event, const std::tm &time) GetUTCTime() argument
[all...]
/applications/standard/calendardata/calendarmanager/native/include/
H A Dnative_util.h44 std::string GetWeeklyRule(const Event &event, const std::tm &time);
45 std::string GetMonthlyRule(const Event &event, const std::tm &time);
46 std::string GetYearlyRule(const Event &event, const std::tm &time);
/vendor/hisilicon/hispark_pegasus/demo/coap_demo/
H A Dapp_demo_iot.c56 hi_void IotPublishPersonTime(hi_u32 time) in IotPublishPersonTime() argument
65 property.iValue = time; in IotPublishPersonTime()
/vendor/ohemu/qemu_riscv32_mini_system_demo/fs_data/data/data/panel/pages/index/
H A Dindex.js124 module.exports = function (vm) { var _vm = vm || this; return _c('div', {'staticClass' : ["container"]} , [_c('div', {'staticClass' : ["header"]} , [_c('text', {'attrs' : {'value' : function () {return (_vm.time) + ' ' + (_vm.date) + ' ' + (_vm.week)}}} )] ),_c('div', {'staticClass' : ["body"]} , [_c('swiper', {'attrs' : {'index' : function () {return _vm.index}},'staticClass' : ["swiper"]} , [_c('div', {'staticClass' : ["swiper-item"]} , [_c('div', {'staticClass' : ["grid"]} , [_c('div', {'staticClass' : ["row2"]} , [_c('div', {'staticClass' : ["col","block-wrapper"],'on' : {'click' : _vm.OnScene0Clicked}} , [_c('image', {'attrs' : {'src' : function () {return _vm.image0}},'staticClass' : ["image"]} ),_c('text', {'attrs' : {'value' : "日常"}} )] ),_c('div', {'staticClass' : ["col","block-wrapper"],'on' : {'click' : _vm.OnScene1Clicked}} , [_c('image', {'attrs' : {'src' : function () {return _vm.image1}},'staticClass' : ["image"]} ),_c('text', {'attrs' : {'value' : "周末"}} )] )] ),_c('div', {'staticClass' : ["row2"]} , [_c('div', {'staticClass' : ["col","block-wrapper"],'on' : {'click' : _vm.OnScene2Clicked}} , [_c('image', {'attrs' : {'src' : function () {return _vm.image2}},'staticClass' : ["image"]} ),_c('text', {'attrs' : {'value' : "聚会"}} )] ),_c('div', {'staticClass' : ["col","block-wrapper"],'on' : {'click' : _vm.OnScene3Clicked}} , [_c('image', {'attrs' : {'src' : function () {return _vm.image3}},'staticClass' : ["image"]} ),_c('text', {'attrs' : {'value' : "烛光"}} )] )] )] )] ),_c('div', {'staticClass' : ["swiper-item"]} , [_c('div', {'staticClass' : ["grid"]} , [_c('div', {'staticClass' : ["row2"]} , [_c('div', {'staticClass' : ["col","block-wrapper"],'on' : {'click' : _vm.OnDev0Clicked}} , [_c('image', {'attrs' : {'src' : function () {return _vm.image4}},'staticClass' : ["image"]} ),_c('text', {'attrs' : {'value' : "空调"}} )] ),_c('div', {'staticClass' : ["col","block-wrapper"],'on' : {'click' : _vm.OnDev1Clicked}} , [_c('image', {'attrs' : {'src' : function () {return _vm.image5}},'staticClass' : ["image"]} ),_c('text', {'attrs' : {'value' : "冰箱"}} )] )] ),_c('div', {'staticClass' : ["row2"]} , [_c('div', {'staticClass' : ["col","block-wrapper"],'on' : {'click' : _vm.OnDev2Clicked}} , [_c('image', {'attrs' : {'src' : function () {return _vm.image6}},'staticClass' : ["image"]} ),_c('text', {'attrs' : {'value' : "窗帘"}} )] ),_c('div', {'staticClass' : ["col","block-wrapper"],'on' : {'click' : _vm.OnDev3Clicked}} , [_c('image', {'attrs' : {'src' : function () {return _vm.image7}},'staticClass' : ["image"]} ),_c('text', {'attrs' : {'value' : "灯光"}} )] )] )] )] )] )] ),_c('div', {'staticClass' : ["footer"]} , [_c('text', {'attrs' : {'value' : "。。"}} )] )] ) }
157 time: "",
171 this.time = date.getHours() + ":" + date.getMinutes() + ":" + date.getSeconds();
/applications/sample/camera/gallery/src/
H A Dplayer_ability_slice.cpp280 char timer[6]; // 6: length of time label in SetUpAnimatorGroup()
421 char time[6]; // 6: length of time label in Callback() local
422 sprintf_s(time, sizeof(time), "%02lld:%02lld", currentSecond / 60, currentSecond % 60); // 60: 1minute = 60s in Callback()
423 timeLabel_->SetText(time); in Callback()
/applications/standard/app_samples/code/Project/HapBuild/compile-tool/resources/
H A DechoHilog.bat2 set time0=%time: =0%
/vendor/hisilicon/hispark_pegasus/demo/sntp_demo/src/
H A Dsntp_port.c27 #include <time.h>
/applications/standard/contacts_data/ability/common/utils/src/
H A Dfile_utils.cpp52 time_t backupTime = time(nullptr); in WriteStringToFileAppend()
/vendor/hisilicon/hispark_taurus_linux/hals/utils/sys_param/
H A Dhal_sys_param.c21 #include <sys/time.h>
/applications/standard/app_samples/code/SuperFeature/Widget/FormGame/entry/src/main/cpp/
H A Dnapi_info_util.cpp47 auto current = time(nullptr); in NAPI_GetRandomNumber()

Completed in 11 milliseconds

12