Home
last modified time | relevance | path

Searched refs:imagePath (Results 1 - 25 of 35) sorted by relevance

12

/foundation/multimedia/media_library/frameworks/innerkitsimpl/media_library_helper/include/
H A Dmoving_photo_file_utils.h48 EXPORT static std::string GetMovingPhotoVideoPath(const std::string &imagePath, int32_t userId = -1);
49 EXPORT static std::string GetMovingPhotoExtraDataDir(const std::string &imagePath, int32_t userId = -1);
50 EXPORT static std::string GetMovingPhotoExtraDataPath(const std::string &imagePath, int32_t userId = -1);
51 EXPORT static std::string GetSourceMovingPhotoImagePath(const std::string &imagePath, int32_t userId = -1);
52 EXPORT static std::string GetSourceMovingPhotoVideoPath(const std::string &imagePath, int32_t userId = -1);
53 EXPORT static std::string GetLivePhotoCacheDir(const std::string &imagePath, int32_t userId = -1);
54 EXPORT static std::string GetLivePhotoCachePath(const std::string &imagePath, int32_t userId = -1);
55 EXPORT static std::string GetSourceLivePhotoCachePath(const std::string &imagePath, int32_t userId = -1);
60 EXPORT static int32_t GetExtraDataLen(const std::string &imagePath, const std::string &videoPath,
/foundation/arkui/ui_lite/frameworks/common/
H A Dimage.cpp121 char* imagePath = static_cast<char*>(UIMalloc(static_cast<uint32_t>(strLen))); in SetStandardSrc() local
122 if (imagePath == nullptr) { in SetStandardSrc()
126 if (strcpy_s(imagePath, strLen, src) != EOK) { in SetStandardSrc()
127 UIFree(reinterpret_cast<void*>(imagePath)); in SetStandardSrc()
128 imagePath = nullptr; in SetStandardSrc()
131 path_ = imagePath; in SetStandardSrc()
150 char* imagePath = static_cast<char*>(UIMalloc(static_cast<uint32_t>(strLen))); in SetLiteSrc() local
151 if (imagePath == nullptr) { in SetLiteSrc()
155 if (memcpy_s(imagePath, strLen, src, strLen) != EOK) { in SetLiteSrc()
156 UIFree(reinterpret_cast<void*>(imagePath)); in SetLiteSrc()
[all...]
/foundation/multimedia/media_library/frameworks/innerkitsimpl/test/unittest/medialibrary_helper_test/src/
H A Dmoving_photo_file_utils_test.cpp110 string imagePath = dirPath + "/" + "image.jpg"; in HWTEST_F() local
113 EXPECT_EQ(MovingPhotoFileUtils::ConvertToMovingPhoto(livePhotoPath, imagePath, videoPath, extraDataPath), E_OK); in HWTEST_F()
114 EXPECT_EQ(CompareIfContentEquals(FILE_TEST_JPG, imagePath, sizeof(FILE_TEST_JPG)), true); in HWTEST_F()
125 string imagePath = dirPath + "/" + "livePhotoSamePath.jpg"; in HWTEST_F() local
128 EXPECT_EQ(MovingPhotoFileUtils::ConvertToMovingPhoto(livePhotoPath, imagePath, videoPath, extraDataPath), E_OK); in HWTEST_F()
129 EXPECT_EQ(CompareIfContentEquals(FILE_TEST_JPG, imagePath, sizeof(FILE_TEST_JPG)), true); in HWTEST_F()
252 string imagePath = "/storage/cloud/files/Photo/1/IMG_123435213_231.jpg"; in HWTEST_F() local
254 EXPECT_EQ(MovingPhotoFileUtils::GetMovingPhotoVideoPath(imagePath), videoPath); in HWTEST_F()
259 string imagePath = "/storage/cloud/files/.hiddenTest/IMG_123435213_231"; in HWTEST_F() local
260 EXPECT_EQ(MovingPhotoFileUtils::GetMovingPhotoVideoPath(imagePath), ""); in HWTEST_F()
265 string imagePath = "/storage/cloud/files/Photo/1/IMG_123435213_231.jpg"; HWTEST_F() local
272 string imagePath = "/storage/cloud/files/Photo/1/IMG_123435213_231.jpg"; HWTEST_F() local
279 string imagePath = "/storage/cloud/files/Photo/1/IMG_123435213_231.jpg"; HWTEST_F() local
286 string imagePath = "/storage/cloud/files/Photo/1/IMG_123435213_231.jpg"; HWTEST_F() local
295 string imagePath = dirPath + "/" + "livePhotoSamePath.jpg"; HWTEST_F() local
308 string imagePath = dirPath + "/" + "livePhotoSamePath.jpg"; HWTEST_F() local
[all...]
/foundation/multimedia/media_library/frameworks/innerkitsimpl/media_library_helper/src/
H A Dmoving_photo_file_utils.cpp256 int32_t MovingPhotoFileUtils::GetExtraDataLen(const string& imagePath, const string& videoPath, in GetExtraDataLen() argument
260 if (!PathToRealPath(imagePath, absImagePath)) { in GetExtraDataLen()
261 MEDIA_ERR_LOG("file is not real path: %{private}s, errno: %{public}d", imagePath.c_str(), errno); in GetExtraDataLen()
345 string imagePath = AppendUserId(movingPhotoImagepath, userId); in ConvertToLivePhoto() local
357 CHECK_AND_RETURN_RET_LOG(PathToRealPath(imagePath, absImagePath), in ConvertToLivePhoto()
358 E_HAS_FS_ERROR, "file is not real path: %{private}s, errno: %{public}d", imagePath.c_str(), errno); in ConvertToLivePhoto()
737 string MovingPhotoFileUtils::GetMovingPhotoVideoPath(const string &imagePath, int32_t userId) in GetMovingPhotoVideoPath() argument
739 return MediaFileUtils::GetMovingPhotoVideoPath(AppendUserId(imagePath, userId)); in GetMovingPhotoVideoPath()
742 string MovingPhotoFileUtils::GetMovingPhotoExtraDataDir(const string &imagePath, int32_t userId) in GetMovingPhotoExtraDataDir() argument
744 if (imagePath in GetMovingPhotoExtraDataDir()
750 GetMovingPhotoExtraDataPath(const string &imagePath, int32_t userId) GetMovingPhotoExtraDataPath() argument
759 GetSourceMovingPhotoImagePath(const string& imagePath, int32_t userId) GetSourceMovingPhotoImagePath() argument
764 GetSourceMovingPhotoVideoPath(const string& imagePath, int32_t userId) GetSourceMovingPhotoVideoPath() argument
769 GetLivePhotoCacheDir(const string &imagePath, int32_t userId) GetLivePhotoCacheDir() argument
777 GetLivePhotoCachePath(const string &imagePath, int32_t userId) GetLivePhotoCachePath() argument
786 GetSourceLivePhotoCachePath(const string& imagePath, int32_t userId) GetSourceLivePhotoCachePath() argument
[all...]
/foundation/graphic/graphic_2d/graphic_test/graphic_test_framework/src/
H A Drs_graphic_test.cpp171 std::string imagePath = "/data/local/"; in GetImageSavePath() local
174 imagePath.append(subPath); in GetImageSavePath()
177 if (!fs::exists(imagePath)) { in GetImageSavePath()
178 if (!fs::create_directories(imagePath)) { in GetImageSavePath()
182 if (!fs::is_directory(imagePath)) { in GetImageSavePath()
187 return imagePath; in GetImageSavePath()
/foundation/multimodalinput/input/service/window_manager/test/
H A Dknuckle_glow_point_test.cpp45 std::string imagePath = "/system/etc/multimodalinput/mouse_icon/Default.svg"; in SetUp() local
46 pixelMap = DecodeImageToPixelMap(imagePath); in SetUp()
51 std::shared_ptr<OHOS::Media::PixelMap> DecodeImageToPixelMap(const std::string &imagePath) in DecodeImageToPixelMap() argument
56 auto imageSource = OHOS::Media::ImageSource::CreateImageSource(imagePath, opts, ret); in DecodeImageToPixelMap()
H A Dknuckle_divergent_point_test.cpp46 std::string imagePath = "/system/etc/multimodalinput/mouse_icon/Default.svg"; in SetUp() local
47 auto pixelMap = DecodeImageToPixelMap(imagePath); in SetUp()
54 std::shared_ptr<OHOS::Media::PixelMap> DecodeImageToPixelMap(const std::string &imagePath) in DecodeImageToPixelMap() argument
59 auto imageSource = OHOS::Media::ImageSource::CreateImageSource(imagePath, opts, ret); in DecodeImageToPixelMap()
H A Dknuckle_glow_trace_system_test.cpp43 std::string imagePath = "/system/etc/multimodalinput/mouse_icon/Default.svg"; in SetUp() local
44 pixelMap = DecodeImageToPixelMap(imagePath); in SetUp()
49 std::shared_ptr<OHOS::Media::PixelMap> DecodeImageToPixelMap(const std::string &imagePath) in DecodeImageToPixelMap() argument
54 auto imageSource = OHOS::Media::ImageSource::CreateImageSource(imagePath, opts, ret); in DecodeImageToPixelMap()
H A Dknuckle_dynamic_drawing_manager_test.cpp53 std::shared_ptr<Media::PixelMap> DecodeImageToPixelMap(const std::string &imagePath);
58 std::shared_ptr<Media::PixelMap> KnuckleDynamicDrawingManagerTest::DecodeImageToPixelMap(const std::string &imagePath) in DecodeImageToPixelMap() argument
63 auto imageSource = OHOS::Media::ImageSource::CreateImageSource(imagePath, opts, ret); in DecodeImageToPixelMap()
143 std::string imagePath = "/system/etc/multimodalinput/mouse_icon/Default.svg"; in HWTEST_F() local
144 auto pixelMap = DecodeImageToPixelMap(imagePath); in HWTEST_F()
201 std::string imagePath = "/system/etc/multimodalinput/mouse_icon/Default.svg"; in HWTEST_F() local
202 auto pixelMap = DecodeImageToPixelMap(imagePath); in HWTEST_F()
228 std::string imagePath = "/system/etc/multimodalinput/mouse_icon/Default.svg"; in HWTEST_F() local
229 auto pixelMap = DecodeImageToPixelMap(imagePath); in HWTEST_F()
607 std::string imagePath in HWTEST_F() local
[all...]
/foundation/window/window_manager/utils/include/
H A Dsurface_draw.h37 int32_t bufferHeight, const std::string& imagePath);
48 static bool DoDraw(uint8_t* addr, uint32_t width, uint32_t height, const std::string& imagePath);
54 static void DrawPixelmap(Drawing::Canvas& canvas, const std::string& imagePath);
55 static std::unique_ptr<OHOS::Media::PixelMap> DecodeImageToPixelMap(const std::string& imagePath);
/foundation/arkui/ace_engine_lite/frameworks/src/core/components/
H A Dclock_hand_component.cpp184 char *imagePath = JsAppContext::GetInstance()->GetResourcePath(attrValueStr); in SetPrivateAttribute() local
185 if (imagePath != nullptr) { in SetPrivateAttribute()
186 image->SetSrc(imagePath); in SetPrivateAttribute()
187 ace_free(imagePath); in SetPrivateAttribute()
188 imagePath = nullptr; in SetPrivateAttribute()
H A Dimage_animator_component.cpp195 if (frame.imagePath != nullptr) { in ReleaseFrame()
196 ace_free(const_cast<char *>(frame.imagePath)); in ReleaseFrame()
197 frame.imagePath = nullptr; in ReleaseFrame()
243 frame.imagePath = ParseImageSrc(src); in ParseToFrames()
/foundation/arkui/ui_lite/test/unittest/components/
H A Dui_image_animator_unit_test.cpp302 EXPECT_STREQ(imageAnimator_->GetPath(), g_imageAnimatorInfo[2].imagePath); // 2: the last image in HWTEST_F()
323 EXPECT_STREQ(imageAnimator_->GetPath(), g_imageAnimatorInfo[0].imagePath); in HWTEST_F()
344 EXPECT_STREQ(imageAnimator_->GetPath(), g_imageAnimatorInfo[0].imagePath); in HWTEST_F()
365 EXPECT_STREQ(imageAnimator_->GetPath(), g_imageAnimatorInfo[2].imagePath); // 2: the last image in HWTEST_F()
/foundation/ability/ability_runtime/frameworks/native/ability/native/photo_editor_extension_ability/
H A Dphoto_editor_extension_context.cpp115 char imagePath[PATH_MAX] = {0}; in CopyImageToPanel() local
116 if (realpath(imageUri.c_str(), imagePath) == nullptr) { in CopyImageToPanel()
122 sourceFile.open(imagePath, std::ios::binary); in CopyImageToPanel()
/foundation/window/window_manager/utils/src/
H A Dsurface_draw.cpp39 int32_t bufferHeight, const std::string& imagePath) in DrawImage()
51 if (!DoDraw(addr, buffer->GetWidth(), buffer->GetHeight(), imagePath)) { in DrawImage()
160 std::unique_ptr<OHOS::Media::PixelMap> SurfaceDraw::DecodeImageToPixelMap(const std::string& imagePath) in DecodeImageToPixelMap() argument
165 auto imageSource = OHOS::Media::ImageSource::CreateImageSource(imagePath, opts, ret); in DecodeImageToPixelMap()
182 void SurfaceDraw::DrawPixelmap(Drawing::Canvas& canvas, const std::string& imagePath) in DrawPixelmap() argument
184 std::unique_ptr<OHOS::Media::PixelMap> pixelmap = DecodeImageToPixelMap(imagePath); in DrawPixelmap()
198 bool SurfaceDraw::DoDraw(uint8_t* addr, uint32_t width, uint32_t height, const std::string& imagePath) in DoDraw() argument
207 DrawPixelmap(canvas, imagePath); in DoDraw()
38 DrawImage(std::shared_ptr<RSSurfaceNode> surfaceNode, int32_t bufferWidth, int32_t bufferHeight, const std::string& imagePath) DrawImage() argument
/foundation/arkui/ace_engine_lite/frameworks/include/base/
H A Dproduct_adapter.h71 typedef bool (*IsPNGSupportedHandler)(const char *imagePath, const char *bundleName);
170 static bool IsPNGSupportedWrapper(const char *imagePath, const char *bundleName);
/foundation/arkui/ace_engine/frameworks/core/components/theme/
H A Dtheme_utils.cpp165 std::string imagePath = themeConstants->GetString(resId); in ProcessImageSource() local
166 auto seperatorPos = imagePath.rfind('.'); in ProcessImageSource()
171 std::string imageSuffix = imagePath.substr(seperatorPos); in ProcessImageSource()
/foundation/arkui/ui_lite/frameworks/components/
H A Dui_image_animator.cpp93 SetSrc(imageAnimatorInfo->imagePath); in UpdateImage()
175 SetSrc(imageAnimatorInfo->imagePath); in Reset()
/foundation/multimedia/media_library/frameworks/innerkitsimpl/medialibrary_data_extension/src/
H A Dmoving_photo_processor.cpp252 string imagePath = currentData.path; in GetUpdatedMovingPhotoData() local
253 string videoPath = MovingPhotoFileUtils::GetMovingPhotoVideoPath(imagePath); in GetUpdatedMovingPhotoData()
254 string extraDataPath = MovingPhotoFileUtils::GetMovingPhotoExtraDataPath(imagePath); in GetUpdatedMovingPhotoData()
258 if (!MediaFileUtils::GetFileSize(imagePath, imageSize) || imageSize == 0) { in GetUpdatedMovingPhotoData()
276 string extraDataDir = MovingPhotoFileUtils::GetMovingPhotoExtraDataDir(imagePath); in GetUpdatedMovingPhotoData()
/foundation/multimodalinput/input/service/window_manager/include/
H A Dknuckle_dynamic_drawing_manager.h53 std::shared_ptr<OHOS::Media::PixelMap> DecodeImageToPixelMap(const std::string &imagePath);
/foundation/arkui/ui_lite/interfaces/kits/components/
H A Dui_image_animator.h49 const char* imagePath; member
/foundation/arkui/ace_engine_lite/frameworks/src/core/base/
H A Dproduct_adapter.cpp386 bool ProductAdapter::IsPNGSupportedWrapper(const char *imagePath, const char *bundleName) in IsPNGSupportedWrapper() argument
388 return (g_isPNGSupportedHandler != nullptr) ? g_isPNGSupportedHandler(imagePath, bundleName) : false; in IsPNGSupportedWrapper()
H A Djs_fwk_common.cpp1157 void ExpandImagePathMem(char *&imagePath, const int16_t dotPos, const int16_t suffixLen, const int16_t imagePathLen) in ExpandImagePathMem() argument
1170 ACE_FREE(imagePath); in ExpandImagePathMem()
1174 errno_t err = strcpy_s(newImagePath, len, imagePath); in ExpandImagePathMem()
1179 ACE_FREE(imagePath); in ExpandImagePathMem()
1183 ace_free(imagePath); in ExpandImagePathMem()
1184 imagePath = newImagePath; in ExpandImagePathMem()
/foundation/arkui/ace_engine/frameworks/bridge/card_frontend/
H A Djs_card_parser.cpp797 std::string imagePath; in GetResImageUrl() local
800 LoadResImageUrl(jsonFile, splitStr, imagePath); in GetResImageUrl()
802 if (!themeArray[mode].empty() && imagePath.empty()) { in GetResImageUrl()
805 LoadResImageUrl(jsonFile, splitStr, imagePath); in GetResImageUrl()
808 if (!themeArray[mode].empty() && imagePath.empty()) { in GetResImageUrl()
810 LoadResImageUrl(jsonFile, splitStr, imagePath); in GetResImageUrl()
813 if (imagePath.empty()) { in GetResImageUrl()
815 LoadResImageUrl(jsonFile, splitStr, imagePath); in GetResImageUrl()
817 value = imagePath; in GetResImageUrl()
818 imageUrlMap_.emplace(splitStr + themeArray[mode], imagePath); in GetResImageUrl()
[all...]
/foundation/multimedia/media_library/frameworks/services/media_scanner/src/scanner/
H A Dmetadata.cpp515 void Metadata::SetMovingPhotoImagePath(const VariantData &imagePath) in SetMovingPhotoImagePath() argument
517 movingPhotoImagePath_ = std::get<string>(imagePath); in SetMovingPhotoImagePath()

Completed in 19 milliseconds

12