/foundation/multimedia/media_library/frameworks/innerkitsimpl/test/unittest/medialibrary_multistages_capture_test/src/ |
H A D | medialibrary_multistages_video_capture_test.cpp | 56 string GetTempFilePath(const string &filePath)
in GetTempFilePath() argument 58 return filePath.substr(0, filePath.rfind('.')) + "_tmp" + filePath.substr(filePath.rfind('.'));
in GetTempFilePath() 61 void PrepareBaseVideoFile(const string &filePath)
in PrepareBaseVideoFile() argument 63 int fd = open(filePath.c_str(), O_WRONLY | O_CREAT, 0644);
in PrepareBaseVideoFile() 72 void PrepareTempVideoFile(const string &filePath)
in PrepareTempVideoFile() argument 74 string tempFilePath = GetTempFilePath(filePath);
in PrepareTempVideoFile() 105 string ReadFileContent(const string &filePath)
in ReadFileContent() argument 234 string filePath = GetFilePath(fileId); HWTEST_F() local 261 string filePath = GetFilePath(fileId); HWTEST_F() local 305 string filePath = "/a/b/c/d.mp4"; HWTEST_F() local 325 string filePath = GetFilePath(fileId); HWTEST_F() local 354 string filePath = GetFilePath(fileId); HWTEST_F() local 392 string filePath = GetFilePath(fileId); HWTEST_F() local 426 string filePath = GetFilePath(fileId); HWTEST_F() local 463 string filePath = GetFilePath(fileId); HWTEST_F() local 497 string filePath = GetFilePath(fileId); HWTEST_F() local [all...] |
/foundation/multimedia/ringtone_library/test/unittest/ringtone_utils_test/src/ |
H A D | ringtone_file_utils_test.cpp | 80 string filePath = string(count, 'a') + ".ogg"; in HWTEST_F() local 81 ret = RingtoneFileUtils::OpenFile(filePath, RINGTONE_FILEMODE_WRITEONLY); in HWTEST_F() 83 filePath = "ringtoneFileUtils_OpenFile_Test_001.ogg"; in HWTEST_F() 84 ret = RingtoneFileUtils::OpenFile(filePath, "z"); in HWTEST_F() 112 const string filePath = "/data/test/isfileexists_001"; in HWTEST_F() local 113 EXPECT_EQ(RingtoneFileUtils::IsFileExists(filePath), false); in HWTEST_F() 118 const string filePath = "/data/local/tmp/test/createfile_001.ogg"; in HWTEST_F() local 119 EXPECT_EQ(RingtoneFileUtils::CreateFile(filePath), E_SUCCESS); in HWTEST_F() 124 string filePath = DEFAULT_STR; in HWTEST_F() local 125 EXPECT_EQ(RingtoneFileUtils::CreateFile(filePath), E_VIOLATION_PARAMETER in HWTEST_F() 132 const string filePath = "/data/local/tmp/test/createfile_003.ogg"; HWTEST_F() local 139 const string filePath = "/data/local/tmp/test/test/test/test/createfile_004.ogg"; HWTEST_F() local 145 string filePath = "/ringtoneFileUtils_GetFileNameFromPath_Test_001/createfile_001.ogg"; HWTEST_F() local 158 string filePath = "data/createfile_001."; HWTEST_F() local 179 const string filePath = "/data/local/tmp/test/createfile_003.ogg"; HWTEST_F() local [all...] |
/foundation/arkui/ace_engine/adapter/ohos/entrance/pa_engine/engine/common/ |
H A D | js_backend_asset_manager.cpp | 40 void JsBackendAssetManager::GetFileInfo(const std::string& fileUri, std::string& fileName, std::string& filePath) in GetFileInfo() argument 47 filePath = fileUri.substr(0, slashPos + 1); in GetFileInfo() 50 if (Framework::StartWith(filePath, SLASHSTR)) { in GetFileInfo() 51 filePath = filePath.substr(1); in GetFileInfo() 62 std::string filePath; in ParseWorkerUri() local 63 GetFileInfo(fileUri, fileName, filePath); in ParseWorkerUri() 64 if (Framework::StartWith(filePath, SUPDIRECTORY)) { in ParseWorkerUri() 65 filePath = filePath in ParseWorkerUri() 91 std::string filePath; ParseFileUri() local [all...] |
/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/app/src/security/ |
H A D | security.cpp | 65 DBStatus Security::SetSecurityOption(const std::string &filePath, const SecurityOption &option) in SetSecurityOption() argument 67 if (filePath.empty()) { in SetSecurityOption() 72 stat(filePath.c_str(), &curStat); in SetSecurityOption() 74 return SetDirSecurityOption(filePath, option); in SetSecurityOption() 76 return SetFileSecurityOption(filePath, option); in SetSecurityOption() 80 DBStatus Security::GetSecurityOption(const std::string &filePath, SecurityOption &option) const in GetSecurityOption() argument 82 if (filePath.empty()) { in GetSecurityOption() 87 stat(filePath.c_str(), &curStat); in GetSecurityOption() 89 return GetDirSecurityOption(filePath, option); in GetSecurityOption() 91 return GetFileSecurityOption(filePath, optio in GetSecurityOption() 208 SetFileSecurityOption(const std::string &filePath, const SecurityOption &option) SetFileSecurityOption() argument 238 SetDirSecurityOption(const std::string &filePath, const SecurityOption &option) SetDirSecurityOption() argument 246 GetFileSecurityOption(const std::string &filePath, SecurityOption &option) const GetFileSecurityOption() argument 268 GetDirSecurityOption(const std::string &filePath, SecurityOption &option) const GetDirSecurityOption() argument [all...] |
/foundation/filemanagement/app_file_service/tests/unittests/backup_utils/b_json/ |
H A D | b_json_cached_entity_test.cpp | 53 std::string filePath = path + ".json";
in HWTEST_F() local 54 BJsonCachedEntity<BJsonEntityCaps> jce(UniqueFd(open(filePath.data(), O_RDWR | O_CREAT, 0600)));
in HWTEST_F() 78 std::string filePath = path + "";
in HWTEST_F() local 79 BJsonCachedEntity<BJsonEntityCaps> jce(UniqueFd(open(filePath.data(), O_RDWR | O_CREAT, 0600)));
in HWTEST_F() 103 std::string filePath = path + ".json";
in HWTEST_F() local 104 BJsonCachedEntity<BJsonEntityCaps> jce(UniqueFd(open(filePath.data(), O_RDWR | O_CREAT, NULL)));
in HWTEST_F() 128 std::string filePath = path + ".json";
in HWTEST_F() local 129 BJsonCachedEntity<BJsonEntityCaps> jce(UniqueFd(open(filePath.data(), O_RDONLY, NULL)));
in HWTEST_F() 153 std::string filePath = path + "";
in HWTEST_F() local 154 BJsonCachedEntity<BJsonEntityCaps> jce(UniqueFd(open(filePath in HWTEST_F() 178 std::string filePath = path + ""; HWTEST_F() local 203 std::string filePath = path + ""; HWTEST_F() local 228 std::string filePath = path + ".json"; HWTEST_F() local 254 std::string filePath = path + ".json"; HWTEST_F() local 280 std::string filePath = path + ".json"; HWTEST_F() local 306 std::string filePath = path + ".json"; HWTEST_F() local 333 std::string filePath = path + ".json"; HWTEST_F() local [all...] |
H A D | b_json_service_disposal_config_test.cpp | 71 string filePath = PATH + CONFIG_NAME; in HWTEST_F() local 72 ofstream outFile(filePath); in HWTEST_F() 75 EXPECT_EQ(access(filePath.c_str(), F_OK), 0); in HWTEST_F() 96 string filePath = PATH + CONFIG_NAME; in HWTEST_F() local 98 EXPECT_EQ(access(filePath.c_str(), F_OK), 0); in HWTEST_F() 119 string filePath = PATH + CONFIG_NAME; in HWTEST_F() local 121 EXPECT_EQ(access(filePath.c_str(), F_OK), 0); in HWTEST_F() 145 string filePath = PATH + CONFIG_NAME; in HWTEST_F() local 147 EXPECT_EQ(access(filePath.c_str(), F_OK), 0); in HWTEST_F() 173 string filePath in HWTEST_F() local 201 string filePath = PATH + CONFIG_NAME; HWTEST_F() local 231 string filePath = PATH + CONFIG_NAME; HWTEST_F() local 259 string filePath = PATH + CONFIG_NAME; HWTEST_F() local 289 string filePath = PATH + CONFIG_NAME; HWTEST_F() local 321 string filePath = PATH + CONFIG_NAME; HWTEST_F() local 350 string filePath = PATH + CONFIG_NAME; HWTEST_F() local 375 string filePath = PATH + CONFIG_NAME; HWTEST_F() local [all...] |
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/gaussdb_rd/src/common/src/ |
H A D | os_api.cpp | 31 bool CheckPathPermission(const std::string &filePath) in CheckPathPermission() argument 33 return (access(filePath.c_str(), R_OK) == 0) && (access(filePath.c_str(), W_OK) == 0); in CheckPathPermission() 36 bool IsPathExist(const std::string &filePath) in IsPathExist() argument 38 return (access(filePath.c_str(), ACCESS_MODE_EXISTENCE) == 0); in IsPathExist() 75 void SplitFilePath(const std::string &filePath, std::string &fieldir, std::string &fileName) in SplitFilePath() argument 77 if (filePath.empty()) { in SplitFilePath() 81 auto slashPos = filePath.find_last_of('/'); in SplitFilePath() 83 fileName = filePath; in SplitFilePath() 88 fieldir = filePath in SplitFilePath() [all...] |
/foundation/filemanagement/app_file_service/tests/unittests/backup_utils/b_filesystem/ |
H A D | b_file_test.cpp | 46 string filePath = path + "temp.txt";
in GetTestFile() local 48 if (bool contentCreate = SaveStringToFile(filePath, content, true); !contentCreate) {
in GetTestFile() 51 return {filePath, content};
in GetTestFile() 68 const auto [filePath, content] = GetTestFile(tm);
in HWTEST_F() 70 unique_ptr<char[]> result = bf.ReadFile(UniqueFd(open(filePath.data(), O_RDWR)));
in HWTEST_F() 94 const auto [filePath, content] = GetTestFile(tm);
in HWTEST_F() 98 UniqueFd(open(filePath.data(), O_RDWR | O_CREAT, S_IRWXU)));
in HWTEST_F() 122 const auto [filePath, content] = GetTestFile(tm);
in HWTEST_F() 125 auto ret = BFile::CopyFile(filePath, fileInPath);
in HWTEST_F() 128 ret = BFile::CopyFile(filePath, filePat in HWTEST_F() [all...] |
H A D | b_file_hash_test.cpp | 45 string filePath = path + "temp.txt";
in GetTestFile() local 47 if (bool contentCreate = SaveStringToFile(filePath, content, true); !contentCreate) {
in GetTestFile() 50 return {filePath, content};
in GetTestFile() 66 const auto [filePath, content] = GetTestFile(tm);
in HWTEST_F() 68 auto [res, fileHash] = BackupFileHash::HashWithSHA256(filePath);
in HWTEST_F() 90 std::string filePath = "/errPath";
in HWTEST_F() local 91 auto [res, fileHash] = BackupFileHash::HashWithSHA256(filePath);
in HWTEST_F()
|
/foundation/graphic/graphic_2d/rosen/modules/render_service_base/src/benchmarks/ |
H A D | file_utils.cpp | 33 std::string GetRealAndValidPath(const std::string& filePath) in GetRealAndValidPath() argument 36 if (!PathToRealPath(filePath, realPathStr)) { in GetRealAndValidPath() 48 bool CreateFile(const std::string& filePath) in CreateFile() argument 50 std::string realPath = GetRealAndValidPath(filePath); in CreateFile() 64 bool WriteToFile(uintptr_t data, size_t size, const std::string& filePath) in WriteToFile() argument 66 if (size == 0 || !CreateFile(filePath)) { in WriteToFile() 69 if (filePath.empty()) { in WriteToFile() 72 int fd = open(filePath.c_str(), O_RDWR | O_CREAT, static_cast<mode_t>(0600)); in WriteToFile() 74 RS_LOGE("FileUtils: %{public}s failed. file: %{public}s, fd < 0", __func__, filePath.c_str()); in WriteToFile() 103 bool WriteStringToFile(const std::string& str, const std::string& filePath) in WriteStringToFile() argument [all...] |
/foundation/filemanagement/app_file_service/utils/src/b_json/ |
H A D | b_json_service_disposal_config.cpp | 34 string filePath = PATH_BUNDLE_BACKUP_HOME + CONFIG_NAME; in BJsonDisposalConfig() local 35 if (access(filePath.c_str(), F_OK) == 0) { in BJsonDisposalConfig() 36 HILOGI("file exist filePath:%{public}s", filePath.c_str()); in BJsonDisposalConfig() 39 HILOGI("Failed to access filePath :%{public}s", filePath.c_str()); in BJsonDisposalConfig() 40 UniqueFd fd(open(filePath.c_str(), O_RDWR | O_CREAT, S_IRUSR | S_IWUSR)); in BJsonDisposalConfig() 42 HILOGE("Failed to creat filePath :%{public}s", filePath.c_str()); in BJsonDisposalConfig() 64 ofstream outFile(filePath); in BJsonDisposalConfig() 80 string filePath = PATH_BUNDLE_BACKUP_HOME + CONFIG_NAME; AppendIntoDisposalConfigFile() local 134 string filePath = PATH_BUNDLE_BACKUP_HOME + CONFIG_NAME; DeleteFromDisposalConfigFile() local 188 string filePath = PATH_BUNDLE_BACKUP_HOME + CONFIG_NAME; IfBundleNameInDisposalConfigFile() local 232 string filePath = PATH_BUNDLE_BACKUP_HOME + CONFIG_NAME; GetBundleNameFromConfigFile() local 267 string filePath = PATH_BUNDLE_BACKUP_HOME + CONFIG_NAME; DeleteConfigFile() local [all...] |
/foundation/distributeddatamgr/kv_store/frameworks/innerkitsimpl/kvdb/src/ |
H A D | process_system_api_adapter_impl.cpp | 50 ProcessSystemApiAdapterImpl::DBStatus ProcessSystemApiAdapterImpl::SetSecurityOption(const std::string &filePath, in SetSecurityOption() argument 53 if (filePath.empty() || option.securityLabel < Label::NOT_SET || option.securityLabel > Label::S4) { in SetSecurityOption() 58 stat(filePath.c_str(), &curStat); in SetSecurityOption() 63 if (access(filePath.c_str(), F_OK) != 0) { in SetSecurityOption() 72 bool result = SecurityLabel::SetSecurityLabel(filePath, secLevel); in SetSecurityOption() 74 auto fPath = filePath.substr(0, HEAD_SIZE) + REPLACE_CHAIN + in SetSecurityOption() 75 filePath.substr(filePath.length() - END_SIZE, END_SIZE); in SetSecurityOption() 82 ProcessSystemApiAdapterImpl::DBStatus ProcessSystemApiAdapterImpl::GetSecurityOption(const std::string &filePath, in GetSecurityOption() argument 85 if (filePath in GetSecurityOption() [all...] |
H A D | system_api.cpp | 45 SystemApi::DBStatus SystemApi::SetSecurityOption(const std::string &filePath, const DBOption &option) in SetSecurityOption() argument 47 if (filePath.empty() || option.securityLabel < Label::NOT_SET || option.securityLabel > Label::S4) { in SetSecurityOption() 52 stat(filePath.c_str(), &curStat); in SetSecurityOption() 57 if (access(filePath.c_str(), F_OK) != 0) { in SetSecurityOption() 66 bool result = SecurityLabel::SetSecurityLabel(filePath, secLevel); in SetSecurityOption() 69 StoreUtil::Anonymous(filePath).c_str()); in SetSecurityOption() 76 SystemApi::DBStatus SystemApi::GetSecurityOption(const std::string &filePath, DBOption &option) const in GetSecurityOption() argument 78 if (filePath.empty()) { in GetSecurityOption() 83 stat(filePath.c_str(), &curStat); in GetSecurityOption() 88 if (access(filePath in GetSecurityOption() [all...] |
/foundation/arkui/ui_lite/test/autotest/src/ |
H A D | compare_tools.cpp | 46 bool CompareTools::StrnCatPath(char* filePath, size_t pathMax, const char* fileName, size_t count) in StrnCatPath() argument 48 if ((filePath == nullptr) || (pathMax > DEFAULT_FILE_NAME_MAX_LENGTH)) { in StrnCatPath() 59 if (memcpy_s(static_cast<void *>(filePath), pathMax, dest, DEFAULT_FILE_NAME_MAX_LENGTH) != EOK) { in StrnCatPath() 203 bool CompareTools::CompareFile(const char* filePath, size_t length) in CompareFile() argument 205 if ((filePath == nullptr) || (length > DEFAULT_FILE_NAME_MAX_LENGTH)) { in CompareFile() 209 uint32_t fd = open(filePath, O_RDONLY | O_BINARY); in CompareFile() 211 uint32_t fd = open(filePath, O_RDONLY); in CompareFile() 219 GRAPHIC_LOGI("[COMPARE_SUCCESS]:fileName=%s", filePath); in CompareFile() 222 if (sprintf_s(logInfo, sizeof(logInfo), "[COMPARE_SUCCESS]:fileName=%s\n", filePath) < 0) { in CompareFile() 228 GRAPHIC_LOGI("[COMPARE_FAILURE]:fileName=%s", filePath); in CompareFile() 269 SaveResultLog(const char* filePath, const char* buff, size_t bufSize) SaveResultLog() argument 278 SaveFile(const char* filePath, size_t length) SaveFile() argument 296 CheckFileExist(const char* filePath, size_t length) CheckFileExist() argument 309 SetLogPath(const char* filePath, size_t length) SetLogPath() argument 333 SaveLog(const char* buff, size_t bufSize, const char* filePath) SaveLog() argument [all...] |
/foundation/multimedia/media_library/frameworks/services/media_multistages_capture/src/utils/ |
H A D | file_utils.cpp | 59 int32_t FileUtils::SaveImage(const string &filePath, void *output, size_t writeSize)
in SaveImage() argument 64 string filePathTemp = filePath + ".high";
in SaveImage() 70 MEDIA_DEBUG_LOG("filePath: %{private}s, fd: %{public}d", filePath.c_str(), fd);
in SaveImage() 80 ret = rename(filePathTemp.c_str(), filePath.c_str());
in SaveImage() 188 int32_t FileUtils::SaveVideo(const std::string &filePath, bool isEdited)
in SaveVideo() argument 190 string tempPath = filePath.substr(0, filePath.rfind('.')) + "_tmp" + filePath.substr(filePath in SaveVideo() 208 DeleteTempVideoFile(const std::string &filePath) DeleteTempVideoFile() argument [all...] |
/foundation/resourceschedule/device_standby/utils/policy/src/ |
H A D | json_utils.cpp | 51 bool JsonUtils::LoadJsonValueFromFile(nlohmann::json& jsonValue, const std::string& filePath) in LoadJsonValueFromFile() argument 54 if (!GetFileContent(filePath, content)) { in LoadJsonValueFromFile() 55 STANDBYSERVICE_LOGE("failed to load content from %{public}s", filePath.c_str()); in LoadJsonValueFromFile() 59 STANDBYSERVICE_LOGE("content of %{public}s is empty", filePath.c_str()); in LoadJsonValueFromFile() 64 STANDBYSERVICE_LOGE("failed to parse content from %{public}s", filePath.c_str()); in LoadJsonValueFromFile() 68 STANDBYSERVICE_LOGE("the content of %{public}s is not an object ", filePath.c_str()); in LoadJsonValueFromFile() 74 bool JsonUtils::DumpJsonValueToFile(const nlohmann::json& jsonValue, const std::string& filePath) in DumpJsonValueToFile() argument 76 if (!CreateNodeFile(filePath)) { in DumpJsonValueToFile() 82 if (!GetRealPath(filePath, realPath)) { in DumpJsonValueToFile() 83 STANDBYSERVICE_LOGE("get real file path: %{public}s failed", filePath in DumpJsonValueToFile() 96 CreateNodeFile(const std::string &filePath) CreateNodeFile() argument 193 GetFileContent(const std::string& filePath, std::string& content) GetFileContent() argument [all...] |
/foundation/multimedia/media_foundation/test/scenetest/ |
H A D | test_single_audio_recorder_fast_audio_function.h | 75 void CheckAudio(std::string filePath, AudioRecordSource recordSource) in FIXTURE() argument 78 ASSERT_EQ(0, player->SetSource(TestSource(filePath))); in FIXTURE() 104 std::string filePath = std::string(recorder->GetOutputDir() + "/test.m4a"); in FIXTURE() local 105 fd = open(filePath.c_str(), O_RDWR | O_CREAT | O_BINARY, 0644); // 0644, permission in FIXTURE() 114 CheckAudio(filePath, recordSource); in FIXTURE() 123 std::string filePath = std::string(recorder->GetOutputDir() + "/test.m4a"); in FIXTURE() local 124 fd = open(filePath.c_str(), O_RDWR | O_CREAT | O_BINARY, 0644); // 0644, permission in FIXTURE() 134 CheckAudio(filePath, recordSource); in FIXTURE() 143 std::string filePath = std::string(recorder->GetOutputDir() + "/test.m4a"); in FIXTURE() local 144 fd = open(filePath in FIXTURE() 164 std::string filePath = std::string(recorder->GetOutputDir() + "/test.m4a"); FIXTURE() local 185 std::string filePath = std::string(recorder->GetOutputDir() + "/test.m4a"); FIXTURE() local 206 std::string filePath = std::string(recorder->GetOutputDir() + "/test.m4a"); FIXTURE() local 228 std::string filePath = std::string(recorder->GetOutputDir() + "/test.m4a"); FIXTURE() local 251 std::string filePath = std::string(recorder->GetOutputDir() + "/test.m4a"); FIXTURE() local 280 std::string filePath = std::string(recorder->GetOutputDir() + "/test.m4a"); FIXTURE() local 307 std::string filePath = std::string(recorder->GetOutputDir() + "/test.m4a"); FIXTURE() local 333 std::string filePath = std::string(recorder->GetOutputDir() + "/test.m4a"); FIXTURE() local 353 std::string filePath = std::string(recorder->GetOutputDir() + "/test.m4a"); FIXTURE() local 372 std::string filePath = std::string(recorder->GetOutputDir() + "/test.m4a"); FIXTURE() local [all...] |
/foundation/ability/idl_tool/metadata/ |
H A D | metadata_reader.cpp | 27 std::shared_ptr<MetaComponent> MetadataReader::ReadMetadataFromFile(const String& filePath) in ReadMetadataFromFile() argument 29 File file(filePath, File::READ); in ReadMetadataFromFile() 31 Logger::E(tag, "Open \"%s\" file failed.", filePath.string()); in ReadMetadataFromFile() 36 Logger::E(tag, "Reset \"%s\" file failed.", filePath.string()); in ReadMetadataFromFile() 43 Logger::E(tag, "Read \"%s\" file failed.", filePath.string()); in ReadMetadataFromFile() 48 Logger::E(tag, "The metadata in \"%s\" file is bad.", filePath.string()); in ReadMetadataFromFile() 53 Logger::E(tag, "Reset \"%s\" file failed.", filePath.string()); in ReadMetadataFromFile() 64 Logger::E(tag, "Read \"%s\" file failed.", filePath.string()); in ReadMetadataFromFile()
|
/foundation/ability/ability_base/interfaces/kits/native/extractortool/src/ |
H A D | zip_file_reader.cpp | 28 std::shared_ptr<ZipFileReader> ZipFileReader::CreateZipFileReader(const std::string &filePath) in CreateZipFileReader() argument 30 size_t fileSize = GetFileLen(filePath); in CreateZipFileReader() 32 ABILITYBASE_LOGE("fileSize error: %{public}s", filePath.c_str()); in CreateZipFileReader() 36 std::shared_ptr<ZipFileReader> result = std::make_shared<ZipFileReaderIo>(filePath); in CreateZipFileReader() 52 size_t ZipFileReader::GetFileLen(const std::string &filePath) in GetFileLen() argument 54 if (filePath.empty()) { in GetFileLen() 59 if (stat(filePath.c_str(), &fileStat) == 0) { in GetFileLen() 63 ABILITYBASE_LOGE("error: %{public}s : %{public}d", filePath.c_str(), errno); in GetFileLen()
|
/foundation/graphic/graphic_3d/lume/LumeEngine/src/os/ohos/ |
H A D | library_ohos.cpp | 62 ILibrary::Ptr ILibrary::Load(const string_view filePath) in Load() argument 67 if (filePath.find(LIB_NAME(LIB_ENGINE_CORE)) == string_view::npos && in Load() 68 filePath.find(LIB_NAME(LIB_RENDER)) == string_view::npos && in Load() 69 filePath.find(LIB_NAME(LIB_CORE3D)) == string_view::npos && in Load() 70 filePath.find("libMotPhysPlugin.z.so") == string_view::npos && in Load() 71 filePath.find("libPluginMetaObject") == string_view::npos && in Load() 72 filePath.find("libPluginSceneWidget") == string_view::npos) { in Load() 76 return ILibrary::Ptr { new LibraryOHOS(filePath) }; in Load()
|
/foundation/distributeddatamgr/preferences/frameworks/native/platform/include/ |
H A D | preferences_file_operation.h | 71 static UNUSED_FUNCTION int Mkdir(const std::string &filePath) in Mkdir() argument 74 return mkdir(filePath.c_str()); in Mkdir() 76 return mkdir(filePath.c_str(), FILE_MODE); in Mkdir() 80 static UNUSED_FUNCTION int Access(const std::string &filePath) in Access() argument 83 return _access(filePath.c_str(), FILE_EXIST); in Access() 85 return access(filePath.c_str(), FILE_EXIST); in Access() 89 static UNUSED_FUNCTION bool Fsync(const std::string &filePath) in Fsync() argument 92 int fd = _open(filePath.c_str(), _O_WRONLY, _S_IWRITE); in Fsync() 103 int fd = open(filePath.c_str(), O_RDWR, S_IRUSR | S_IWUSR); in Fsync()
|
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/test/unittest/common/interfaces/ |
H A D | process_system_api_adapter_impl.cpp | 61 DBStatus ProcessSystemApiAdapterImpl::SetSecurityOption(const std::string &filePath, const SecurityOption &option) in SetSecurityOption() argument 63 bool isExisted = OS::CheckPathExistence(filePath); in SetSecurityOption() 65 LOGE("SetSecurityOption to unexistence dir![%s]", filePath.c_str()); in SetSecurityOption() 71 DIR *dirPtr = opendir(filePath.c_str()); in SetSecurityOption() 73 LOGD("set path secOpt![%s] [%d] [%d]", filePath.c_str(), option.securityFlag, option.securityLabel); in SetSecurityOption() 74 pathSecOptDic_[filePath] = option; in SetSecurityOption() 90 dirName.append(filePath).append("/").append(str); in SetSecurityOption() 104 pathSecOptDic_[filePath] = option; in SetSecurityOption() 108 DBStatus ProcessSystemApiAdapterImpl::GetSecurityOption(const std::string &filePath, SecurityOption &option) const in GetSecurityOption() argument 111 return getSecurityOptionCallBack_(filePath, optio in GetSecurityOption() [all...] |
/foundation/multimedia/media_library/frameworks/innerkitsimpl/test/unittest/medialibrary_helper_test/src/ |
H A D | media_file_utils_test.cpp | 37 string filePath = "/data/test/isfileexists_001"; in HWTEST_F() local 38 EXPECT_EQ(MediaFileUtils::IsFileExists(filePath), false); in HWTEST_F() 64 string filePath = "/data/test/createfile_001"; in HWTEST_F() local 65 EXPECT_EQ(MediaFileUtils::CreateFile(filePath), true); in HWTEST_F() 70 string filePath = ""; in HWTEST_F() local 71 EXPECT_EQ(MediaFileUtils::CreateFile(filePath), false); in HWTEST_F() 76 string filePath = "/data/test/createfile_003"; in HWTEST_F() local 77 EXPECT_EQ(MediaFileUtils::CreateFile(filePath), true); in HWTEST_F() 78 EXPECT_EQ(MediaFileUtils::CreateFile(filePath), false); in HWTEST_F() 83 string filePath in HWTEST_F() local 89 string filePath = "/data/test/deletefile_001"; HWTEST_F() local 136 CheckFileString(const string &filePath, const string &text) CheckFileString() argument 384 string filePath = ""; HWTEST_F() local 390 string filePath = "test"; HWTEST_F() local 396 string filePath = "test/"; HWTEST_F() local 402 string filePath = "test/test"; HWTEST_F() local 408 string filePath = ""; HWTEST_F() local 414 string filePath = "/1234546541315645464545165"; HWTEST_F() local 420 string filePath = ROOT_MEDIA_DIR; HWTEST_F() local 426 string filePath = ROOT_MEDIA_DIR + DOCS_PATH; HWTEST_F() local 434 string filePath = ""; HWTEST_F() local 440 string filePath = "/1234546541315645464545165"; HWTEST_F() local 446 string filePath = ROOT_MEDIA_DIR; HWTEST_F() local 452 string filePath = ROOT_MEDIA_DIR + PHOTO_BUCKET; HWTEST_F() local 464 string filePath = ROOT_MEDIA_DIR + AUDIO_DIR_VALUES; HWTEST_F() local 578 string filePath; HWTEST_F() local 802 const std::string filePath; HWTEST_F() local 826 const string filePath; HWTEST_F() local [all...] |
/foundation/multimedia/media_library/frameworks/services/media_multistages_capture/src/ |
H A D | multistages_video_capture_manager.cpp | 52 const std::string &filePath)
in AddVideoInternal() 55 MEDIA_INFO_LOG("AddVideoInternal filePath = %{public}s", filePath.c_str());
in AddVideoInternal() 58 if (!PathToRealPath(filePath, absSrcFilePath)) {
in AddVideoInternal() 59 MEDIA_ERR_LOG("file is not real path, file path: %{private}s", filePath.c_str());
in AddVideoInternal() 70 string dirPath = filePath.substr(0, filePath.rfind('/'));
in AddVideoInternal() 78 string tempPath = realDirPath + filePath.substr(filePath.rfind('/'),
in AddVideoInternal() 79 filePath in AddVideoInternal() 51 AddVideoInternal(const std::string &videoId, const std::string &filePath) AddVideoInternal() argument 92 AddVideo(const std::string &videoId, const std::string &fileId, const std::string &filePath) AddVideo() argument 155 string filePath = GetStringVal(MEDIA_DATA_DB_FILE_PATH, resultSet); SyncWithDeferredVideoProcSessionInternal() local [all...] |
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/test/moduletest/src/ |
H A D | distributeddb_kv_backup_test.cpp | 119 const std::string filePath = exportPath + "/bkpDB.bin"; in HWTEST_F() local 120 EXPECT_EQ(g_kvBackupDelegate->Export(filePath, NULL_PASSWD), INVALID_ARGS); in HWTEST_F() 127 EXPECT_EQ(g_kvBackupDelegate->Export(filePath, NULL_PASSWD), OK); in HWTEST_F() 174 const std::string filePath = exportPath + "/bkpDB.bin"; in HWTEST_F() local 175 EXPECT_EQ(g_kvBackupDelegate->Export(filePath, NULL_PASSWD), OK); in HWTEST_F() 183 EXPECT_EQ(g_kvBackupDelegate->Export(filePath, NULL_PASSWD), FILE_ALREADY_EXISTED); in HWTEST_F() 206 std::string filePath = exportPath + "/bkpDB1.bin"; in HWTEST_F() local 207 DBStatus status = g_kvBackupDelegate->Export(filePath, NULL_PASSWD); in HWTEST_F() 215 DBStatus status = g_kvBackupDelegate->Export(filePath, NULL_PASSWD); in HWTEST_F() 236 filePath in HWTEST_F() 276 std::string filePath = exportPath + "/bkpDB.bin"; HWTEST_F() local 348 const std::string filePath = exportPath + "/bkpDB.bin"; HWTEST_F() local 377 std::string filePath = exportPath + "/bkpDB.bin"; HWTEST_F() local 427 std::string filePath = exportPath + "/bkpDB.bin"; HWTEST_F() local 486 std::string filePath = exportPath + "/bkpDB1.bin"; HWTEST_F() local 547 std::string filePath = importPath + "/bkpDB1.bin"; HWTEST_F() local 615 std::string filePath = importPath1 + "/bkpDB1.bin"; HWTEST_F() local 646 std::string filePath = importPath + "/bkpDB.bin"; HWTEST_F() local 690 std::string filePath = importPath + "/bkpDB1.bin"; HWTEST_F() local 726 std::string filePath = importPath + "/bkpDB1.bin"; HWTEST_F() local 778 std::string filePath = importPath + "/bkpDB1.bin"; HWTEST_F() local 845 std::string filePath = importPath + "/bkpDB.bin"; HWTEST_F() local 897 std::string filePath = importPath + "/bkpDB.bin"; HWTEST_F() local 949 std::string filePath = importPath + "/bkpDB.bin"; HWTEST_F() local 1003 std::string filePath[] = {(importPath + backupFile[INDEX_ZEROTH]), (importPath + backupFile[INDEX_FIRST]), KvSubImportThread() local [all...] |