/foundation/bundlemanager/bundle_framework/interfaces/inner_api/appexecfwk_base/src/ |
H A D | perf_profile.cpp | 38 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 D | animation_util.cpp | 104 // 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 D | spring_model.cpp | 103 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 D | curve.h | 30 // 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...] |
/kernel/linux/linux-6.6/lib/ |
H A D | find_bit_benchmark.c | 39 ktime_t time; in test_find_first_bit() local 41 time = ktime_get(); in test_find_first_bit() 46 time = ktime_get() - time; in test_find_first_bit() 47 pr_err("find_first_bit: %18llu ns, %6ld iterations\n", time, cnt); in test_find_first_bit() 56 ktime_t time; in test_find_first_and_bit() local 60 time = ktime_get(); in test_find_first_and_bit() 65 time = ktime_get() - time; in test_find_first_and_bit() 66 pr_err("find_first_and_bit: %18llu ns, %6ld iterations\n", time, cn in test_find_first_and_bit() 74 ktime_t time; test_find_next_bit() local 88 ktime_t time; test_find_next_zero_bit() local 102 ktime_t time; test_find_last_bit() local 121 ktime_t time; test_find_nth_bit() local 138 ktime_t time; test_find_next_and_bit() local [all...] |
/foundation/multimedia/camera_framework/services/camera_service/src/smooth_zoom/ |
H A D | cubic_bezier.cpp | 48 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...] |
/kernel/linux/linux-5.10/tools/perf/scripts/python/ |
H A D | stat-cpi.py | 10 def get_key(time, event, cpu, thread): 11 return "%d-%s-%d-%d" % (time, event, cpu, thread) 13 def store_key(time, cpu, thread): 14 if (time not in times): 15 times.append(time) 23 def store(time, event, cpu, thread, val, ena, run): 24 #print("event %s cpu %d, thread %d, time %d, val %d, ena %d, run %d" % 25 # (event, cpu, thread, time, val, ena, run)) 27 store_key(time, cpu, thread) 28 key = get_key(time, even [all...] |
/kernel/linux/linux-6.6/tools/perf/scripts/python/ |
H A D | stat-cpi.py | 10 def get_key(time, event, cpu, thread): 11 return "%d-%s-%d-%d" % (time, event, cpu, thread) 13 def store_key(time, cpu, thread): 14 if (time not in times): 15 times.append(time) 23 def store(time, event, cpu, thread, val, ena, run): 24 #print("event %s cpu %d, thread %d, time %d, val %d, ena %d, run %d" % 25 # (event, cpu, thread, time, val, ena, run)) 27 store_key(time, cpu, thread) 28 key = get_key(time, even [all...] |
/kernel/linux/linux-5.10/sound/core/seq/ |
H A D | seq_prioq.c | 7 #include <linux/time.h> 91 return (snd_seq_compare_tick_time(&a->time.tick, &b->time.tick)); in compare_timestamp() 93 /* compare real time */ in compare_timestamp() 94 return (snd_seq_compare_real_time(&a->time.time, &b->time.time)); in compare_timestamp() 108 if (a->time.tick > b->time in compare_timestamp_rel() [all...] |
/kernel/linux/linux-6.6/sound/core/seq/ |
H A D | seq_prioq.c | 7 #include <linux/time.h> 91 return (snd_seq_compare_tick_time(&a->time.tick, &b->time.tick)); in compare_timestamp() 93 /* compare real time */ in compare_timestamp() 94 return (snd_seq_compare_real_time(&a->time.time, &b->time.time)); in compare_timestamp() 108 if (a->time.tick > b->time in compare_timestamp_rel() [all...] |
/kernel/linux/linux-6.6/drivers/rtc/ |
H A D | rtc-mc146818-lib.c | 34 * readout is unspecified. The maximum update time is ~2ms. Poll in mc146818_avoid_UIP() 81 pr_warn("Reading current time from RTC took around %li ms\n", in mc146818_avoid_UIP() 101 struct rtc_time *time; member 121 p->time->tm_sec = seconds; in mc146818_get_time_callback() 122 p->time->tm_min = CMOS_READ(RTC_MINUTES); in mc146818_get_time_callback() 123 p->time->tm_hour = CMOS_READ(RTC_HOURS); in mc146818_get_time_callback() 124 p->time->tm_mday = CMOS_READ(RTC_DAY_OF_MONTH); in mc146818_get_time_callback() 125 p->time->tm_mon = CMOS_READ(RTC_MONTH); in mc146818_get_time_callback() 126 p->time->tm_year = CMOS_READ(RTC_YEAR); in mc146818_get_time_callback() 143 * mc146818_get_time - Get the current time fro 154 mc146818_get_time(struct rtc_time *time, int timeout) mc146818_get_time() argument 212 mc146818_set_time(struct rtc_time *time) mc146818_set_time() argument [all...] |
H A D | rtc-pcf50633.c | 51 u_int8_t time[PCF50633_TI_EXTENT]; member 64 rtc->tm_sec = bcd2bin(pcf->time[PCF50633_TI_SEC]); in pcf2rtc_time() 65 rtc->tm_min = bcd2bin(pcf->time[PCF50633_TI_MIN]); in pcf2rtc_time() 66 rtc->tm_hour = bcd2bin(pcf->time[PCF50633_TI_HOUR]); in pcf2rtc_time() 67 rtc->tm_wday = bcd2bin(pcf->time[PCF50633_TI_WKDAY]); in pcf2rtc_time() 68 rtc->tm_mday = bcd2bin(pcf->time[PCF50633_TI_DAY]); in pcf2rtc_time() 69 rtc->tm_mon = bcd2bin(pcf->time[PCF50633_TI_MONTH]) - 1; in pcf2rtc_time() 70 rtc->tm_year = bcd2bin(pcf->time[PCF50633_TI_YEAR]) + 100; in pcf2rtc_time() 75 pcf->time[PCF50633_TI_SEC] = bin2bcd(rtc->tm_sec); in rtc2pcf_time() 76 pcf->time[PCF50633_TI_MI in rtc2pcf_time() [all...] |
H A D | rtc-wm8350.c | 13 #include <linux/time.h> 29 * Read current time and date in RTC 38 * Read the time twice and compare. in wm8350_rtc_readtime() 39 * If time1 == time2, then time is valid else retry. in wm8350_rtc_readtime() 83 dev_err(dev, "timed out reading RTC time\n"); in wm8350_rtc_readtime() 88 * Set current time and date in RTC 93 u16 time[4]; in wm8350_rtc_settime() local 97 time[0] = tm->tm_sec; in wm8350_rtc_settime() 98 time[0] |= tm->tm_min << WM8350_RTC_MINS_SHIFT; in wm8350_rtc_settime() 99 time[ in wm8350_rtc_settime() 143 u16 time[4]; wm8350_rtc_readalarm() local 247 u16 time[3]; wm8350_rtc_setalarm() local [all...] |
/kernel/linux/linux-5.10/lib/ |
H A D | find_bit_benchmark.c | 39 ktime_t time; in test_find_first_bit() local 41 time = ktime_get(); in test_find_first_bit() 46 time = ktime_get() - time; in test_find_first_bit() 47 pr_err("find_first_bit: %18llu ns, %6ld iterations\n", time, cnt); in test_find_first_bit() 55 ktime_t time; in test_find_next_bit() local 57 time = ktime_get(); in test_find_next_bit() 60 time = ktime_get() - time; in test_find_next_bit() 61 pr_err("find_next_bit: %18llu ns, %6ld iterations\n", time, cn in test_find_next_bit() 69 ktime_t time; test_find_next_zero_bit() local 83 ktime_t time; test_find_last_bit() local 103 ktime_t time; test_find_next_and_bit() local [all...] |
/kernel/linux/linux-5.10/drivers/rtc/ |
H A D | rtc-mc146818-lib.c | 29 * readout is unspecified. The maximum update time is ~2ms. Poll in mc146818_avoid_UIP() 106 int mc146818_get_time(struct rtc_time *time) in mc146818_get_time() argument 120 memset(time, 0, sizeof(*time)); in mc146818_get_time() 129 * readout is unspecified. The maximum update time is ~2ms. Poll in mc146818_get_time() 136 time->tm_sec = CMOS_READ(RTC_SECONDS); in mc146818_get_time() 145 if (time->tm_sec != CMOS_READ(RTC_SECONDS)) { in mc146818_get_time() 156 time->tm_min = CMOS_READ(RTC_MINUTES); in mc146818_get_time() 157 time->tm_hour = CMOS_READ(RTC_HOURS); in mc146818_get_time() 158 time in mc146818_get_time() 231 mc146818_set_time(struct rtc_time *time) mc146818_set_time() argument [all...] |
H A D | rtc-pcf50633.c | 51 u_int8_t time[PCF50633_TI_EXTENT]; member 64 rtc->tm_sec = bcd2bin(pcf->time[PCF50633_TI_SEC]); in pcf2rtc_time() 65 rtc->tm_min = bcd2bin(pcf->time[PCF50633_TI_MIN]); in pcf2rtc_time() 66 rtc->tm_hour = bcd2bin(pcf->time[PCF50633_TI_HOUR]); in pcf2rtc_time() 67 rtc->tm_wday = bcd2bin(pcf->time[PCF50633_TI_WKDAY]); in pcf2rtc_time() 68 rtc->tm_mday = bcd2bin(pcf->time[PCF50633_TI_DAY]); in pcf2rtc_time() 69 rtc->tm_mon = bcd2bin(pcf->time[PCF50633_TI_MONTH]) - 1; in pcf2rtc_time() 70 rtc->tm_year = bcd2bin(pcf->time[PCF50633_TI_YEAR]) + 100; in pcf2rtc_time() 75 pcf->time[PCF50633_TI_SEC] = bin2bcd(rtc->tm_sec); in rtc2pcf_time() 76 pcf->time[PCF50633_TI_MI in rtc2pcf_time() [all...] |
H A D | rtc-dm355evm.c | 35 union evm_time time; in dm355evm_rtc_read_time() local 48 if (tries && time.bytes[0] == status) in dm355evm_rtc_read_time() 50 time.bytes[0] = status; in dm355evm_rtc_read_time() 55 if (tries && time.bytes[1] == status) in dm355evm_rtc_read_time() 57 time.bytes[1] = status; in dm355evm_rtc_read_time() 62 if (tries && time.bytes[2] == status) in dm355evm_rtc_read_time() 64 time.bytes[2] = status; in dm355evm_rtc_read_time() 69 if (tries && time.bytes[3] == status) in dm355evm_rtc_read_time() 71 time.bytes[3] = status; in dm355evm_rtc_read_time() 75 dev_dbg(dev, "read timestamp %08x\n", time in dm355evm_rtc_read_time() 83 union evm_time time; dm355evm_rtc_set_time() local [all...] |
H A D | rtc-wm8350.c | 13 #include <linux/time.h> 29 * Read current time and date in RTC 38 * Read the time twice and compare. in wm8350_rtc_readtime() 39 * If time1 == time2, then time is valid else retry. in wm8350_rtc_readtime() 83 dev_err(dev, "timed out reading RTC time\n"); in wm8350_rtc_readtime() 88 * Set current time and date in RTC 93 u16 time[4]; in wm8350_rtc_settime() local 97 time[0] = tm->tm_sec; in wm8350_rtc_settime() 98 time[0] |= tm->tm_min << WM8350_RTC_MINS_SHIFT; in wm8350_rtc_settime() 99 time[ in wm8350_rtc_settime() 143 u16 time[4]; wm8350_rtc_readalarm() local 247 u16 time[3]; wm8350_rtc_setalarm() local [all...] |
/foundation/arkui/ace_engine/frameworks/bridge/common/utils/ |
H A D | transform_convertor.cpp | 56 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...] |
/foundation/bundlemanager/bundle_framework/interfaces/inner_api/appexecfwk_base/include/ |
H A D | perf_profile.h | 30 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...] |
/kernel/linux/linux-5.10/drivers/gpu/drm/nouveau/nvkm/core/ |
H A D | subdev.c | 114 s64 time; in nvkm_subdev_fini() local 117 time = ktime_to_us(ktime_get()); in nvkm_subdev_fini() 130 time = ktime_to_us(ktime_get()) - time; in nvkm_subdev_fini() 131 nvkm_trace(subdev, "%s completed in %lldus\n", action, time); in nvkm_subdev_fini() 138 s64 time; in nvkm_subdev_preinit() local 141 time = ktime_to_us(ktime_get()); in nvkm_subdev_preinit() 151 time = ktime_to_us(ktime_get()) - time; in nvkm_subdev_preinit() 152 nvkm_trace(subdev, "preinit completed in %lldus\n", time); in nvkm_subdev_preinit() 159 s64 time; nvkm_subdev_init() local 166 s64 time; nvkm_subdev_init() local 197 s64 time; nvkm_subdev_del() local [all...] |
/foundation/communication/dsoftbus/adapter/common/kernel/liteos_m/ |
H A D | softbus_adapter_timer.c | 18 #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...] |
/kernel/linux/linux-6.6/drivers/gpu/drm/nouveau/nvkm/core/ |
H A D | subdev.c | 58 s64 time; in nvkm_subdev_fini() local 61 time = ktime_to_us(ktime_get()); in nvkm_subdev_fini() 75 time = ktime_to_us(ktime_get()) - time; in nvkm_subdev_fini() 76 nvkm_trace(subdev, "%s completed in %lldus\n", action, time); in nvkm_subdev_fini() 83 s64 time; in nvkm_subdev_preinit() local 86 time = ktime_to_us(ktime_get()); in nvkm_subdev_preinit() 96 time = ktime_to_us(ktime_get()) - time; in nvkm_subdev_preinit() 97 nvkm_trace(subdev, "preinit completed in %lldus\n", time); in nvkm_subdev_preinit() 104 s64 time; nvkm_subdev_oneinit_() local 127 s64 time; nvkm_subdev_init_() local 219 s64 time; nvkm_subdev_del() local [all...] |
/kernel/linux/linux-6.6/fs/fat/ |
H A D | fat_test.c | 26 __le16 time; member 36 .time = cpu_to_le16(0), 44 .time = cpu_to_le16(49021), 52 .time = cpu_to_le16(0), 60 .time = cpu_to_le16(49021), 68 .time = cpu_to_le16(0), 76 .time = cpu_to_le16(0), 84 .time = cpu_to_le16(0), 92 .time = cpu_to_le16(48064), 100 .time 158 __le16 date, time; fat_time_unix2fat_test() local [all...] |
/foundation/multimedia/player_framework/services/utils/ |
H A D | time_format_utils.cpp | 45 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...] |