/foundation/graphic/graphic_2d/rosen/test/2d_graphics/drawing_ndk/cpp/dm/ |
H A D | bugfix7792.cpp | 40 OH_Drawing_Path* path = OH_Drawing_PathCreate(); in OnTestFunction() local 44 CanvasDrawPath1(canvas, path); in OnTestFunction() 45 CanvasDrawPath2(canvas, path); in OnTestFunction() 46 CanvasDrawPath3(canvas, path); in OnTestFunction() 47 CanvasDrawPath4(canvas, path); in OnTestFunction() 48 CanvasDrawPath5(canvas, path); in OnTestFunction() 50 OH_Drawing_PathDestroy(path); in OnTestFunction() 55 void BugFix7792::CanvasDrawPath1(OH_Drawing_Canvas* canvas, OH_Drawing_Path* path) in CanvasDrawPath1() argument 58 OH_Drawing_PathMoveTo(path, 10, 10); // path, 1 in CanvasDrawPath1() 97 CanvasDrawPath2(OH_Drawing_Canvas* canvas, OH_Drawing_Path* path) CanvasDrawPath2() argument 136 CanvasDrawPath3(OH_Drawing_Canvas* canvas, OH_Drawing_Path* path) CanvasDrawPath3() argument 178 CanvasDrawPath4(OH_Drawing_Canvas* canvas, OH_Drawing_Path* path) CanvasDrawPath4() argument 223 CanvasDrawPath5(OH_Drawing_Canvas* canvas, OH_Drawing_Path* path) CanvasDrawPath5() argument [all...] |
/foundation/graphic/graphic_2d/rosen/test/2d_graphics/unittest/draw/ |
H A D | path_test.cpp | 18 #include "draw/path.h" 48 auto path = std::make_unique<Path>(); in HWTEST_F() local 49 ASSERT_TRUE(path != nullptr); in HWTEST_F() 60 auto path = std::make_unique<Path>(); in HWTEST_F() local 61 ASSERT_TRUE(path != nullptr); in HWTEST_F() 63 EXPECT_TRUE(path->BuildFromSVGString(str)); in HWTEST_F() 74 auto path = std::make_unique<Path>(); in HWTEST_F() local 75 ASSERT_TRUE(path != nullptr); in HWTEST_F() 77 EXPECT_FALSE(path->BuildFromSVGString(str)); in HWTEST_F() 88 auto path in HWTEST_F() local 102 auto path = std::make_unique<Path>(); HWTEST_F() local 115 auto path = std::make_unique<Path>(); HWTEST_F() local 130 auto path = std::make_unique<Path>(); HWTEST_F() local 144 auto path = std::make_unique<Path>(); HWTEST_F() local 158 auto path = std::make_unique<Path>(); HWTEST_F() local 172 auto path = std::make_unique<Path>(); HWTEST_F() local 186 auto path = std::make_unique<Path>(); HWTEST_F() local 200 auto path = std::make_unique<Path>(); HWTEST_F() local 213 Path path; HWTEST_F() local 226 auto path = std::make_unique<Path>(); HWTEST_F() local 242 auto path = std::make_unique<Path>(); HWTEST_F() local 258 auto path = std::make_unique<Path>(); HWTEST_F() local 272 auto path = std::make_unique<Path>(); HWTEST_F() local 286 auto path = std::make_unique<Path>(); HWTEST_F() local 303 auto path = std::make_unique<Path>(); HWTEST_F() local 320 auto path = std::make_unique<Path>(); HWTEST_F() local 336 auto path = std::make_unique<Path>(); HWTEST_F() local 352 auto path = std::make_unique<Path>(); HWTEST_F() local 366 auto path = std::make_unique<Path>(); HWTEST_F() local 380 auto path = std::make_unique<Path>(); HWTEST_F() local 395 auto path = std::make_unique<Path>(); HWTEST_F() local 410 auto path = std::make_unique<Path>(); HWTEST_F() local 424 auto path = std::make_unique<Path>(); HWTEST_F() local 438 auto path = std::make_unique<Path>(); HWTEST_F() local 453 auto path = std::make_unique<Path>(); HWTEST_F() local 468 auto path = std::make_unique<Path>(); HWTEST_F() local 483 auto path = std::make_unique<Path>(); HWTEST_F() local 498 auto path = std::make_unique<Path>(); HWTEST_F() local 516 auto path = std::make_unique<Path>(); HWTEST_F() local 536 auto path = std::make_unique<Path>(); HWTEST_F() local 550 auto path = std::make_unique<Path>(); HWTEST_F() local 564 auto path = std::make_unique<Path>(); HWTEST_F() local 579 auto path = std::make_unique<Path>(); HWTEST_F() local 593 auto path = std::make_unique<Path>(); HWTEST_F() local 607 auto path = std::make_unique<Path>(); HWTEST_F() local 621 auto path = std::make_unique<Path>(); HWTEST_F() local 637 auto path = std::make_unique<Path>(); HWTEST_F() local 652 auto path = std::make_unique<Path>(); HWTEST_F() local 667 auto path = std::make_unique<Path>(); HWTEST_F() local 682 auto path = std::make_unique<Path>(); HWTEST_F() local 698 auto path = std::make_unique<Path>(); HWTEST_F() local 713 auto path = std::make_unique<Path>(); HWTEST_F() local 727 auto path = std::make_unique<Path>(); HWTEST_F() local 743 auto path = std::make_unique<Path>(); HWTEST_F() local 757 auto path = std::make_unique<Path>(); HWTEST_F() local 771 auto path = std::make_unique<Path>(); HWTEST_F() local 785 auto path = std::make_unique<Path>(); HWTEST_F() local 801 auto path = std::make_unique<Path>(); HWTEST_F() local 817 auto path = std::make_unique<Path>(); HWTEST_F() local 832 auto path = std::make_unique<Path>(); HWTEST_F() local 846 auto path = std::make_unique<Path>(); HWTEST_F() local 860 auto path = std::make_unique<Path>(); HWTEST_F() local 876 auto path = std::make_unique<Path>(); HWTEST_F() local 891 auto path = std::make_unique<Path>(); HWTEST_F() local 904 auto path = std::make_unique<Path>(); HWTEST_F() local 919 auto path = std::make_unique<Path>(); HWTEST_F() local 933 auto path = std::make_unique<Path>(); HWTEST_F() local 946 auto path = std::make_unique<Path>(); HWTEST_F() local 959 auto path = std::make_unique<Path>(); HWTEST_F() local 972 auto path = std::make_unique<Path>(); HWTEST_F() local 986 auto path = std::make_unique<Path>(); HWTEST_F() local 1001 auto path = std::make_unique<Path>(); HWTEST_F() local 1017 auto path = std::make_unique<Path>(); HWTEST_F() local 1097 Path path; HWTEST_F() local [all...] |
/foundation/multimedia/media_library/frameworks/innerkitsimpl/test/unittest/medialibrary_scanner_test/src/ |
H A D | medialibrary_scanner_test.cpp | 59 string path = ""; in HWTEST_F() local 60 bool ret = ScannerUtils::IsExists(path); in HWTEST_F() 62 path = "medialib_GetFileName_test_001"; in HWTEST_F() 63 ret = ScannerUtils::IsExists(path); in HWTEST_F() 65 path= "/storage/cloud/files/Pictures/IsExists_test_001.jpg"; in HWTEST_F() 66 ret = ScannerUtils::IsExists(path); in HWTEST_F() 73 string path = ""; in HWTEST_F() local 74 string ret = ScannerUtils::GetFileNameFromUri(path); in HWTEST_F() 76 path = "medialib_GetFileName_test_001/test"; in HWTEST_F() 77 ret = ScannerUtils::GetFileNameFromUri(path); in HWTEST_F() 86 string path = ""; HWTEST_F() local 96 string path = "text/html"; HWTEST_F() local 125 std::string path = ""; HWTEST_F() local 142 std::string path = ""; HWTEST_F() local 157 std::string path = ""; HWTEST_F() local 167 string path = ""; HWTEST_F() local 177 std::string path = ""; HWTEST_F() local 184 std::string path = "medialib_GetFileTitle_test_001"; HWTEST_F() local 191 string path = "medialib_IsDirHidden_test_001/.test"; HWTEST_F() local 201 std::string path = "medialib_IsDirHiddenRecursive_test_001/.test"; HWTEST_F() local 211 std::string path = "medialib_test"; HWTEST_F() local [all...] |
/foundation/multimedia/media_library/frameworks/services/media_scanner/src/scanner/ |
H A D | scanner_utils.cpp | 31 bool ScannerUtils::IsExists(const string &path) in IsExists() argument 35 if (path.empty()) { in IsExists() 36 MEDIA_ERR_LOG("Given path name is empty"); in IsExists() 40 return ((stat(path.c_str(), &statInfo)) == ERR_SUCCESS); in IsExists() 44 string ScannerUtils::GetFileNameFromUri(const string &path) in GetFileNameFromUri() argument 46 if (!path.empty()) { in GetFileNameFromUri() 47 size_t lastSlashPosition = path.rfind("/"); in GetFileNameFromUri() 49 if (path.size() > lastSlashPosition) { in GetFileNameFromUri() 50 return path.substr(lastSlashPosition + 1); in GetFileNameFromUri() 60 string ScannerUtils::GetFileExtension(const string &path) in GetFileExtension() argument 74 IsDirectory(const string &path) IsDirectory() argument 90 IsRegularFile(const string &path) IsRegularFile() argument 105 IsFileHidden(const string &path) IsFileHidden() argument 118 GetParentPath(const string &path) GetParentPath() argument 142 IsDirHidden(const string &path, bool skipPhoto) IsDirHidden() argument 170 IsDirHiddenRecursive(const string &path, bool skipPhoto) IsDirHiddenRecursive() argument 191 CheckSkipScanList(const string &path) CheckSkipScanList() argument [all...] |
/foundation/graphic/graphic_3d/lume/LumeEcsSerializer/Util/src/util/ |
H A D | path_util.cpp | 24 string NormalizePath(string_view path) in NormalizePath() argument 27 if (path[0] != '/') { in NormalizePath() 28 res.reserve(path.size() + 1); in NormalizePath() 31 res.reserve(path.size()); in NormalizePath() 33 while (!path.empty()) { in NormalizePath() 34 if (path[0] == '/') { in NormalizePath() 35 path = path.substr(1); in NormalizePath() 38 auto pos = path.find_first_of("/", 0); in NormalizePath() 39 string_view sub = path in NormalizePath() 69 GetParentPath(string_view path) GetParentPath() argument 82 string_view path = (string::npos != queryPos) ? uri.substr(0, queryPos) : uri; ResolvePath() local 106 GetRelativePath(string_view path, string_view relativeTo) GetRelativePath() argument 152 GetFilename(string_view path) GetFilename() argument 167 GetExtension(string_view path) GetExtension() argument 181 GetBaseName(string_view path) GetBaseName() argument [all...] |
/foundation/graphic/graphic_2d/rosen/test/2d_graphics/drawing_ndk/cpp/interface/ |
H A D | path_test.cpp | 38 OH_Drawing_Path* path = OH_Drawing_PathCreate(); in OnTestPerformance() local 40 OH_Drawing_PathMoveTo(path, rand.nextULessThan(bitmapWidth_), rand.nextULessThan(bitmapHeight_)); in OnTestPerformance() 41 OH_Drawing_PathLineTo(path, rand.nextULessThan(bitmapWidth_), rand.nextULessThan(bitmapHeight_)); in OnTestPerformance() 44 OH_Drawing_PathTransformWithPerspectiveClip(path, matrix, nullptr, applyPerspectiveClip); in OnTestPerformance() 45 OH_Drawing_CanvasDrawPath(canvas, path); in OnTestPerformance() 47 OH_Drawing_PathReset(path); in OnTestPerformance() 49 OH_Drawing_PathDestroy(path); in OnTestPerformance() 55 OH_Drawing_Path* path = OH_Drawing_PathCreate(); in OnTestPerformance() local 61 OH_Drawing_PathAddRect(path, l, t, r, b, OH_Drawing_PathDirection::PATH_DIRECTION_CCW); in OnTestPerformance() 62 OH_Drawing_PathSetFillType(path, fTyp in OnTestPerformance() 76 OH_Drawing_Path* path = OH_Drawing_PathCreate(); OnTestPerformance() local 93 OH_Drawing_Path* path = OH_Drawing_PathCreate(); OnTestPerformance() local 111 OH_Drawing_Path* path = OH_Drawing_PathCreate(); OnTestPerformance() local 132 OH_Drawing_Path* path = OH_Drawing_PathCreate(); OnTestPerformance() local 204 OH_Drawing_Path* path = OH_Drawing_PathCreate(); OnTestPerformance() local 215 OH_Drawing_Path* path = OH_Drawing_PathCreate(); OnTestPerformance() local 229 OH_Drawing_Path* path = OH_Drawing_PathCreate(); OnTestPerformance() local 245 OH_Drawing_Path* path = OH_Drawing_PathCreate(); OnTestPerformance() local 286 OH_Drawing_Path* path = OH_Drawing_PathCreate(); OnTestPerformance() local 312 OH_Drawing_Path* path = OH_Drawing_PathCreate(); OnTestPerformance() local 335 OH_Drawing_Path* path = OH_Drawing_PathCreate(); OnTestPerformance() local 353 OH_Drawing_Path* path = OH_Drawing_PathCreate(); OnTestPerformance() local 366 OH_Drawing_Path* path = OH_Drawing_PathCreate(); OnTestPerformance() local 380 OH_Drawing_Path* path = OH_Drawing_PathCreate(); OnTestPerformance() local 396 OH_Drawing_Path* path = OH_Drawing_PathCreate(); OnTestPerformance() local 414 OH_Drawing_Path* path = OH_Drawing_PathCreate(); OnTestPerformance() local 433 OH_Drawing_Path* path = OH_Drawing_PathCreate(); OnTestPerformance() local 451 OH_Drawing_Path* path = OH_Drawing_PathCreate(); OnTestPerformance() local 473 OH_Drawing_Path* path = OH_Drawing_PathCreate(); OnTestPerformance() local 493 OH_Drawing_Path* path = OH_Drawing_PathCreate(); OnTestPerformance() local 517 OH_Drawing_Path* path = OH_Drawing_PathCreate(); OnTestPerformance() local 545 OH_Drawing_Path* path = OH_Drawing_PathCreate(); OnTestPerformance() local 565 OH_Drawing_Path* path = OH_Drawing_PathCreate(); OnTestPerformance() local 587 OH_Drawing_Path* path = OH_Drawing_PathCreate(); OnTestPerformance() local 606 OH_Drawing_Path* path = OH_Drawing_PathCreate(); OnTestPerformance() local [all...] |
/foundation/multimedia/ringtone_library/services/ringtone_scanner/src/ |
H A D | ringtone_scanner_utils.cpp | 26 bool RingtoneScannerUtils::IsExists(const string &path) in IsExists() argument 30 if (path.empty()) { in IsExists() 31 RINGTONE_ERR_LOG("Given path name is empty"); in IsExists() 35 return ((stat(path.c_str(), &statInfo)) == ERR_SUCCESS); in IsExists() 39 string RingtoneScannerUtils::GetFileNameFromUri(const string &path) in GetFileNameFromUri() argument 41 if (!path.empty()) { in GetFileNameFromUri() 42 size_t lastSlashPosition = path.rfind("/"); in GetFileNameFromUri() 44 if (path.size() > lastSlashPosition) { in GetFileNameFromUri() 45 return path.substr(lastSlashPosition + 1); in GetFileNameFromUri() 55 string RingtoneScannerUtils::GetFileExtension(const string &path) in GetFileExtension() argument 69 IsDirectory(const string &path) IsDirectory() argument 85 IsRegularFile(const string &path) IsRegularFile() argument 100 IsFileHidden(const string &path) IsFileHidden() argument 113 GetParentPath(const string &path) GetParentPath() argument 132 IsDirHidden(const string &path) IsDirHidden() argument 154 IsDirHiddenRecursive(const string &path) IsDirHiddenRecursive() argument [all...] |
/foundation/graphic/graphic_2d/rosen/modules/2d_graphics/drawing_ndk/src/ |
H A D | drawing_path.cpp | 20 #include "draw/path.h" 73 Path* path = CastToPath(cPath); in OH_Drawing_PathCopy() local 74 if (path == nullptr) { in OH_Drawing_PathCopy() 78 return (OH_Drawing_Path*)new Path(*path); in OH_Drawing_PathCopy() 91 Path* path = CastToPath(cPath); in OH_Drawing_PathMoveTo() local 92 if (path == nullptr) { in OH_Drawing_PathMoveTo() 96 path->MoveTo(x, y); in OH_Drawing_PathMoveTo() 101 Path* path = CastToPath(cPath); in OH_Drawing_PathRMoveTo() local 102 if (path == nullptr) { in OH_Drawing_PathRMoveTo() 106 path in OH_Drawing_PathRMoveTo() 111 Path* path = CastToPath(cPath); OH_Drawing_PathLineTo() local 121 Path* path = CastToPath(cPath); OH_Drawing_PathRLineTo() local 132 Path* path = CastToPath(cPath); OH_Drawing_PathArcTo() local 142 Path* path = CastToPath(cPath); OH_Drawing_PathQuadTo() local 152 Path* path = CastToPath(cPath); OH_Drawing_PathRQuadTo() local 162 Path* path = CastToPath(cPath); OH_Drawing_PathConicTo() local 172 Path* path = CastToPath(cPath); OH_Drawing_PathRConicTo() local 183 Path* path = CastToPath(cPath); OH_Drawing_PathCubicTo() local 194 Path* path = CastToPath(cPath); OH_Drawing_PathRCubicTo() local 209 Path* path = CastToPath(cPath); OH_Drawing_PathAddRect() local 228 Path* path = CastToPath(cPath); OH_Drawing_PathAddRectWithInitialCorner() local 247 Path* path = CastToPath(cPath); OH_Drawing_PathAddRoundRect() local 266 Path* path = CastToPath(cPath); OH_Drawing_PathAddOvalWithInitialPoint() local 281 Path* path = CastToPath(cPath); OH_Drawing_PathAddArc() local 296 Path* path = CastToPath(cPath); OH_Drawing_PathAddPath() local 316 Path* path = CastToPath(cPath); OH_Drawing_PathAddPathWithMatrixAndMode() local 340 Path* path = CastToPath(cPath); OH_Drawing_PathAddPathWithMode() local 360 Path* path = CastToPath(cPath); OH_Drawing_PathAddPathWithOffsetAndMode() local 383 Path* path = CastToPath(cPath); OH_Drawing_PathAddOval() local 397 Path* path = CastToPath(cPath); OH_Drawing_PathAddPolygon() local 420 Path* path = CastToPath(cPath); OH_Drawing_PathAddCircle() local 434 Path* path = CastToPath(cPath); OH_Drawing_PathBuildFromSvgString() local 444 Path* path = CastToPath(cPath); OH_Drawing_PathContains() local 458 Path* path = CastToPath(cPath); OH_Drawing_PathTransform() local 469 Path* path = CastToPath(cPath); OH_Drawing_PathTransformWithPerspectiveClip() local 488 Path* path = CastToPath(cPath); OH_Drawing_PathSetFillType() local 498 Path* path = CastToPath(cPath); OH_Drawing_PathClose() local 508 Path* path = CastToPath(cPath); OH_Drawing_PathOffset() local 519 Path* path = CastToPath(cPath); OH_Drawing_PathReset() local 529 Path* path = CastToPath(cPath); OH_Drawing_PathGetLength() local 539 Path* path = CastToPath(cPath); OH_Drawing_PathIsClosed() local 550 Path* path = CastToPath(cPath); OH_Drawing_PathGetPositionTangent() local 566 Path* path = CastToPath(cPath); OH_Drawing_PathOp() local 582 Path* path = CastToPath(cPath); OH_Drawing_PathGetMatrix() local 593 Path* path = CastToPath(cPath); OH_Drawing_PathGetBounds() local [all...] |
/foundation/arkui/ace_engine/build/tools/ |
H A D | build_js.py | 22 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 [all...] |
/foundation/graphic/graphic_3d/lume/scenewidgetplugin/plugin/src/ |
H A D | asset_loader.h | 37 static BASE_NS::string NormalizePath(BASE_NS::string_view path) in NormalizePath() 40 if (path[0] != '/') { in NormalizePath() 41 res.reserve(path.size() + 1); in NormalizePath() 44 res.reserve(path.size()); in NormalizePath() 46 while (!path.empty()) { in NormalizePath() 47 if (path[0] == '/') { in NormalizePath() 51 path = path.substr(1); in NormalizePath() 54 auto pos = path.find_first_of("/", 0); in NormalizePath() 55 BASE_NS::string_view sub = path in NormalizePath() 110 BASE_NS::string_view path = (BASE_NS::string::npos != queryPos) ? uri.substr(0, queryPos) : uri; ResolvePath() local [all...] |
/foundation/filemanagement/storage_service/services/storage_daemon/utils/test/common/ |
H A D | help_utils.cpp | 76 bool StorageTestUtils::CheckDir(const std::string &path) in CheckDir() argument 79 if (lstat(path.c_str(), &st) != 0) { in CheckDir() 88 std::string path(dir.path); in CheckUserDir() 89 path.replace(path.find("%d"), strlen("%d"), std::to_string(userId)); in CheckUserDir() 92 std::string realPath(path); in CheckUserDir() 99 std::string realPath(path); in CheckUserDir() 109 std::string path(dir.path); in CheckUserDir() 137 CreateFile(const std::string &path) CreateFile() argument 153 MkDir(const std::string &path, mode_t mode) MkDir() argument 169 RmDirRecurse(const std::string &path) RmDirRecurse() argument [all...] |
/foundation/graphic/graphic_2d/rosen/modules/platform/utils/ |
H A D | directory_ex.cpp | 72 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 in IncludeTrailingPathDelimiter() 95 GetDirFiles(const string& path, vector<string>& files) GetDirFiles() argument 122 GetDirFiles(const string& path, vector<string>& files) GetDirFiles() argument 129 ForceCreateDirectory(const string& path) ForceCreateDirectory() argument 151 ForceCreateDirectory(const string& path) ForceCreateDirectory() argument 159 ForceRemoveDirectory(const string& path) ForceRemoveDirectory() argument 212 IsEmptyFolder(const string& path) IsEmptyFolder() argument 219 GetFolderSize(const string& path) GetFolderSize() argument 250 ChangeModeDirectory(const string& path, const mode_t& mode) ChangeModeDirectory() argument 294 PathToRealPath(const string& path, string& realPath) PathToRealPath() argument [all...] |
/foundation/graphic/graphic_2d/rosen/test/2d_graphics/unittest/ndk/ |
H A D | drawing_path_test.cpp | 24 #include "draw/path.h" 58 OH_Drawing_Path* path = OH_Drawing_PathCreate(); in HWTEST_F() local 59 EXPECT_EQ(path == nullptr, false); in HWTEST_F() 60 OH_Drawing_PathDestroy(path); in HWTEST_F() 179 OH_Drawing_Path* path = OH_Drawing_PathCreate(); in HWTEST_F() local 180 OH_Drawing_PathLineTo(path, 50, 40); in HWTEST_F() 183 OH_Drawing_PathClose(path); in HWTEST_F() 184 EXPECT_TRUE(IsScalarAlmostEqual(reinterpret_cast<Path*>(path)->GetBounds().GetWidth(), 50.0)); in HWTEST_F() 185 EXPECT_TRUE(IsScalarAlmostEqual(reinterpret_cast<Path*>(path)->GetBounds().GetHeight(), 40.0)); in HWTEST_F() 186 OH_Drawing_PathDestroy(path); in HWTEST_F() 197 OH_Drawing_Path* path = OH_Drawing_PathCreate(); HWTEST_F() local 218 OH_Drawing_Path* path = OH_Drawing_PathCreate(); HWTEST_F() local 240 OH_Drawing_Path* path = OH_Drawing_PathCreate(); HWTEST_F() local 269 OH_Drawing_Path* path = OH_Drawing_PathCreate(); HWTEST_F() local 291 OH_Drawing_Path* path = OH_Drawing_PathCreate(); HWTEST_F() local 311 OH_Drawing_Path* path = OH_Drawing_PathCreate(); HWTEST_F() local 336 OH_Drawing_Path* path = OH_Drawing_PathCreate(); HWTEST_F() local 362 OH_Drawing_Path* path = OH_Drawing_PathCreate(); HWTEST_F() local 380 OH_Drawing_Path* path = OH_Drawing_PathCreate(); HWTEST_F() local 406 OH_Drawing_Path* path = OH_Drawing_PathCreate(); HWTEST_F() local 430 OH_Drawing_Path* path = OH_Drawing_PathCreate(); HWTEST_F() local 454 OH_Drawing_Path* path = OH_Drawing_PathCreate(); HWTEST_F() local 499 OH_Drawing_Path* path = OH_Drawing_PathCreate(); HWTEST_F() local 680 OH_Drawing_Path* path = OH_Drawing_PathCreate(); HWTEST_F() local 702 OH_Drawing_Path* path = OH_Drawing_PathCreate(); HWTEST_F() local 722 OH_Drawing_Path* path = OH_Drawing_PathCreate(); HWTEST_F() local 740 OH_Drawing_Path* path = OH_Drawing_PathCreate(); HWTEST_F() local 755 OH_Drawing_Path* path = OH_Drawing_PathCreate(); HWTEST_F() local 777 OH_Drawing_Path* path = OH_Drawing_PathCreate(); HWTEST_F() local 805 OH_Drawing_Path* path = OH_Drawing_PathCreate(); // test path add oval HWTEST_F() local 831 OH_Drawing_Path* path = OH_Drawing_PathCreate(); HWTEST_F() local 849 OH_Drawing_Path* path = OH_Drawing_PathCreate(); HWTEST_F() local [all...] |
/foundation/multimodalinput/input/tools/event_inject/test/ |
H A D | processing_joystick_device_test.cpp | 33 static void CheckTransformJson(const std::string path) in CheckTransformJson() argument 43 std::string jsonBuf = ReadJsonFile(path); in CheckTransformJson() 45 ASSERT_TRUE(false) << "Read file failed" << path; in CheckTransformJson() 57 static void CheckJoyStickJson(const std::string path) in CheckJoyStickJson() argument 66 std::string jsonBuf = ReadJsonFile(path); in CheckJoyStickJson() 68 ASSERT_TRUE(false) << "Read file failed" << path; in CheckJoyStickJson() 90 const std::string path = "/data/json/Test_TransformJoyStickJsonDataToInputData.json"; in HWTEST_F() local 91 CheckTransformJson(path); in HWTEST_F() 102 const std::string path = "/data/json/Test_TransformJoyStickJsonDataToInputDataNotFindEvents.json"; in HWTEST_F() local 103 CheckJoyStickJson(path); in HWTEST_F() 114 const std::string path = "/data/json/Test_TransformJoyStickJsonDataToInputDataEventsIsEmpty.json"; HWTEST_F() local 126 const std::string path = "/data/json/Test_TransformJoyStickJsonDataToInputDataNotFindKeyValue.json"; HWTEST_F() local 138 const std::string path = "/data/json/Test_TransformJoyStickJsonDataToInputDataNotFindKeyValueInThro.json"; HWTEST_F() local 150 const std::string path = "/data/json/Test_TransformJoyStickJsonDataToInputDataNotFindEventInRocker.json"; HWTEST_F() local 163 const std::string path = "/data/json/Test_TransformJoyStickJsonDataToInputDataNotFindDirectionInRocker.json"; HWTEST_F() local 176 const std::string path = "/data/json/Test_TransformJoyStickJsonDataToInputDataNotFindDirectionInDirectionKey.json"; HWTEST_F() local 188 const std::string path = "/data/json/Test_TransformJoyStickJsonDataToInputDataNotFindAnyEventType.json"; HWTEST_F() local 200 const std::string path = "/data/json/Test_TransformJoyStickJsonDataToInputDataHasBlockTime.json"; HWTEST_F() local [all...] |
/foundation/multimedia/ringtone_library/test/unittest/ringtone_scanner_test/src/ |
H A D | ringtone_scanner_utils_test.cpp | 54 const string path = "ringtonelib_IsExists_test_001"; in HWTEST_F() local 55 ret = RingtoneScannerUtils::IsExists(path); in HWTEST_F() 67 string path = "ringtonelib_GetFileNameFromUri_test_001/test"; in HWTEST_F() local 68 ret = RingtoneScannerUtils::GetFileNameFromUri(path); in HWTEST_F() 70 path = "ringtonelib_GetFileNameFromUri_test_001"; in HWTEST_F() 71 ret = RingtoneScannerUtils::GetFileNameFromUri(path); in HWTEST_F() 79 string path = "ringtonelib_GetFileExtension_test_001.test"; in HWTEST_F() local 80 ret = RingtoneScannerUtils::GetFileExtension(path); in HWTEST_F() 82 path = "ringtonelib_GetFileExtension_test_001"; in HWTEST_F() 83 ret = RingtoneScannerUtils::GetFileExtension(path); in HWTEST_F() 91 const string path = "ringtonelib_IsFileHidden_test_001/.test"; HWTEST_F() local 100 const string path = "ringtonelib_GetParentPath_test_001/test"; HWTEST_F() local 107 const string path = "ringtonelib_GetFileTitle_test_001"; HWTEST_F() local 114 const string path = "ringtonelib_IsDirHidden_test_001/.test"; HWTEST_F() local 123 const string path = "ringtonelib_IsDirHiddenRecursive_test_001/.test"; HWTEST_F() local 134 const string path = "ringtonelib_IsDirectory_test_001"; HWTEST_F() local 146 string path = "ringtonelib_IsRegularFile_test_001"; HWTEST_F() local [all...] |
/foundation/filemanagement/storage_service/services/storage_daemon/utils/ |
H A D | file_utils.cpp | 41 int32_t ChMod(const std::string &path, mode_t mode) in ChMod() argument 43 return TEMP_FAILURE_RETRY(chmod(path.c_str(), mode)); in ChMod() 46 int32_t ChOwn(const std::string &path, uid_t uid, gid_t gid) in ChOwn() argument 48 return TEMP_FAILURE_RETRY(chown(path.c_str(), uid, gid)); in ChOwn() 51 int32_t MkDir(const std::string &path, mode_t mode) in MkDir() argument 53 return TEMP_FAILURE_RETRY(mkdir(path.c_str(), mode)); in MkDir() 56 int32_t RmDir(const std::string &path) in RmDir() argument 58 return TEMP_FAILURE_RETRY(rmdir(path.c_str())); in RmDir() 67 int32_t UMount(const std::string &path) in UMount() argument 69 return TEMP_FAILURE_RETRY(umount(path in UMount() 72 UMount2(const std::string &path, int flag) UMount2() argument 77 IsDir(const std::string &path) IsDir() argument 89 IsFile(const std::string &path) IsFile() argument 99 MkDirRecurse(const std::string& path, mode_t mode) MkDirRecurse() argument 120 PrepareDir(const std::string &path, mode_t mode, uid_t uid, gid_t gid) PrepareDir() argument 179 RmDirRecurse(const std::string &path) RmDirRecurse() argument 220 TravelChmod(const std::string &path, mode_t mode) TravelChmod() argument 273 GetSubDirs(const std::string &path, std::vector<std::string> &dirList) GetSubDirs() argument 302 ReadDigitDir(const std::string &path, std::vector<FileList> &dirInfo) ReadDigitDir() argument 339 OpenSubFile(const std::string &path, std::vector<std::string> &file) OpenSubFile() argument 372 ReadFile(const std::string &path, std::string *str) ReadFile() argument 470 TraverseDirUevent(const std::string &path, bool flag) TraverseDirUevent() argument 572 DeleteFile(const std::string &path) DeleteFile() argument 598 IsTempFolder(const std::string &path, const std::string &sub) IsTempFolder() argument 611 DelTemp(const std::string &path) DelTemp() argument 636 IsPathMounted(std::string &path) IsPathMounted() argument 664 CreateFolder(const std::string &path) CreateFolder() argument 687 DelFolder(const std::string &path) DelFolder() argument [all...] |
/foundation/filemanagement/storage_service/services/storage_daemon/mtpfs/src/ |
H A D | mtpfs_fuse.cpp | 32 int WrapGetattr(const char *path, struct stat *buf, struct fuse_file_info *fi) in WrapGetattr() argument 35 int ret = DelayedSingleton<MtpFileSystem>::GetInstance()->GetAttr(path, buf, fi); in WrapGetattr() 40 int WrapMkNod(const char *path, mode_t mode, dev_t dev) in WrapMkNod() argument 43 int ret = DelayedSingleton<MtpFileSystem>::GetInstance()->MkNod(path, mode, dev); in WrapMkNod() 48 int WrapMkDir(const char *path, mode_t mode) in WrapMkDir() argument 51 int ret = DelayedSingleton<MtpFileSystem>::GetInstance()->MkDir(path, mode); in WrapMkDir() 56 int WrapUnLink(const char *path) in WrapUnLink() argument 59 int ret = DelayedSingleton<MtpFileSystem>::GetInstance()->UnLink(path); in WrapUnLink() 64 int WrapRmDir(const char *path) in WrapRmDir() argument 67 int ret = DelayedSingleton<MtpFileSystem>::GetInstance()->RmDir(path); in WrapRmDir() 72 WrapReName(const char *path, const char *newpath, unsigned int flags) WrapReName() argument 80 WrapChMod(const char *path, mode_t mode, struct fuse_file_info *fi) WrapChMod() argument 88 WrapChown(const char *path, uid_t uid, gid_t gid, struct fuse_file_info *fi) WrapChown() argument 97 WrapUTimens(const char *path, const struct timespec tv[2], struct fuse_file_info *fi) WrapUTimens() argument 105 WrapOpen(const char *path, struct fuse_file_info *fileInfo) WrapOpen() argument 113 WrapRead(const char *path, char *buf, size_t size, off_t offset, struct fuse_file_info *fileInfo) WrapRead() argument 121 WrapWrite(const char *path, const char *buf, size_t size, off_t offset, struct fuse_file_info *fileInfo) WrapWrite() argument 129 WrapStatfs(const char *path, struct statvfs *statInfo) WrapStatfs() argument 137 WrapFlush(const char *path, struct fuse_file_info *fileInfo) WrapFlush() argument 145 WrapRelease(const char *path, struct fuse_file_info *fileInfo) WrapRelease() argument 153 WrapFSync(const char *path, int datasync, struct fuse_file_info *fileInfo) WrapFSync() argument 161 WrapOpenDir(const char *path, struct fuse_file_info *fileInfo) WrapOpenDir() argument 169 WrapReadDir(const char *path, void *buf, fuse_fill_dir_t filler, off_t offset, struct fuse_file_info *fileInfo, enum fuse_readdir_flags flag) WrapReadDir() argument 178 WrapReleaseDir(const char *path, struct fuse_file_info *fileInfo) WrapReleaseDir() argument 186 WrapFSyncDir(const char *path, int datasync, struct fuse_file_info *fileInfo) WrapFSyncDir() argument 200 WrapCreate(const char *path, mode_t mode, fuse_file_info *fileInfo) WrapCreate() argument 208 WrapTruncate(const char *path, off_t offset, struct fuse_file_info *fileInfo) WrapTruncate() argument 216 WrapReadLink(const char *path, char *out, size_t size) WrapReadLink() argument 222 WrapSymLink(const char *path, const char * mode) WrapSymLink() argument 228 WrapLink(const char *path, const char *out) WrapLink() argument 234 WrapSetXAttr(const char *path, const char *in, const char *out, size_t size, int flag) WrapSetXAttr() argument 240 WrapGetXAttr(const char *path, const char *in, char *out, size_t size) WrapGetXAttr() argument 246 WrapListXAttr(const char *path, char *in, size_t size) WrapListXAttr() argument 252 WrapRemoveXAttr(const char *path, const char *in) WrapRemoveXAttr() argument 258 WrapDestroy(void *path) WrapDestroy() argument 264 WrapAccess(const char *path, int size) WrapAccess() argument 459 GetAttr(const char *path, struct stat *buf, struct fuse_file_info *fi) GetAttr() argument 506 MkNod(const char *path, mode_t mode, dev_t dev) MkNod() argument 529 MkDir(const char *path, mode_t mode) MkDir() argument 534 UnLink(const char *path) UnLink() argument 539 RmDir(const char *path) RmDir() argument 544 ReName(const char *path, const char *newpath, unsigned int flags) ReName() argument 570 ChMods(const char *path, mode_t mode, struct fuse_file_info *fi) ChMods() argument 584 Chown(const char *path, uid_t uid, gid_t gid, struct fuse_file_info *fi) Chown() argument 599 Truncate(const char *path, off_t new_size, struct fuse_file_info *fileInfo) Truncate() argument 630 UTimens(const char *path, const struct timespec tv[2], struct fuse_file_info *fi) UTimens() argument 653 Create(const char *path, mode_t mode, fuse_file_info *fileInfo) Create() argument 670 Open(const char *path, struct fuse_file_info *fileInfo) Open() argument 717 Read(const char *path, char *buf, size_t size, off_t offset, struct fuse_file_info *fileInfo) Read() argument 735 Write(const char *path, const char *buf, size_t size, off_t offset, struct fuse_file_info *fileInfo) Write() argument 760 Release(const char *path, struct fuse_file_info *fileInfo) Release() argument 792 Statfs(const char *path, struct statvfs *statInfo) Statfs() argument 804 Flush(const char *path, struct fuse_file_info *fileInfo) Flush() argument 809 FSync(const char *path, int datasync, struct fuse_file_info *fi) FSync() argument 825 OpenDir(const char *path, struct fuse_file_info *fileInfo) OpenDir() argument 834 ReadDir(const char *path, void *buf, fuse_fill_dir_t filler, off_t offset, struct fuse_file_info *fileInfo, enum fuse_readdir_flags flag) ReadDir() argument 867 ReleaseDir(const char *path, struct fuse_file_info *fileInfo) ReleaseDir() argument 872 FSyncDir(const char *path, int datasync, struct fuse_file_info *fileInfo) FSyncDir() argument [all...] |
/foundation/arkui/ace_engine/frameworks/core/components/svg/ |
H A D | rosen_render_svg_line.cpp | 47 SkPath path; in Paint() local 52 RSPath path; in Paint() local 54 GetPath(path); in Paint() 56 RosenSvgPainter::SetFillStyle(canvas, path, fillState_, opacity_); in Paint() 57 RosenSvgPainter::SetStrokeStyle(canvas, path, strokeState_, opacity_); in Paint() 77 SkPath path; in PaintDirectly() local 85 RSPath path; in PaintDirectly() local 87 GetPath(path); in PaintDirectly() 89 RosenSvgPainter::SetFillStyle(canvas, path, fillState_, opacity_); in PaintDirectly() 90 RosenSvgPainter::SetStrokeStyle(canvas, path, strokeState in PaintDirectly() 93 UpdateMotion(const std::string& path, const std::string& rotate, double percent) UpdateMotion() argument 106 SkPath path; GetPaintBounds() local 119 GetPath(SkPath& path) GetPath() argument 125 GetPath(RSPath& path) GetPath() argument [all...] |
/foundation/graphic/graphic_3d/lume/LumeEngine/src/io/ |
H A D | std_directory.cpp | 57 explicit DirImpl(string_view path) : path_(path) {} in DirImpl() 79 std::filesystem::path U8Path(string_view str) in U8Path() 99 IDirectory::Ptr StdDirectory::Create(BASE_NS::string_view path) in Create() argument 102 if (std::filesystem::create_directory(U8Path(path), ec)) { in Create() 104 return IDirectory::Ptr { BASE_NS::make_unique<StdDirectory>(make_unique<DirImpl>(path)).release() }; in Create() 109 IDirectory::Ptr StdDirectory::Open(const string_view path) in Open() argument 112 if (std::filesystem::is_directory(U8Path(path), ec)) { in Open() 113 return IDirectory::Ptr { BASE_NS::make_unique<StdDirectory>(make_unique<DirImpl>(path)).release() }; in Open() 116 CORE_LOG_E("'%.*s ec %d '%s'", static_cast<int>(path in Open() 245 auto path = pathIn; ResolveAbsolutePath() local 287 FormatPath(string& path, bool isDirectory) FormatPath() argument 304 auto path = string(fullPath); GetDirName() local 317 auto path = string(fullPath); GetBaseName() local [all...] |
H A D | file_manager.cpp | 53 string_view path; in FixPath() local 54 if (ParseUri(pathIn, protocol, path)) { in FixPath() 57 if (path.empty()) { in FixPath() 58 // so it's the base path then? (empty relative path) in FixPath() 63 if (IsRelative(path)) { in FixPath() 65 if ((path.size() > 1) && (path[1] == ':')) { in FixPath() 67 if (path.size() == 2) { // 2: path siz in FixPath() 128 string_view path; OpenFile() local 146 string_view path; CreateFile() local 164 string_view path; DeleteFile() local 203 string_view path; GetEntry() local 220 string_view path; OpenDirectory() local 238 string_view path; CreateDirectory() local 256 string_view path; DeleteDirectory() local 299 string_view path; GetAbsolutePaths() local [all...] |
H A D | std_filesystem.cpp | 55 std::filesystem::path U8Path(string_view str) in U8Path() 64 auto path = NormalizePath(pathIn); in ValidatePath() local 65 if (!path.empty()) { in ValidatePath() 68 path = basePath_ + path; in ValidatePath() 70 // path must be absolute. in ValidatePath() 71 if (path[0] != '/') { in ValidatePath() 72 CORE_LOG_V("Corrupted path in StdFilesystem::ValidatePath. not absolute"); in ValidatePath() 76 // path must have drive letter, otherwise it is NOT absolute. ie. must conform to "/C:/" style in ValidatePath() 77 if ((path in ValidatePath() 90 auto path = ValidatePath(pathIn); OpenFile() local 99 auto path = ValidatePath(pathIn); CreateFile() local 109 auto path = ValidatePath(pathIn); DeleteFile() local 123 auto path = ValidatePath(pathIn); OpenDirectory() local 133 auto path = ValidatePath(pathIn); CreateDirectory() local 143 auto path = ValidatePath(pathIn); DeleteDirectory() local [all...] |
/foundation/filemanagement/storage_service/services/storage_daemon/include/utils/ |
H A D | file_utils.h | 30 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 IsFile(const std::string &path); 37 bool PrepareDir(const std::string &path, mode_t mode, uid_t uid, gid_t gid); 38 bool DestroyDir(const std::string &path); 39 bool MkDirRecurse(const std::string& path, mode_t mode); 40 bool RmDirRecurse(const std::string &path); 41 void TravelChmod(const std::string &path, mode_ [all...] |
/foundation/graphic/graphic_3d/lume/LumeEngine/src/io/dev/ |
H A D | file_monitor.cpp | 38 void FileMonitor::RecursivelyCollectAllFiles(string& path) in RecursivelyCollectAllFiles() argument 40 auto dir = fileManager_.OpenDirectory(path); in RecursivelyCollectAllFiles() 42 // path does not exist. in RecursivelyCollectAllFiles() 46 const size_t oldLength = path.length(); in RecursivelyCollectAllFiles() 52 path.reserve(oldLength + entry.name.length() + 1); in RecursivelyCollectAllFiles() 53 path += entry.name; in RecursivelyCollectAllFiles() 56 path += '/'; in RecursivelyCollectAllFiles() 59 auto iterator = files_.find(path); in RecursivelyCollectAllFiles() 70 files_.insert({ path, { entry.timestamp, FileInfo::ADDED } }); in RecursivelyCollectAllFiles() 73 RecursivelyCollectAllFiles(path); in RecursivelyCollectAllFiles() 79 CleanPath(const string_view inPath, string& path) CleanPath() argument 98 string path; AddPath() local 120 string path; RemovePath() local 144 string path; IsWatchingDirectory() local 157 string path; IsWatchingSubDirectory() local [all...] |
/foundation/filemanagement/storage_service/services/storage_daemon/mtpfs/include/ |
H A D | mtpfs_fuse.h | 62 int GetAttr(const char *path, struct stat *buf, struct fuse_file_info *fi); 63 int MkNod(const char *path, mode_t mode, dev_t dev); 64 int MkDir(const char *path, mode_t mode); 65 int UnLink(const char *path); 66 int RmDir(const char *path); 67 int ReName(const char *path, const char *newpath, unsigned int flags); 68 int ChMods(const char *path, mode_t mode, struct fuse_file_info *fi); 69 int Chown(const char *path, uid_t uid, gid_t gid, struct fuse_file_info *fi); 70 int UTimens(const char *path, const struct timespec tv[2], struct fuse_file_info *fi); 71 int Open(const char *path, struc [all...] |
/foundation/multimedia/media_foundation/src/osal/filesystem/ |
H A D | file_system.cpp | 43 bool FileSystem::IsRegularFile(const std::string& path) in IsRegularFile() argument 46 return (stat(path.c_str(), &s) == 0) && S_ISREG(s.st_mode); in IsRegularFile() 71 bool FileSystem::IsDirectory(const std::string& path) in IsDirectory() argument 74 return (stat(path.c_str(), &s) == 0) && S_ISDIR(s.st_mode); in IsDirectory() 77 // judge regular file, directory, symbolic link file path exists 78 bool FileSystem::IsExists(const std::string& path) in IsExists() argument 80 return access(path.c_str(), 0) != -1; in IsExists() 83 bool FileSystem::MakeDir(const std::string& path) in MakeDir() argument 86 if (mkdir(path.c_str()) == -1) { in MakeDir() 87 MEDIA_LOG_E("Fail to create dir " PUBLIC_LOG_S " due to " PUBLIC_LOG_S, path in MakeDir() 108 MakeMultipleDir(const std::string& path) MakeMultipleDir() argument 134 RemoveFilesInDir(const std::string& path) RemoveFilesInDir() argument [all...] |