/foundation/bundlemanager/bundle_framework_lite/services/bundlemgr_lite/bundle_daemon/src/ |
H A D | bundle_file_utils.cpp | 67 char rootDir[PATH_MAX] = { '\0' }; in MkRecursiveDir() local 69 rootDir[i] = dir[i]; in MkRecursiveDir() 70 if ((rootDir[i] == PATH_SEPARATOR || i == (len - 1)) && !IsExistDir(rootDir)) { in MkRecursiveDir() 73 if (mkdir(rootDir, mode) < 0) { in MkRecursiveDir() 94 char rootDir[PATH_MAX] = { '\0' }; in MkOwnerDir() local 96 rootDir[i] = dir[i]; in MkOwnerDir() 97 if ((rootDir[i] == PATH_SEPARATOR || i == (len - 1)) && !IsExistDir(rootDir)) { in MkOwnerDir() 99 if (mkdir(rootDir, mod in MkOwnerDir() 176 IsValidPath(const std::string &rootDir, const std::string &path) IsValidPath() argument [all...] |
/foundation/communication/dsoftbus/tests/sdk/transmission/fuzztest/setfilereceivelistener_fuzzer/ |
H A D | setfilereceivelistener_fuzzer.cpp | 32 char *rootDir = nullptr; in SetFileReceiveListenerTest() local 38 SetFileReceiveListener((const char *)tmp, sessionName, recvListener, rootDir); in SetFileReceiveListenerTest()
|
/foundation/communication/dsoftbus/sdk/transmission/trans_channel/udp/file/src/ |
H A D | client_trans_file_virtual.c | 29 const IFileReceiveListener *recvListener, const char *rootDir) in TransSetFileReceiveListener() 33 (void)rootDir; in TransSetFileReceiveListener() 28 TransSetFileReceiveListener(const char *sessionName, const IFileReceiveListener *recvListener, const char *rootDir) TransSetFileReceiveListener() argument
|
H A D | client_trans_file_listener.c | 65 const IFileReceiveListener *recvListener, const char *rootDir) in TransSetFileReceiveListener() 82 if (strcpy_s(fileNode->rootDir, FILE_RECV_ROOT_DIR_SIZE_MAX, rootDir) != EOK || in TransSetFileReceiveListener() 100 strcpy_s(fileNode->rootDir, FILE_RECV_ROOT_DIR_SIZE_MAX, rootDir) != EOK || in TransSetFileReceiveListener() 64 TransSetFileReceiveListener(const char *sessionName, const IFileReceiveListener *recvListener, const char *rootDir) TransSetFileReceiveListener() argument
|
H A D | client_trans_file.c | 434 const char *rootDir = event.UpdateRecvPath(); in UpdateFileRecvPath() local 435 char *absPath = realpath(rootDir, NULL); in UpdateFileRecvPath() 438 "rootDir not exist, rootDir=%{private}s, errno=%{public}d.", in UpdateFileRecvPath() 439 (rootDir == NULL ? "null" : rootDir), errno); in UpdateFileRecvPath() 443 if (strcpy_s(fileListener->rootDir, FILE_RECV_ROOT_DIR_SIZE_MAX, absPath) != EOK) { in UpdateFileRecvPath() 444 TRANS_LOGE(TRANS_SDK, "strcpy rootDir failed"); in UpdateFileRecvPath() 451 if (NSTACKX_DFileSetStoragePath(fileSession, fileListener->rootDir) != SOFTBUS_OK) { in UpdateFileRecvPath() 453 TRANS_LOGE(TRANS_SDK, "set storage path failed. rootDir in UpdateFileRecvPath() [all...] |
/foundation/communication/dsoftbus/sdk/transmission/trans_channel/udp/file/include/ |
H A D | client_trans_file_listener.h | 33 char rootDir[FILE_RECV_ROOT_DIR_SIZE_MAX]; member 43 const IFileReceiveListener *recvListener, const char *rootDir);
|
/foundation/arkui/ace_engine/adapter/preview/external/ability/ |
H A D | context.cpp | 36 RefPtr<Context> Context::CreateContext(bool isStage, const std::string& rootDir) in CreateContext() argument 38 std::string filename = rootDir + DELIMITER + (isStage ? MODULE_JSON : CONFIG_JSON); in CreateContext()
|
H A D | context.h | 33 static RefPtr<Context> CreateContext(bool isStage, const std::string& rootDir);
|
/foundation/bundlemanager/bundle_framework/test/fuzztest/fuzztest_others/verifymanagerhostimplrollback_fuzzer/ |
H A D | verifymanagerhostimplrollback_fuzzer.cpp | 32 std::string rootDir; in DoSomethingInterestingWithMyAPI() local 35 impl.Rollback(rootDir, names); in DoSomethingInterestingWithMyAPI()
|
/foundation/bundlemanager/bundle_framework/test/fuzztest/fuzztest_others/verifymanagerhostimplrollbackdir_fuzzer/ |
H A D | verifymanagerhostimplrollbackdir_fuzzer.cpp | 33 std::string rootDir(data, size); in DoSomethingInterestingWithMyAPI() 35 impl.Rollback(rootDir, names); in DoSomethingInterestingWithMyAPI()
|
/foundation/bundlemanager/bundle_framework/test/fuzztest/fuzztest_others/verifymanagerhostimplverifyabc_fuzzer/ |
H A D | verifymanagerhostimplverifyabc_fuzzer.cpp | 32 std::string rootDir; in DoSomethingInterestingWithMyAPI() local 35 auto ret2 = impl.VerifyAbc(rootDir, names); in DoSomethingInterestingWithMyAPI()
|
/foundation/bundlemanager/bundle_framework/test/fuzztest/fuzztest_others/verifymanagerhostimplverifyabcdir_fuzzer/ |
H A D | verifymanagerhostimplverifyabcdir_fuzzer.cpp | 33 std::string rootDir(data, size); in DoSomethingInterestingWithMyAPI() 35 auto ret1 = impl.VerifyAbc(rootDir, names); in DoSomethingInterestingWithMyAPI()
|
/foundation/ability/ability_runtime/frameworks/native/appkit/app/ |
H A D | application_cleaner.cpp | 77 std::vector<std::string> rootDir; in ClearTempData() local 78 if (GetRootPath(rootDir) != RESULT_OK) { in ClearTempData() 82 auto cleanTemp = [self = shared_from_this(), rootDir]() { in ClearTempData() 88 if (self->GetObsoleteBundleTempPath(rootDir, temps) != RESULT_OK) { in ClearTempData() 100 if (CheckFileSize(rootDir)) { in ClearTempData()
|
/foundation/bundlemanager/bundle_framework/services/bundlemgr/src/verify/ |
H A D | verify_manager_host_impl.cpp | 57 std::string rootDir; in GetRootDir() local 58 rootDir.append(Constants::BUNDLE_CODE_DIR).append(ServiceConstants::PATH_SEPARATOR) in GetRootDir() 61 return rootDir; in GetRootDir() 315 const std::string &rootDir, const std::vector<std::string> &names) in VerifyAbc() 320 paths.emplace_back(rootDir + name); in VerifyAbc() 434 auto rootDir = GetRootDir(bundleName); in MoveAbc() local 440 std::string targetPath = rootDir + abcPaths[i]; in MoveAbc() 469 const std::string &rootDir, const std::vector<std::string> &names) in Rollback() 473 paths.emplace_back(rootDir + name); in Rollback() 314 VerifyAbc( const std::string &rootDir, const std::vector<std::string> &names) VerifyAbc() argument 468 Rollback( const std::string &rootDir, const std::vector<std::string> &names) Rollback() argument
|
/foundation/bundlemanager/bundle_framework_lite/services/bundlemgr_lite/src/ |
H A D | bundle_util.cpp | 815 char *rootDir = nullptr; in MkDirs() local 821 rootDir = GetRootDir(dir, i); in MkDirs() 822 if (rootDir == nullptr) { in MkDirs() 824 HILOG_ERROR(HILOG_MODULE_AAFWK, "[BMS] MkDirs failed, rootDir is null"); in MkDirs() 829 if (IsDir(rootDir)) { in MkDirs() 830 UI_Free(rootDir); in MkDirs() 831 rootDir = nullptr; in MkDirs() 836 if (mkdir(rootDir, S_IREAD | S_IWRITE) < 0) { in MkDirs() 837 UI_Free(rootDir); in MkDirs() 839 HILOG_ERROR(HILOG_MODULE_AAFWK, "[BMS] make rootDir faile in MkDirs() 940 char *rootDir = reinterpret_cast<char *>(UI_Malloc((index + 1) * sizeof(char))); GetRootDir() local [all...] |
/foundation/bundlemanager/bundle_framework/services/bundlemgr/include/verify/ |
H A D | verify_manager_host_impl.h | 48 const std::string &rootDir, const std::vector<std::string> &names); 50 void Rollback(const std::string &rootDir, const std::vector<std::string> &names);
|
/foundation/multimedia/media_library/frameworks/innerkitsimpl/media_library_helper/src/ |
H A D | media_file_utils.cpp | 938 void MediaFileUtils::GetRootDirFromRelativePath(const string &relativePath, string &rootDir) in GetRootDirFromRelativePath() argument 940 rootDir = relativePath; in GetRootDirFromRelativePath() 945 rootDir += '/'; in GetRootDirFromRelativePath() 947 if (rootDir[0] == '/') { in GetRootDirFromRelativePath() 948 size_t dirIndex = rootDir.find_first_of('/', 1); in GetRootDirFromRelativePath() 952 rootDir = rootDir.substr(1, dirIndex); in GetRootDirFromRelativePath() 954 size_t dirIndex = rootDir.find_first_of('/'); in GetRootDirFromRelativePath() 958 rootDir = rootDir in GetRootDirFromRelativePath() [all...] |
/foundation/communication/dsoftbus/tests/sdk/transmission/fuzztest/clienttransfile_fuzzer/ |
H A D | clienttransfile_fuzzer.cpp | 77 const char* rootDir = "/data/recv/"; in TransSetFileReceiveListenerTest() local 78 TransSetFileReceiveListener(sessionName, &fileRecvListener, rootDir); in TransSetFileReceiveListenerTest()
|
/foundation/bundlemanager/bundle_framework/services/bundlemgr/src/aging/ |
H A D | recently_unused_bundle_aging_handler.cpp | 168 std::vector<std::string> rootDir; in GetCachePath() local 176 rootDir.emplace_back(dataDir); in GetCachePath() 180 for (const auto &st : rootDir) { in GetCachePath()
|
/foundation/filemanagement/app_file_service/tests/unittests/backup_utils/b_filesystem/ |
H A D | b_dir_test.cpp | 133 string rootDir = tm.GetRootDirCurTest(); in HWTEST_F() local 134 string filePath1 = rootDir + "a.txt"; in HWTEST_F() 135 string filePath2 = rootDir + "b.txt"; in HWTEST_F() 145 vector<string> includes = {rootDir}; in HWTEST_F()
|
/foundation/bundlemanager/bundle_framework_lite/services/bundlemgr_lite/bundle_daemon/include/ |
H A D | bundle_file_utils.h | 39 static bool IsValidPath(const std::string &rootDir, const std::string &path);
|
/foundation/ability/idl_tool/idl_tool_2/util/ |
H A D | file.cpp | 311 std::set<std::string> File::FindFiles(const std::string &rootDir) in CreatePartDir() argument 313 if (rootDir.empty()) { in CreatePartDir() 319 dirs.push(rootDir); in CreatePartDir()
|
H A D | file.h | 83 static std::set<std::string> FindFiles(const std::string &rootDir);
|
/foundation/communication/dsoftbus/tests/sdk/transmission/trans_channel/udp/file/ |
H A D | trans_sdk_file_test.cpp | 233 const char* rootDir = "rootDir"; in HWTEST_F() local 235 ret = TransSetFileReceiveListener(sessionName, &g_fileRecvListener, rootDir); in HWTEST_F() 238 ret = TransSetFileReceiveListener(sessionName, &g_fileRecvListener, rootDir); in HWTEST_F() 244 ret = TransSetFileReceiveListener(sessionName, &g_fileRecvListener, rootDir); in HWTEST_F() 260 const char* rootDir = "rootDir"; in HWTEST_F() local 265 ret = TransSetFileReceiveListener(sessionName, &g_fileRecvListener, rootDir); in HWTEST_F() 310 const char* rootDir = "rootDir"; in HWTEST_F() local 512 string rootDir = "rootDir"; HWTEST_F() local [all...] |
/foundation/communication/dsoftbus/sdk/transmission/session/src/ |
H A D | client_trans_session_service.c | 622 static bool IsValidFileReceivePath(const char *rootDir) in IsValidFileReceivePath() argument 624 if (!IsValidString(rootDir, FILE_RECV_ROOT_DIR_SIZE_MAX)) { in IsValidFileReceivePath() 625 TRANS_LOGE(TRANS_SDK, "recvPath invalid. recvPath=%{private}s", rootDir); in IsValidFileReceivePath() 628 char *absPath = realpath(rootDir, NULL); in IsValidFileReceivePath() 630 TRANS_LOGE(TRANS_SDK, "recvPath not exist, recvPath=%{private}s, errno=%{public}d.", rootDir, errno); in IsValidFileReceivePath() 638 const IFileReceiveListener *recvListener, const char *rootDir) in SetFileReceiveListener() 641 !IsValidFileReceivePath(rootDir) || (recvListener == NULL)) { in SetFileReceiveListener() 653 return TransSetFileReceiveListener(sessionName, recvListener, rootDir); in SetFileReceiveListener() 637 SetFileReceiveListener(const char *pkgName, const char *sessionName, const IFileReceiveListener *recvListener, const char *rootDir) SetFileReceiveListener() argument
|