Home
last modified time | relevance | path

Searched refs:time (Results 1 – 25 of 1954) sorted by relevance

12345678910>>...79

/ohos5.0/drivers/hdf_core/framework/support/platform/src/rtc/
H A Drtc_base.c43 if (time == NULL) { in RtcIsInvalid()
48 return (IS_INVALID_YEAR(time->year) || IS_INVALID_MONTH(time->month) || in RtcIsInvalid()
49 (RtcIsInvalidDay(time->day, time->month, time->year) == RTC_TRUE) || in RtcIsInvalid()
50 IS_INVALID_HOUR(time->hour) || IS_INVALID_MIN(time->minute) || in RtcIsInvalid()
60 if ((time == NULL) || IS_INVALID_MONTH(time->month) || IS_INVALID_YEAR(time->year) || in RtcGetWeekDay()
61 (RtcIsInvalidDay(time->day, time->month, time->year) == RTC_TRUE)) { in RtcGetWeekDay()
97time->year, time->month, time->day, time->hour, time->minute, time->second, time->millisecond); in RtcTimeToTimestamp()
103 … seconds = ((uint64_t)time->hour * RTC_MAX_MINUTE + time->minute) * RTC_MAX_SECOND + time->second; in RtcTimeToTimestamp()
138 days -= RtcGetMonthDays(IS_LEAP_YEAR(time->year), time->month); in TimestampToRtcTime()
148 time->weekday = RtcGetWeekDay(time); in TimestampToRtcTime()
[all …]
/ohos5.0/foundation/bundlemanager/bundle_framework/interfaces/inner_api/appexecfwk_base/src/
H A Dperf_profile.cpp40 bmsLoadStart_ = (time > 0) ? time : 0; in SetBmsLoadStartTime()
50 bmsLoadEnd_ = (time > 0 && time > bmsLoadStart_) ? time : bmsLoadStart_; in SetBmsLoadEndTime()
60 bundleScanStart_ = (time > 0) ? time : 0; in SetBundleScanStartTime()
70 bundleScanEnd_ = (time > 0 && time > bundleScanStart_) ? time : bundleScanStart_; in SetBundleScanEndTime()
80 bundleDownloadStart_ = (time > 0) ? time : 0; in SetBundleDownloadStartTime()
100 bundleInstallStart_ = (time > 0) ? time : 0; in SetBundleInstallStartTime()
150 bundleParseStart_ = (time > 0) ? time : 0; in SetBundleParseStartTime()
170 amsLoadStart_ = (time > 0) ? time : 0; in SetAmsLoadStartTime()
180 amsLoadEnd_ = (time > 0 && time > amsLoadStart_) ? time : amsLoadStart_; in SetAmsLoadEndTime()
210 appForkStart_ = (time > 0) ? time : 0; in SetAppForkStartTime()
[all …]
/ohos5.0/base/hiviewdfx/hilog/frameworks/libhilog/utils/include/
H A Dlog_timestamp.h31 timespec time; in LogTimeStamp() local
32 clock_gettime(id, &time); in LogTimeStamp()
46 return (tv_sec == time.tv_sec) && (tv_nsec == time.tv_nsec);
51 return !(*this == time);
57 ((tv_sec == time.tv_sec) && (tv_nsec < time.tv_nsec));
62 return !(*this < time);
68 ((tv_sec == time.tv_sec) && (tv_nsec > time.tv_nsec));
72 return !(*this > time);
77 if (*this <= time) {
87 this->tv_sec -= time.tv_sec;
[all …]
/ohos5.0/base/account/os_account/frameworks/common/perf_stat/src/
H A Dperf_stat.cpp38 accountBindBegin_ = (time > 0) ? time : 0; in SetAccountBindStartTime()
48 accountBindEnd_ = (time > 0 && time > accountBindBegin_) ? time : accountBindBegin_; in SetAccountBindEndTime()
59 accountAddBegin_ = (time > 0) ? time : 0; in SetAccountAddStartTime()
69 accountAddEnd_ = (time > 0 && time > accountAddBegin_) ? time : accountAddBegin_; in SetAccountAddEndTime()
80 accountDelBegin_ = (time > 0) ? time : 0; in SetAccountDelStartTime()
90 accountDelEnd_ = (time > 0 && time > accountDelBegin_) ? time : accountDelBegin_; in SetAccountDelEndTime()
101 accountQueryBegin_ = (time > 0) ? time : 0; in SetAccountQueryStartTime()
111 accountQueryEnd_ = (time > 0 && time > accountQueryBegin_) ? time : accountQueryBegin_; in SetAccountQueryEndTime()
117 serviceOnStart_ = time; in SetInstanceStartTime()
122 serviceOnStop_ = time; in SetInstanceStopTime()
[all …]
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/animation/
H A Danimation_util.cpp126 double time = StringUtils::StringToDouble(key) / 100.0; in ParseAnimationStyle() local
127 AddAnimatable(shadow, time, AnimatableType::PROPERTY_BOX_SHADOW); in ParseAnimationStyle()
162 LOGE("DOM_WIDTH:%{public}s time:%{public}lf", value.c_str(), time); in KeyframesAddKeyFrame()
217 util.AddAnimatable(margin, time, AnimatableType::PROPERTY_MARGIN_LEFT); in KeyframesAddKeyFrame()
218 util.AddAnimatable(margin, time, AnimatableType::PROPERTY_MARGIN_TOP); in KeyframesAddKeyFrame()
466 util.transformConvertor_.InsertIdentityKeyframe(time); in KeyframesAddKeyFrame()
472 util.transformConvertor_.Convert(typeKey, typeValue, time); in KeyframesAddKeyFrame()
479 double time = StringUtils::StringToDouble(timeStr) / 100.0; in KeyframesAddKeyFrame() local
480 pos->second(value, time, timeStr, *this); in KeyframesAddKeyFrame()
526 void AnimationUtil::AddAnimatable(const T& value, double time, AnimatableType type) in AddAnimatable() argument
[all …]
H A Dspring_model.cpp105 return (c1_ + c2_ * time) * exp(r_ * time); in Position()
110 const double power = exp(r_ * time); in Velocity()
133 double OverdampedModel::Position(double time) const in Position()
135 return c1_ * exp(r1_ * time) + c2_ * exp(r2_ * time); in Position()
138 double OverdampedModel::Velocity(double time) const in Velocity()
140 return c1_ * r1_ * exp(r1_ * time) + c2_ * r2_ * exp(r2_ * time); in Velocity()
162 double UnderdampedModel::Position(double time) const in Position()
164 return exp(r_ * time) * (c1_ * cos(w_ * time) + c2_ * sin(w_ * time)); in Position()
169 double power = exp(r_ * time); in Velocity()
170 double cosine = cos(w_ * time); in Velocity()
[all …]
H A Dcurve.h41 float Move(float time) in Move() argument
44 return MoveInternal(time); in Move()
69 float MoveInternal(float time) final in MoveInternal() argument
75 if (time > 1.0f || time < 0.0f) { in MoveInternal()
91 float MoveInternal(float time) final in MoveInternal() argument
97 if (time > 1.0f || time < 0.0f) { in MoveInternal()
110 float MoveInternal(float time) override in MoveInternal() argument
127 if (time < fractionMin || time > fractionMax) { in MoveInternal()
131 return time; in MoveInternal()
174 float para = time - 1.0f; in MoveInternal()
[all …]
/ohos5.0/docs/zh-cn/application-dev/dfx/
H A Duinput.md56 -i <time> --interval <time> -the program interval for the (time) milliseconds
140 uinput -M -b <dx> <dy> <id> [press time] [click interval time]
193 uinput -M -i <time>
278 uinput -K -i <time>
336 uinput -S -m <dx1> <dy1> <dx2> <dy2> [smooth time] [-k keep time]
371 uinput -S -g <dx1> <dy1> <dx2> <dy2> [press time] [total time]
375 [total time]拖动时间,[total time] - [Press time]不能少于500ms,否则操作结果可能产生错误或无效操作。
389 uinput -S -i <time>
432 uinput -T -m <dx1> <dy1> <dx2> <dy2> [-k keep time] [smooth time]
470 uinput -T -g <dx1> <dy1> <dx2> <dy2> [press time] [total time]
[all …]
H A Dappfreeze-guidelines.md484 --> trigger time--> 任务开始运行的时间
501 …35852, send time = 2024-08-08 12:17:16.629, handle time = 2024-08-08 12:17:16.629, trigger time = …
505 任务运行耗时 = CompleteTime time - trigger time
875 Fault time:2024/04/08-08:24:29
958 Process life time:60410s
1067 Fault time:2024/03/14-14:40:58
1210 Fault time:2024/02/01-10:04:57
1250 …18083, send time = 2024-02-01 10:04:46.481, handle time = 2024-02-01 10:04:46.981, trigger time = …
1252 …18083, send time = 2024-02-01 10:04:44.329, handle time = 2024-02-01 10:04:47.329, trigger time = …
1253 …18087, send time = 2024-02-01 10:04:48.091, handle time = 2024-02-01 10:04:48.091, trigger time = …
[all …]
/ohos5.0/drivers/hdf_core/framework/test/unittest/platform/common/
H A Drtc_test.c172 tester->time.weekday = RtcGetWeekDay(&tester->time); in RtcReadWriteTimeTest()
194 tester->time.weekday = RtcGetWeekDay(&tester->time); in RtcReadWriteMaxTimeTest()
211 tester->time.day = 0; in RtcReadWriteMinTimeTest()
212 tester->time.hour = 0; in RtcReadWriteMinTimeTest()
216 tester->time.weekday = RtcGetWeekDay(&tester->time); in RtcReadWriteMinTimeTest()
265 tester->time.weekday = RtcGetWeekDay(&tester->time); in RtcReadWriteAlarmTimeTest()
287 tester->time.weekday = RtcGetWeekDay(&tester->time); in RtcReadWriteAlarmMaxTimeTest()
304 tester->time.day = 0; in RtcReadWriteAlarmMinTimeTest()
309 tester->time.weekday = RtcGetWeekDay(&tester->time); in RtcReadWriteAlarmMinTimeTest()
332 tester->time.weekday = RtcGetWeekDay(&tester->time); in RtcAlarmEnableTest()
[all …]
/ohos5.0/foundation/multimedia/camera_framework/services/camera_service/src/smooth_zoom/
H A Dcubic_bezier.cpp48 float time = frameInterval * i / duration; in GetZoomArray() local
49 float zoom = (currentZoom + (targetZoom - currentZoom) * GetInterpolation(time)); in GetZoomArray()
66 float CubicBezier::GetCubicBezierY(const float& time) in GetCubicBezierY() argument
68 return CUBIC_BEZIER_MULTIPLE * (1- time) * (1 - time) * time * CONTROL_POINT_Y1 + in GetCubicBezierY()
69 CUBIC_BEZIER_MULTIPLE * (1- time) * time * time * CONTROL_POINT_Y2 + time * time * time; in GetCubicBezierY()
72 float CubicBezier::GetCubicBezierX(const float& time) in GetCubicBezierX() argument
74 return CUBIC_BEZIER_MULTIPLE * (1- time) * (1 - time) * time * CONTROL_POINT_X1 + in GetCubicBezierX()
75 CUBIC_BEZIER_MULTIPLE * (1- time) * time * time * CONTROL_POINT_X2 + time * time * time; in GetCubicBezierX()
/ohos5.0/foundation/arkui/ace_engine/frameworks/bridge/common/utils/
H A Dtransform_convertor.cpp60 iter->second(value, time, *this); in Convert()
64 void TransformConvertor::InsertIdentityKeyframe(double time) in InsertIdentityKeyframe() argument
66 noneKeyframeTimes_.push_back(static_cast<float>(time)); in InsertIdentityKeyframe()
74 for (float time : noneKeyframeTimes_) { in AddAnimationToTweenOption() local
117 auto keyframe = AceType::MakeRefPtr<Keyframe<TransformOperation>>(time, operation); in AddKeyframe()
126 auto keyframe = AceType::MakeRefPtr<Keyframe<TransformOperation>>(time, operation); in AddKeyframe()
135 auto keyframe = AceType::MakeRefPtr<Keyframe<TransformOperation>>(time, operation); in AddKeyframe()
144 auto keyframe = AceType::MakeRefPtr<Keyframe<TransformOperation>>(time, operation); in AddKeyframe()
153 auto keyframe = AceType::MakeRefPtr<Keyframe<TransformOperation>>(time, operation); in AddKeyframe()
325 convertor.AddKeyframe(AnimationType::MATRIX_3D, time, m); in __anonc5ef80111402()
[all …]
/ohos5.0/base/time/time_service/framework/cj/src/
H A Dsystem_date_time.cpp44 int64_t time = 0; in getCurrentTime() local
54 return {SUCCESS_CODE, time}; in getCurrentTime()
60 int64_t time = 0; in getRealActiveTime() local
70 return {SUCCESS_CODE, time}; in getRealActiveTime()
76 int64_t time = 0; in getRealTime() local
86 return {SUCCESS_CODE, time}; in getRealTime()
108 int64_t time = 0; in getTime() local
114 return {SUCCESS_CODE, time}; in getTime()
120 int64_t time = 0; in getUpTime() local
130 return {SUCCESS_CODE, time}; in getUpTime()
[all …]
/ohos5.0/base/sensors/miscdevice/services/miscdevice_service/haptic_matcher/src/
H A Dcustom_vibration_matcher.cpp129 timeEffect.time = 0; in TransformTime()
196 .time = lastEvent.time, in MixedWaveProcess()
216 .time = 0, in PreProcessEvent()
230 curvePoint.time += event.time; in PreProcessEvent()
250 int32_t overlapRight = std::min(curveLeft.back().time, curveRight.back().time); in MergeCurve()
267 if ((curveLeft[i].time < curveRight[j].time) && (j > 0)) { in MergeCurve()
272 newCurvePoint.time = curveLeft[i].time; in MergeCurve()
276 } else if ((curveLeft[i].time > curveRight[j].time) && (i > 0)) { in MergeCurve()
281 newCurvePoint.time = curveRight[j].time; in MergeCurve()
286 newCurvePoint.time = curveRight[i].time; in MergeCurve()
[all …]
/ohos5.0/drivers/hdf_core/framework/tools/hcs-view/hcsWebView/test/testsuits/
H A Dtest_index.py12 import time
45 time.sleep(1)
52 time.sleep(1)
63 time.sleep(2)
76 time.sleep(1)
78 time.sleep(0.5)
80 time.sleep(1)
84 time.sleep(1)
99 time.sleep(1)
189 time.sleep(1)
[all …]
/ohos5.0/docs/en/readme/
H A Dsystem-time.md5 …The time and time zone subsystem provides OpenHarmony with the capability of managing the system t…
7 - **Time and time zone management**
9 …em time and time zone in a unified manner, including setting and obtaining the system time, date, …
13 …ing timers. There are three types of timers: system startup timer, system time timer, and wakeup t…
18 **Figure 1** Architecture of the time and time zone subsystem
21 ![](figures/architecture-of-the-time-and-time-zone-subsystem.png "Architecture of the time and time
25 The source code of the time and time zone subsystem is stored in the **/base/time** directory.
30 /base/time/time_service
/ohos5.0/foundation/bundlemanager/bundle_framework/interfaces/inner_api/appexecfwk_base/include/
H A Dperf_profile.h30 void SetBmsLoadStartTime(int64_t time);
33 void SetBmsLoadEndTime(int64_t time);
36 void SetBundleScanStartTime(int64_t time);
39 void SetBundleScanEndTime(int64_t time);
52 void SetBundleInstallEndTime(int64_t time);
64 void SetBundleParseEndTime(int64_t time);
67 void SetAmsLoadStartTime(int64_t time);
70 void SetAmsLoadEndTime(int64_t time);
76 void SetAbilityLoadEndTime(int64_t time);
79 void SetAppForkStartTime(int64_t time);
[all …]
/ohos5.0/base/time/time_service/interfaces/inner_api/src/
H A Dtime_service_client.cpp476 int64_t time; in GetWallTimeMs() local
484 return time; in GetWallTimeMs()
501 int64_t time; in GetWallTimeNs() local
509 return time; in GetWallTimeNs()
526 int64_t time; in GetBootTimeMs() local
534 return time; in GetBootTimeMs()
559 return time; in GetBootTimeNs()
584 return time; in GetMonotonicTimeMs()
609 return time; in GetMonotonicTimeNs()
639 return time; in GetThreadTimeMs()
[all …]
/ohos5.0/base/time/time_service/services/
H A DBUILD.gn14 import("../time.gni")
21 "time/include",
22 "time/include/inner_api_include",
47 "time/src/itimer_info.cpp",
49 "time/src/nitz_subscriber.cpp",
54 "time/src/sntp_client.cpp",
57 "time/src/time_zone_info.cpp",
108 subsystem_name = "time"
123 "time/src/itimer_info.cpp",
130 "time/src/sntp_client.cpp",
[all …]
/ohos5.0/docs/en/application-dev/reference/apis-basic-services-kit/
H A Djs-apis-system-time.md3 …module provides system time and time zone features. You can use the APIs of this module to set and…
7 … 9. You are advised to use [@ohos.systemDateTime (system time and time zone)](js-apis-date-time.md…
178 console.info(`Succeeded in getting real active time : ${time}`);
219 console.info(`Succeeded in getting real active time : ${time}`);
262 console.info(`Succeeded in getting real active time : ${time}`);
306 console.info(`Succeeded in getting real time : ${time}`);
347 console.info(`Succeeded in getting real time : ${time}`);
390 console.info(`Succeeded in getting real time : ${time}`);
591 let time = 1611081385000;
642 let time = 1611081385000;
[all …]
H A Djs-apis-date-time.md3 …module provides system time and time zone features. You can use the APIs of this module to set and…
17 Enumerates the types of time to obtain.
204 console.info(`Succeeded in getting real active time : ${time}`);
249 console.info(`Succeeded in getting real active time : ${time}`);
296 console.info(`Succeeded in getting real active time : ${time}`);
344 console.info(`Succeeded in getting real time : ${time}`);
389 console.info(`Succeeded in getting real time : ${time}`);
436 console.info(`Succeeded in getting real time : ${time}`);
472 let time = systemDateTime.getTime(true)
685 | string | System time zone. For details, see [Supported System Time Zones](#supported-system-time-…
[all …]
/ohos5.0/base/time/time_service/test/fuzztest/timemanager_fuzzer/timesettimezone_fuzzer/
H A Dtimesettimezone_fuzzer.cpp49 int64_t time = static_cast<int64_t>(*rawData); in FuzzTimeSetTime() local
50 TimeServiceClient::GetInstance()->SetTime(time); in FuzzTimeSetTime()
51 TimeServiceClient::GetInstance()->SetTime(time); in FuzzTimeSetTime()
52 TimeServiceClient::GetInstance()->SetTimeV9(time); in FuzzTimeSetTime()
53 TimeServiceClient::GetInstance()->SetTimeV9(time); in FuzzTimeSetTime()
55 TimeServiceClient::GetInstance()->SetTime(time, code); in FuzzTimeSetTime()
61 int64_t time; in FuzzTimeGetTime() local
63 TimeServiceClient::GetInstance()->GetWallTimeMs(time); in FuzzTimeGetTime()
65 TimeServiceClient::GetInstance()->GetWallTimeNs(time); in FuzzTimeGetTime()
68 TimeServiceClient::GetInstance()->GetBootTimeMs(time); in FuzzTimeGetTime()
[all …]
/ohos5.0/docs/zh-cn/application-dev/reference/apis-basic-services-kit/
H A Djs-apis-system-time.md33 以下错误码的详细介绍请参见[时间时区错误码](./errorcode-time.md)。
178 console.info(`Succeeded in getting real active time : ${time}`);
219 console.info(`Succeeded in getting real active time : ${time}`);
262 console.info(`Succeeded in getting real active time : ${time}`);
306 console.info(`Succeeded in getting real time : ${time}`);
347 console.info(`Succeeded in getting real time : ${time}`);
390 console.info(`Succeeded in getting real time : ${time}`);
590 // time对应的时间为2021-01-20 02:36:25
591 let time = 1611081385000;
641 // time对应的时间为2021-01-20 02:36:25
[all …]
/ohos5.0/foundation/communication/dsoftbus/adapter/common/kernel/liteos_m/
H A Dsoftbus_adapter_timer.c97 struct timeval time = {0}; in SoftBusGetTime() local
98 gettimeofday(&time, NULL); in SoftBusGetTime()
99 sysTime->sec = time.tv_sec; in SoftBusGetTime()
100 sysTime->usec = time.tv_usec; in SoftBusGetTime()
110 struct timespec time = {0}; in SoftBusGetRealTime() local
112 sysTime->sec = time.tv_sec; in SoftBusGetRealTime()
119 struct timeval time; in SoftBusGetSysTimeMs() local
120 time.tv_sec = 0; in SoftBusGetSysTimeMs()
121 time.tv_usec = 0; in SoftBusGetSysTimeMs()
122 if (gettimeofday(&time, NULL) != 0) { in SoftBusGetSysTimeMs()
[all …]
/ohos5.0/base/notification/distributed_notification_service/frameworks/ans/src/
H A Dnotification_time.cpp35 void NotificationTime::SetInitialTime(int32_t time) in SetInitialTime() argument
37 initialTime_ = time; in SetInitialTime()
97 NotificationTime *time = new (std::nothrow) NotificationTime(); in FromJson() local
98 if (time == nullptr) { in FromJson()
113 time->isPaused_ = jsonObject.at("isPaused").get<bool>(); in FromJson()
117 time->isInTitle_ = jsonObject.at("isInTitle").get<bool>(); in FromJson()
120 return time; in FromJson()
162 if (time && !time->ReadFromParcel(parcel)) { in Unmarshalling()
163 delete time; in Unmarshalling()
164 time = nullptr; in Unmarshalling()
[all …]

12345678910>>...79