/foundation/bundlemanager/bundle_framework/interfaces/inner_api/appexecfwk_base/src/bundle_resource/ |
H A D | bundle_resource_info.cpp | 40 CONTAINER_SECURITY_VERIFY(parcel, foregroundSize, &foreground); in ReadFromParcel() 42 foreground.emplace_back(parcel.ReadUint8()); in ReadFromParcel() 61 WRITE_PARCEL_AND_RETURN_FALSE_IF_FAIL(Int32, parcel, foreground.size()); in Marshalling() 62 for (const auto &data : foreground) { in Marshalling()
|
H A D | launcher_ability_resource_info.cpp | 49 CONTAINER_SECURITY_VERIFY(parcel, foregroundSize, &foreground); in ReadFromParcel() 51 foreground.emplace_back(parcel.ReadUint8()); in ReadFromParcel() 72 WRITE_PARCEL_AND_RETURN_FALSE_IF_FAIL(Int32, parcel, foreground.size()); in Marshalling() 73 for (const auto &data : foreground) { in Marshalling()
|
/foundation/arkui/ace_engine/interfaces/inner_api/drawable_descriptor/ |
H A D | drawable_descriptor.cpp | 45 const char DRAWABLEDESCRIPTOR_JSON_KEY_FOREGROUND[] = "foreground"; 170 // preprocess get background and foreground in InitialResource() 175 HILOGD("Create foreground Item imageSource from json buffer failed"); in InitialResource() 307 auto foreground = Media::ImageSource::CreateImageSource(foregroundInfo.first.get(), foregroundInfo.second, opts, in InitLayeredParam() local 312 auto pixelMapPtr = foreground->CreatePixelMap(decodeOpts, errorCode); in InitLayeredParam() 441 bool LayeredDrawableDescriptor::GetLayeredIconParm(std::shared_ptr<Rosen::Drawing::Bitmap>& foreground, in GetLayeredIconParm() argument 445 foreground = ImageConverter::PixelMapToBitmap(foreground_.value()); in GetLayeredIconParm() 447 HILOGI("Get pixelMap of foreground failed."); in GetLayeredIconParm() 492 bool LayeredDrawableDescriptor::CompositeIconAdaptive(std::shared_ptr<Rosen::Drawing::Bitmap>& foreground, in CompositeIconAdaptive() argument 528 if (foreground) { in CompositeIconAdaptive() 538 BlendForeground(Rosen::Drawing::Canvas& bitmapCanvas, Rosen::Drawing::Brush& brush, Rosen::Drawing::Image& image, const std::shared_ptr<Rosen::Drawing::Bitmap>& background, const std::shared_ptr<Rosen::Drawing::Bitmap>& foreground) BlendForeground() argument 566 CompositeIconNotAdaptive(std::shared_ptr<Rosen::Drawing::Bitmap>& foreground, std::shared_ptr<Rosen::Drawing::Bitmap>& background, std::shared_ptr<Rosen::Drawing::Bitmap>& mask) CompositeIconNotAdaptive() argument 633 std::shared_ptr<Rosen::Drawing::Bitmap> foreground; CreatePixelMap() local [all...] |
H A D | drawable_descriptor.h | 131 void SetForeground(std::shared_ptr<Media::PixelMap> foreground) in SetForeground() argument 133 foreground_ = foreground; in SetForeground() 178 bool GetLayeredIconParm(std::shared_ptr<Rosen::Drawing::Bitmap>& foreground, 181 void CompositeIconNotAdaptive(std::shared_ptr<Rosen::Drawing::Bitmap>& foreground, 183 bool CompositeIconAdaptive(std::shared_ptr<Rosen::Drawing::Bitmap>& foreground, 191 const std::shared_ptr<Rosen::Drawing::Bitmap>& foreground);
|
/foundation/bundlemanager/bundle_framework/interfaces/kits/js/bundle_resource/ |
H A D | bundle_resource_drawable_utils.cpp | 45 const std::vector<uint8_t> &foreground, const std::vector<uint8_t> &background) in ConvertToDrawableDescriptor() 48 if (foreground.empty() && background.empty()) { in ConvertToDrawableDescriptor() 52 size_t lenForeground = foreground.size(); in ConvertToDrawableDescriptor() 55 foregroundPtr[index] = foreground[index]; in ConvertToDrawableDescriptor() 44 ConvertToDrawableDescriptor(napi_env env, const std::vector<uint8_t> &foreground, const std::vector<uint8_t> &background) ConvertToDrawableDescriptor() argument
|
H A D | bundle_resource_drawable_utils.h | 33 const std::vector<uint8_t> &foreground, const std::vector<uint8_t> &background);
|
/foundation/graphic/graphic_2d/rosen/modules/2d_graphics/src/drawing/effect/ |
H A D | image_filter.cpp | 64 std::shared_ptr<ImageFilter> background, std::shared_ptr<ImageFilter> foreground, const Rect& cropRect) noexcept 68 impl_->InitWithArithmetic(coefficients, enforcePMColor, background, foreground, cropRect); in ImageFilter() 136 std::shared_ptr<ImageFilter> foreground, const Rect& cropRect) in CreateArithmeticImageFilter() 139 ImageFilter::FilterType::ARITHMETIC, coefficients, enforcePMColor, background, foreground, cropRect); in CreateArithmeticImageFilter() 159 std::shared_ptr<ImageFilter> background, std::shared_ptr<ImageFilter> foreground, const Rect& cropRect) in CreateBlendImageFilter() 161 return std::make_shared<ImageFilter>(ImageFilter::FilterType::BLEND, mode, background, foreground, cropRect); in CreateBlendImageFilter() 165 std::shared_ptr<ImageFilter> foreground, const Rect& cropRect) noexcept 169 impl_->InitWithBlend(mode, cropRect, background, foreground); in ImageFilter() 134 CreateArithmeticImageFilter(const std::vector<scalar>& coefficients, bool enforcePMColor, std::shared_ptr<ImageFilter> background, std::shared_ptr<ImageFilter> foreground, const Rect& cropRect) CreateArithmeticImageFilter() argument 158 CreateBlendImageFilter(BlendMode mode, std::shared_ptr<ImageFilter> background, std::shared_ptr<ImageFilter> foreground, const Rect& cropRect) CreateBlendImageFilter() argument
|
/foundation/graphic/graphic_2d/rosen/modules/2d_graphics/src/drawing/engine_adapter/skia_adapter/ |
H A D | skia_image_filter.cpp | 116 sk_sp<SkImageFilter> foreground = nullptr; in InitWithArithmetic() local 121 foreground = f2->GetImpl<SkiaImageFilter>()->GetImageFilter(); in InitWithArithmetic() 126 coefficients[1], coefficients[2], coefficients[3], // 0 1 2 3 used to combine the foreground and background. in InitWithArithmetic() 127 enforcePMColor, background, foreground, skCropRect); in InitWithArithmetic() 188 std::shared_ptr<ImageFilter> background, std::shared_ptr<ImageFilter> foreground) in InitWithBlend() 195 if (foreground != nullptr && foreground->GetImpl<SkiaImageFilter>() != nullptr) { in InitWithBlend() 196 inner = foreground->GetImpl<SkiaImageFilter>()->GetImageFilter(); in InitWithBlend() 187 InitWithBlend(BlendMode mode, const Rect& cropRect, std::shared_ptr<ImageFilter> background, std::shared_ptr<ImageFilter> foreground) InitWithBlend() argument
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/rating/ |
H A D | rating_modifier.h | 65 const ImageSourceInfo& foreground, const ImageSourceInfo& secondary, const ImageSourceInfo& background) in UpdateImageSourceInfo() 67 foreground_ = foreground; in UpdateImageSourceInfo() 72 bool JudgeImageSourceInfo(const ImageSourceInfo& foreground, const ImageSourceInfo& secondary, in JudgeImageSourceInfo() argument 75 if (foreground_ != foreground) { in JudgeImageSourceInfo() 64 UpdateImageSourceInfo( const ImageSourceInfo& foreground, const ImageSourceInfo& secondary, const ImageSourceInfo& background) UpdateImageSourceInfo() argument
|
/foundation/arkui/ui_lite/test/unittest/components/ |
H A D | ui_abstract_progress_unit_test.cpp | 27 const char* foreground = "D:/"; member 224 foreground = foregroundImage->GetPath(); in HWTEST_F() 226 abstractProgress_->SetImage(foreground, background); in HWTEST_F() 227 if (foreground == nullptr) { in HWTEST_F()
|
/foundation/graphic/graphic_2d/rosen/modules/2d_graphics/include/effect/ |
H A D | image_filter.h | 84 * @param coefficients Get the four coefficients used to combine the foreground and background in the vector. 88 * @param foreground The foreground content, using the source bitmap when this is null. 93 bool enforcePMColor, std::shared_ptr<ImageFilter> background, std::shared_ptr<ImageFilter> foreground, 112 * @param foreground The Src pixels used in blending, if null the source bitmap is used. 117 std::shared_ptr<ImageFilter> background, std::shared_ptr<ImageFilter> foreground = nullptr, 158 std::shared_ptr<ImageFilter> background, std::shared_ptr<ImageFilter> foreground, 167 std::shared_ptr<ImageFilter> foreground = nullptr,
|
/foundation/arkui/ace_engine/test/mock/core/rosen/ |
H A D | testing_image_filter.h | 60 std::shared_ptr<TestingImageFilter> foreground) in CreateArithmeticImageFilter() 72 std::shared_ptr<TestingImageFilter> background, std::shared_ptr<TestingImageFilter> foreground = nullptr) in CreateBlendImageFilter() 58 CreateArithmeticImageFilter(const std::vector<scalar>& coefficients, bool enforcePMColor, std::shared_ptr<TestingImageFilter> background, std::shared_ptr<TestingImageFilter> foreground) CreateArithmeticImageFilter() argument
|
H A D | testing_text_style.h | 144 TestingPen foreground; member in OHOS::Ace::Testing::TestingTextStyle
|
/foundation/graphic/graphic_2d/rosen/modules/2d_engine/rosen_text/skia_txt/txt/ |
H A D | text_style.cpp | 106 foreground == other.foreground && in operator ==()
|
/foundation/bundlemanager/bundle_framework/services/bundlemgr/src/bundle_resource/ |
H A D | resource_info.cpp | 75 foreground_ = bundleResourceInfo.foreground; in ConvertFromBundleResourceInfo() 92 foreground_ = launcherAbilityResourceInfo.foreground; in ConvertFromLauncherAbilityResourceInfo()
|
H A D | bundle_resource_parser.cpp | 35 constexpr const char* FOREGROUND = "foreground"; 54 std::string foreground; member 62 BMSJsonUtil::GetStrValueIfFindKey(jsonObject, jsonObjectEnd, FOREGROUND, layeredImage.foreground, in from_json() 397 if (layerImage.foreground.empty() && layerImage.background.empty()) { in ParseIconIdFromJson() 398 APP_LOGE("foreground background empty, buffer %{public}s", jsonBuff.c_str()); in ParseIconIdFromJson() 401 auto pos = layerImage.foreground.find(CHAR_COLON); in ParseIconIdFromJson() 403 int32_t foregroundLength = static_cast<int32_t>(layerImage.foreground.length()); in ParseIconIdFromJson() 405 atoi(layerImage.foreground.substr(pos + 1, foregroundLength - pos - 1).c_str())); in ParseIconIdFromJson() 457 // parse foreground in ParseForegroundAndBackgroundResource() 460 APP_LOGE("parse foreground faile in ParseForegroundAndBackgroundResource() [all...] |
H A D | bundle_resource_rdb.cpp | 73 APP_LOGD("key:%{public}s foreground: %{public}zu, background: %{public}zu", resourceInfo.GetKey().c_str(), in AddResourceInfo() 116 APP_LOGD("key:%{public}s foreground: %{public}zu, background: %{public}zu", info.GetKey().c_str(), in AddResourceInfos() 187 std::vector<uint8_t> foreground; in GetAllResourceName() local 188 ret = absSharedResultSet->GetBlob(BundleResourceConstants::INDEX_FOREGROUND, foreground); in GetAllResourceName() 190 APP_LOGE("GetString foreground failed, ret %{public}d, systemState %{public}s", ret, systemState.c_str()); in GetAllResourceName() 193 if (foreground.empty()) { in GetAllResourceName() 194 APP_LOGW("keyName %{public}s foreground invalid", name.c_str()); in GetAllResourceName() 459 ret = absSharedResultSet->GetBlob(BundleResourceConstants::INDEX_FOREGROUND, bundleResourceInfo.foreground); in ConvertToBundleResourceInfo() 460 CHECK_RDB_RESULT_RETURN_IF_FAIL(ret, "GetBlob foreground, ret: %{public}d"); in ConvertToBundleResourceInfo() 505 launcherAbilityResourceInfo.foreground); in ConvertToLauncherAbilityResourceInfo() [all...] |
/foundation/resourceschedule/resource_schedule_service/ressched/services/resschedmgr/resschedfwk/src/ |
H A D | notifier_mgr.cpp | 172 info.foreground = true; in OnApplicationStateChange() 182 info.foreground = false; in OnApplicationStateChange() 214 if (info.hapApp && !info.foreground) { in OnDeviceLevelChangedLock()
|
/foundation/bundlemanager/bundle_framework/interfaces/inner_api/appexecfwk_base/include/bundle_resource/ |
H A D | bundle_resource_info.h | 44 std::vector<uint8_t> foreground; member
|
H A D | launcher_ability_resource_info.h | 33 std::vector<uint8_t> foreground; member
|
/foundation/graphic/graphic_2d/rosen/test/2d_engine/unittest/rosen_text/adapter/skia_txt/ |
H A D | convert_test.cpp | 199 EXPECT_EQ(sptextStyle.foreground->brush, textStyle.foregroundBrush); in HWTEST_F() 200 EXPECT_EQ(sptextStyle.foreground->pen, textStyle.foregroundPen); in HWTEST_F() 236 EXPECT_EQ(sptextStyle.foreground->brush.value().GetColor(), Drawing::Color::COLOR_DKGRAY); in HWTEST_F() 237 EXPECT_EQ(sptextStyle.foreground->pen.value().GetColor(), Drawing::Color::COLOR_DKGRAY); in HWTEST_F() 255 sptextStyle.foreground = SPText::PaintRecord(Drawing::Brush(Drawing::Color::COLOR_MAGENTA), Drawing::Pen()); in HWTEST_F()
|
/foundation/resourceschedule/resource_schedule_service/ressched/services/resschedmgr/resschedfwk/include/ |
H A D | notifier_mgr.h | 36 bool foreground = true; member
|
/foundation/graphic/graphic_2d/rosen/modules/2d_engine/rosen_text/adapter/skia_txt/ |
H A D | convert.cpp | 141 textStyle.foreground = SPText::PaintRecord(style.foregroundBrush, style.foregroundPen); in SplitTextStyleConvert() 220 if (style.foreground.has_value()) { in SplitTextStyleConvert() 221 textStyle.foregroundBrush = style.foreground->brush; in SplitTextStyleConvert() 222 textStyle.foregroundPen = style.foreground->pen; in SplitTextStyleConvert()
|
/foundation/bundlemanager/bundle_framework/services/bundlemgr/test/unittest/bms_bundle_resource_test/ |
H A D | bms_bundle_resource_test.cpp | 2740 EXPECT_FALSE(info.foreground.empty()); in HWTEST_F() 2741 if (!info.foreground.empty()) { in HWTEST_F() 2742 EXPECT_EQ(info.foreground[0], resourceInfo.foreground_[0]); in HWTEST_F() 2780 EXPECT_FALSE(info.foreground.empty()); in HWTEST_F() 2781 if (!info.foreground.empty()) { in HWTEST_F() 2782 EXPECT_EQ(info.foreground[0], resourceInfo.foreground_[0]); in HWTEST_F() 2825 EXPECT_FALSE(infos[0].foreground.empty()); in HWTEST_F() 2826 if (!infos[0].foreground.empty()) { in HWTEST_F() 2827 EXPECT_EQ(infos[0].foreground[0], resourceInfo.foreground_[0]); in HWTEST_F() 2872 EXPECT_FALSE(infos[0].foreground in HWTEST_F() [all...] |
/foundation/bundlemanager/bundle_framework/test/fuzztest/fuzztest_others/bundleresparser_fuzzer/ |
H A D | bundleresparser_fuzzer.cpp | 64 "foreground" : "$media:2" in DoSomethingInterestingWithMyAPI()
|