/foundation/multimedia/media_library/frameworks/innerkitsimpl/test/unittest/medialibrary_dfx_test/src/ |
H A D | medialibrary_dfx_test.cpp | 103 std::string safePath = DfxUtils::GetSafePath(path); in HWTEST_F() 111 EXPECT_EQ(DfxUtils::JoinStrings(set, ';'), "string2;string1"); in HWTEST_F() 112 EXPECT_EQ(DfxUtils::JoinStrings(set, '!'), "string2!string1"); in HWTEST_F() 113 EXPECT_EQ(DfxUtils::JoinStrings({"string1"}, ';'), "string1"); in HWTEST_F() 114 EXPECT_EQ(DfxUtils::JoinStrings({}, ';'), ""); in HWTEST_F() 121 EXPECT_EQ(DfxUtils::SplitString("string1;string2", ';'), set); in HWTEST_F() 122 EXPECT_EQ(DfxUtils::SplitString("string1!string2", '!'), set); in HWTEST_F() 123 EXPECT_EQ(DfxUtils::SplitString("string1", ';'), unordered_set<string>{"string1"}); in HWTEST_F() 124 EXPECT_EQ(DfxUtils::SplitString("", ';'), unordered_set<string>{}); in HWTEST_F()
|
/foundation/multimedia/media_library/frameworks/services/media_dfx/src/ |
H A D | dfx_utils.cpp | 35 vector<string> DfxUtils::Split(string &input, const string &pattern) in Split() 52 string DfxUtils::GetSafePath(const string &path) in GetSafePath() 74 string DfxUtils::GetSafeDiaplayName(string &displayName) in GetSafeDiaplayName() 102 string DfxUtils::GetCurrentDate() in GetCurrentDate() 116 string DfxUtils::GetCurrentDateMillisecond() in GetCurrentDateMillisecond() 139 string DfxUtils::JoinStrings(const unordered_set<string>& strSet, char delimiter) in JoinStrings() 151 unordered_set<string> DfxUtils::SplitString(const string& input, char delimiter) in SplitString()
|
H A D | dfx_analyzer.cpp | 127 unordered_set<string> allUnadaptedApps = DfxUtils::SplitString(unadaptedAppsStr, ';'); in FlushAdaptationToMovingPhoto() 128 unordered_set<string> allAdaptedApps = DfxUtils::SplitString(adaptedAppsStr, ';'); in FlushAdaptationToMovingPhoto() 137 prefs->PutString(MOVING_PHOTO_KEY_UNADAPTED_PACKAGE, DfxUtils::JoinStrings(allUnadaptedApps, ';')); in FlushAdaptationToMovingPhoto() 139 prefs->PutString(MOVING_PHOTO_KEY_ADAPTED_PACKAGE, DfxUtils::JoinStrings(allAdaptedApps, ';')); in FlushAdaptationToMovingPhoto()
|
H A D | dfx_reporter.cpp | 99 vector<string> thumbnailInfo = DfxUtils::Split(key, SPLIT_CHAR); in ReportThumbnailError() 165 vector<string> deleteInfo = DfxUtils::Split(key, SPLIT_CHAR); in ReportDeleteStatistic() 309 string date = DfxUtils::GetCurrentDate(); in ReportAdaptationToMovingPhoto() 426 string currentDate = DfxUtils::GetCurrentDate(); in ReportMedialibraryAPI()
|
H A D | dfx_database_utils.cpp | 87 photoInfo.data = DfxUtils::GetSafePath(GetStringVal(MediaColumn::MEDIA_FILE_PATH, resultSet)); in QueryDirtyCloudPhoto()
|
H A D | dfx_manager.cpp | 101 string safePath = DfxUtils::GetSafePath(path); in HandleThumbnailError()
|
/foundation/multimedia/media_library/frameworks/services/media_thumbnail/src/ |
H A D | ithumbnail_helper.cpp | 389 MEDIA_ERR_LOG("LoadSourceImage faild, %{public}s", DfxUtils::GetSafePath(data.path).c_str()); in TryLoadSource() 420 MEDIA_ERR_LOG("Fail to create lcd, path: %{public}s", DfxUtils::GetSafePath(opts.path).c_str()); in DoCreateLcd() 425 MEDIA_ERR_LOG("Fail to create lcdEx, path: %{public}s", DfxUtils::GetSafePath(opts.path).c_str()); in DoCreateLcd() 462 MEDIA_ERR_LOG("load source is nullptr path: %{public}s", DfxUtils::GetSafePath(opts.path).c_str()); in IsCreateLcdSuccess() 476 DfxUtils::GetSafePath(opts.path).c_str()); in IsCreateLcdSuccess() 504 DfxUtils::GetSafePath(opts.path).c_str(), data.id.c_str()); in IsCreateLcdExSuccess() 511 MEDIA_ERR_LOG("Fail to create directory, fileName: %{public}s", DfxUtils::GetSafePath(fileName).c_str()); in IsCreateLcdExSuccess() 522 DfxUtils::GetSafePath(opts.path).c_str()); in IsCreateLcdExSuccess() 590 DfxUtils::GetSafePath(opts.path).c_str(), data.id.c_str()); in GenThumbnailEx() 597 MEDIA_ERR_LOG("Fail to create directory, fileName: %{public}s", DfxUtils in GenThumbnailEx() [all...] |
H A D | thumbnail_generate_helper.cpp | 62 DfxUtils::GetSafePath(thumbnailData.path).c_str(), thumbnailData.id.c_str()); in CreateThumbnailFileScaned() 157 DfxUtils::GetSafePath(data.path).c_str()); in CreateAstcCloudDownload() 321 DfxUtils::GetSafePath(data.path).c_str()); in GenerateLocalThumbnail() 329 DfxUtils::GetSafePath(data.path).c_str()); in GenerateLocalThumbnail() 341 DfxUtils::GetSafePath(data.path).c_str()); in GenerateKeyFrameLocalThumbnail() 348 DfxUtils::GetSafePath(data.path).c_str()); in GenerateKeyFrameLocalThumbnail() 371 MEDIA_INFO_LOG("File exists, path: %{public}s", DfxUtils::GetSafePath(fileName).c_str()); in GetAvailableFile() 381 MEDIA_INFO_LOG("Unrotated file exists, path: %{public}s", DfxUtils::GetSafePath(fileName).c_str()); in GetAvailableFile() 385 MEDIA_INFO_LOG("No available file, create thumbnail, path: %{public}s", DfxUtils::GetSafePath(fileName).c_str()); in GetAvailableFile() 387 MEDIA_ERR_LOG("GenerateLocalThumbnail failed, path: %{public}s", DfxUtils in GetAvailableFile() [all...] |
H A D | thumbnail_source_loading.cpp | 126 errno, DfxUtils::GetSafePath(path).c_str());
in IsLocalSourceAvailable() 133 errno, DfxUtils::GetSafePath(path).c_str());
in IsLocalSourceAvailable() 138 errno, DfxUtils::GetSafePath(path).c_str());
in IsLocalSourceAvailable() 148 MEDIA_ERR_LOG("Not real file path: errno: %{public}d, %{public}s", errno, DfxUtils::GetSafePath(path).c_str());
in IsCloudSourceAvailable() 155 errno, DfxUtils::GetSafePath(path).c_str());
in IsCloudSourceAvailable() 300 STATE_NAME_MAP.at(state_).c_str(), DfxUtils::GetSafePath(data_.path).c_str());
in CreateImagePixelMap() 310 DfxUtils::GetSafePath(data_.path).c_str());
in CreateImagePixelMap() 320 MEDIA_ERR_LOG("SourceLoader fail to scaleTarget, path %{public}s", DfxUtils::GetSafePath(data_.path).c_str());
in CreateImagePixelMap() 329 DfxUtils::GetSafePath(data_.path).c_str());
in CreateImagePixelMap() 355 STATE_NAME_MAP.at(state_).c_str(), DfxUtils in CreateSourcePixelMap() [all...] |
H A D | thumbnail_utils.cpp | 133 DfxUtils::GetSafePath(dirName).c_str(), data.id.c_str()); in DeleteThumbExDir() 138 DfxUtils::GetSafePath(dirName).c_str(), data.id.c_str()); in DeleteThumbExDir() 150 DfxUtils::GetSafePath(dirName).c_str(), data.id.c_str()); in DeleteBeginTimestampDir() 164 DfxUtils::GetSafePath(folderPath).c_str(), data.id.c_str()); in DeleteBeginTimestampDir() 186 DfxUtils::GetSafePath(data.path).c_str(), errCode); in LoadAudioFileInfo() 194 DfxUtils::GetSafePath(data.path).c_str(), errCode); in LoadAudioFileInfo() 354 DfxUtils::GetSafePath(path).c_str()); in CenterScaleEx() 374 DfxUtils::GetSafePath(path).c_str()); in CenterScaleEx() 384 DfxUtils::GetSafePath(path).c_str()); in CenterScaleEx() 771 DfxUtils in QueryNoHighlightInfos() [all...] |
/foundation/multimedia/media_library/frameworks/services/media_dfx/include/ |
H A D | dfx_utils.h | 25 class DfxUtils { class
|
/foundation/multimedia/media_library/frameworks/innerkitsimpl/medialibrary_data_extension/src/ |
H A D | medialibrary_meta_recovery.cpp | 324 MEDIA_ERR_LOG("read album file failed, path=%{public}s", DfxUtils::GetSafePath(path).c_str()); in LoadAlbumMaps() 330 DfxUtils::GetSafePath(it->GetLPath()).c_str()); in LoadAlbumMaps() 346 DfxUtils::GetSafePath(lPath).c_str(), albumId); in LoadAlbumMaps() 384 MEDIA_ERR_LOG("file is not exist or no read access, path=%{public}s", DfxUtils::GetSafePath(path).c_str()); in AlbumRecovery() 492 MEDIA_ERR_LOG("invalid photo path, path = %{public}s", DfxUtils::GetSafePath(asset.GetPath()).c_str()); in WriteSingleMetaData() 500 DfxUtils::GetSafePath(metaParentPath).c_str()); in WriteSingleMetaData() 508 DfxUtils::GetSafePath(metaFilePath).c_str()); in WriteSingleMetaData() 515 MEDIA_ERR_LOG("photo: Up to date failed, filePath = %{public}s", DfxUtils::GetSafePath(metaFilePath).c_str()); in WriteSingleMetaData() 662 DfxUtils::GetSafePath(currentPath).c_str(), DfxUtils in ScanMetaDir() [all...] |
H A D | medialibrary_restore.cpp | 66 std::string date = DfxUtils::GetCurrentDateMillisecond(); in CheckRestore()
|
H A D | medialibrary_data_manager.cpp | 205 MEDIA_ERR_LOG("Delete dir fail, dir: %{public}s", DfxUtils::GetSafePath(dir).c_str()); in ReCreateMediaDir()
|
H A D | medialibrary_asset_operations.cpp | 487 MEDIA_DEBUG_LOG("query media_file_path=%{public}s start\n", DfxUtils::GetSafePath(path).c_str()); in CheckExist()
|