Home
last modified time | relevance | path

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

12345678910>>...66

/foundation/bundlemanager/bundle_framework/interfaces/inner_api/appexecfwk_base/src/
H A 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 in SetBundleScanStartTime()
68 SetBundleScanEndTime(int64_t time) SetBundleScanEndTime() argument
78 SetBundleDownloadStartTime(int64_t time) SetBundleDownloadStartTime() argument
88 SetBundleDownloadEndTime(int64_t time) SetBundleDownloadEndTime() argument
98 SetBundleInstallStartTime(int64_t time) SetBundleInstallStartTime() argument
108 SetBundleInstallEndTime(int64_t time) SetBundleInstallEndTime() argument
128 SetBundleUninstallStartTime(int64_t time) SetBundleUninstallStartTime() argument
138 SetBundleUninstallEndTime(int64_t time) SetBundleUninstallEndTime() argument
148 SetBundleParseStartTime(int64_t time) SetBundleParseStartTime() argument
158 SetBundleParseEndTime(int64_t time) SetBundleParseEndTime() argument
168 SetAmsLoadStartTime(int64_t time) SetAmsLoadStartTime() argument
178 SetAmsLoadEndTime(int64_t time) SetAmsLoadEndTime() argument
188 SetAbilityLoadStartTime(int64_t time) SetAbilityLoadStartTime() argument
198 SetAbilityLoadEndTime(int64_t time) SetAbilityLoadEndTime() argument
208 SetAppForkStartTime(int64_t time) SetAppForkStartTime() argument
218 SetAppForkEndTime(int64_t time) SetAppForkEndTime() argument
[all...]
/foundation/arkui/ace_engine/frameworks/core/animation/
H A 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, cons in KeyframesAddKeyFrame()
479 double time = StringUtils::StringToDouble(timeStr) / 100.0; KeyframesAddKeyFrame() local
[all...]
H A 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) cons
[all...]
H A 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
75 if (time > 1.
[all...]
H A 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()
[all...]
/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 * tim in GetCubicBezierY()
72 GetCubicBezierX(const float& time) GetCubicBezierX() argument
[all...]
/test/xts/hats/hdf/audio/idl/common/render_additional/src/
H A DAudioRenderMmapTest.cpp155 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...]
/foundation/arkui/ace_engine/frameworks/bridge/common/utils/
H A 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()
75 noneKeyframes.push_back(AceType::MakeRefPtr<Keyframe<TransformOperation>>(time, operation)); in AddAnimationToTweenOption()
112 void TransformConvertor::AddKeyframe(AnimationType type, double time, const TranslateOperation& translate) 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, operatio in AddKeyframe()
130 AddKeyframe(AnimationType type, double time, const ScaleOperation& scale) AddKeyframe() argument
139 AddKeyframe(AnimationType type, double time, const RotateOperation& rotate) AddKeyframe() argument
148 AddKeyframe(AnimationType type, double time, const Matrix4& matrix) AddKeyframe() argument
157 AddKeyframe(AnimationType type, double time, const PerspectiveOperation& distance) AddKeyframe() argument
[all...]
H A Dtransform_convertor.h41 void Convert(const std::string& key, const std::string& value, double time);
42 void InsertIdentityKeyframe(double time);
49 void AddKeyframe(AnimationType type, double time, const TranslateOperation& translate);
50 void AddKeyframe(AnimationType type, double time, const RotateOperation& rotate);
51 void AddKeyframe(AnimationType type, double time, const SkewOperation& skew);
52 void AddKeyframe(AnimationType type, double time, const ScaleOperation& scale);
53 void AddKeyframe(AnimationType type, double time, const Matrix4& matrix);
54 void AddKeyframe(AnimationType type, double time, const PerspectiveOperation& distance);
/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);
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/communication/dsoftbus/adapter/common/kernel/liteos_m/
H A Dsoftbus_adapter_timer.c18 #include <sys/time.h>
19 #include <time.h>
96 struct timeval time = {0}; in SoftBusGetTime() local
97 gettimeofday(&time, NULL); in SoftBusGetTime()
98 sysTime->sec = time.tv_sec; in SoftBusGetTime()
99 sysTime->usec = time.tv_usec; in SoftBusGetTime()
109 struct timespec time = {0}; in SoftBusGetRealTime() local
110 (void)clock_gettime(CLOCK_BOOTTIME, &time); in SoftBusGetRealTime()
111 sysTime->sec = time.tv_sec; in SoftBusGetRealTime()
112 sysTime->usec = time in SoftBusGetRealTime()
118 struct timeval time; SoftBusGetSysTimeMs() local
[all...]
/foundation/multimedia/player_framework/services/utils/
H A Dtime_format_utils.cpp45 return iso8601Str; // cant prase time in FormatDateTimeByTimeZone()
48 // time zone in FormatDateTimeByTimeZone()
63 // convert time to localtime in FormatDateTimeByTimeZone()
93 std::string time = ""; in FormatDataTimeByString() local
101 time += " 00:00:00"; in FormatDataTimeByString()
104 time = dataTime.substr(position); in FormatDataTimeByString()
110 if (time.find(":") == data.npos) { in FormatDataTimeByString()
111 time += ":00:00"; in FormatDataTimeByString()
112 } else if (time.find_first_of(":") == time in FormatDataTimeByString()
132 char time[maxDateTimeSize]; ConvertTimestampToDatetime() local
[all...]
/foundation/communication/dsoftbus/adapter/common/kernel/posix/
H A 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 in SoftBusGetRealTime()
157 struct timeval time; SoftBusGetSysTimeMs() local
[all...]
/test/testfwk/xdevice/plugins/devicetest/utils/
H A Dtime_util.py24 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...]
/device/soc/hisilicon/hi3516dv300/sdk_linux/drv/mpp/cbb/based/ext_inc/
H A Dvalg_plat.h37 #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...]
/foundation/arkui/ace_engine_lite/frameworks/src/core/base/
H A Dtime_util.cpp28 int32_t ParseToMilliseconds(const char *time) in ParseToMilliseconds() argument
30 if ((time == nullptr) || (strlen(time) == 0)) { in ParseToMilliseconds()
33 size_t size = strlen(time); in ParseToMilliseconds()
39 milliseconds = strtol(time, nullptr, DEC); in ParseToMilliseconds()
44 char last = time[size - 1]; in ParseToMilliseconds()
45 char penult = time[size - IDX_PENULT]; in ParseToMilliseconds()
61 if (strncpy_s(buffer, bufSize + 1, time, bufSize) == 0) { in ParseToMilliseconds()
/test/testfwk/xdevice/src/xdevice/_core/environment/
H A Ddevice_monitor.py19 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...]
/foundation/arkui/ace_engine/frameworks/core/components/picker/
H A Dpicker_time_component.cpp51 for (uint32_t minute = 0; minute <= 59; ++minute) { // time's minute from 0 to 59 in OnColumnsBuilding()
60 for (uint32_t second = 0; second <= 59; ++second) { // time's second from 0 to 59 in OnColumnsBuilding()
80 for (uint32_t hour = 0; hour <= 23; ++hour) { // time's hour from 0 to 23. in HandleHourColumnBuilding()
110 auto time = selectedTime_; in GetSelectedObject() local
112 time = GetCurrentTime(); in GetSelectedObject()
114 return time.ToString(true, hasSecond_, status); in GetSelectedObject()
185 PickerTime time; in GetCurrentTime() local
192 return time; in GetCurrentTime()
196 time.SetHour(hourColumn->GetCurrentIndex()); // hour from 0 to 23, index from 0 to 23 in GetCurrentTime()
198 time in GetCurrentTime()
300 DateTime time; GetHourFormatString() local
311 DateTime time; GetMinuteFormatString() local
318 DateTime time; GetSecondFormatString() local
[all...]
H A Dtoss_animation_controller.cpp18 #include <sys/time.h>
57 LOGW("toss time[%{public}lf] too small.", timeDiff); in Play()
68 double time = zeroSpeed / speed; in Play() local
69 time = std::log(time) / std::log(DRAG); in Play()
70 if (time < MIN_DURATION) { in Play()
71 LOGW("toss time[%{public}lf] to small.", time); in Play()
76 int nTime = static_cast<int>(time); in Play()
78 toss_ = AceType::MakeRefPtr<PickerAnimation>(pipe_, 0.0, time, in Play()
[all...]
/test/testfwk/xdevice/plugins/ohos/src/ohos/environment/
H A Ddmlib_lite.py20 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...]
/foundation/graphic/graphic_2d/rosen/modules/render_service_base/src/animation/
H A 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 * ctl2 + in GetCubicBezierValue()
32 time * time * time; in GetCubicBezierValue()
[all...]
/foundation/systemabilitymgr/samgr/test/autotest/testcases/level0/
H A Dcase26_init001.py17 import time namespace
27 start_time = time.monotonic()
29 time.sleep(0.1)
30 if time.monotonic() - start_time > timeout:
55 time.sleep(1)
66 time.sleep(30)
78 time.sleep(30)
/foundation/distributeddatamgr/kv_store/test/fuzztest/taskscheduler_fuzzer/
H A Dtaskscheduler_fuzzer.cpp26 void AtFuzz(size_t time) in AtFuzz() argument
30 std::chrono::duration<int>(time % MAX_DELAY_TIME); in AtFuzz()
36 void EveryFUZZ(size_t time) in EveryFUZZ() argument
39 std::chrono::duration<int> delay(time % MAX_DELAY_TIME); in EveryFUZZ()
40 std::chrono::duration<int> interval(time % MAX_INTERVAL_TIME); in EveryFUZZ()
50 void ResetFuzz(size_t time) in ResetFuzz() argument
53 std::chrono::duration<int> interval(time % MAX_INTERVAL_TIME); in ResetFuzz()
/foundation/filemanagement/dfs_service/services/cloudsyncservice/src/cycle_task/
H A Dcycle_task.cpp51 void CycleTask::SetLastRunTime(std::time_t time) in SetLastRunTime() argument
57 cloudPrefImpl_->SetLong("lastRunTime-" + taskName_, time); in SetLastRunTime()
60 void CycleTask::GetLastRunTime(std::time_t &time) in GetLastRunTime() argument
64 time = std::time(nullptr); in GetLastRunTime()
67 cloudPrefImpl_->GetLong("lastRunTime-" + taskName_, time); in GetLastRunTime()
93 std::time_t currentTime = std::time(nullptr); in RunTask()
/foundation/multimedia/av_session/frameworks/js/napi/session/src/
H A Dnapi_control_command.cpp169 int64_t time {}; in GetForwardTime()
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 parameter failed"); in GetForwardTime()
184 int64_t time {}; in SetForwardTime()
185 CHECK_AND_RETURN_RET_LOG(in.GetForwardTime(time) == AVSESSION_SUCCESS, napi_invalid_arg, "get parameter failed"); in SetForwardTime()
186 SLOGD("SetForwardTime with time %{public}jd", static_cast<int64_t>(time)); in SetForwardTime()
[all...]

Completed in 9 milliseconds

12345678910>>...66