Home
last modified time | relevance | path

Searched full:time (Results 1 – 25 of 4382) sorted by relevance

12345678910>>...176

/foundation/bundlemanager/bundle_framework/interfaces/inner_api/appexecfwk_base/src/
Dperf_profile.cpp38 void PerfProfile::SetBmsLoadStartTime(int64_t time) in SetBmsLoadStartTime() argument
40 bmsLoadStart_ = (time > 0) ? time : 0; in SetBmsLoadStartTime()
48 void PerfProfile::SetBmsLoadEndTime(int64_t time) in SetBmsLoadEndTime() argument
50 bmsLoadEnd_ = (time > 0 && time > bmsLoadStart_) ? time : bmsLoadStart_; in SetBmsLoadEndTime()
58 void PerfProfile::SetBundleScanStartTime(int64_t time) in SetBundleScanStartTime() argument
60 bundleScanStart_ = (time > 0) ? time : 0; in SetBundleScanStartTime()
68 void PerfProfile::SetBundleScanEndTime(int64_t time) in SetBundleScanEndTime() argument
70 bundleScanEnd_ = (time > 0 && time > bundleScanStart_) ? time : bundleScanStart_; in SetBundleScanEndTime()
78 void PerfProfile::SetBundleDownloadStartTime(int64_t time) in SetBundleDownloadStartTime() argument
80 bundleDownloadStart_ = (time > 0) ? time : 0; in SetBundleDownloadStartTime()
[all …]
/foundation/bundlemanager/bundle_framework/common/test/unittest/common_perf_profile_test/
Dcommon_perf_profile_test.cpp111 * CaseDescription: verify bms load time can set correct when set the valid start and end time
117 …EXPECT_EQ(bmsLoadStartTime, BMS_LOAD_SET_START_TIME) << "bms load start time " << bmsLoadStartTime;
122 EXPECT_EQ(bmsLoadEndTime, BMS_LOAD_SET_END_TIME) << "bms load end time " << bmsLoadEndTime;
124 // after reset the perf profile, the bms load start and end time should be zero
128 …EXPECT_EQ(initBmsLoadStartTime, BMS_LOAD_INIT_START_TIME) << "bms init load start time " << initBm…
129 …EXPECT_EQ(initBmsLoadEndTime, BMS_LOAD_INIT_END_TIME) << "bms init load end time " << initBmsLoadE…
138 * CaseDescription: verify bms load time can set correct when set invalid start or end time
147 …EXPECT_EQ(bmsLoadStartTime, BMS_LOAD_INIT_START_TIME) << "bms load start time " << bmsLoadStartTim…
151 // set the invalid end time less than zero
154 EXPECT_EQ(bmsLoadEndTime, BMS_LOAD_SET_START_TIME) << "bms load end time " << bmsLoadEndTime;
[all …]
/foundation/arkui/ace_engine/frameworks/core/animation/
Danimation_util.cpp104 // time from keyframe; offset from js api in ParseAnimationStyle()
126 double time = StringUtils::StringToDouble(key) / 100.0; in ParseAnimationStyle() local
127 AddAnimatable(shadow, time, AnimatableType::PROPERTY_BOX_SHADOW); in ParseAnimationStyle()
139 …[](const std::string& value, const double& time, const std::string& timeStr, AnimationUtil& util) { in KeyframesAddKeyFrame()
140 … util.AddAnimatable(util.ParseColor(value), time, AnimatableType::PROPERTY_BG_COLOR); in KeyframesAddKeyFrame()
143 …[](const std::string& value, const double& time, const std::string& timeStr, AnimationUtil& util) { in KeyframesAddKeyFrame()
149 … util.AddAnimatable(backgroundImageSize, time, AnimatableType::PROPERTY_BACKGROUND_SIZE); in KeyframesAddKeyFrame()
152 …[](const std::string& value, const double& time, const std::string& timeStr, AnimationUtil& util) { in KeyframesAddKeyFrame()
158 … util.AddAnimatable(backgroundImagePosition, time, AnimatableType::PROPERTY_BACKGROUND_POSITION); in KeyframesAddKeyFrame()
161 …[](const std::string& value, const double& time, const std::string& timeStr, AnimationUtil& util) { in KeyframesAddKeyFrame()
[all …]
Dcurve.h30 // The running time of the curve needs to be normalized to the interval of 0.0 to 1.0;
39 // Returns the value at specific time.
40 …// Notice: The value of time must be between 0.0 and 1.0 since the curve uses normalized timestamp.
41 float Move(float time) in Move() argument
43 // time always between 0.0 and 1.0 in Move()
44 return MoveInternal(time); in Move()
47 // Each subclass needs to override this method to implement motion in the 0.0 to 1.0 time range.
48 virtual float MoveInternal(float time) = 0;
69 float MoveInternal(float time) final in MoveInternal() argument
75 if (time > 1.0f || time < 0.0f) { in MoveInternal()
[all …]
Dspring_model.cpp103 double CriticalDampedModel::Position(double time) const in Position()
105 return (c1_ + c2_ * time) * exp(r_ * time); in Position()
108 double CriticalDampedModel::Velocity(double time) const in Velocity()
110 const double power = exp(r_ * time); in Velocity()
111 return r_ * (c1_ + c2_ * time) * power + c2_ * power; 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()
[all …]
Dspring_curve.cpp64 float time = 1.0f / DEFAULT_ESTIMATE_STEPS; in InitEstimateDuration() local
68 position = endPosition_ - solution_->Position(time * i); in InitEstimateDuration()
69 velocity = solution_->Velocity(time * i); in InitEstimateDuration()
71 estimateDuration_ = time * i; in InitEstimateDuration()
81 while (maxDuration - minDuration >= time) { in InitEstimateDuration()
94 float SpringCurve::MoveInternal(float time) in MoveInternal() argument
96 if (time < FRACTION_PARAMETER_MIN || time > FRACTION_PARAMETER_MAX) { in MoveInternal()
97 LOGE("SpringCurve MoveInternal: time is less than 0 or larger than 1, return 1"); in MoveInternal()
102 currentPosition_ = endPosition_ - solution_->Position(time * estimateDuration_); in MoveInternal()
104 currentPosition_ = endPosition_ + solution_->Position(time * estimateDuration_); in MoveInternal()
[all …]
/foundation/multimedia/camera_framework/services/camera_service/src/smooth_zoom/
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()
/foundation/arkui/ace_engine/frameworks/bridge/common/utils/
Dtransform_convertor.cpp56 void TransformConvertor::Convert(const std::string& key, const std::string& value, double time) in Convert() argument
60 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
75 noneKeyframes.push_back(AceType::MakeRefPtr<Keyframe<TransformOperation>>(time, operation)); in AddAnimationToTweenOption()
112 void TransformConvertor::AddKeyframe(AnimationType type, double time, const TranslateOperation& tra… in AddKeyframe() argument
117 auto keyframe = AceType::MakeRefPtr<Keyframe<TransformOperation>>(time, operation); in AddKeyframe()
121 void TransformConvertor::AddKeyframe(AnimationType type, double time, const SkewOperation& skew) in AddKeyframe() argument
126 auto keyframe = AceType::MakeRefPtr<Keyframe<TransformOperation>>(time, operation); in AddKeyframe()
[all …]
/foundation/bundlemanager/bundle_framework/interfaces/inner_api/appexecfwk_base/include/
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);
42 void SetBundleDownloadStartTime(int64_t time);
45 void SetBundleDownloadEndTime(int64_t time);
48 void SetBundleInstallStartTime(int64_t time);
52 void SetBundleInstallEndTime(int64_t time);
55 void SetBundleUninstallStartTime(int64_t time);
58 void SetBundleUninstallEndTime(int64_t time);
[all …]
/foundation/arkui/ace_engine/frameworks/core/event/
Dresample_algo.cpp27 … if (lastTime == 0 || static_cast<uint64_t>(iter->time.time_since_epoch().count()) != lastTime) { in GetAvgPoint()
35 avgTime += static_cast<uint64_t>(iter->time.time_since_epoch().count()); in GetAvgPoint()
37 lastTime = static_cast<uint64_t>(iter->time.time_since_epoch().count()); in GetAvgPoint()
57 if ((nanoTimeStamp == history.time || nanoTimeStamp == current.time) || in LinearInterpolation()
58 (current.time <= history.time) || in LinearInterpolation()
59 (current.time - history.time > INTERPOLATION_THRESHOLD) || in LinearInterpolation()
60 (nanoTimeStamp < history.time)) { in LinearInterpolation()
64 (float)(current.time - history.time); in LinearInterpolation()
66 (float)(current.time - history.time); in LinearInterpolation()
67 if (nanoTimeStamp < current.time) { in LinearInterpolation()
[all …]
/foundation/multimedia/player_framework/test/unittest/resources/res_audio_haptic/
Dringtone.json64 "Time": 0, number
69 "Time": 4, number
74 "Time": 397, number
79 "Time": 500, number
137 "Time": 0, number
142 "Time": 4, number
147 "Time": 396, number
152 "Time": 500, number
210 "Time": 0, number
215 "Time": 4, number
[all …]
/foundation/communication/dsoftbus/adapter/common/kernel/liteos_m/
Dsoftbus_adapter_timer.c18 #include <sys/time.h>
19 #include <time.h>
97 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
111 (void)clock_gettime(CLOCK_BOOTTIME, &time); in SoftBusGetRealTime()
112 sysTime->sec = time.tv_sec; in SoftBusGetRealTime()
113 sysTime->usec = time.tv_nsec / NS_PER_USECOND; in SoftBusGetRealTime()
[all …]
/foundation/arkui/ace_engine_lite/frameworks/src/core/modules/presets/
Ddate_time_format_module.h76 * @brief set the date time pattern
107 * @param time : the js date object
111 double GetTimeVal(jerry_value_t time, const char *funcName) const;
114 * @brief format the time to date through locale info
115 * @param time: the time need to format
120 void FormatDate(time_t time, char *res, const uint8_t resSize, uint8_t &start);
123 * @brief get the time zone, and convert local time to GMT time
124 * @param time the timestamp of local time
126 void ConvertLocalToGMT(time_t &time) const;
129 * @brief format the time to hour-minute-second through locale info
[all …]
/foundation/multimedia/player_framework/services/utils/
Dtime_format_utils.cpp45 return iso8601Str; // cant prase time in FormatDateTimeByTimeZone()
48 // time zone in FormatDateTimeByTimeZone()
68 // convert time to localtime in FormatDateTimeByTimeZone()
98 std::string time = ""; in FormatDataTimeByString() local
106 time += " 00:00:00"; in FormatDataTimeByString()
109 time = dataTime.substr(position); in FormatDataTimeByString()
115 if (time.find(":") == data.npos) { in FormatDataTimeByString()
116 time += ":00:00"; in FormatDataTimeByString()
117 } else if (time.find_first_of(":") == time.find_last_of(":")) { in FormatDataTimeByString()
118 time += ":00"; in FormatDataTimeByString()
[all …]
/foundation/arkui/ui_lite/interfaces/kits/animator/
Deasing_equation.h43 * @brief Calculates the value for the current time of an animation.
47 * @param curTime Indicates the current time of this animation.
50 * @brief Returns the value for the current time.
83 * @param curTime Indicates the current time of this animation.
86 * @return Returns the value for the current time.
101 * @param curTime Indicates the current time of this animation.
104 * @return Returns the value for the current time.
119 * @param curTime Indicates the current time of this animation.
122 * @return Returns the value for the current time.
137 * @param curTime Indicates the current time of this animation.
[all …]
/foundation/communication/dsoftbus/adapter/common/kernel/posix/
Dsoftbus_adapter_timer.c21 #include <sys/time.h>
22 #include <time.h>
134 struct timespec time = {0}; in SoftBusGetTime() local
135 (void)clock_gettime(CLOCK_MONOTONIC, &time); in SoftBusGetTime()
137 sysTime->sec = time.tv_sec; in SoftBusGetTime()
138 sysTime->usec = time.tv_nsec / NS_PER_USECOND; in SoftBusGetTime()
148 struct timespec time = {0}; in SoftBusGetRealTime() local
149 (void)clock_gettime(CLOCK_BOOTTIME, &time); in SoftBusGetRealTime()
150 sysTime->sec = time.tv_sec; in SoftBusGetRealTime()
151 sysTime->usec = time.tv_nsec / NS_PER_USECOND; in SoftBusGetRealTime()
[all …]
/foundation/multimedia/av_session/frameworks/js/napi/session/src/
Dnapi_control_command.cpp169 int64_t time {}; in GetForwardTime() local
170 auto status = NapiUtils::GetNamedProperty(env, in, "parameter", time); in GetForwardTime()
173 time = AVMetaData::SECONDS_15; in GetForwardTime()
177 SLOGD("GetForwardTime with time %{public}jd", static_cast<int64_t>(time)); in GetForwardTime()
178 …CHECK_AND_RETURN_RET_LOG(out.SetForwardTime(time) == AVSESSION_SUCCESS, napi_invalid_arg, "set par… in GetForwardTime()
184 int64_t time {}; in SetForwardTime() local
185 …CHECK_AND_RETURN_RET_LOG(in.GetForwardTime(time) == AVSESSION_SUCCESS, napi_invalid_arg, "get para… in SetForwardTime()
186 SLOGD("SetForwardTime with time %{public}jd", static_cast<int64_t>(time)); in SetForwardTime()
189 auto status = NapiUtils::SetValue(env, time, property); in SetForwardTime()
203 int64_t time {}; in GetRewindTime() local
[all …]
/foundation/arkui/ace_engine_lite/frameworks/examples/alarm/src/main/js/default/pages/index/
Dindex.js20 time: ['07:20 上午', '02:00 下午', '12:00 上午', '12:00 下午'],
27 time: '00:00',
38 this.originData = [this.time, this.repeat, this.switchStatus];
41 this.time = this.originData[0];
55 console.log('[mainPage init] mode: ' + this.dataWrapper.time);
64 this.time.push(this.transformTimeToTwelveHour(this.dataWrapper.time));
69 this.time.splice(this.dataWrapper.alarmItemIndex, 1);
73 …this.time[this.dataWrapper.alarmItemIndex] = this.transformTimeToTwelveHour(this.dataWrapper.time);
77 } else if (this.dataWrapper.mode === this.mode[modeDeleteAlarmIndex]) { // time arrive
85 transformTimeToTwelveHour(time) {
[all …]
/foundation/resourceschedule/work_scheduler/services/native/include/
Dwork_queue_manager.h87 * @brief Set time cycle.
89 * @param time The time.
91 void SetTimeCycle(uint32_t time);
93 * @brief Get the cycle of time.
95 * @return The cycle of time.
99 * @brief Set time retrigger.
101 * @param time The time.
103 void SetTimeRetrigger(int32_t time);
105 * @brief Get time retrigger.
107 * @param time The time.
/foundation/communication/dsoftbus/core/bus_center/lnn/lane_hub/time_sync/src/
Dlnn_time_sync_manager.c112 LNN_LOGE(LNN_CLOCK, "malloc start time sync request fail=%{public}s", pkgName); in CreateStartTimeSyncReq()
132 LNN_LOGE(LNN_CLOCK, "malloc time sync request info fail"); in CreateTimeSyncReqInfo()
137 LNN_LOGE(LNN_CLOCK, "copy time sync networkId fail"); in CreateTimeSyncReqInfo()
174 …LNN_LOGI(LNN_CLOCK, "add start time sync request. pkgName=%{public}s, accuracy=%{public}d, period=… in TryUpdateStartTimeSyncReq()
179 LNN_LOGE(LNN_CLOCK, "create start time sync request fail"); in TryUpdateStartTimeSyncReq()
205 …LNN_LOGI(LNN_CLOCK, "remove start time sync req. pkgName=%{public}s", AnonymizeWrapper(anonyPkgNam… in RemoveStartTimeSyncReq()
234 LNN_LOGE(LNN_CLOCK, "start time sync request msg para null"); in ProcessStartTimeSyncRequest()
240 LNN_LOGI(LNN_CLOCK, "start new time sync request"); in ProcessStartTimeSyncRequest()
255 LNN_LOGE(LNN_CLOCK, "start time sync fail"); in ProcessStartTimeSyncRequest()
299 … "update time sync request. accuracy:%{public}d->%{public}d, period:%{public}d->%{public}d", in TryUpdateTimeSyncReq()
[all …]
/foundation/arkui/ui_lite/interfaces/kits/components/
Dui_time_picker.h42 …* @brief Defines the time picker. The time is in the format of "hour:minute" or "hour:minute:secon…
43 * The selected time is highlighted.
97 * @brief Sets the time currently selected in the time picker.
99 …* @param value Indicates the pointer to the selected time, which is in the format of "hour:minute:…
101 …* The time must be a valid value. For example, the hour value must range from 0 to 23.
109 * @brief Obtains the time currently selected in the time picker.
111 …* @return Returns a string representing the selected time. The time is in the format of "hour:minu…
122 * @brief Obtains the hour currently selected in the time picker.
134 * @brief Obtains the minute currently selected in the time picker.
146 * @brief Obtains the second currently selected in the time picker.
[all …]
/foundation/multimedia/audio_framework/interfaces/inner_api/native/audiocommon/include/
Dtimestamp.h18 #include <sys/time.h>
27 …ts Timestamp information, including the frame position information and high-resolution time source.
33 time.tv_sec = 0; in Timestamp()
34 time.tv_nsec = 0; in Timestamp()
38 struct timespec time; variable
41 …* @brief Enumerates the time base of this <b>Timestamp</b>. Different timing methods are supported.
45 /** Monotonically increasing time, excluding the system sleep time */
/foundation/multimedia/media_foundation/engine/include/pipeline/core/
Di_media_sync_center.h42 * anchor a media time(pts) with real clock time.
45 * @param mediaTime media time based on HST_TIME_BASE
46 * @param supplier which report this time anchor
52 * get media time currently
53 * @return media time now
58 * get clock time now
59 * @return return clock time based on HST_TIME_BASE
64 * Get clock time anchored with pts
67 * @return clock time anchored with pts
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/test/unittest/common/storage/
Ddistributeddb_multi_ver_vacuum_test.cpp116 …Two = CheckVacuumTaskStatus(vacuum, DB_IDENTITY_A, VacuumTaskStatus::PAUSE_DONE, 1); // only 1 time
125 …ree = CheckVacuumTaskStatus(vacuum, DB_IDENTITY_A, VacuumTaskStatus::PAUSE_DONE, 1); // only 1 time
148 * @tc.steps: step6. wait for some time
151 …CheckVacuumTaskStatus(vacuum, DB_IDENTITY_A, VacuumTaskStatus::FINISH, 3, 1000); // 3 time, 1000 ms
169 * @tc.steps: step1. launch dbTaskB for databaseB, then wait for some time
174 …CheckVacuumTaskStatus(vacuum, DB_IDENTITY_B, VacuumTaskStatus::FINISH, 3, 1000); // 3 time, 1000 ms
183 …stepTwo = CheckVacuumTaskStatus(vacuum, DB_IDENTITY_B, VacuumTaskStatus::FINISH, 1); // only 1 time
193 …epThree = CheckVacuumTaskStatus(vacuum, DB_IDENTITY_B, VacuumTaskStatus::FINISH, 1); // only 1 time
202 …tepFour = CheckVacuumTaskStatus(vacuum, DB_IDENTITY_B, VacuumTaskStatus::FINISH, 1); // only 1 time
215 * @tc.steps: step6. wait for some time
[all …]
/foundation/graphic/graphic_2d/rosen/modules/render_service_base/src/animation/
Drs_cubic_bezier_interpolator.cpp21 inline float GetCubicBezierValue(const float time, const float ctl1, const float ctl2) in GetCubicBezierValue() argument
23 if (time < 0.0f) { in GetCubicBezierValue()
26 if (time > 1.0f) { in GetCubicBezierValue()
30 const float oneMinusTime = 1.0f - time; in GetCubicBezierValue()
31 …return three * oneMinusTime * oneMinusTime * time * ctl1 + three * oneMinusTime * time * time * ct… in GetCubicBezierValue()
32 time * time * time; in GetCubicBezierValue()

12345678910>>...176