Home
last modified time | relevance | path

Searched refs:colorVal (Results 1 - 25 of 46) sorted by relevance

12

/foundation/graphic/graphic_2d/rosen/modules/render_service_base/src/render/
H A Drs_color_extract.cpp31 auto colorVal = new uint32_t[colorValLen_](); in RSColorExtract() local
32 std::shared_ptr<uint32_t> colorShared(colorVal, [](uint32_t *ptr) { in RSColorExtract()
38 colorVal[i * pixmap->GetWidth() + j] = pixmap->GetColor(j, i); in RSColorExtract()
58 auto colorVal = new uint32_t[colorValLen_](); in RSColorExtract() local
59 std::shared_ptr<uint32_t> colorShared(colorVal, [](uint32_t *ptr) { in RSColorExtract()
65 colorVal[(i - top) * (right - left) + (j - left)] = pixmap->GetColor(j, i); in RSColorExtract()
200 uint32_t *colorVal = colorVal_.get(); in CalcGrayMsd() local
204 graySum += Rgb2Gray(colorVal[i]); in CalcGrayMsd()
208 grayVar += pow(static_cast<long long int>(Rgb2Gray(colorVal[i])) - grayAve, 2); // 2 is square in CalcGrayMsd()
241 uint32_t *colorVal in CalcContrastToWhite() local
258 uint32_t *colorVal = colorVal_.get(); GetNFeatureColors() local
[all...]
/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/jsview/
H A Djs_slider.cpp234 Color colorVal; in SetBlockColor() local
235 if (!ParseJsColor(info[0], colorVal)) { in SetBlockColor()
238 colorVal = theme->GetBlockColor(); in SetBlockColor()
240 SliderModel::GetInstance()->SetBlockColor(colorVal); in SetBlockColor()
251 Color colorVal; in SetTrackColor() local
252 if (info[0]->IsNull() || info[0]->IsUndefined() || !ParseJsColor(info[0], colorVal)) { in SetTrackColor()
255 colorVal = theme->GetTrackBgColor(); in SetTrackColor()
258 gradient = NG::SliderModelNG::CreateSolidGradient(colorVal); in SetTrackColor()
260 SliderModel::GetInstance()->SetTrackBackgroundColor(colorVal); in SetTrackColor()
302 Color colorVal; in SetSelectedColor() local
435 Color colorVal; SetBlockBorderColor() local
467 Color colorVal; SetStepColor() local
[all...]
H A Djs_progress.cpp140 Color colorVal; in SetColor() local
148 if (info[0]->IsNull() || info[0]->IsUndefined() || !ParseJsColor(info[0], colorVal)) { in SetColor()
152 colorVal = theme->GetCapsuleSelectColor(); in SetColor()
154 colorVal = theme->GetTrackSelectedColor(); in SetColor()
157 endColor = colorVal; in SetColor()
158 beginColor = colorVal; in SetColor()
170 ProgressModel::GetInstance()->SetColor(colorVal); in SetColor()
306 Color colorVal; in JsBackgroundColor() local
307 if (!CheckColor(info[0], colorVal, V2::PROGRESS_ETS_TAG, V2::ATTRS_COMMON_BACKGROUND_COLOR)) { in JsBackgroundColor()
311 colorVal in JsBackgroundColor()
346 Color colorVal; JsSetCapsuleStyle() local
[all...]
H A Djs_container_span.cpp37 Color colorVal; in ParseTextBackgroundStyle() local
38 if (ParseJsColor(colorValue, colorVal)) { in ParseTextBackgroundStyle()
39 textBackgroundStyle.backgroundColor = colorVal; in ParseTextBackgroundStyle()
H A Djs_indicator.cpp226 Color colorVal; in SetDotIndicatorInfo() local
227 auto parseOk = ParseJsColor(colorValue, colorVal); in SetDotIndicatorInfo()
228 swiperParameters.colorVal = parseOk ? colorVal : swiperIndicatorTheme->GetColor(); in SetDotIndicatorInfo()
229 parseOk = ParseJsColor(selectedColorValue, colorVal); in SetDotIndicatorInfo()
230 swiperParameters.selectedColorVal = parseOk ? colorVal : swiperIndicatorTheme->GetSelectedColor(); in SetDotIndicatorInfo()
H A Djs_badge.cpp116 Color colorVal; in CreateBadgeParameters() local
117 if (ParseJsColor(colorValue, colorVal)) { in CreateBadgeParameters()
118 badgeParameters.badgeTextColor = colorVal; in CreateBadgeParameters()
H A Djs_span.cpp216 std::optional<Color> colorVal; in SetDecoration() local
219 colorVal = result; in SetDecoration()
224 colorVal = theme->GetTextStyle().GetTextColor(); in SetDecoration()
226 colorVal = Color::BLACK; in SetDecoration()
230 SpanModel::GetInstance()->SetTextDecorationColor(colorVal.value()); in SetDecoration()
H A Djs_swiper.cpp500 Color colorVal;
501 auto parseOk = ParseJsColor(colorValue, colorVal);
502 swiperParameters.colorVal = parseOk ? colorVal : swiperIndicatorTheme->GetColor();
503 parseOk = ParseJsColor(selectedColorValue, colorVal);
504 swiperParameters.selectedColorVal = parseOk ? colorVal : swiperIndicatorTheme->GetSelectedColor();
795 Color colorVal;
796 parseOk = ParseJsColor(colorValue, colorVal);
797 swiperParameters.colorVal = parseOk ? colorVal
[all...]
H A Djs_search.cpp457 Color colorVal = theme->GetSearchIconColor(); in SetSearchImageIcon() local
460 ParseJsColor(colorProp, colorVal); in SetSearchImageIcon()
466 NG::IconOptions searchIconOptions = NG::IconOptions(colorVal, size, src, bundleName, moduleName); in SetSearchImageIcon()
536 Color colorVal; in SetTextColor() local
537 if (!ParseJsColor(value, colorVal)) { in SetTextColor()
538 colorVal = theme->GetTextColor(); in SetTextColor()
540 SearchModel::GetInstance()->SetTextColor(colorVal); in SetTextColor()
621 Color colorVal; in SetPlaceholderColor() local
622 if (!ParseJsColor(value, colorVal)) { in SetPlaceholderColor()
625 colorVal in SetPlaceholderColor()
[all...]
/foundation/arkui/ace_engine/frameworks/bridge/cj_frontend/interfaces/cj_ffi/
H A Dcj_image_span_ffi.cpp43 Color colorVal = Color(color); in ParseTextBackgroundStyle() local
49 textBackgroundStyle.backgroundColor = colorVal; in ParseTextBackgroundStyle()
58 Color colorVal = Color(color); in ParseTextBackgroundStyle() local
71 textBackgroundStyle.backgroundColor = colorVal; in ParseTextBackgroundStyle()
H A Dcj_menu_ffi.cpp48 std::optional<Color> colorVal = Color(color); in FfiOHOSAceFrameworkMenuSetFontColor() local
49 MenuModel::GetInstance()->SetFontColor(colorVal); in FfiOHOSAceFrameworkMenuSetFontColor()
/foundation/graphic/graphic_2d/rosen/modules/effect/color_picker/src/
H A Dcolor_extract.cpp229 uint32_t *colorVal = const_cast<uint32_t *>(colorVal_.data()); in CalcGrayMsd() local
233 graySum += Rgb2Gray(colorVal[i]); in CalcGrayMsd()
237 grayVar += pow(static_cast<long long int>(Rgb2Gray(colorVal[i])) - grayAve, 2); // 2 is square in CalcGrayMsd()
270 uint32_t *colorVal = const_cast<uint32_t *>(colorVal_.data()); in CalcContrastToWhite() local
274 luminanceSum += CalcRelativeLum(colorVal[i]); in CalcContrastToWhite()
287 uint32_t *colorVal = const_cast<uint32_t *>(colorVal_.data()); in GetNFeatureColors() local
292 uint32_t quantizedColor = QuantizeFromRGB888(colorVal[i]); in GetNFeatureColors()
H A Dcolor_picker.cpp120 uint32_t colorVal = 0; in GetMainColor() local
129 bool bSucc = pixelMap->GetARGB32Color(x, y, colorVal); in GetMainColor()
130 EFFECT_LOG_I("[newpix].argb.ret=%{public}d, %{public}x", bSucc, colorVal); in GetMainColor()
131 color = ColorManager::Color(colorVal); in GetMainColor()
/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/ark_theme/theme_apply/
H A Djs_swiper_theme.h52 swiperParameters.colorVal = themeColors->CompBackgroundSecondary(); in ApplyThemeToDotIndicator()
62 swiperParameters.colorVal = themeColors->CompBackgroundSecondary(); in ApplyThemeToDotIndicatorForce()
76 swiperParameters.colorVal = themeColors->CompBackgroundSecondary(); in ApplyThemeToIndicatorStyle()
/foundation/arkui/ace_engine_lite/frameworks/src/core/components/test/unittest/common/
H A Dmarquee_tdd_test.cpp103 const char *colorVal = "16777215"; in ComponentMarqueeStyleSetTest007() local
104 value = jerry_create_string(reinterpret_cast<const jerry_char_t *>(colorVal)); in ComponentMarqueeStyleSetTest007()
149 const char *colorVal = "65280"; in ComponentMarqueeStyleSetTest008() local
150 value = jerry_create_string(reinterpret_cast<const jerry_char_t *>(colorVal)); in ComponentMarqueeStyleSetTest008()
168 int colorVal = -1; in ComponentMarqueeStyleSetTest009() local
169 jerry_value_t value = jerry_create_number(colorVal); in ComponentMarqueeStyleSetTest009()
/foundation/arkui/ace_engine/frameworks/core/components/list/
H A Drosen_render_list_item.h46 void PaintUniversalBackground(RenderContext& context, const Offset& offset, uint32_t colorVal);
H A Drosen_render_list_item.cpp108 void RosenRenderListItem::PaintUniversalBackground(RenderContext& context, const Offset& offset, uint32_t colorVal) in PaintUniversalBackground() argument
131 RosenUniversalPainter::DrawRRectBackground(canvas, paintRRect, colorVal, dipScale); in PaintUniversalBackground()
/foundation/graphic/graphic_2d/rosen/modules/render_service_base/test/unittest/animation/
H A Drs_render_particle_emitter_test.cpp75 Range<Color> colorVal = Range<Color>(start, end); in SetColor() local
84 colorVal, distribution, colorUpdator, redRandom, greenRandom, blueRandom, alphaRandom, colorChangeOverLife); in SetColor()
H A Drs_render_particle_effector_test.cpp80 Range<Color> colorVal = Range<Color>(start, end); in SetColor() local
89 colorVal, distribution, colorUpdator, redRandom, greenRandom, blueRandom, alphaRandom, colorChangeOverLife); in SetColor()
267 Range<Color> colorVal = Range<Color>(start, end); in HWTEST_F() local
275 RenderParticleColorParaType color = RenderParticleColorParaType(colorVal, DistributionType::GAUSSIAN, randomUpdator, in HWTEST_F()
343 Range<Color> colorVal = Range<Color>(start, end); in HWTEST_F() local
361 colorVal, distribution, curveUpdator, redRandom, greenRandom, blueRandom, alphaRandom, colorChangeOverLife); in HWTEST_F()
/foundation/arkui/ace_engine/frameworks/core/interfaces/native/node/
H A Dprogress_modifier.cpp142 Color colorVal; in ResetProgressColor() local
154 colorVal = progressTheme->GetCapsuleSelectColor(); in ResetProgressColor()
156 colorVal = progressTheme->GetTrackSelectedColor(); in ResetProgressColor()
169 ProgressModelNG::SetColor(frameNode, colorVal); in ResetProgressColor()
H A Dnode_swiper_modifier.cpp250 Color colorVal; in GetDotIndicatorInfo() local
251 parseOk = Color::ParseColorString(colorValue, colorVal); in GetDotIndicatorInfo()
252 swiperParameters.colorVal = parseOk ? colorVal : swiperIndicatorTheme->GetColor(); in GetDotIndicatorInfo()
253 parseOk = Color::ParseColorString(selectedColorValue, colorVal); in GetDotIndicatorInfo()
254 swiperParameters.selectedColorVal = parseOk ? colorVal : swiperIndicatorTheme->GetSelectedColor(); in GetDotIndicatorInfo()
316 swiperParameters.colorVal = in GetDotIndicatorProps()
1026 props->colorValue = ArkUIOptionalUint { 1, params->colorVal.value().GetValue() }; in GetSwiperIndicator()
/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/engine/jsi/nativeModule/
H A Darkts_native_linear_indicator.cpp207 auto colorVal = func->Call(vm, obj, nullptr, 0); in ParseColorMetricsToColor() local
208 result.SetValue(colorVal->Uint32Value(vm)); in ParseColorMetricsToColor()
/foundation/graphic/graphic_2d/rosen/modules/render_service_client/core/animation/
H A Drs_particle_params.h110 ParticleColorParaType(const Range<Color>& colorVal, const DistributionType& distribution, in ParticleColorParaType() argument
114 colorVal_ = colorVal; in ParticleColorParaType()
/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/jsview/models/
H A Dswiper_model_impl.cpp267 if (swiperParameters.colorVal.has_value()) { in SetIndicatorStyle()
268 indicator->SetColor(swiperParameters.colorVal.value()); in SetIndicatorStyle()
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/swiper_indicator/indicator_common/
H A Dindicator_pattern.cpp111 swiperParameters_->colorVal = swiperIndicatorTheme->GetColor(); in GetSwiperParameters()
228 paintProperty->UpdateColor(swiperParameters->colorVal.value_or(swiperIndicatorTheme->GetColor())); in UpdatePaintProperty()

Completed in 21 milliseconds

12