/foundation/arkui/ace_engine/frameworks/bridge/common/dom/ |
H A D | dom_progress.cpp | 32 Gradient ParseGradient(const DOMProgress& progress, const std::string& value) in ParseGradient() argument 52 gradient.AddColor(GradientColor(progress.ParseColor(colors->GetArrayItem(index)->ToString().substr( in ParseGradient() 75 [](const std::string& val, DOMProgress& progress) { progress.clockwiseDirection_ = StringToBool(val); } }, in SetSpecializedAttr() 77 [](const std::string& val, DOMProgress& progress) { progress.showAnimationEffect_ = StringToBool(val); } }, in SetSpecializedAttr() 79 [](const std::string& val, DOMProgress& progress) { in SetSpecializedAttr() 80 progress.percent_ = StringToDouble(val); in SetSpecializedAttr() 81 if (progress.percent_ > progress in SetSpecializedAttr() [all...] |
/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/jsview/models/ |
H A D | progress_model_impl.cpp | 35 LOGE("progress Theme is null"); in Create() 52 auto progress = AceType::DynamicCast<ProgressComponent>(component); in SetValue() local 53 if (!progress) { in SetValue() 54 LOGI("progress component is null."); in SetValue() 58 auto maxValue_ = progress->GetMaxValue(); in SetValue() 63 progress->SetValue(value); in SetValue() 69 auto progress = AceType::DynamicCast<ProgressComponent>(component); in SetColor() local 70 if (!progress) { in SetColor() 71 LOGI("progress component is null."); in SetColor() 74 RefPtr<TrackComponent> track = progress in SetColor() 82 auto progress = AceType::DynamicCast<ProgressComponent>(component); SetBackgroundColor() local 99 auto progress = AceType::DynamicCast<ProgressComponent>(component); SetStrokeWidth() local 111 auto progress = AceType::DynamicCast<ProgressComponent>(component); SetScaleCount() local 125 auto progress = AceType::DynamicCast<ProgressComponent>(component); SetScaleWidth() local [all...] |
/foundation/filemanagement/dfs_service/frameworks/native/cloudsync_kit_inner/src/ |
H A D | cloud_download_callback_stub.cpp | 50 sptr<DownloadProgressObj> progress = data.ReadParcelable<DownloadProgressObj>(); in HandleOnProcess() local 51 if (!progress) { in HandleOnProcess() 57 std::string path = progress->path; in HandleOnProcess() 63 progress->path = uri; in HandleOnProcess() 65 if (progress->state != DownloadProgressObj::RUNNING) { in HandleOnProcess() 67 uriMgr.CheckDownloadIdPathMap(progress->downloadId); in HandleOnProcess() 71 OnDownloadProcess(*progress); in HandleOnProcess()
|
H A D | cloud_download_callback_client.cpp | 22 void CloudDownloadCallbackClient::OnDownloadProcess(const DownloadProgressObj& progress) in OnDownloadProcess() argument 28 callback_->OnDownloadProcess(progress); in OnDownloadProcess()
|
/foundation/bundlemanager/bundle_framework/interfaces/inner_api/appexecfwk_base/src/free_install/ |
H A D | install_result.cpp | 35 const char* JSON_KEY_INSTALLRESULT_PROGRESS = "progress"; 76 void to_json(nlohmann::json &jsonObject, const Progress &progress) in to_json() argument 79 {JSON_KEY_PROGRESS_DOWNLOADSIZE, progress.downloadSize}, in to_json() 80 {JSON_KEY_PROGRESS_TOTALSIZE, progress.totalSize} in to_json() 84 void from_json(const nlohmann::json &jsonObject, Progress &progress) in from_json() argument 91 progress.downloadSize, in from_json() 99 progress.totalSize, in from_json() 105 LOG_E(BMS_TAG_DEFAULT, "read module progress from jsonObject error, error code : %{public}d", parseResult); in from_json() 114 {JSON_KEY_INSTALLRESULT_PROGRESS, installResult.progress} in to_json() 139 installResult.progress, in from_json() 192 Progress *progress = new (std::nothrow) Progress(); Unmarshalling() local [all...] |
/foundation/arkui/ace_engine/frameworks/core/components/progress/ |
H A D | render_progress.cpp | 16 #include "core/components/progress/render_progress.h" 22 const RefPtr<ProgressComponent> progress = AceType::DynamicCast<ProgressComponent>(component); in Update() local 23 component_ = progress; in Update() 24 min_ = progress->GetMinValue(); in Update() 25 max_ = progress->GetMaxValue(); in Update() 26 value_ = progress->GetValue(); in Update() 27 cachedValue_ = progress->GetCachedValue(); in Update() 28 trackThickness_ = NormalizeToPx(progress->GetTrack()->GetTrackThickness()); in Update() 30 type_ = progress->GetType(); in Update() 62 progressEvent.componentType = "progress"; in UpdateAccessibilityAttr() [all...] |
H A D | rosen_render_progress.cpp | 16 #include "core/components/progress/rosen_render_progress.h" 24 const RefPtr<ProgressComponent> progress = AceType::DynamicCast<ProgressComponent>(component); in Update() local 27 track_ = progress->GetTrack()->CreateRenderNode(); in Update() 31 } else if (type_ != progress->GetType()) { in Update() 33 track_ = progress->GetTrack()->CreateRenderNode(); in Update() 38 track_->Update(progress->GetTrack()); in Update() 40 track->SetAnimationPlay(progress->GetAnimationPlay()); in Update()
|
/foundation/graphic/graphic_3d/lume/metaobject/src/animation/ |
H A D | animation_state.cpp | 118 float progress = static_cast<float>(state_.Tick(time).ToMilliseconds()) / in Step() local 121 return Move(IAnimationInternal::MoveParams::FromProgress(progress)); in Step() 131 const float progress = step.progress; variable 133 if (progress >= 1.f) { 136 if (progress <= 0.f) { 151 float progress = step.progress; in Move() local 162 const auto overflow = progress - BASE_NS::Math::floor(progress); in Move() 433 auto progress = step.progress; EvaluateValue() local [all...] |
H A D | track_animation_state.cpp | 156 bool TrackAnimationState::IsInCurrentRange(float progress) const noexcept 164 progress, currentRangeStartTs_, currentRangeEndTs_, currentIndex_ == keyframeArray_->GetSize() - 1); 167 BASE_NS::pair<uint32_t, float> TrackAnimationState::UpdateIndex(float progress) in UpdateIndex() argument 170 if (IsInCurrentRange(progress)) { in UpdateIndex() 171 return { index, GetCurrentTrackProgress(progress) }; in UpdateIndex() 183 if (progress < startTs || progress > endTs) { in UpdateIndex() 191 if (IsBetween(progress, startTs, endTs, mid >= endIndex)) { in UpdateIndex() 196 if (progress < startTs) { in UpdateIndex() 204 return { index, GetCurrentTrackProgress(progress) }; in UpdateIndex() [all...] |
H A D | intf_animation_internal.h | 43 /** A previously RUNNING animation has been paused. Its progress is between [0,1[. */ 69 /** Returns a MoveParams object with given progress */ 70 constexpr static MoveParams FromProgress(float progress) noexcept 73 params.step = IAnimationModifier::StepData(progress); 76 /** Returns a MoveParams object with given progress and target state */ 77 constexpr static MoveParams FromProgress(float progress, AnimationTargetState state) noexcept 80 params.step = IAnimationModifier::StepData(progress);
|
H A D | track_animation_state.h | 66 * @brief Updates keyframe index based on given progress. 67 * @param progress The animation progress to update to. 68 * @return Index and track progress at given animation progress. 70 BASE_NS::pair<uint32_t, float> UpdateIndex(float progress); 89 float GetCurrentTrackProgress(float progress) const noexcept; 90 bool IsInCurrentRange(float progress) const noexcept;
|
/foundation/filemanagement/dfs_service/test/unittests/cloudsync_api/cloudsync_impl/ |
H A D | cloud_download_callback_stub_test.cpp | 34 void OnDownloadProcess(const DownloadProgressObj& progress) override 150 DownloadProgressObj progress; in HWTEST_F() local 151 progress.path = "/data"; in HWTEST_F() 152 bool prog = data.WriteParcelable(&progress); in HWTEST_F() 175 DownloadProgressObj progress; in HWTEST_F() local 176 progress.path = ""; in HWTEST_F() 177 bool prog = data.WriteParcelable(&progress); in HWTEST_F() 200 DownloadProgressObj progress; in HWTEST_F() local 201 progress.path = "/data"; in HWTEST_F() 202 progress in HWTEST_F() [all...] |
H A D | cloud_download_callback_client_test.cpp | 38 void OnDownloadProcess(const DownloadProgressObj &progress) in OnDownloadProcess() argument 74 DownloadProgressObj progress; in HWTEST_F() local 77 cloudCallback.OnDownloadProcess(progress); in HWTEST_F() 96 DownloadProgressObj progress; in HWTEST_F() local 99 cloudCallback.OnDownloadProcess(progress); in HWTEST_F()
|
/foundation/arkui/ace_engine/frameworks/base/geometry/ |
H A D | transform_util.cpp | 174 const TranslateOperation& to, const TranslateOperation& from, float progress) in Blend() 177 float scaleA = progress; in Blend() 178 float scaleB = 1 - progress; in Blend() 186 ScaleOperation ScaleOperation::Blend(const ScaleOperation& to, const ScaleOperation& from, float progress) in Blend() argument 189 float scaleA = progress; in Blend() 190 float scaleB = 1 - progress; in Blend() 197 SkewOperation SkewOperation::Blend(const SkewOperation& to, const SkewOperation& from, float progress) in Blend() argument 200 float scaleA = progress; in Blend() 201 float scaleB = 1 - progress; in Blend() 207 RotateOperation RotateOperation::Blend(const RotateOperation& to, const RotateOperation& from, float progress) in Blend() argument 173 Blend( const TranslateOperation& to, const TranslateOperation& from, float progress) Blend() argument 225 Blend( const PerspectiveOperation& to, const PerspectiveOperation& from, float progress) Blend() argument 233 Blend( const TransformOperation& to, const TransformOperation& from, float progress) Blend() argument 241 BlendInner(Create(ret.type_), from, progress, ret); Blend() local 283 BlendInner( const TransformOperation& to, const TransformOperation& from, float progress, TransformOperation& ret) BlendInner() argument 366 Blend( const TransformOperations& to, const TransformOperations& from, float progress) Blend() argument 438 BlendInner(const TransformOperations& from, float progress, TransformOperations& out) const BlendInner() argument 471 BlendDecomposedTransforms( const DecomposedTransform& to, const DecomposedTransform& from, double progress) BlendDecomposedTransforms() argument [all...] |
H A D | transform_util.h | 41 static TranslateOperation Blend(const TranslateOperation& to, const TranslateOperation& from, float progress); 56 static ScaleOperation Blend(const ScaleOperation& to, const ScaleOperation& from, float progress); 69 static SkewOperation Blend(const SkewOperation& to, const SkewOperation& from, float progress); 85 static RotateOperation Blend(const RotateOperation& to, const RotateOperation& from, float progress); 97 static PerspectiveOperation Blend(const PerspectiveOperation& to, const PerspectiveOperation& from, float progress); 164 static TransformOperation Blend(const TransformOperation& to, const TransformOperation& from, float progress); 169 const TransformOperation& to, const TransformOperation& from, float progress, TransformOperation& out); 178 static TransformOperations Blend(const TransformOperations& to, const TransformOperations& from, float progress); 224 void BlendInner(const TransformOperations& from, float progress, TransformOperations& out) const; 231 const DecomposedTransform& to, const DecomposedTransform& from, double progress); [all...] |
/foundation/distributeddatamgr/udmf/framework/innerkitsimpl/client/ |
H A D | async_obtain_data.cpp | 131 ProgressInfo progress{ "", ASYNC_IDLE, 0 }; in InvokeCallback() 132 progress.status = taskStatus_; in InvokeCallback() 133 progress.srcDevName = processInfo_.srcDevName; in InvokeCallback() 135 progress.progress = CalProgress(); in InvokeCallback() 136 if (progress.progress <= lastProgress_) { in InvokeCallback() 137 progress.progress = lastProgress_; in InvokeCallback() 139 lastProgress_ = progress in InvokeCallback() [all...] |
/foundation/graphic/graphic_3d/lume/metaobject/include/meta/interface/animation/ |
H A D | intf_animation_modifier.h | 60 explicit constexpr StepData(float progress) noexcept : progress(progress) {} 61 /** Current progress. */ 62 float progress {}; 68 * current progress.
|
/foundation/arkui/ace_engine/frameworks/core/components/common/properties/ |
H A D | shadow.cpp | 23 Shadow Shadow::Blend(const Shadow& to, const Shadow& from, float progress) in Blend() argument 25 auto offset = from.offset_ + (to.offset_ - from.offset_) * progress; in Blend() 26 auto blurRadius = from.blurRadius_ + (to.blurRadius_ - from.blurRadius_) * progress; in Blend() 27 auto spreadRadius = from.spreadRadius_ + (to.spreadRadius_ - from.spreadRadius_) * progress; in Blend() 29 auto color = evaluator.Evaluate(from.color_, to.color_, progress); in Blend()
|
/foundation/arkui/ace_engine/frameworks/bridge/cj_frontend/interfaces/cj_ffi/ |
H A D | cj_page_transition_ffi.cpp | 71 void FfiPageTransitionOnEnter(void (*callback)(int type, double progress)) in FfiPageTransitionOnEnter() argument 74 RouteType type, float progress) { ffiCallBack(static_cast<int>(type), progress); }; in FfiPageTransitionOnEnter() 78 void FfiPageTransitionOnExit(void (*callback)(int type, double progress)) in FfiPageTransitionOnExit() argument 81 RouteType type, float progress) { ffiCallBack(static_cast<int>(type), progress); }; in FfiPageTransitionOnExit()
|
/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/engine/functions/ |
H A D | js_animator_function.cpp | 22 void JsAnimatorFunction::Execute(float progress) in Execute() argument 25 params[0] = JSRef<JSVal>::Make(ToJSValue(progress)); in Execute()
|
H A D | js_page_transition_function.cpp | 23 void JsPageTransitionFunction::Execute(RouteType routeType, float progress) in Execute() argument 27 params[1] = JSRef<JSVal>::Make(ToJSValue(progress)); in Execute()
|
/foundation/graphic/graphic_3d/lume/metaobject/src/animation/modifiers/ |
H A D | reverse.cpp | 32 step.progress = 1.f - step.progress; in ProcessOnStep()
|
/foundation/arkui/ace_engine/frameworks/core/components/declaration/button/ |
H A D | button_progress_controller.h | 31 void SetProgress(uint32_t progress) in SetProgress() argument 34 progressCallback_(progress); in SetProgress()
|
/foundation/multimedia/player_framework/frameworks/native/video_editor/test/unittest/ |
H A D | ut_common_data.h | 38 void onProgress(uint32_t progress) override 40 progress_ = progress;
|
/foundation/ability/dmsfwk/services/dtbschedmgr/test/unittest/ |
H A D | distributed_sched_test_util.cpp | 49 void OnStatusNotify(const int progress) override; 69 void StatusReceiverImpl::OnStatusNotify(const int progress) in OnStatusNotify() argument 71 iProgress_ = progress; in OnStatusNotify() 72 HILOGI("OnStatusNotify progress:%{public}d", progress); in OnStatusNotify()
|