| /third_party/python/Lib/unittest/test/ |
| H A D | test_discovery.py | 1 import os.path namespace 2 from os.path import abspath 50 original_isfile = os.path.isfile 52 os.path.isfile = original_isfile 53 original_isdir = os.path.isdir 55 os.path.isdir = original_isdir 60 os.listdir = lambda path: path_lists.pop(0) 63 def isdir(path): 64 return path.endswith('dir') 65 os.path [all...] |
| /third_party/skia/gm/ |
| H A D | pathreverse.cpp | 16 /* The hiragino_maru_goth_pro_e path was generated with Mac-specific code: 20 * paint.getTextPath("e", 1, 50, 50, &path); 22 * The path data is duplicated here to allow the test to 27 SkPathBuilder path; in hiragino_maru_goth_pro_e() local 28 path.moveTo(98.6f, 24.7f); in hiragino_maru_goth_pro_e() 29 path.cubicTo(101.7f, 24.7f, 103.6f, 22.8f, 103.6f, 19.2f); in hiragino_maru_goth_pro_e() 30 path.cubicTo(103.6f, 18.9f, 103.6f, 18.7f, 103.6f, 18.4f); in hiragino_maru_goth_pro_e() 31 path.cubicTo(102.6f, 5.3f, 94.4f, -6.1f, 79.8f, -6.1f); in hiragino_maru_goth_pro_e() 32 path.cubicTo(63.5f, -6.1f, 54.5f, 6, 54.5f, 23.3f); in hiragino_maru_goth_pro_e() 33 path in hiragino_maru_goth_pro_e() 53 test_path(SkCanvas* canvas, const SkPath& path) test_path() argument 63 test_rev(SkCanvas* canvas, const SkPath& path) test_rev() argument 78 SkPath path; DEF_SIMPLE_GM_BG_NAME() local [all...] |
| /third_party/skia/tests/ |
| H A D | PathTest.cpp | 44 SkPath path; in test_add_rrect() local 46 path.addRRect(rrect); in test_add_rrect() 47 REPORTER_ASSERT(reporter, bounds == path.getBounds()); in test_add_rrect() 51 SkPath path; in test_skbug_3469() local 52 path.moveTo(20, 20); in test_skbug_3469() 53 path.quadTo(20, 50, 80, 50); in test_skbug_3469() 54 path.quadTo(20, 50, 20, 80); in test_skbug_3469() 55 REPORTER_ASSERT(reporter, !path.isConvex()); in test_skbug_3469() 76 static void make_path_crbug364224(SkPath* path) { in make_path_crbug364224() argument 77 path in make_path_crbug364224() 100 make_path_crbug364224_simplified(SkPath* path) make_path_crbug364224_simplified() argument 109 SkPath path; test_sect_with_horizontal_needs_pinning() local 121 SkPath path; test_path_crbug364224() local 133 test_draw_AA_path(int width, int height, const SkPath& path) test_draw_AA_path() argument 143 SkPath path; test_fuzz_crbug_638223() local 152 SkPath path; test_fuzz_crbug_643933() local 167 SkPath path; test_fuzz_crbug_647922() local 180 SkPath path; test_fuzz_crbug_662780() local 204 SkPath path; test_mask_overflow() local 218 SkPath path; test_fuzz_crbug_668907() local 231 make_path_crbugskia2820(SkPath* path, skiatest::Reporter* reporter) make_path_crbugskia2820() argument 245 SkPath path; test_path_crbugskia2820() local 254 SkPath path; test_path_crbugskia5995() local 262 make_path0(SkPath* path) make_path0() argument 273 make_path1(SkPath* path) make_path1() argument 296 SkPath path; test_path_to_region() local 315 SkPath path; test_path_close_issue1474() local 412 SkPath path; test_bad_cubic_crbug234190() local 428 SkPath path; test_bad_cubic_crbug229478() local 442 build_path_170666(SkPath& path) build_path_170666() argument 522 build_path_simple_170666(SkPath& path) build_path_simple_170666() argument 531 SkPath path; test_crbug_170666() local 602 SkPath path; test_crbug_613918() local 613 SkPath path; test_addrect() local 641 SkPath path; test_addrect_isfinite() local 660 build_big_path(SkPath* path, bool reducedCase) build_big_path() argument 687 SkPath path; test_clipped_cubic() local 708 SkPath path; test_bounds_crbug_513799() local 738 SkPath path; test_fuzz_crbug_627414() local 756 SkPath path; test_tricky_cubic() local 765 SkPath path; test_isfinite_after_transform() local 790 add_corner_arc(SkPath* path, const SkRect& rect, SkScalar xIn, SkScalar yIn, int startAngle) add_corner_arc() argument 820 make_arb_round_rect(SkPath* path, const SkRect& r, SkScalar xCorner, SkScalar yCorner) make_arb_round_rect() argument 925 SkPath path; test_path_isfinite() local 950 SkPath path; test_islastcontourclosed() local 973 test_poly(skiatest::Reporter* reporter, const SkPath& path, const SkPoint srcPts[], bool expectClose) test_poly() argument 1021 SkPath path; test_addPoly() local 1053 check_direction(skiatest::Reporter* reporter, const SkPath& path, SkPathFirstDirection expected) check_direction() argument 1069 SkPath path; test_direction() local 1154 add_rect(SkPath* path, const SkRect& r) add_rect() argument 1180 SkPath path; stroke_cubic() local 1215 check_close(skiatest::Reporter* reporter, const SkPath& path) check_close() argument 1311 check_convexity(skiatest::Reporter* reporter, const SkPath& path, bool expectedConvexity) check_convexity() argument 1537 setFromString(SkPath* path, const char str[]) setFromString() argument 1557 SkPath path; test_convexity() local 1738 SkPath path; test_isLine() local 1788 SkPath path; test_conservativelyContains() local 2018 SkPath path; test_isRect_open_close() local 2120 SkPath path; test_isRect() local 2214 check_simple_rect(skiatest::Reporter* reporter, const SkPath& path, bool isClosed, const SkRect& rect, SkPathDirection dir, unsigned start) check_simple_rect() argument 2237 SkPath path; test_is_closed_rect() local 2315 SkPath path; test_is_closed_rect() local 2426 SkPath path; test_isNestedFillRects() local 2557 SkPath path; test_isNestedFillRects() local 3041 SkPath path; test_range_iter() local 3291 check_for_circle(skiatest::Reporter* reporter, const SkPath& path, bool expectedCircle, SkPathFirstDirection expectedDir) check_for_circle() argument 3309 test_circle_skew(skiatest::Reporter* reporter, const SkPath& path, SkPathFirstDirection dir) test_circle_skew() argument 3327 test_circle_translate(skiatest::Reporter* reporter, const SkPath& path, SkPathFirstDirection dir) test_circle_translate() argument 3347 test_circle_rotate(skiatest::Reporter* reporter, const SkPath& path, SkPathFirstDirection dir) test_circle_rotate() argument 3367 test_circle_mirror_x(skiatest::Reporter* reporter, const SkPath& path, SkPathFirstDirection dir) test_circle_mirror_x() argument 3384 test_circle_mirror_y(skiatest::Reporter* reporter, const SkPath& path, SkPathFirstDirection dir) test_circle_mirror_y() argument 3403 test_circle_mirror_xy(skiatest::Reporter* reporter, const SkPath& path, SkPathFirstDirection dir) test_circle_mirror_xy() argument 3419 SkPath path; test_circle_with_direction() local 3459 SkPath path; test_circle_with_add_paths() local 3499 SkPath path; test_circle() local 3527 SkPath path; test_oval() local 3601 test_rrect_is_convex(skiatest::Reporter* reporter, SkPath* path, SkPathDirection dir) test_rrect_is_convex() argument 3611 test_rrect_convexity_is_unknown(skiatest::Reporter* reporter, SkPath* path, SkPathDirection dir) test_rrect_convexity_is_unknown() argument 3743 check_oval_arc(skiatest::Reporter* reporter, SkScalar start, SkScalar sweep, const SkPath& path) check_oval_arc() argument 3761 SkPath path; test_arc_ovals() local 3774 SkPath path; test_arc_ovals() local 4319 compare_dump(skiatest::Reporter* reporter, const SkPath& path, bool dumpAsHex, const char* str) compare_dump() argument 4393 GetFreeSpace(const SkPath& path) GetFreeSpace() argument 4473 SkPath path; test_crbug_629455() local 4484 SkPath path; test_fuzz_crbug_662952() local 4504 SkPath path; test_path_crbugskia6003() local 4523 SkPath path; test_fuzz_crbug_662730() local 4533 SkPath path; test_skbug_6947() local 4569 SkPath path; test_skbug_7015() local 4582 SkPath path; test_skbug_7051() local 4593 SkPath path; test_skbug_7435() local 4800 SkPath path; DEF_TEST() local 4991 SkPath path; DEF_TEST() local 5006 rand_path(SkPath* path, SkRandom& rand, SkPath::Verb verb, int n) rand_path() argument 5041 SkPath path; DEF_TEST() local 5078 SkPath path; DEF_TEST() local 5110 SkPath path; DEF_TEST() local 5195 SkPath path; DEF_TEST() local 5244 SkPath path = makePath(points, SK_ARRAY_COUNT(points), false); DEF_TEST() local 5378 SkPath path; DEF_TEST() local 5393 SkPath path; draw_triangle() local 5430 add_verbs(SkPath* path, int count) add_verbs() argument 5510 SkPath path; DEF_TEST() local 5541 conditional_convex(const SkPath& path, bool is_convex) conditional_convex() argument 5548 survive(SkPath* path, const Xforms& x, bool isAxisAligned, skiatest::Reporter* reporter, ISA isa_proc) survive() argument 5602 SkPath path; DEF_TEST() local 5641 SkPath path; DEF_TEST() local 5651 SkPath path; test_edger() local 5671 assert_points(skiatest::Reporter* reporter, const SkPath& path, const std::initializer_list<SkPoint>& list) assert_points() argument 5696 SkPath path; test_addRect_and_trailing_lineTo() local 5826 SkPath path = SkPathBuilder().moveTo(0,0).lineTo(1, 0) DEF_TEST() local 5846 SkPath path; DEF_TEST() local 5876 SkPath path; DEF_TEST() local [all...] |
| H A D | PathOpsTigerTest.cpp | 16 SkPath path; in tiger8() local 17 path.moveTo(SkBits2Float(0x43f639c5), SkBits2Float(0x4361375a)); // 492.451f, 225.216f in tiger8() 18 path.quadTo(SkBits2Float(0x43f58ce4), SkBits2Float(0x435d2a04), SkBits2Float(0x43f71bd9), SkBits2Float(0x435ac7d8)); // 491.101f, 221.164f, 494.218f, 218.781f in tiger8() 19 path.quadTo(SkBits2Float(0x43f7d69d), SkBits2Float(0x4359aa35), SkBits2Float(0x43f8b3b3), SkBits2Float(0x435951c5)); // 495.677f, 217.665f, 497.404f, 217.319f in tiger8() 20 path.conicTo(SkBits2Float(0x43f8ba67), SkBits2Float(0x43594f16), SkBits2Float(0x43f8c136), SkBits2Float(0x43594dd9), SkBits2Float(0x3f7fa2b1)); // 497.456f, 217.309f, 497.509f, 217.304f, 0.998576f in tiger8() 21 path.quadTo(SkBits2Float(0x43fcc3a8), SkBits2Float(0x43589340), SkBits2Float(0x43ff01dc), SkBits2Float(0x4352e191)); // 505.529f, 216.575f, 510.015f, 210.881f in tiger8() 22 path.conicTo(SkBits2Float(0x43ff5113), SkBits2Float(0x4352187b), SkBits2Float(0x43ffb59e), SkBits2Float(0x4352b6e9), SkBits2Float(0x3f3504f3)); // 510.633f, 210.096f, 511.419f, 210.714f, 0.707107f in tiger8() 23 path.conicTo(SkBits2Float(0x43ffdc85), SkBits2Float(0x4352f435), SkBits2Float(0x43ffe4a9), SkBits2Float(0x435355e9), SkBits2Float(0x3f6ec0ae)); // 511.723f, 210.954f, 511.786f, 211.336f, 0.932628f in tiger8() 24 path.quadTo(SkBits2Float(0x4400461c), SkBits2Float(0x435b3080), SkBits2Float(0x4400b692), SkBits2Float(0x4360b229)); // 513.095f, 219.189f, 514.853f, 224.696f in tiger8() 25 path in tiger8() 97 SkPath path; tiger8a() local 141 SkPath path; tiger8a_x() local 193 SkPath path; tiger8b_x() local 281 SkPath path; tiger8b() local [all...] |
| H A D | PathMeasureTest.cpp | 13 SkPath path; in test_small_segment3() local 20 path.moveTo(pts[0]); in test_small_segment3() 22 path.cubicTo(pts[i], pts[i + 1], pts[i + 2]); in test_small_segment3() 25 SkPathMeasure meas(path, false); in test_small_segment3() 30 SkPath path; in test_small_segment2() local 37 path.moveTo(pts[0]); in test_small_segment2() 39 path.quadTo(pts[i], pts[i + 1]); in test_small_segment2() 41 SkPathMeasure meas(path, false); in test_small_segment2() 46 SkPath path; in test_small_segment() local 55 path in test_small_segment() 78 SkPath path; DEF_TEST() local 224 SkPath path; DEF_TEST() local 249 SkPath path; test_empty_contours() local 270 SkPath path; test_MLM_contours() local 284 SkPath path; test_shrink() local 302 SkPath path; DEF_TEST() local [all...] |
| H A D | PathOpsBuilderConicTest.cpp | 132 static bool simplify_fails(skiatest::Reporter* reporter, const SkPath& path) { in simplify_fails() argument 134 bool failed = !Simplify(path, &simplifiedPath); in simplify_fails() 137 failed = !!comparePaths(reporter, __FUNCTION__, path, simplifiedPath, bitmap); in simplify_fails() 142 static SkPath subset_simplify_fail(skiatest::Reporter* reporter, const SkPath& path) { in subset_simplify_fail() argument 143 SubsetContours subsetContours(path); in subset_simplify_fail() 144 bool failed = simplify_fails(reporter, path); in subset_simplify_fail() 146 SkPath lastFailed = path; in subset_simplify_fail() 170 SkPath path; in DEF_TEST() local 171 path.moveTo(SkBits2Float(0x434d53ca), SkBits2Float(0x43ad6ab0)); // 205.327f, 346.833f in DEF_TEST() 172 path in DEF_TEST() 401 SkPath path; DEF_TEST() local 414 SkPath path; DEF_TEST() local 455 SkPath path; DEF_TEST() local [all...] |
| H A D | PathOpsSimplifyFailTest.cpp | 42 SkPath path; in failOne() local 47 case 0: path.lineTo(nonFinitePts[i]); break; in failOne() 48 case 1: path.quadTo(nonFinitePts[i], nonFinitePts[i]); break; in failOne() 49 case 2: path.quadTo(nonFinitePts[i], finitePts[f]); break; in failOne() 50 case 3: path.quadTo(finitePts[f], nonFinitePts[i]); break; in failOne() 51 case 4: path.cubicTo(nonFinitePts[i], finitePts[f], finitePts[f]); break; in failOne() 52 case 5: path.cubicTo(finitePts[f], nonFinitePts[i], finitePts[f]); break; in failOne() 53 case 6: path.cubicTo(finitePts[f], finitePts[f], nonFinitePts[i]); break; in failOne() 54 case 7: path.cubicTo(nonFinitePts[i], nonFinitePts[i], finitePts[f]); break; in failOne() 55 case 8: path in failOne() 71 SkPath path; dontFailOne() local 96 SkPath path; fuzz_59() local 108 SkPath path; fuzz_x1() local 118 SkPath path; fuzz_x2() local 128 SkPath path; fuzz763_1() local 158 SkPath path; fuzz763_2s() local 217 SkPath path; fuzz_x3() local 228 SkPath path; fuzz_k1() local [all...] |
| H A D | PathOpsTightBoundsTest.cpp | 16 SkPath path; in testTightBoundsLines() local 20 path.moveTo(ran.nextRangeF(-1000, 1000), ran.nextRangeF(-1000, 1000)); in testTightBoundsLines() 22 path.lineTo(ran.nextRangeF(-1000, 1000), ran.nextRangeF(-1000, 1000)); in testTightBoundsLines() 25 path.close(); in testTightBoundsLines() 28 SkRect classicBounds = path.getBounds(); in testTightBoundsLines() 30 REPORTER_ASSERT(data->fReporter, TightBounds(path, &tightBounds)); in testTightBoundsLines() 61 SkPath path; in testTightBoundsQuads() local 65 path.moveTo(ran.nextRangeF(1, pathMax), ran.nextRangeF(pathMin, pathMax)); in testTightBoundsQuads() 68 path.lineTo(ran.nextRangeF(pathMin, pathMax), ran.nextRangeF(pathMin, pathMax)); in testTightBoundsQuads() 70 path in testTightBoundsQuads() 124 SkPath path; DEF_TEST() local 140 SkPath path; DEF_TEST() local 149 SkPath path; DEF_TEST() local 159 SkPath path; DEF_TEST() local 171 SkPath path; DEF_TEST() local 181 SkPath path; DEF_TEST() local 191 SkPath path; DEF_TEST() local [all...] |
| /test/xts/acts/graphic/acts_drawing_native/ |
| H A D | DrawingNativePathTestPart3.cpp | 42 * @tc.desc: Test for checking if a path is closed using normal parameters. 48 // 1. Create a path object using OH_Drawing_PathCreate in HWTEST_F() 49 OH_Drawing_Path *path = OH_Drawing_PathCreate(); in HWTEST_F() local 50 // 2. Set the starting point of the path using OH_Drawing_PathMoveTo in HWTEST_F() 51 OH_Drawing_PathMoveTo(path, 0, 0); in HWTEST_F() 53 OH_Drawing_PathLineTo(path, 100, 100); in HWTEST_F() 54 // 4. Add a line segment from the last point of the path to the target point using OH_Drawing_PathLineTo in HWTEST_F() 55 OH_Drawing_PathLineTo(path, 0, 100); in HWTEST_F() 56 // 5. Add a line segment from the last point of the path to the target point using OH_Drawing_PathLineTo in HWTEST_F() 57 OH_Drawing_PathLineTo(path, in HWTEST_F() 77 OH_Drawing_Path *path = OH_Drawing_PathCreate(); HWTEST_F() local 99 OH_Drawing_Path *path = OH_Drawing_PathCreate(); HWTEST_F() local 118 OH_Drawing_Path *path = OH_Drawing_PathCreate(); HWTEST_F() local 142 OH_Drawing_Path *path = OH_Drawing_PathCreate(); HWTEST_F() local 166 OH_Drawing_Path *path = OH_Drawing_PathCreate(); HWTEST_F() local 197 OH_Drawing_Path *path = OH_Drawing_PathCreate(); HWTEST_F() local 236 OH_Drawing_Path *path = OH_Drawing_PathCreate(); HWTEST_F() local 276 OH_Drawing_Path *path = OH_Drawing_PathCreate(); HWTEST_F() local 308 OH_Drawing_Path *path = OH_Drawing_PathCreate(); HWTEST_F() local 329 OH_Drawing_Path *path = OH_Drawing_PathCreate(); HWTEST_F() local 362 OH_Drawing_Path *path = OH_Drawing_PathCreate(); HWTEST_F() local 395 OH_Drawing_Path *path = OH_Drawing_PathCreate(); HWTEST_F() local 421 OH_Drawing_Path *path = OH_Drawing_PathCreate(); HWTEST_F() local 446 OH_Drawing_Path *path = OH_Drawing_PathCreate(); HWTEST_F() local [all...] |
| /third_party/typescript/src/testRunner/unittests/tsserver/ |
| H A D | reloadProjects.ts | 4 path: `${tscWatch.projectRoot}/tsconfig.json`,
10 path: `${tscWatch.projectRoot}/file1.ts`,
17 path: `${tscWatch.projectRoot}/file2.ts`,
21 path: `${tscWatch.projectRoot}/node_modules/module1/index.d.ts`,
29 host.writeFile(file2.path, updatedText);
32 assert.equal(project.getCurrentProgram()?.getSourceFile(file2.path)?.text, updatedText);
35 host.deleteFile(file2.path);
38 assert.isUndefined(project.getCurrentProgram()?.getSourceFile(file2.path)?.text);
39 assert.isUndefined(service.getScriptInfo(file2.path));
45 service.setHostConfiguration({ watchOptions: { excludeFiles: [file2.path] } });
[all...] |
| H A D | autoImportProvider.ts | 3 path: "/node_modules/@angular/forms/forms.d.ts",
7 path: "/node_modules/@angular/forms/package.json",
11 path: "/node_modules/@angular/core/core.d.ts",
15 path: "/node_modules/@angular/core/package.json",
19 path: "/tsconfig.json",
23 path: "/package.json",
27 path: "/index.ts",
37 { path: packageJson.path, content: `{ "dependencies": {} }` },
41 assert.isUndefined(projectService.configuredProjects.get(tsconfig.path)! [all...] |
| H A D | compileOnSave.ts | 21 const expectedResultSingleProjectFileNameList = map(expectedResultSingleProject.files, f => f.path).sort();
42 path: "/a/b/moduleFile1.ts",
47 path: "/a/b/file1Consumer1.ts",
52 path: "/a/b/file1Consumer2.ts",
57 path: "/a/b/moduleFile2.ts",
62 path: "/a/b/globalFile3.ts",
67 path: "/a/b/tsconfig.json",
75 file: moduleFile1.path,
85 file: moduleFile1.path,
93 moduleFile1FileListRequest = makeSessionRequest<server.protocol.FileRequestArgs>(CommandNames.CompileOnSaveAffectedFileList, { file: moduleFile1.path, projectFileNam [all...] |
| /third_party/node/test/parallel/ |
| H A D | test-path-dirname.js | 4 const path = require('path'); 6 assert.strictEqual(path.dirname(__filename).substr(-13), 9 assert.strictEqual(path.posix.dirname('/a/b/'), '/a'); 10 assert.strictEqual(path.posix.dirname('/a/b'), '/a'); 11 assert.strictEqual(path.posix.dirname('/a'), '/'); 12 assert.strictEqual(path.posix.dirname(''), '.'); 13 assert.strictEqual(path.posix.dirname('/'), '/'); 14 assert.strictEqual(path.posix.dirname('////'), '/'); 15 assert.strictEqual(path [all...] |
| /third_party/skia/modules/canvaskit/tests/ |
| H A D | path.spec.js | 1 describe('Path Behavior', () => { 24 const path = new CanvasKit.Path(); 25 path.moveTo(20, 5); 26 path.lineTo(30, 20); 27 path.lineTo(40, 10); 28 path.lineTo(50, 20); 29 path.lineTo(60, 0); 30 path.lineTo(20, 5); 32 path [all...] |
| /third_party/python/Doc/library/ |
| H A D | os.path.rst | 1 :mod:`os.path` --- Common pathname manipulations 4 .. module:: os.path 10 .. index:: single: path; operations 16 module. The path parameters can be passed as strings, or bytes, or any object 19 Unlike a Unix shell, Python does not do any *automatic* path expansions. 21 explicitly when an application desires shell-like path expansion. (See also 26 The :mod:`pathlib` module offers high-level path objects. 32 their parameters. The result is an object of the same type, if a path or 37 Since different operating systems have different path name conventions, there 39 :mod:`os.path` modul [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/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...] |
| /third_party/rust/crates/cxx/gen/src/ |
| H A D | fs.rs | 6 use std::path::{Path, PathBuf}; 39 ($io_error:expr, $fmt:expr $(, $path:expr)* $(,)?) => { 42 message: format!($fmt $(, $path.display())*), 47 pub(crate) fn copy(from: impl AsRef<Path>, to: impl AsRef<Path>) -> Result<u64> { 56 pub(crate) fn create_dir_all(path: impl AsRef<Path>) -> Result<()> { 57 let path = path [all...] |
| /third_party/rust/crates/cxx/gen/cmd/src/gen/ |
| H A D | fs.rs | 6 use std::path::{Path, PathBuf}; 39 ($io_error:expr, $fmt:expr $(, $path:expr)* $(,)?) => { 42 message: format!($fmt $(, $path.display())*), 47 pub(crate) fn copy(from: impl AsRef<Path>, to: impl AsRef<Path>) -> Result<u64> { 56 pub(crate) fn create_dir_all(path: impl AsRef<Path>) -> Result<()> { 57 let path = path [all...] |
| /third_party/rust/crates/cxx/gen/build/src/gen/ |
| H A D | fs.rs | 6 use std::path::{Path, PathBuf}; 39 ($io_error:expr, $fmt:expr $(, $path:expr)* $(,)?) => { 42 message: format!($fmt $(, $path.display())*), 47 pub(crate) fn copy(from: impl AsRef<Path>, to: impl AsRef<Path>) -> Result<u64> { 56 pub(crate) fn create_dir_all(path: impl AsRef<Path>) -> Result<()> { 57 let path = path [all...] |
| /third_party/rust/crates/cxx/gen/lib/src/gen/ |
| H A D | fs.rs | 6 use std::path::{Path, PathBuf}; 39 ($io_error:expr, $fmt:expr $(, $path:expr)* $(,)?) => { 42 message: format!($fmt $(, $path.display())*), 47 pub(crate) fn copy(from: impl AsRef<Path>, to: impl AsRef<Path>) -> Result<u64> { 56 pub(crate) fn create_dir_all(path: impl AsRef<Path>) -> Result<()> { 57 let path = path [all...] |
| /test/testfwk/xdevice/plugins/devicetest/utils/ |
| H A D | file_util.py | 37 @param template_file_path: Obtains the absolute path of the template screen cap path. 42 if os.path.isabs(template_file_path) \ 43 and (not isdir and os.path.isfile(template_file_path)): 44 return os.path.abspath(template_file_path) 47 if not os.path.isfile(template_file_path) and template_file_path.startswith("/"): 52 path = template_file_path[9:] 55 folder = os.path.abspath(EnvPool.resource_path) 56 _fol = travesal_folder(folder, path, isdir) 58 log.debug("Not found [%s] in env pool path [all...] |
| /third_party/littlefs/tests/ |
| H A D | test_entries.toml | 18 char path[1024]; 20 sprintf(path, "hi0"); size = 20; 22 lfs_file_open(&lfs, &file, path, 29 sprintf(path, "hi1"); size = 20; 30 lfs_file_open(&lfs, &file, path, 37 sprintf(path, "hi2"); size = 20; 38 lfs_file_open(&lfs, &file, path, 45 sprintf(path, "hi3"); size = 20; 46 lfs_file_open(&lfs, &file, path, 54 sprintf(path, "hi [all...] |
| /third_party/vulkan-loader/tests/framework/shim/ |
| H A D | shim_common.cpp | 32 void PlatformShim::redirect_all_paths(fs::path const& path) { in redirect_all_paths() argument 33 redirect_category(path, ManifestCategory::implicit_layer); in redirect_all_paths() 34 redirect_category(path, ManifestCategory::explicit_layer); in redirect_all_paths() 35 redirect_category(path, ManifestCategory::icd); in redirect_all_paths() 74 D3DKMT_Adapter& D3DKMT_Adapter::add_driver_manifest_path(fs::path const& src) { return add_path(src, driver_paths); } 75 D3DKMT_Adapter& D3DKMT_Adapter::add_implicit_layer_manifest_path(fs::path const& src) { 78 D3DKMT_Adapter& D3DKMT_Adapter::add_explicit_layer_manifest_path(fs::path const& src) { 82 D3DKMT_Adapter& D3DKMT_Adapter::add_path(fs::path src, std::vector<std::wstring>& dest) { 108 void PlatformShim::set_fake_path([[maybe_unused]] ManifestCategory category, [[maybe_unused]] fs::path cons argument 109 add_known_path([[maybe_unused]] fs::path const& path) global() argument 111 add_manifest(ManifestCategory category, fs::path const& path) global() argument 123 add_unsecured_manifest(ManifestCategory category, fs::path const& path) global() argument 140 set_app_package_path(fs::path const& path) global() argument 184 is_fake_path(fs::path const& path) global() argument 185 get_real_path_from_fake_path(fs::path const& path) global() argument 186 redirect_path(fs::path const& path, fs::path const& new_path) global() argument 187 remove_redirect(fs::path const& path) global() argument 189 is_known_path(fs::path const& path) global() argument 190 add_known_path(fs::path const& path) global() argument 191 remove_known_path(fs::path const& path) global() argument 193 add_manifest([[maybe_unused]] ManifestCategory category, [[maybe_unused]] fs::path const& path) global() argument 194 add_unsecured_manifest([[maybe_unused]] ManifestCategory category, [[maybe_unused]] fs::path const& path) global() argument 245 set_fake_path(ManifestCategory category, fs::path const& path) global() argument 247 redirect_path(fs::path(SYSCONFDIR) / "vulkan" / category_path_name(category), path); global() local [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...] |