/third_party/mesa3d/src/vulkan/util/ |
H A D | vk_cmd_queue_gen.py | 563 assert os.path.dirname(args.out_c) == os.path.dirname(args.out_h) 566 'header': os.path.basename(args.out_h), 568 'filename': os.path.basename(__file__), 587 guard = os.path.basename(args.out_h).replace('.', '_').upper()
|
/third_party/rust/crates/bindgen/csmith-fuzzing/ |
H A D | predicate.py | 162 for path in TEMP_FILES: 164 os.remove(path) 199 manifest_path = os.path.abspath(os.path.join(os.path.dirname(sys.argv[0]), 202 command = ["cargo", "run", "--manifest-path", manifest_path]
|
/third_party/rust/crates/linux-raw-sys/gen/src/ |
H A D | main.rs | 8 use std::path::Path; 23 // This is the main invocation path. in main() 30 let out_dir = out.path(); in main() 37 assert!(!entry.path().to_str().unwrap().ends_with(".")); in main() 39 fs::remove_dir_all(entry.path()).ok(); in main() 131 let header_name = mod_entry.path(); in main() 143 writeln!(src_lib_rs, "#[path = \"{}/{}.rs\"]", rust_arch, mod_name).unwrap(); in main()
|
/third_party/python/Tools/c-analyzer/cpython/ |
H A D | _analyzer.py | 1 import os.path namespace 32 _DATA_DIR = os.path.dirname(__file__) 33 KNOWN_FILE = os.path.join(_DATA_DIR, 'known.tsv') 34 IGNORED_FILE = os.path.join(_DATA_DIR, 'ignored.tsv') 35 NEED_FIX_FILE = os.path.join(_DATA_DIR, 'globals-to-fix.tsv')
|
/third_party/python/Tools/unicode/ |
H A D | gencodec.py | 376 mappathname = os.path.join(dir, mapname) 377 if not os.path.isfile(mappathname): 379 name = os.path.split(mapname)[1] 390 map = readmap(os.path.join(dir,mapname)) 411 with open(os.path.join(dir, mapname), 'rb') as f:
|
/third_party/rust/crates/glob/tests/ |
H A D | glob-std.rs | 21 use std::path::PathBuf; 26 fn mk_file(path: &str, directory: bool) { in main() 28 fs::create_dir(path).unwrap(); in main() 30 fs::File::create(path).unwrap(); in main() 40 assert!(env::set_current_dir(root.path()).is_ok()); in main()
|
/third_party/pulseaudio/src/pulsecore/ |
H A D | core-util.h | 144 int pa_append_to_home_dir(const char *path, char **_r); 148 int pa_append_to_config_home_dir(const char *path, char **_r); 277 char *pa_realpath(const char *path); 289 char* pa_maybe_prefix_path(const char *path, const char *prefix); 304 FILE* pa_fopen_cloexec(const char *path, const char *mode);
|
/third_party/skia/src/core/ |
H A D | SkClipStack.h | 60 //!< This element combines a device space path with the current clip. 84 Element(const SkPath& path, const SkMatrix& m, SkClipOp op, bool doAA) { in Element() argument 85 this->initPath(0, path, m, op, doAA); in Element() 107 //!< Call if getDeviceSpaceType() is kPath to get the path. 140 //!< Call to get the element as a path, regardless of its type. 141 void asDeviceSpacePath(SkPath* path) const; 158 stack not to the element itself. That is the same clip path in different stacks will 164 * Gets the bounds of the clip element, either the rect or path bounds. (Whether the shape 257 Element(int saveCount, const SkPath& path, const SkMatrix& m, SkClipOp op, bool doAA) { in Element() argument 258 this->initPath(saveCount, path, in Element() [all...] |
H A D | SkRasterClip.cpp | 67 SkRasterClip::SkRasterClip(const SkPath& path, const SkIRect& bounds, bool doAA) { in SkRasterClip() argument 70 fAA.setPath(path, bounds, true); in SkRasterClip() 73 fBW.setPath(path, SkRegion(bounds)); in SkRasterClip() 177 bool SkRasterClip::op(const SkPath& path, const SkMatrix& matrix, SkClipOp op, bool doAA) { in op() argument 181 path.transform(matrix, &devPath); in op() 186 // However, in the relatively common case of intersecting a new path with a rectangular in op() 187 // clip, it's faster to convert the path into a region/aa-mask in place than evaluate the in op()
|
/third_party/skia/third_party/externals/swiftshader/tests/regres/cov/ |
H A D | import.go | 23 "path/filepath" 46 RootDir string // path to SwiftShader git root directory 47 ExePath string // path to the executable binary 48 TurboCov string // path to turbo-cov (optional) 75 filepath.Walk(filepath.Join(e.RootDir, "src"), func(path string, info os.FileInfo, err error) error { 79 rel, err := filepath.Rel(e.RootDir, path) 84 switch filepath.Ext(path) { 226 path := str() 227 relpath, err := filepath.Rel(e.RootDir, path) 273 // Path is a tree node path forme [all...] |
/third_party/skia/third_party/externals/icu/source/tools/toolutil/ |
H A D | toolutil.cpp | 117 /* prepend the long filename with the original path */ in getLongPathname() 130 findDirname(const char *path, char *buffer, int32_t bufLen, UErrorCode* status) { in findDirname() argument 135 const char *basename=uprv_strrchr(path, U_FILE_SEP_CHAR); in findDirname() 137 const char *basenameAlt=uprv_strrchr(path, U_FILE_ALT_SEP_CHAR); in findDirname() 147 resultPtr = path; in findDirname() 148 resultLen = static_cast<int32_t>(basename - path); in findDirname()
|
/third_party/skia/tests/ |
H A D | PaintTest.cpp | 51 SkPath path, stroke; in DEF_TEST() local 54 path.moveTo(460.2881309415525f, in DEF_TEST() 56 path.cubicTo(463.36378422175284f, in DEF_TEST() 64 fillR = path.getBounds(); in DEF_TEST() 68 paint.getFillPath(path, &stroke); in DEF_TEST()
|
/third_party/skia/third_party/externals/angle2/util/windows/ |
H A D | test_utils_win.cpp | 115 // the absence of a file or path is a success condition (e.g., when attempting 414 // Strip last path character if present. in GetTempDir() 436 bool DeleteSystemFile(const char *path) in DeleteSystemFile() argument 438 if (strlen(path) >= MAX_PATH) in DeleteSystemFile() 441 const DWORD attr = ::GetFileAttributesA(path); in DeleteSystemFile() 442 // Report success if the file or path does not exist. in DeleteSystemFile() 450 !::SetFileAttributesA(path, attr & ~FILE_ATTRIBUTE_READONLY)) in DeleteSystemFile() 452 // It's possible for |path| to be gone now under a race with other deleters. in DeleteSystemFile() 462 return !!::DeleteFileA(path) ? true : ReturnSuccessOnNotFound(); in DeleteSystemFile()
|
/third_party/python/Lib/test/ |
H A D | test_dbm_gnu.py | 90 size0 = os.path.getsize(filename) 97 size1 = os.path.getsize(filename) 102 self.assertEqual(os.path.getsize(filename), size1) 105 size2 = os.path.getsize(filename) 159 self.assertTrue(os.path.exists(filename))
|
/third_party/skia/tools/skdiff/ |
H A D | skdiff_html.cpp | 163 static void print_image_cell(SkFILEWStream* stream, const SkString& path, int height) { in print_image_cell() argument 165 stream->writeText(path.c_str()); in print_image_cell() 167 stream->writeText(path.c_str()); in print_image_cell() 173 static void print_link_cell(SkFILEWStream* stream, const SkString& path, const char* text) { in print_link_cell() argument 175 stream->writeText(path.c_str()); in print_link_cell() 245 // On Windows or Linux, a path starting with PATH_DIV_CHAR is absolute. in print_diff_page()
|
/third_party/skia/tools/skqp/src/ |
H A D | jni_skqp.cpp | 32 static sk_sp<SkData> open_asset_data(const char* path) { in open_asset_data() argument 35 if (AAsset* asset = AAssetManager_open(gAAssetManager, path, AASSET_MODE_STREAMING)) { in open_asset_data() 40 SkDebugf("ERROR: AAsset_read != AAsset_getLength (%s)\n", path); in open_asset_data() 51 sk_sp<SkData> open(const char* path) override { return open_asset_data(path); }
|
/third_party/toybox/toys/posix/ |
H A D | getconf.c | 9 * Added -a, copied FSF behavior of assuming "/" if no path supplied. 19 Get system configuration values. Values from pathconf(3) require a path. 21 -a Show all (defaults to "/" if no path given) 120 // Probe the live system with a path 174 static void show_conf(int i, struct config *c, const char *path) in show_conf() argument 177 long l = i ? pathconf(path, c->value) : sysconf(c->value); in show_conf() 196 char *name, *path = (toys.optc==2) ? toys.optargs[1] : "/", in getconf_main() local 205 show_conf(i, c, path); in getconf_main() 233 // Check that we do/don't have the extra path argument. in getconf_main() 235 if (toys.optc!=2) help_exit("%s needs a path", nam in getconf_main() [all...] |
/third_party/python/Objects/ |
H A D | fileobject.c | 500 PyFile_OpenCodeObject(PyObject *path) in PyFile_OpenCodeObject() argument 504 if (!PyUnicode_Check(path)) { in PyFile_OpenCodeObject() 505 PyErr_Format(PyExc_TypeError, "'path' must be 'str', not '%.200s'", in PyFile_OpenCodeObject() 506 Py_TYPE(path)->tp_name); in PyFile_OpenCodeObject() 512 f = hook(path, _PyRuntime.open_code_userdata); in PyFile_OpenCodeObject() 516 f = _PyObject_CallMethod(iomod, &_Py_ID(open), "Os", path, "rb"); in PyFile_OpenCodeObject()
|
/third_party/skia/modules/androidkit/src/ |
H A D | Canvas.cpp | 99 if (auto* path = reinterpret_cast<SkPath*>(native_path)) { in Canvas_ClipPath() 100 canvas->clipPath(*path, static_cast<SkClipOp>(native_clipOp), doAA); in Canvas_ClipPath() 161 auto* path = reinterpret_cast<SkPath* >(native_path); in Canvas_DrawPath() local 163 if (canvas && paint && path) { in Canvas_DrawPath() 164 canvas->drawPath(*path, *paint); in Canvas_DrawPath()
|
/third_party/skia/gm/ |
H A D | animated_gif.cpp | 193 SkString path; in AnimCodecPlayerGM() local 194 while (iter.next(&path)) { in AnimCodecPlayerGM() 196 completepath.printf("%s%s", root, path.c_str()); in AnimCodecPlayerGM() 294 AnimCodecPlayerExifGM(const char* path) in AnimCodecPlayerExifGM() argument 295 : fPath(path) in AnimCodecPlayerExifGM()
|
H A D | texteffects.cpp | 222 SkPath path; in draw_blob_adorned() local 223 path.moveTo({0, y}); in draw_blob_adorned() 225 path.lineTo(intervals[i], y).moveTo(intervals[i+1], y); in draw_blob_adorned() 228 path.lineTo(end, y); in draw_blob_adorned() 234 canvas->drawPath(path, paint); in draw_blob_adorned()
|
H A D | trickycubicstrokes.cpp | 162 SkPath path = SkPath().moveTo(p[0]); in draw_test() local 164 path.cubicTo(p[1], p[2], p[3]); in draw_test() 167 path.quadTo(p[1], p[2]); in draw_test() 170 path.conicTo(p[1], p[2], w); in draw_test() 172 canvas->drawPath(path, strokePaint); in draw_test() 208 // Only allow the tessellation path renderer.
|
/third_party/rust/crates/rustix/tests/io/ |
H A D | read_write.rs | 13 let dir = openat(cwd(), tmp.path(), OFlags::RDONLY, Mode::empty()).unwrap(); in test_readwrite_pv() 51 let dir = openat(cwd(), tmp.path(), OFlags::RDONLY, Mode::empty()).unwrap(); in test_readwrite_p() 76 let dir = openat(cwd(), tmp.path(), OFlags::RDONLY, Mode::empty()).unwrap(); in test_readwrite_v() 103 let dir = openat(cwd(), tmp.path(), OFlags::RDONLY, Mode::empty()).unwrap(); in test_readwrite() 157 let dir = openat(cwd(), tmp.path(), OFlags::RDONLY, Mode::empty()).unwrap(); in test_pwritev2()
|
/third_party/vulkan-loader/scripts/ |
H A D | loader_genvk.py | 356 # default scripts path to be same as registry 358 args.scripts = os.path.dirname(args.registry) 361 scripts_dir = os.path.dirname(os.path.abspath(__file__)) 362 registry_dir = os.path.join(scripts_dir, args.scripts) 363 sys.path.insert(0, registry_dir)
|
/foundation/ability/idl_tool/idl_tool_2/codegen/SA/rust/ |
H A D | sa_rust_interface_code_emitter.cpp | 127 std::string path = TrimDot(fpnp);
in GeneratePath() local 128 if (path.empty()) {
in GeneratePath() 131 return StringHelper::Replace(path, ".", "::");
in GeneratePath() 134 std::string path = TrimDot(fpnp.substr(0, pos + 1));
in GeneratePath() local 136 if (path.empty()) {
in GeneratePath() 140 if ((path.find("..") != std::string::npos) || (file.find("..") != std::string::npos)) {
in GeneratePath() 145 realPath.Append(StringHelper::Replace(path, ".", "::")).Append("::{");
in GeneratePath()
|