Home
last modified time | relevance | path

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

12345678910>>...152

/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.cpp101 // time from keyframe; offset from js api in ParseAnimationStyle()
123 double time = StringUtils::StringToDouble(key) / 100.0; in ParseAnimationStyle() local
124 AddAnimatable(shadow, time, AnimatableType::PROPERTY_BOX_SHADOW); in ParseAnimationStyle()
136 …[](const std::string& value, const double& time, const std::string& timeStr, AnimationUtil& util) { in KeyframesAddKeyFrame()
137 … util.AddAnimatable(util.ParseColor(value), time, AnimatableType::PROPERTY_BG_COLOR); in KeyframesAddKeyFrame()
140 …[](const std::string& value, const double& time, const std::string& timeStr, AnimationUtil& util) { in KeyframesAddKeyFrame()
146 … util.AddAnimatable(backgroundImageSize, time, AnimatableType::PROPERTY_BACKGROUND_SIZE); in KeyframesAddKeyFrame()
149 …[](const std::string& value, const double& time, const std::string& timeStr, AnimationUtil& util) { in KeyframesAddKeyFrame()
155 … util.AddAnimatable(backgroundImagePosition, time, AnimatableType::PROPERTY_BACKGROUND_POSITION); in KeyframesAddKeyFrame()
158 …[](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.cpp104 double CriticalDampedModel::Position(double time) const in Position()
106 return (c1_ + c2_ * time) * exp(r_ * time); in Position()
109 double CriticalDampedModel::Velocity(double time) const in Velocity()
111 const double power = exp(r_ * time); in Velocity()
112 return r_ * (c1_ + c2_ * time) * power + c2_ * power; in Velocity()
134 double OverdampedModel::Position(double time) const in Position()
136 return c1_ * exp(r1_ * time) + c2_ * exp(r2_ * time); in Position()
139 double OverdampedModel::Velocity(double time) const in Velocity()
141 return c1_ * r1_ * exp(r1_ * time) + c2_ * r2_ * exp(r2_ * time); in Velocity()
163 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.cpp52 float time = frameInterval * i / duration; in GetZoomArray() local
53 float zoom = (currentZoom + (targetZoom - currentZoom) * GetInterpolation(time)); in GetZoomArray()
70 float CubicBezier::GetCubicBezierY(const float& time) in GetCubicBezierY() argument
72 return CUBIC_BEZIER_MULTIPLE * (1- time) * (1 - time) * time * CONTROL_POINT_Y1 + in GetCubicBezierY()
73 CUBIC_BEZIER_MULTIPLE * (1- time) * time * time * CONTROL_POINT_Y2 + time * time * time; in GetCubicBezierY()
76 float CubicBezier::GetCubicBezierX(const float& time) in GetCubicBezierX() argument
78 return CUBIC_BEZIER_MULTIPLE * (1- time) * (1 - time) * time * CONTROL_POINT_X1 + in GetCubicBezierX()
79 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.cpp59 void TransformConvertor::Convert(const std::string& key, const std::string& value, double time) in Convert() argument
63 iter->second(value, time, *this); in Convert()
67 void TransformConvertor::InsertIdentityKeyframe(double time) in InsertIdentityKeyframe() argument
69 noneKeyframeTimes_.push_back(static_cast<float>(time)); in InsertIdentityKeyframe()
77 for (float time : noneKeyframeTimes_) { in AddAnimationToTweenOption() local
78 noneKeyframes.push_back(AceType::MakeRefPtr<Keyframe<TransformOperation>>(time, operation)); in AddAnimationToTweenOption()
115 void TransformConvertor::AddKeyframe(AnimationType type, double time, const TranslateOperation& tra… in AddKeyframe() argument
120 auto keyframe = AceType::MakeRefPtr<Keyframe<TransformOperation>>(time, operation); in AddKeyframe()
124 void TransformConvertor::AddKeyframe(AnimationType type, double time, const SkewOperation& skew) in AddKeyframe() argument
129 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/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/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()
63 // convert time to localtime in FormatDateTimeByTimeZone()
85 std::string time = ""; in FormatDataTimeByString() local
93 time += " 00:00:00"; in FormatDataTimeByString()
96 time = dataTime.substr(position); in FormatDataTimeByString()
102 if (time.find(":") == data.npos) { in FormatDataTimeByString()
103 time += ":00:00"; in FormatDataTimeByString()
104 } else if (time.find_first_of(":") == time.find_last_of(":")) { in FormatDataTimeByString()
105 time += ":00"; in FormatDataTimeByString()
[all …]
/foundation/communication/dsoftbus/adapter/common/kernel/liteos_m/
Dsoftbus_adapter_timer.c18 #include <sys/time.h>
94 struct timeval time = {0}; in SoftBusGetTime() local
95 gettimeofday(&time, NULL); in SoftBusGetTime()
96 sysTime->sec = time.tv_sec; in SoftBusGetTime()
97 sysTime->usec = time.tv_usec; in SoftBusGetTime()
103 struct timeval time; in SoftBusGetSysTimeMs() local
104 time.tv_sec = 0; in SoftBusGetSysTimeMs()
105 time.tv_usec = 0; in SoftBusGetSysTimeMs()
106 if (gettimeofday(&time, NULL) != 0) { in SoftBusGetSysTimeMs()
107 COMM_LOGI(COMM_ADAPTER, "get sys time fail"); in SoftBusGetSysTimeMs()
[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/core/bus_center/lnn/lane_hub/time_sync/src/
Dlnn_time_sync_manager.c109 LNN_LOGE(LNN_CLOCK, "malloc start time sync request fail=%{public}s", pkgName); in CreateStartTimeSyncReq()
128 LNN_LOGE(LNN_CLOCK, "malloc time sync request info fail"); in CreateTimeSyncReqInfo()
133 LNN_LOGE(LNN_CLOCK, "copy time sync networkId fail"); in CreateTimeSyncReqInfo()
162 …LNN_LOGI(LNN_CLOCK, "add start time sync request. pkgName=%{public}s, accuracy=%{public}d, period=… in TryUpdateStartTimeSyncReq()
166 LNN_LOGE(LNN_CLOCK, "create start time sync request fail"); in TryUpdateStartTimeSyncReq()
184 LNN_LOGI(LNN_CLOCK, "remove start time sync req. pkgName=%{public}s", pkgName); in RemoveStartTimeSyncReq()
211 LNN_LOGE(LNN_CLOCK, "start time sync request msg para null"); in ProcessStartTimeSyncRequest()
217 LNN_LOGI(LNN_CLOCK, "start new time sync request"); in ProcessStartTimeSyncRequest()
232 LNN_LOGE(LNN_CLOCK, "start time sync fail"); in ProcessStartTimeSyncRequest()
271 … "update time sync request. accuracy:%{public}d->%{public}d, period:%{public}d->%{public}d", in TryUpdateTimeSyncReq()
[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()
202 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/communication/dsoftbus/adapter/common/kernel/posix/
Dsoftbus_adapter_timer.c21 #include <sys/time.h>
22 #include <time.h>
133 struct timespec time = {0}; in SoftBusGetTime() local
134 (void)clock_gettime(CLOCK_MONOTONIC, &time); in SoftBusGetTime()
136 sysTime->sec = time.tv_sec; in SoftBusGetTime()
137 sysTime->usec = time.tv_nsec / NS_PER_USECOND; in SoftBusGetTime()
143 struct timeval time; in SoftBusGetSysTimeMs() local
144 time.tv_sec = 0; in SoftBusGetSysTimeMs()
145 time.tv_usec = 0; in SoftBusGetSysTimeMs()
146 if (gettimeofday(&time, NULL) != 0) { in SoftBusGetSysTimeMs()
[all …]
/foundation/resourceschedule/work_scheduler/services/native/include/
Dwork_queue_manager.h86 * @brief Set time cycle.
88 * @param time The time.
90 void SetTimeCycle(uint32_t time);
92 * @brief Get the cycle of time.
94 * @return The cycle of time.
98 * @brief Set time retrigger.
100 * @param time The time.
102 void SetTimeRetrigger(int32_t time);
104 * @brief Get time retrigger.
106 * @param time The time.
/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/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/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/multimedia/av_codec/services/media_engine/modules/sink/
Di_media_sync_center.h45 * anchor a media time(pts) with real clock time.
48 * @param mediaTime media time based on HST_TIME_BASE
56 * get media time currently
57 * @return media time now
62 * get clock time now
63 * @return return clock time based on HST_TIME_BASE
68 * Get clock time anchored with pts
71 * @return clock time anchored with pts
/foundation/graphic/graphic_2d/
Dhisysevent.yaml73 STARTTIME: {type: UINT64, desc: begin time since last report}
90 INPUT_TIME: {type: UINT64, desc: input time when multimodel receive from kernel}
91 ANIMATION_START_TIME: {type: UINT64, desc: animation start time of the scene}
92 RENDER_TIME: {type: UINT64, desc: render time of the scene}
93 RESPONSE_LATENCY: {type: UINT64, desc: render time minus input time}
107 INPUT_TIME: {type: UINT64, desc: input time when multimodel receive from kernel}
108 ANIMATION_START_LATENCY: {type: UINT64, desc: animation start time minus input time}
109 ANIMATION_END_LATENCY: {type: UINT64, desc: end time of the scene}
110 E2E_LATENCY: {type: UINT64, desc: end to end time}
122 MAX_FRAMETIME: {type: UINT64, desc: max single frame time during the scene}
[all …]

12345678910>>...152