Home
last modified time | relevance | path

Searched refs:path (Results 1 – 25 of 1086) sorted by relevance

12345678910>>...44

/foundation/graphic/graphic_2d/rosen/test/2d_graphics/unittest/draw/
Dpath_test.cpp48 auto path = std::make_unique<Path>(); variable
49 ASSERT_TRUE(path != nullptr);
61 auto path = std::make_unique<Path>(); variable
62 ASSERT_TRUE(path != nullptr);
63 path->MoveTo(5.0f, 4.5f);
75 auto path = std::make_unique<Path>(); variable
76 ASSERT_TRUE(path != nullptr);
77 path->MoveTo(4.5f, 5.0f);
89 auto path = std::make_unique<Path>(); variable
90 ASSERT_TRUE(path != nullptr);
[all …]
/foundation/arkui/ace_engine/build/tools/
Dbuild_js.py22 project_path = os.path.abspath(argv[1])
23 target_out_path = os.path.abspath(argv[2])
24 nodejs_path = os.path.abspath(argv[3])
25 js2bundle_path = os.path.abspath(argv[4])
26 interface_path = os.path.abspath(argv[5])
27 parse5_path = os.path.abspath(argv[6])
28 weex_loader_path = os.path.abspath(argv[7])
33 interface_target_path = os.path.join(target_out_path, "interface")
34 if os.path.exists(interface_target_path):
38 third_party_target_path = os.path.join(target_out_path, "third_party")
[all …]
/foundation/filemanagement/storage_service/services/storage_daemon/utils/test/common/
Dhelp_utils.cpp86 bool StorageTestUtils::CheckDir(const std::string &path) in CheckDir() argument
89 if (lstat(path.c_str(), &st) != 0) { in CheckDir()
98 std::string path(dir.path); in CheckUserDir() local
99 path.replace(path.find("%d"), strlen("%d"), std::to_string(userId)); in CheckUserDir()
102 std::string realPath(path); in CheckUserDir()
109 std::string realPath(path); in CheckUserDir()
119 std::string path(dir.path); in CheckUserDir() local
120 path.replace(path.find("%d"), strlen("%d"), std::to_string(userId)); in CheckUserDir()
121 path.replace(path.find("%s"), strlen("%s"), "el1"); in CheckUserDir()
122 if (CheckDir(path) == false) { in CheckUserDir()
[all …]
/foundation/multimedia/media_library/frameworks/services/media_scanner/src/scanner/
Dscanner_utils.cpp33 bool ScannerUtils::IsExists(const string &path) in IsExists() argument
37 if (path.empty()) { in IsExists()
42 return ((stat(path.c_str(), &statInfo)) == ERR_SUCCESS); in IsExists()
46 string ScannerUtils::GetFileNameFromUri(const string &path) in GetFileNameFromUri() argument
48 if (!path.empty()) { in GetFileNameFromUri()
49 size_t lastSlashPosition = path.rfind("/"); in GetFileNameFromUri()
51 if (path.size() > lastSlashPosition) { in GetFileNameFromUri()
52 return path.substr(lastSlashPosition + 1); in GetFileNameFromUri()
62 string ScannerUtils::GetFileExtensionFromFileUri(const string &path) in GetFileExtensionFromFileUri() argument
64 if (!path.empty()) { in GetFileExtensionFromFileUri()
[all …]
/foundation/resourceschedule/memmgr/test/unittest/phone/
Dkernel_interface_test.cpp89 std::string path = KernelInterface::GetInstance().JoinPath(first, second); variable
90 EXPECT_EQ(path.compare(first + "/" + second), 0);
91 path = KernelInterface::GetInstance().JoinPath(empty, second);
92 EXPECT_EQ(path.compare(second), 0);
93 path = KernelInterface::GetInstance().JoinPath(first, empty);
94 EXPECT_EQ(path.compare(first + "/"), 0);
95 path = KernelInterface::GetInstance().JoinPath(empty, empty);
96 EXPECT_EQ(path.compare(empty), 0);
99 path = KernelInterface::GetInstance().JoinPath(first, second, third);
100 EXPECT_EQ(path.compare(first + "/" + second + "/" + third), 0);
[all …]
/foundation/graphic/graphic_2d/rosen/modules/platform/utils/
Ddirectory_ex.cpp72 string ExcludeTrailingPathDelimiter(const std::string& path) in ExcludeTrailingPathDelimiter() argument
74 if (path.rfind("/") != path.size() - 1) { in ExcludeTrailingPathDelimiter()
75 return path; in ExcludeTrailingPathDelimiter()
78 if (!path.empty()) { in ExcludeTrailingPathDelimiter()
79 return path.substr(0, static_cast<int>(path.size()) - 1); in ExcludeTrailingPathDelimiter()
82 return path; in ExcludeTrailingPathDelimiter()
85 string IncludeTrailingPathDelimiter(const std::string& path) in IncludeTrailingPathDelimiter() argument
87 if (path.rfind("/") != path.size() - 1) { in IncludeTrailingPathDelimiter()
88 return path + "/"; in IncludeTrailingPathDelimiter()
91 return path; in IncludeTrailingPathDelimiter()
[all …]
/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/adapter/autils/src/
Ddirectory_utils.cpp27 bool DirectoryUtils::ChangeModeFileOnly(const std::string &path, const mode_t &mode) in ChangeModeFileOnly() argument
32 DIR *dir = opendir(path.c_str()); in ChangeModeFileOnly()
48 subPath = IncludeDelimiterAtPathTail(path) + std::string(ptr->d_name); in ChangeModeFileOnly()
69 bool DirectoryUtils::ChangeModeDirOnly(const std::string &path, const mode_t &mode) in ChangeModeDirOnly() argument
74 DIR *dir = opendir(path.c_str()); in ChangeModeDirOnly()
90 subPath = IncludeDelimiterAtPathTail(path) + std::string(ptr->d_name); in ChangeModeDirOnly()
108 std::string currentPath = ExcludeDelimiterAtPathTail(path); in ChangeModeDirOnly()
118 bool DirectoryUtils::CreateDirectory(const std::string &path) in CreateDirectory() argument
123 index = path.find('/', index + 1); in CreateDirectory()
125 subPath = path; in CreateDirectory()
[all …]
/foundation/filemanagement/storage_service/services/storage_daemon/utils/
Dfile_utils.cpp40 int32_t ChMod(const std::string &path, mode_t mode) in ChMod() argument
42 return TEMP_FAILURE_RETRY(chmod(path.c_str(), mode)); in ChMod()
45 int32_t ChOwn(const std::string &path, uid_t uid, gid_t gid) in ChOwn() argument
47 return TEMP_FAILURE_RETRY(chown(path.c_str(), uid, gid)); in ChOwn()
50 int32_t MkDir(const std::string &path, mode_t mode) in MkDir() argument
52 return TEMP_FAILURE_RETRY(mkdir(path.c_str(), mode)); in MkDir()
55 int32_t RmDir(const std::string &path) in RmDir() argument
57 return TEMP_FAILURE_RETRY(rmdir(path.c_str())); in RmDir()
66 int32_t UMount(const std::string &path) in UMount() argument
68 return TEMP_FAILURE_RETRY(umount(path.c_str())); in UMount()
[all …]
/foundation/multimedia/histreamer/engine/foundation/osal/filesystem/
Dfile_system.cpp41 bool FileSystem::IsRegularFile(const std::string& path) in IsRegularFile() argument
44 return (stat(path.c_str(), &s) == 0) && S_ISREG(s.st_mode); in IsRegularFile()
69 bool FileSystem::IsDirectory(const std::string& path) in IsDirectory() argument
72 return (stat(path.c_str(), &s) == 0) && S_ISDIR(s.st_mode); in IsDirectory()
76 bool FileSystem::IsExists(const std::string& path) in IsExists() argument
78 return access(path.c_str(), 0) != -1; in IsExists()
81 bool FileSystem::MakeDir(const std::string& path) in MakeDir() argument
84 if (mkdir(path.c_str()) == -1) { in MakeDir()
85 …MEDIA_LOG_E("Fail to create dir " PUBLIC_LOG_S " due to " PUBLIC_LOG_S, path.c_str(), std::strerro… in MakeDir()
92 if (mkdir(path.c_str(), 755) == -1) { // 755 directory access permissions in MakeDir()
[all …]
/foundation/filemanagement/storage_service/services/storage_daemon/include/utils/
Dfile_utils.h30 std::string path; member
33 int32_t ChMod(const std::string &path, mode_t mode);
34 int32_t MkDir(const std::string &path, mode_t mode);
35 bool IsDir(const std::string &path);
36 bool PrepareDir(const std::string &path, mode_t mode, uid_t uid, gid_t gid);
37 bool DestroyDir(const std::string &path);
38 bool MkDirRecurse(const std::string& path, mode_t mode);
39 bool RmDirRecurse(const std::string &path);
40 void TravelChmod(std::string path, mode_t mode);
43 int32_t UMount(const std::string &path);
[all …]
/foundation/resourceschedule/memmgr/common/src/
Dkernel_interface.cpp46 bool KernelInterface::EchoToPath(const char* path, const char* content) in EchoToPath() argument
48 int fd = open(path, O_RDWR, FILE_MODE_666); in EchoToPath()
50 HILOGE("echo %{public}s > %{public}s failed: file is not open", content, path); in EchoToPath()
54 HILOGE("echo %{public}s > %{public}s failed: write failed", content, path); in EchoToPath()
59 HILOGI("echo %{public}s > %{public}s", content, path); in EchoToPath()
63 bool KernelInterface::IsFileExists(const std::string& path) in IsFileExists() argument
65 if (path.empty()) { in IsFileExists()
69 if (stat(path.c_str(), &st) == 0 && S_ISREG(st.st_mode)) { in IsFileExists()
75 bool KernelInterface::CreateFile(const std::string& path, const mode_t& mode) in CreateFile() argument
77 if (path.empty()) { in CreateFile()
[all …]
/foundation/multimedia/image_framework/mock/native/src/
Ddirectory_ex.cpp41 bool ForceCreateDirectory(const string& path) in ForceCreateDirectory() argument
46 index = path.find('/', index + 1); in ForceCreateDirectory()
48 subPath = path; in ForceCreateDirectory()
50 subPath = path.substr(0, index); in ForceCreateDirectory()
60 return access(path.c_str(), F_OK) == 0; in ForceCreateDirectory()
99 string IncludeTrailingPathDelimiter(const std::string& path) in IncludeTrailingPathDelimiter() argument
101 if (path.rfind("/") != path.size() - 1) { in IncludeTrailingPathDelimiter()
102 return path + "/"; in IncludeTrailingPathDelimiter()
104 return path; in IncludeTrailingPathDelimiter()
107 void GetDirFiles(const string& path, vector<string>& files) in GetDirFiles() argument
[all …]
/foundation/arkui/ace_engine/frameworks/core/components/svg/
Drosen_render_svg_line.cpp46 SkPath path; in Paint() local
47 GetPath(path); in Paint()
49 RosenSvgPainter::SetFillStyle(canvas, path, fillState_, opacity_); in Paint()
50 RosenSvgPainter::SetStrokeStyle(canvas, path, strokeState_, opacity_); in Paint()
69 SkPath path; in PaintDirectly() local
70 GetPath(path); in PaintDirectly()
72 RosenSvgPainter::SetFillStyle(canvas, path, fillState_, opacity_); in PaintDirectly()
73 RosenSvgPainter::SetStrokeStyle(canvas, path, strokeState_, opacity_); in PaintDirectly()
76 void RosenRenderSvgLine::UpdateMotion(const std::string& path, const std::string& rotate, double pe… in UpdateMotion() argument
83 RosenSvgPainter::UpdateMotionMatrix(rsNode, path, rotate, percent); in UpdateMotion()
[all …]
Dflutter_render_svg_line.cpp57 SkPath path; in Paint() local
58 GetPath(path); in Paint()
60 FlutterSvgPainter::SetFillStyle(skCanvas, path, fillState_, opacity_); in Paint()
61 FlutterSvgPainter::SetStrokeStyle(skCanvas, path, strokeState_, opacity_); in Paint()
85 SkPath path; in PaintDirectly() local
86 GetPath(path); in PaintDirectly()
88 FlutterSvgPainter::SetFillStyle(skCanvas, path, fillState_, opacity_); in PaintDirectly()
89 FlutterSvgPainter::SetStrokeStyle(skCanvas, path, strokeState_, opacity_); in PaintDirectly()
96 void FlutterRenderSvgLine::UpdateMotion(const std::string& path, const std::string& rotate, double … in UpdateMotion() argument
103 auto motionMatrix = FlutterSvgPainter::CreateMotionMatrix(path, rotate, percent, isSuccess); in UpdateMotion()
[all …]
Drosen_render_svg_ellipse.cpp47 SkPath path; in Paint() local
48 GetPath(path); in Paint()
52 RosenSvgPainter::SetFillStyle(canvas, path, fillState_, renderInfo); in Paint()
53 RosenSvgPainter::SetStrokeStyle(canvas, path, strokeState_, renderInfo); in Paint()
70 SkPath path; in PaintDirectly() local
71 GetPath(path); in PaintDirectly()
73 RosenSvgPainter::SetFillStyle(canvas, path, fillState_, opacity_); in PaintDirectly()
74 RosenSvgPainter::SetStrokeStyle(canvas, path, strokeState_, opacity_); in PaintDirectly()
77 void RosenRenderSvgEllipse::UpdateMotion(const std::string& path, const std::string& rotate, double… in UpdateMotion() argument
84 RosenSvgPainter::UpdateMotionMatrix(rsNode, path, rotate, percent); in UpdateMotion()
[all …]
/foundation/filemanagement/dfs_service/utils/system/src/
Dutils_directory.cpp30 void ForceCreateDirectory(const string &path, function<void(const string &)> onSubDirCreated) in ForceCreateDirectory() argument
35 index = path.find('/', index + 1); in ForceCreateDirectory()
37 subPath = path; in ForceCreateDirectory()
39 subPath = path.substr(0, index); in ForceCreateDirectory()
51 void ForceCreateDirectory(const string &path) in ForceCreateDirectory() argument
53 ForceCreateDirectory(path, nullptr); in ForceCreateDirectory()
56 void ForceCreateDirectory(const string &path, mode_t mode) in ForceCreateDirectory() argument
58 ForceCreateDirectory(path, [mode](const string &subPath) { in ForceCreateDirectory()
65 void ForceCreateDirectory(const string &path, mode_t mode, uid_t uid, gid_t gid) in ForceCreateDirectory() argument
67 ForceCreateDirectory(path, [mode, uid, gid](const string &subPath) { in ForceCreateDirectory()
[all …]
/foundation/graphic/graphic_2d/rosen/modules/render_service_base/src/platform/ohos/overdraw/
Drs_cpu_overdraw_canvas_listener.cpp57 SkPath path; in onDrawRect() local
58 path.addRect(rect); in onDrawRect()
59 AppendRegion(path); in onDrawRect()
64 SkPath path; in onDrawRRect() local
65 path.addRRect(rect); in onDrawRRect()
66 AppendRegion(path); in onDrawRRect()
72 SkPath path; in onDrawDRRect() local
73 path.addRRect(outer); in onDrawDRRect()
74 path.addRRect(inner); in onDrawDRRect()
75 AppendRegion(path); in onDrawDRRect()
[all …]
/foundation/bundlemanager/bundle_framework/test/resource/bmssystemtestability/abilitySrc/thirdPageDemo3/src/
DpageAbilityDemo.cpp28 std::string path = BUNDLE_DATA_ROOT_PATH + appName + "/cache/"; in OnStart() local
31 path += "dir" + std::to_string(i) + "/"; in OnStart()
32 APP_LOGI("PageAbilityDemo::CreateDir %{private}s", path.c_str()); in OnStart()
33 CreateDir(path); in OnStart()
76 void PageAbilityDemo::CreateFile(const std::string &path) const in CreateFile()
78 std::ofstream file(path); in CreateFile()
81 if (access(path.c_str(), F_OK) != 0) { in CreateFile()
82 APP_LOGE("CreateFile-checkFile:%{private}s not exist", path.c_str()); in CreateFile()
86 void PageAbilityDemo::CreateDir(const std::string &path) const in CreateDir()
88 if (access(path.c_str(), F_OK) != 0) { in CreateDir()
[all …]
/foundation/multimedia/player_framework/test/nativedemo/
Dmedia_demo.cpp32 static int RunPlayer(const string &path) in RunPlayer() argument
39 player->RunCase(path); in RunPlayer()
44 static int RunCodecList(const string &path) in RunCodecList() argument
51 avCodecList->RunCase(path); in RunCodecList()
68 static int RunAVMetadataHelper(const string &path) in RunAVMetadataHelper() argument
75 avMetadataHelper->RunCase(path); in RunAVMetadataHelper()
92 static int RunMediaProfile(const string &path) in RunMediaProfile() argument
99 profile->RunCase(path); in RunMediaProfile()
121 string path; in main() local
123 path = argv[1]; in main()
[all …]
/foundation/barrierfree/accessibility/services/aams/test/mock/src/
Dmock_preferences_helper.cpp21 std::string PreferencesHelper::GetRealPath(const std::string& path, int& errorCode) in GetRealPath() argument
23 (void)path; in GetRealPath()
28 std::shared_ptr<Preferences> PreferencesHelper::GetPreferences(const std::string& path, int& errCod… in GetPreferences() argument
32 (void)path; in GetPreferences()
36 int PreferencesHelper::DeletePreferences(const std::string& path) in DeletePreferences() argument
38 (void)path; in DeletePreferences()
42 int PreferencesHelper::RemovePreferencesFromCache(const std::string& path) in RemovePreferencesFromCache() argument
44 (void)path; in RemovePreferencesFromCache()
/foundation/barrierfree/accessibility/services/aams/test/mock/src/aafwk/
Dmock_preferences_helper.cpp23 std::string PreferencesHelper::GetRealPath(const std::string& path, int& errorCode) in GetRealPath() argument
25 (void)path; in GetRealPath()
30 std::shared_ptr<Preferences> PreferencesHelper::GetPreferences(const std::string& path, int& errCod… in GetPreferences() argument
32 (void)path; in GetPreferences()
37 int PreferencesHelper::DeletePreferences(const std::string& path) in DeletePreferences() argument
39 (void)path; in DeletePreferences()
43 int PreferencesHelper::RemovePreferencesFromCache(const std::string& path) in RemovePreferencesFromCache() argument
45 (void)path; in RemovePreferencesFromCache()
/foundation/ability/ability_runtime/frameworks/native/runtime/utils/src/
Dfile_path_utils.cpp28 char* realpath(const char* path, char* resolvedPath) in realpath() argument
30 if (_access(path, 0) < 0) { in realpath()
33 if (strcpy_s(resolvedPath, PATH_MAX, path) != 0) { in realpath()
117 void FixExtName(std::string& path) in FixExtName() argument
119 if (path.empty()) { in FixExtName()
123 if (StringEndWith(path, EXT_NAME_ABC, sizeof(EXT_NAME_ABC) - 1)) { in FixExtName()
127 if (StringEndWith(path, EXT_NAME_ETS, sizeof(EXT_NAME_ETS) - 1)) { in FixExtName()
128 path.erase(path.length() - (sizeof(EXT_NAME_ETS) - 1), sizeof(EXT_NAME_ETS) - 1); in FixExtName()
129 } else if (StringEndWith(path, EXT_NAME_TS, sizeof(EXT_NAME_TS) - 1)) { in FixExtName()
130 path.erase(path.length() - (sizeof(EXT_NAME_TS) - 1), sizeof(EXT_NAME_TS) - 1); in FixExtName()
[all …]
/foundation/graphic/ui/frameworks/imgdecode/
Dcache_manager.cpp56 UIFree(const_cast<char*>(dsc_.path)); in ClearSrc()
58 dsc_.path = nullptr; in ClearSrc()
61 RetCode CacheEntry::SetSrc(const char* path) in SetSrc() argument
65 size_t strLen = strlen(path); in SetSrc()
73 if (memcpy_s(newStr, strLen + 1, path, strLen) != EOK) { in SetSrc()
79 dsc_.path = newStr; in SetSrc()
81 dsc_.path = path; in SetSrc()
119 RetCode CacheManager::Open(const char* path, const Style& style, CacheEntry& entry) in Open() argument
121 if ((path == nullptr) || (GetSize() <= 0)) { in Open()
127 RetCode ret = GetIndex(path, indexHitted); in Open()
[all …]
/foundation/resourceschedule/memmgr/common/include/
Dkernel_interface.h47 bool EchoToPath(const char* path, const char* content);
50 bool IsFileExists(const std::string& path);
51 bool CreateFile(const std::string& path); // default mode 644(-rw-r--r--)
52 bool CreateFile(const std::string& path, const mode_t& mode);
53 bool RemoveFile(const std::string& path);
54 bool WriteToFile(const std::string& path, const std::string& content, bool truncated = true);
55 bool ReadFromFile(const std::string& path, std::string& content);
56 bool ReadLinesFromFile(const std::string& path, std::vector<std::string>& lines);
58 bool IsDirExists(const std::string& path);
59 bool IsExists(const std::string& path); // file or dir
[all …]
/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/engine/jsi/utils/
Djsi_module_searcher.cpp29 char* realpath(const char* path, char* resolvedPath) in realpath() argument
31 if (_access(path, 0) < 0) { in realpath()
34 if (strcpy_s(resolvedPath, PATH_MAX, path) != 0) { in realpath()
167 void JsiModuleSearcher::FixExtName(std::string& path) in FixExtName() argument
169 if (path.empty()) { in FixExtName()
173 if (StringUtils::EndWith(path, EXT_NAME_ABC, sizeof(EXT_NAME_ABC) - 1)) { in FixExtName()
177 if (StringUtils::EndWith(path, EXT_NAME_ETS, sizeof(EXT_NAME_ETS) - 1)) { in FixExtName()
178 path.erase(path.length() - (sizeof(EXT_NAME_ETS) - 1), sizeof(EXT_NAME_ETS) - 1); in FixExtName()
179 } else if (StringUtils::EndWith(path, EXT_NAME_TS, sizeof(EXT_NAME_TS) - 1)) { in FixExtName()
180 path.erase(path.length() - (sizeof(EXT_NAME_TS) - 1), sizeof(EXT_NAME_TS) - 1); in FixExtName()
[all …]

12345678910>>...44