/foundation/graphic/graphic_3d/lume/LumeRender/assets/render/shaders/common/ |
H A D | bloom_common.h | 46 float weight = 1.0 / (1.0 + CalcLuma(colSample)); in bloomDownscaleWeighted9() local 47 vec3 color = colSample * (8.0 / 128.0) * weight; in bloomDownscaleWeighted9() 48 float fullWeight = weight; in bloomDownscaleWeighted9() 51 weight = 1.0 / (1.0 + CalcLuma(colSample)); in bloomDownscaleWeighted9() 52 color += colSample * (16.0 / 128.0) * weight; // 16.0, 128.0: param in bloomDownscaleWeighted9() 53 fullWeight += weight; in bloomDownscaleWeighted9() 56 weight = 1.0 / (1.0 + CalcLuma(colSample)); in bloomDownscaleWeighted9() 57 color += colSample * (8.0 / 128.0) * weight; // 8.0, 128.0: param in bloomDownscaleWeighted9() 58 fullWeight += weight; in bloomDownscaleWeighted9() 62 weight in bloomDownscaleWeighted9() 137 float weight = 1.0 / (1 + CalcLuma(colSample)); bloomDownscaleWeighted() local [all...] |
/foundation/arkui/ace_engine/frameworks/core/components_v2/inspector/ |
H A D | utils.cpp | 24 auto weight = textStyle.GetFontWeight(); in GetTextStyleInJson() local 25 if (weight == FontWeight::W100) { in GetTextStyleInJson() 26 jsonValue->Put("weight", "100"); in GetTextStyleInJson() 27 } else if (weight == FontWeight::W200) { in GetTextStyleInJson() 28 jsonValue->Put("weight", "200"); in GetTextStyleInJson() 29 } else if (weight == FontWeight::W300) { in GetTextStyleInJson() 30 jsonValue->Put("weight", "300"); in GetTextStyleInJson() 31 } else if (weight == FontWeight::W400) { in GetTextStyleInJson() 32 jsonValue->Put("weight", "400"); in GetTextStyleInJson() 33 } else if (weight in GetTextStyleInJson() [all...] |
H A D | textinput_composed_element.cpp | 105 auto weight = placeHoldStyle.GetFontWeight(); in GetPlaceholderFont() local 106 if (weight == FontWeight::W100) { in GetPlaceholderFont() 107 jsonValue->Put("weight", "100"); in GetPlaceholderFont() 108 } else if (weight == FontWeight::W200) { in GetPlaceholderFont() 109 jsonValue->Put("weight", "200"); in GetPlaceholderFont() 110 } else if (weight == FontWeight::W300) { in GetPlaceholderFont() 111 jsonValue->Put("weight", "300"); in GetPlaceholderFont() 112 } else if (weight == FontWeight::W400) { in GetPlaceholderFont() 113 jsonValue->Put("weight", "400"); in GetPlaceholderFont() 114 } else if (weight in GetPlaceholderFont() 175 auto weight = GetTextInputFontWeight() local [all...] |
H A D | textarea_composed_element.cpp | 101 auto weight = placeHoldStyle.GetFontWeight(); in GetPlaceholderFont() local 102 if (weight == FontWeight::W100) { in GetPlaceholderFont() 103 jsonValue->Put("weight", "100"); in GetPlaceholderFont() 104 } else if (weight == FontWeight::W200) { in GetPlaceholderFont() 105 jsonValue->Put("weight", "200"); in GetPlaceholderFont() 106 } else if (weight == FontWeight::W300) { in GetPlaceholderFont() 107 jsonValue->Put("weight", "300"); in GetPlaceholderFont() 108 } else if (weight == FontWeight::W400) { in GetPlaceholderFont() 109 jsonValue->Put("weight", "400"); in GetPlaceholderFont() 110 } else if (weight in GetPlaceholderFont() 179 auto weight = GetTextFontWeight() local [all...] |
/foundation/communication/dsoftbus/core/bus_center/lnn/net_builder/src/ |
H A D | lnn_node_weight.c | 36 static int32_t weight; in LnnGetLocalWeight() local 41 return weight; in LnnGetLocalWeight() 44 LNN_LOGE(LNN_BUILDER, "generate random weight fail"); in LnnGetLocalWeight() 47 weight = (int32_t)((randVal * MAX_WEIGHT_VALUE) / UINT8_MAX); in LnnGetLocalWeight() 54 weight += BASE_WEIGHT_PHONE_VALUE; in LnnGetLocalWeight() 57 weight += BASE_WEIGHT_PAD_VALUE; in LnnGetLocalWeight() 60 weight += BASE_WEIGHT_TV_VALUE; in LnnGetLocalWeight() 63 weight += BASE_WEIGHT_AUDIO_VALUE; in LnnGetLocalWeight() 66 weight += BASE_WEIGHT_CAR_VALUE; in LnnGetLocalWeight() 69 weight in LnnGetLocalWeight() [all...] |
/foundation/CastEngine/castengine_wifi_display/services/agent/ |
H A D | agent_def.h | 55 if (weight == agentRunStepKey.weight) { in operator <() 61 return weight > agentRunStepKey.weight; in operator <() 67 AgentRunStepWeight weight = AGENT_STEP_WEIGHT_IDLE; member
|
/foundation/multimedia/image_framework/frameworks/innerkitsimpl/converter/include/ |
H A D | post_proc_slr.h | 99 auto weight = fSLRCache.find(key); in find() local 100 return weight == nullptr ? nullptr : *weight; in find() 105 auto weight = fSLRCache.insert(key, std::move(weightTuple)); in insert() local 106 return weight == nullptr ? nullptr : *weight; in insert()
|
/foundation/graphic/graphic_2d/rosen/test/2d_graphics/fuzztest/text/fontstyle_fuzzer/ |
H A D | fontstyle_fuzzer.cpp | 44 int weight = GetObject<int>() % MAX_SIZE; in FontStyleFuzzTest() local 47 FontStyle fontStyleTwo = FontStyle(weight, width, static_cast<FontStyle::Slant>(slant % SLANT_SIZE)); in FontStyleFuzzTest() 48 FontStyle fontStyleThree = FontStyle(weight, width, static_cast<FontStyle::Slant>(slant % SLANT_SIZE)); in FontStyleFuzzTest()
|
/foundation/arkui/ace_engine/frameworks/core/interfaces/native/node/ |
H A D | node_symbol_glyph_modifier.cpp | 21 FontWeight ConvertStrToFontWeight(ArkUI_CharPtr weight, FontWeight defaultFontWeight = FontWeight::NORMAL) in ConvertStrToFontWeight() argument 23 std::string weightStr(weight); in ConvertStrToFontWeight() 27 FontWeight ConvertIntToFontWeight(ArkUI_Int32 weight) in ConvertIntToFontWeight() argument 40 auto weightFindIter = fontWeightMap.find(weight); in ConvertIntToFontWeight() 96 void SetFontWeightStr(ArkUINodeHandle node, ArkUI_CharPtr weight) in SetFontWeightStr() argument 100 SymbolModelNG::SetFontWeight(frameNode, ConvertStrToFontWeight(weight)); in SetFontWeightStr() 103 void SetFontWeight(ArkUINodeHandle node, ArkUI_Int32 weight) in SetFontWeight() argument 107 SymbolModelNG::SetFontWeight(frameNode, ConvertIntToFontWeight(weight)); in SetFontWeight()
|
H A D | node_symbol_span_modifier.cpp | 21 FontWeight ConvertStrToFontWeight(ArkUI_CharPtr weight, FontWeight defaultFontWeight = FontWeight::NORMAL) in ConvertStrToFontWeight() argument 23 std::string weightStr(weight); in ConvertStrToFontWeight() 76 void SetSymbolSpanFontWeightStr(ArkUINodeHandle node, ArkUI_CharPtr weight) in SetSymbolSpanFontWeightStr() argument 80 SymbolSpanModelNG::SetFontWeight(frameNode, ConvertStrToFontWeight(weight)); in SetSymbolSpanFontWeightStr() 83 void SetSymbolSpanFontWeight(ArkUINodeHandle node, ArkUI_Int32 weight) in SetSymbolSpanFontWeight() argument 87 SymbolSpanModelNG::SetFontWeight(frameNode, static_cast<FontWeight>(weight)); in SetSymbolSpanFontWeight()
|
H A D | gauge_modifier.cpp | 160 void SetColors(ArkUINodeHandle node, const uint32_t* colors, const ArkUI_Float32* weight, uint32_t length) in SetColors() argument 163 CHECK_NULL_VOID(weight); in SetColors() 170 weights.at(i) = weight[i]; in SetColors() 207 std::vector<ArkUI_Float32> weight; in SetGradientColors() local 208 if (weightLength > 0 && gradient->weight != nullptr) { in SetGradientColors() 209 weight = std::vector<ArkUI_Float32>(gradient->weight, gradient->weight + weightLength); in SetGradientColors() 230 GaugeModelNG::SetGradientColors(frameNode, colors, weight, type); in SetGradientColors()
|
/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/engine/jsi/nativeModule/ |
H A D | arkts_native_timepicker_bridge.cpp | 76 std::string weight = DEFAULT_ERR_CODE;
in SetTextStyle() local 79 weight = std::to_string(fontWeightArg->Int32Value(vm));
in SetTextStyle() 81 if (!ArkTSUtils::ParseJsString(vm, fontWeightArg, weight) || weight.empty()) {
in SetTextStyle() 82 weight = DEFAULT_ERR_CODE;
in SetTextStyle() 96 FORMAT_FONT.c_str(), fontSizeStr.c_str(), weight.c_str(), fontFamily.c_str());
in SetTextStyle() 125 std::string weight = DEFAULT_ERR_CODE;
in SetSelectedTextStyle() local 128 weight = std::to_string(fontWeightArg->Int32Value(vm));
in SetSelectedTextStyle() 130 if (!ArkTSUtils::ParseJsString(vm, fontWeightArg, weight) || weight in SetSelectedTextStyle() 174 std::string weight = DEFAULT_ERR_CODE; SetDisappearTextStyle() local [all...] |
H A D | arkts_native_menu_item_bridge.cpp | 109 Local<JSValueRef> weightArg = runtimeCallInfo->GetCallArgRef(2); // 2: label font weight in SetLabelFont() 123 std::string weight = DEFAULT_ERR_CODE; in SetLabelFont() local 125 weight = std::to_string(weightArg->Int32Value(vm)); in SetLabelFont() 127 if (!ArkTSUtils::ParseJsString(vm, weightArg, weight) || weight.empty()) { in SetLabelFont() 128 weight = DEFAULT_ERR_CODE; in SetLabelFont() 144 StringUtils::FormatString(FORMAT_FONT.c_str(), fontSizeStr.c_str(), weight.c_str(), family.c_str()); in SetLabelFont() 165 Local<JSValueRef> weightArg = runtimeCallInfo->GetCallArgRef(2); // 2: index of font weight in SetContentFont() 179 std::string weight = DEFAULT_ERR_CODE; in SetContentFont() local 181 weight in SetContentFont() [all...] |
/foundation/arkui/ace_engine/frameworks/bridge/cj_frontend/interfaces/cj_ffi/ |
H A D | cj_datepicker_ffi.h | 48 int32_t unit, const char* weight, const char* family, uint32_t style); 50 const char* weight, const char* family, uint32_t style); 52 const char* weight, const char* family, uint32_t style);
|
H A D | cj_alphabet_indexer_ffi.h | 35 double size, int32_t unit, const char* weight, const char* family, int32_t style); 37 double size, int32_t unit, const char* weight, const char* family, int32_t style); 39 double size, int32_t unit, const char* weight, const char* family, int32_t style);
|
H A D | cj_menu_item_ffi.cpp | 79 double size, int32_t unit, const char* weight, const char* family, int32_t style) in FfiOHOSAceFrameworkMenuItemContentFont() 90 std::string weightVal = weight; in FfiOHOSAceFrameworkMenuItemContentFont() 101 double size, int32_t unit, const char* weight, const char* family, int32_t style) in FfiOHOSAceFrameworkMenuItemLabelFont() 112 std::string weightVal = weight; in FfiOHOSAceFrameworkMenuItemLabelFont() 78 FfiOHOSAceFrameworkMenuItemContentFont( double size, int32_t unit, const char* weight, const char* family, int32_t style) FfiOHOSAceFrameworkMenuItemContentFont() argument 100 FfiOHOSAceFrameworkMenuItemLabelFont( double size, int32_t unit, const char* weight, const char* family, int32_t style) FfiOHOSAceFrameworkMenuItemLabelFont() argument
|
H A D | cj_select_ffi.cpp | 69 int32_t style, const char* weight, double size, int32_t sizeUnit, const char* family) in FfiOHOSAceFrameworkSelectSetFont() 72 SelectModel::GetInstance()->SetFontWeight(ConvertStrToFontWeight(weight)); in FfiOHOSAceFrameworkSelectSetFont() 88 int32_t style, const char* weight, double size, int32_t sizeUnit, const char* family) in FfiOHOSAceFrameworkSelectSetSelectedOptionFont() 91 SelectModel::GetInstance()->SetSelectedOptionFontWeight(ConvertStrToFontWeight(weight)); in FfiOHOSAceFrameworkSelectSetSelectedOptionFont() 107 int32_t style, const char* weight, double size, int32_t sizeUnit, const char* family) in FfiOHOSAceFrameworkSelectSetOptionFont() 110 SelectModel::GetInstance()->SetOptionFontWeight(ConvertStrToFontWeight(weight)); in FfiOHOSAceFrameworkSelectSetOptionFont() 68 FfiOHOSAceFrameworkSelectSetFont( int32_t style, const char* weight, double size, int32_t sizeUnit, const char* family) FfiOHOSAceFrameworkSelectSetFont() argument 87 FfiOHOSAceFrameworkSelectSetSelectedOptionFont( int32_t style, const char* weight, double size, int32_t sizeUnit, const char* family) FfiOHOSAceFrameworkSelectSetSelectedOptionFont() argument 106 FfiOHOSAceFrameworkSelectSetOptionFont( int32_t style, const char* weight, double size, int32_t sizeUnit, const char* family) FfiOHOSAceFrameworkSelectSetOptionFont() argument
|
H A D | cj_select_ffi.h | 41 int32_t style, const char* weight, double size, int32_t sizeUnit, const char* family); 45 int32_t style, const char* weight, double size, int32_t sizeUnit, const char* family); 49 int32_t style, const char* weight, double size, int32_t sizeUnit, const char* family);
|
H A D | cj_menu_item_ffi.h | 30 double size, int32_t unit, const char* weight, const char* family, int32_t style); 33 double size, int32_t unit, const char* weight, const char* family, int32_t style);
|
/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/engine/ |
H A D | arkTheme.js | 281 weight: ArkTypographyWeights.light, 285 weight: ArkTypographyWeights.light, 289 weight: ArkTypographyWeights.light, 293 weight: ArkTypographyWeights.bold, 297 weight: ArkTypographyWeights.bold, 301 weight: ArkTypographyWeights.bold, 305 weight: ArkTypographyWeights.medium, 309 weight: ArkTypographyWeights.medium, 313 weight: ArkTypographyWeights.medium, 317 weight [all...] |
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/menu/menu_item/ |
H A D | menu_item_model_ng.h | 31 void SetFontWeight(FontWeight weight) override; 36 void SetLabelFontWeight(FontWeight weight) override; 46 static void SetLabelFontWeight(FrameNode* frameNode, FontWeight weight); 51 static void SetFontWeight(FrameNode* frameNode, FontWeight weight);
|
/foundation/graphic/graphic_2d/rosen/test/2d_graphics/unittest/ndk/ |
H A D | drawing_font_mgr_test.cpp | 109 normalStyle.weight = FONT_WEIGHT_400;
in HWTEST_F() 131 normalStyle.weight = FONT_WEIGHT_400;
in HWTEST_F() 175 normalStyle.weight = FONT_WEIGHT_400;
in HWTEST_F() 191 normalStyle.weight = FONT_WEIGHT_400;
in HWTEST_F() 231 EXPECT_EQ(normalStyle.weight, FONT_WEIGHT_400);
in HWTEST_F() 247 normalStyle.weight = FONT_WEIGHT_400;
in HWTEST_F()
|
/foundation/arkui/ace_engine/frameworks/core/components/svg/ |
H A D | rosen_render_svg_polygon.cpp | 126 const std::string& points1, const std::string& points2, double weight, SkPath* out) in CreateSkPaths() 152 begin.interpolate(end, weight, out); in CreateSkPaths() 157 const std::string& points1, const std::string& points2, double weight, RSPath* out) in CreateRSPaths() 183 out->BuildFromInterpolate(begin, end, weight); in CreateRSPaths() 235 float weight = 1.0f; in GetPath() local 242 weight = weight_ - firstPart; in GetPath() 247 if (!CreateSkPaths(pointsVector_[currValue].c_str(), pointsVector_[nextValue].c_str(), weight, out)) { in GetPath() 249 if (!CreateRSPaths(pointsVector_[currValue].c_str(), pointsVector_[nextValue].c_str(), weight, out)) { in GetPath() 125 CreateSkPaths( const std::string& points1, const std::string& points2, double weight, SkPath* out) CreateSkPaths() argument 156 CreateRSPaths( const std::string& points1, const std::string& points2, double weight, RSPath* out) CreateRSPaths() argument
|
H A D | render_svg_path.h | 35 void SetWeight(float weight) in SetWeight() argument 37 weight_ = weight; in SetWeight()
|
H A D | render_svg_polygon.h | 38 void SetWeight(float weight) in SetWeight() argument 40 weight_ = weight; in SetWeight()
|