Home
last modified time | relevance | path

Searched refs:progress (Results 1 – 25 of 159) sorted by relevance

1234567

/foundation/arkui/ace_engine/frameworks/bridge/common/dom/
Ddom_progress.cpp36 Gradient ParseGradient(const DOMProgress& progress, const std::string& value) in ParseGradient() argument
58 …gradient.AddColor(GradientColor(progress.ParseColor(colors->GetArrayItem(index)->ToString().substr( in ParseGradient()
81 …[](const std::string& val, DOMProgress& progress) { progress.clockwiseDirection_ = StringToBool(va… in SetSpecializedAttr()
83 …[](const std::string& val, DOMProgress& progress) { progress.showAnimationEffect_ = StringToBool(v… in SetSpecializedAttr()
85 [](const std::string& val, DOMProgress& progress) { in SetSpecializedAttr()
86 progress.percent_ = StringToDouble(val); in SetSpecializedAttr()
87 if (progress.percent_ > progress.max_) { in SetSpecializedAttr()
88 progress.percent_ = progress.max_; in SetSpecializedAttr()
90 if (progress.percent_ < progress.min_) { in SetSpecializedAttr()
91 progress.percent_ = progress.min_; in SetSpecializedAttr()
[all …]
/foundation/arkui/ace_engine/frameworks/core/components/test/unittest/progress/
Dprogress_creator_test.cpp61 void CompareAllProperty(const RefPtr<ProgressComponent>& progress);
62 void CompareAllDefault(const RefPtr<ProgressComponent>& progress);
84 void ProgressCreatorTest::CompareAllProperty(const RefPtr<ProgressComponent>& progress) in CompareAllProperty() argument
86 double min = progress->GetMinValue(); in CompareAllProperty()
87 double max = progress->GetMaxValue(); in CompareAllProperty()
88 double cachedValue = progress->GetCachedValue(); in CompareAllProperty()
89 double value = progress->GetValue(); in CompareAllProperty()
94 RefPtr<TrackComponent> track = progress->GetTrack(); in CompareAllProperty()
105 void ProgressCreatorTest::CompareAllDefault(const RefPtr<ProgressComponent>& progress) in CompareAllDefault() argument
107 double min = progress->GetMinValue(); in CompareAllDefault()
[all …]
/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/jsview/models/
Dprogress_model_impl.cpp54 auto progress = AceType::DynamicCast<ProgressComponent>(component); in SetValue() local
55 if (!progress) { in SetValue()
60 auto maxValue_ = progress->GetMaxValue(); in SetValue()
65 progress->SetValue(value); in SetValue()
71 auto progress = AceType::DynamicCast<ProgressComponent>(component); in SetColor() local
72 if (!progress) { in SetColor()
76 RefPtr<TrackComponent> track = progress->GetTrack(); in SetColor()
84 auto progress = AceType::DynamicCast<ProgressComponent>(component); in SetBackgroundColor() local
85 if (!progress) { in SetBackgroundColor()
89 auto track = progress->GetTrack(); in SetBackgroundColor()
[all …]
/foundation/arkui/ace_engine/frameworks/bridge/test/unittest/jsfrontend/progress/
Ddom_progress_test.cpp79 auto progress = DOMNodeFactory::GetInstance().CreateDOMNodeFromDsl(progressTest001); variable
80 auto boxChild = DOMNodeFactory::GetInstance().GetBoxChildComponent(progress);
129 auto progress = DOMNodeFactory::GetInstance().CreateDOMNodeFromDsl(progressTest002); variable
130 auto boxChild = DOMNodeFactory::GetInstance().GetBoxChildComponent(progress);
172 auto progress = DOMNodeFactory::GetInstance().CreateDOMNodeFromDsl(progressTest003); variable
173 auto boxChild = DOMNodeFactory::GetInstance().GetBoxChildComponent(progress);
218 auto progress = DOMNodeFactory::GetInstance().CreateDOMNodeFromDsl(progressTest004); variable
219 auto boxChild = DOMNodeFactory::GetInstance().GetBoxChildComponent(progress);
257 auto progress = DOMNodeFactory::GetInstance().CreateDOMNodeFromDsl(progressTest005); variable
258 auto boxChild = DOMNodeFactory::GetInstance().GetBoxChildComponent(progress);
[all …]
/foundation/filemanagement/dfs_service/test/unittests/cloudsync_api/cloudsync_impl/
Dcloud_download_callback_stub_test.cpp34 void OnDownloadProcess(DownloadProgressObj& progress) override in OnDownloadProcess() argument
126 DownloadProgressObj progress; variable
127 progress.path = "/data";
128 bool prog = data.WriteParcelable(&progress);
151 DownloadProgressObj progress; variable
152 progress.path = "";
153 bool prog = data.WriteParcelable(&progress);
176 DownloadProgressObj progress; variable
177 progress.path = "/data";
178 progress.state = DownloadProgressObj::STOPPED;
[all …]
Dcloud_download_callback_client_test.cpp38 void OnDownloadProcess(DownloadProgressObj &progress) in OnDownloadProcess() argument
74 DownloadProgressObj progress; variable
77 cloudCallback.OnDownloadProcess(progress);
96 DownloadProgressObj progress; variable
99 cloudCallback.OnDownloadProcess(progress);
/foundation/bundlemanager/bundle_framework/interfaces/inner_api/appexecfwk_base/src/free_install/
Dinstall_result.cpp79 void to_json(nlohmann::json &jsonObject, const Progress &progress) in to_json() argument
82 {JSON_KEY_PROGRESS_DOWNLOADSIZE, progress.downloadSize}, in to_json()
83 {JSON_KEY_PROGRESS_TOTALSIZE, progress.totalSize} in to_json()
87 void from_json(const nlohmann::json &jsonObject, Progress &progress) in from_json() argument
94 progress.downloadSize, in from_json()
102 progress.totalSize, in from_json()
117 {JSON_KEY_INSTALLRESULT_PROGRESS, installResult.progress} in to_json()
144 installResult.progress, in from_json()
197 Progress *progress = new (std::nothrow) Progress(); in Unmarshalling() local
198 if (progress && !progress->ReadFromParcel(parcel)) { in Unmarshalling()
[all …]
/foundation/arkui/ace_engine/frameworks/core/components/progress/
Drender_progress.cpp22 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()
Drosen_render_progress.cpp29 const RefPtr<ProgressComponent> progress = AceType::DynamicCast<ProgressComponent>(component); in Update() local
32 track_ = progress->GetTrack()->CreateRenderNode(); in Update()
36 } else if (type_ != progress->GetType()) { in Update()
38 track_ = progress->GetTrack()->CreateRenderNode(); in Update()
43 track_->Update(progress->GetTrack()); in Update()
45 track->SetAnimationPlay(progress->GetAnimationPlay()); in Update()
Dflutter_render_progress.cpp28 const RefPtr<ProgressComponent> progress = AceType::DynamicCast<ProgressComponent>(component); in Update() local
31 track_ = progress->GetTrack()->CreateRenderNode(); in Update()
35 } else if (type_ != progress->GetType()) { in Update()
37 track_ = progress->GetTrack()->CreateRenderNode(); in Update()
42 track_->Update(progress->GetTrack()); in Update()
44 track->SetAnimationPlay(progress->GetAnimationPlay()); in Update()
/foundation/filemanagement/dfs_service/frameworks/native/cloudsync_kit_inner/src/
Dcloud_download_callback_stub.cpp47 sptr<DownloadProgressObj> progress = data.ReadParcelable<DownloadProgressObj>(); in HandleOnProcess() local
48 if (!progress) { in HandleOnProcess()
54 std::string path = progress->path; in HandleOnProcess()
61 progress->path = uri; in HandleOnProcess()
63 if (progress->state != DownloadProgressObj::RUNNING) { in HandleOnProcess()
67 OnDownloadProcess(*progress); in HandleOnProcess()
Dcloud_download_callback_client.cpp22 void CloudDownloadCallbackClient::OnDownloadProcess(DownloadProgressObj& progress) in OnDownloadProcess() argument
28 callback_->OnDownloadProcess(progress); in OnDownloadProcess()
/foundation/arkui/ace_engine/frameworks/base/geometry/
Dtransform_util.cpp174 const TranslateOperation& to, const TranslateOperation& from, float progress) in Blend() argument
177 float scaleA = progress; in Blend()
178 float scaleB = 1 - progress; in Blend()
186 …eration 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 …wOperation 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 …tion RotateOperation::Blend(const RotateOperation& to, const RotateOperation& from, float progress) in Blend() argument
[all …]
Dtransform_util.h39 …slateOperation Blend(const TranslateOperation& to, const TranslateOperation& from, float progress);
55 … static ScaleOperation Blend(const ScaleOperation& to, const ScaleOperation& from, float progress);
68 static SkewOperation Blend(const SkewOperation& to, const SkewOperation& from, float progress);
84 …atic RotateOperation Blend(const RotateOperation& to, const RotateOperation& from, float progress);
96 …eOperation Blend(const PerspectiveOperation& to, const PerspectiveOperation& from, float progress);
163 …sformOperation Blend(const TransformOperation& to, const TransformOperation& from, float progress);
168 …const TransformOperation& to, const TransformOperation& from, float progress, TransformOperation& …
177 …rmOperations Blend(const TransformOperations& to, const TransformOperations& from, float progress);
223 … void BlendInner(const TransformOperations& from, float progress, TransformOperations& out) const;
230 const DecomposedTransform& to, const DecomposedTransform& from, double progress);
/foundation/arkui/ace_engine_lite/test/moduletest/common/test_app/ui_auto_test/src/main/js/default/pages/arc/
Dindex.js20 progress: 100,
24 this.progress = progresses[this.index % 10];
25 this.text = this.progress;
/foundation/arkui/advanced_ui_component/interface/progressbutton/
Dprogressbutton.js29 this.__progress = new SynchedPropertySimpleOneWayPU(t.progress, this, 'progress');
50 this.__progress.reset(e.progress);
73 get progress() { getter in ProgressButton
77 set progress(e) { setter in ProgressButton
114 return this.progress < 0 ? 0 : this.progress > MAX_PROGRESS ? MAX_PROGRESS : this.progress;
118 if (this.progress < 0) {
121 } else if (this.progress >= MAX_PROGRESS) {
125 this.textProgress = Math.floor(this.progress / MAX_PROGRESS * MAX_PROGRESS).toString() + '%';
164 this.progress < MAX_PROGRESS && (this.isLoading = !this.isLoading);
/foundation/arkui/ace_engine/frameworks/core/components/common/properties/
Dshadow.cpp24 Shadow Shadow::Blend(const Shadow& to, const Shadow& from, float progress) in Blend() argument
26 auto offset = from.offset_ + (to.offset_ - from.offset_) * progress; in Blend()
27 auto blurRadius = from.blurRadius_ + (to.blurRadius_ - from.blurRadius_) * progress; in Blend()
28 auto spreadRadius = from.spreadRadius_ + (to.spreadRadius_ - from.spreadRadius_) * progress; in Blend()
30 auto color = evaluator.Evaluate(from.color_, to.color_, progress); in Blend()
/foundation/arkui/ace_engine_lite/test/moduletest/common/test_app/ui_manual_test/src/main/js/default/pages/slider/third/
Dindex.js35 this.sliderValue = value.progress;
39 this.verticalSliderValue = value.progress;
40 this.dynamicValue = value.progress;
/foundation/arkui/advanced_ui_component/source/ProgressButton/
DProgressButton.ets23 @Prop @Watch('getProgressContext') progress: number
32 if (this.progress < 0) {
34 } else if (this.progress > MAX_PROGRESS) {
37 return this.progress
41 if (this.progress < 0) {
44 } else if (this.progress >= MAX_PROGRESS) {
48 this.textProgress = Math.floor(this.progress / MAX_PROGRESS * MAX_PROGRESS).toString() + "%"
89 if (this.progress < MAX_PROGRESS) {
/foundation/arkui/advanced_ui_component/doc/
Dts-composite-components-progressbutton.md20 ProgressButton({progress: number, content: string, progressButtonWidth?: Length, clickCallback: () …
30 | progress | number | 是 | \@Prop | 下载按钮的当前进度值。 |
60 progress: this.halfProgress,
79 console.info('x progress++ = ' + this.halfProgress)
89 progress: this.smallProgress,
108 console.info('x progress++ = ' + this.smallProgress)
118 progress: this.bigProgress,
137 console.info('x progress++ = ' + this.bigProgress)
/foundation/arkui/ace_engine/frameworks/core/components_ng/test/pattern/progress/
DBUILD.gn21 "$ace_root/frameworks/core/components_ng/pattern/progress/progress_accessibility_property.cpp",
22 "$ace_root/frameworks/core/components_ng/pattern/progress/progress_layout_algorithm.cpp",
23 "$ace_root/frameworks/core/components_ng/pattern/progress/progress_model_ng.cpp",
24 "$ace_root/frameworks/core/components_ng/pattern/progress/progress_modifier.cpp",
25 "$ace_root/frameworks/core/components_ng/pattern/progress/progress_paint_method.cpp",
26 "$ace_root/frameworks/core/components_ng/pattern/progress/progress_paint_property.cpp",
27 "$ace_root/frameworks/core/components_ng/pattern/progress/progress_pattern.cpp",
/foundation/filemanagement/dfs_service/test/unittests/cloudsync_sa/ipc/
Dcloud_download_callback_proxy_test.cpp74 DownloadProgressObj progress; variable
75 proxy_->OnDownloadProcess(progress);
94 DownloadProgressObj progress; variable
95 proxy_->OnDownloadProcess(progress);
/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/engine/functions/
Djs_animator_function.cpp22 void JsAnimatorFunction::Execute(float progress) in Execute() argument
25 params[0] = JSRef<JSVal>::Make(ToJSValue(progress)); in Execute()
Djs_page_transition_function.cpp23 void JsPageTransitionFunction::Execute(RouteType routeType, float progress) in Execute() argument
27 params[1] = JSRef<JSVal>::Make(ToJSValue(progress)); in Execute()
/foundation/distributeddatamgr/relational_store/frameworks/js/napi/relationalstore/src/
Dnapi_rdb_const_properties.cpp92 napi_value progress = nullptr; in ExportProgress() local
93 napi_create_object(env, &progress); in ExportProgress()
95 SET_NAPI_PROPERTY(progress, "SYNC_BEGIN", 0); in ExportProgress()
96 SET_NAPI_PROPERTY(progress, "SYNC_IN_PROGRESS", 1); in ExportProgress()
97 SET_NAPI_PROPERTY(progress, "SYNC_FINISH", 2); in ExportProgress()
98 napi_object_freeze(env, progress); in ExportProgress()
99 return progress; in ExportProgress()

1234567