Home
last modified time | relevance | path

Searched refs:realFilePath (Results 1 - 9 of 9) sorted by relevance

/foundation/ability/dmsfwk/common/test/unittest/src/
H A Ddistributed_sched_utils_test.cpp65 std::string realFilePath = ""; in HWTEST_F() local
66 EXPECT_FALSE(IsValidPath(inFilePath, realFilePath)); in HWTEST_F()
67 EXPECT_EQ("", realFilePath); in HWTEST_F()
70 EXPECT_FALSE(IsValidPath(inFilePath, realFilePath)); in HWTEST_F()
71 EXPECT_EQ("", realFilePath); in HWTEST_F()
88 std::string realFilePath = ""; in HWTEST_F() local
89 EXPECT_TRUE(IsValidPath(inFilePath, realFilePath)); in HWTEST_F()
90 EXPECT_FALSE(realFilePath.empty()); in HWTEST_F()
/foundation/bundlemanager/bundle_framework_lite/services/bundlemgr_lite/bundle_daemon/src/
H A Dbundle_daemon_handler.cpp242 char realFilePath[PATH_MAX + 1] = { '\0' }; in RemoveFile() local
243 if (filePath == nullptr || realpath(filePath, realFilePath) == nullptr) { in RemoveFile()
247 if (!IsValideJsonPath(realFilePath) && !IsValideSystemPath(realFilePath) && in RemoveFile()
248 !IsValideCodePath(realFilePath)) { in RemoveFile()
252 if (!BundleFileUtils::RemoveFile(realFilePath)) { in RemoveFile()
/foundation/ability/dmsfwk/common/src/
H A Ddistributed_sched_utils.cpp69 bool IsValidPath(const std::string &inFilePath, std::string &realFilePath) in IsValidPath() argument
78 realFilePath = std::string(path); in IsValidPath()
79 if (realFilePath.empty()) { in IsValidPath()
83 if (!std::filesystem::exists(realFilePath)) { in IsValidPath()
84 HILOGE("The real file path %{public}s does not exist in the file system.", GetAnonymStr(realFilePath).c_str()); in IsValidPath()
85 realFilePath = ""; in IsValidPath()
88 HILOGI("The real file path %{public}s exist in the file system.", GetAnonymStr(realFilePath).c_str()); in IsValidPath()
/foundation/ability/dmsfwk/services/dtbschedmgr/src/mission/
H A Ddsched_sync_e2e.cpp114 bool DmsKvSyncE2E::IsValidPath(const std::string &inFilePath, std::string &realFilePath) in IsValidPath() argument
123 realFilePath = std::string(path); in IsValidPath()
124 if (realFilePath.empty()) { in IsValidPath()
128 if (!std::filesystem::exists(realFilePath)) { in IsValidPath()
129 HILOGE("The real file path %{public}s does not exist in the file system.", GetAnonymStr(realFilePath).c_str()); in IsValidPath()
130 realFilePath = ""; in IsValidPath()
133 HILOGD("The real file path %{public}s exist in the file system.", GetAnonymStr(realFilePath).c_str()); in IsValidPath()
/foundation/ability/dmsfwk/services/dtbschedmgr/test/unittest/mission/
H A Ddsched_sync_e2e_test.cpp275 std::string realFilePath; in HWTEST_F() local
276 bool ret = dmsKvSyncE2E_->GetInstance()->IsValidPath(inFilePath, realFilePath); in HWTEST_F()
280 ret = dmsKvSyncE2E_->GetInstance()->IsValidPath(inFilePath, realFilePath); in HWTEST_F()
/foundation/filemanagement/user_file_service/interfaces/kits/native/trash/src/
H A Dfile_trash_n_exporter.cpp206 string realFilePath = realFilePathWithTime.substr(trashPathWithTimePrefixPos + slashSize); in FindSourceFilePath() local
207 size_t pos = realFilePath.rfind(TRASH_SUB_DIR + timeSlot + "/"); in FindSourceFilePath()
212 string realFilePathPrefix = realFilePath.substr(0, pos); in FindSourceFilePath()
213 string realFileName = realFilePath.substr(pos + TRASH_SUB_DIR.length() + in FindSourceFilePath()
215 realFilePath = "/" + realFilePathPrefix + realFileName; in FindSourceFilePath()
216 HILOG_INFO("FindSourceFilePath: realFilePath After = %{private}s", realFilePath.c_str()); in FindSourceFilePath()
217 return realFilePath; in FindSourceFilePath()
372 string realFilePath = FindSourceFilePath(filterDirent); in GenerateFileInfoEntity() local
382 fileInfoEntity.srcPath = realFilePath; in GenerateFileInfoEntity()
[all...]
/foundation/multimedia/media_foundation/services/media_monitor/server/src/
H A Dmedia_monitor_service.cpp397 std::string realFilePath = fileFloader_ + fileName; in WriteBufferFromQueue() local
399 FILE *dumpFile = fopen(realFilePath.c_str(), "a"); in WriteBufferFromQueue()
400 FALSE_RETURN_MSG(dumpFile != nullptr, "pcm file %{public}s open failed", realFilePath.c_str()); in WriteBufferFromQueue()
408 (void)DeleteHistoryFile(realFilePath); in WriteBufferFromQueue()
409 dumpFile = fopen(realFilePath.c_str(), "a"); in WriteBufferFromQueue()
/foundation/ability/dmsfwk/common/include/
H A Ddistributed_sched_utils.h30 bool IsValidPath(const std::string &inFilePath, std::string &realFilePath);
/foundation/ability/dmsfwk/services/dtbschedmgr/include/mission/
H A Ddsched_sync_e2e.h54 bool IsValidPath(const std::string &inFilePath, std::string &realFilePath);

Completed in 6 milliseconds