/third_party/skia/samplecode/ |
H A D | SampleFatBits.cpp | 163 SkPath path; in drawRectSkeleton() local 165 fRectAsOval ? path.addOval(r) : path.addRect(r); in drawRectSkeleton() 166 max->drawPath(path, paint); in drawRectSkeleton() 238 SkPath path; in drawLineSkeleton() local 239 path.moveTo(pts[0]); in drawLineSkeleton() 240 path.lineTo(pts[1]); in drawLineSkeleton() 248 p.getFillPath(path, &dst); in drawLineSkeleton() 249 path = dst; in drawLineSkeleton() 251 path in drawLineSkeleton() 323 SkPath path; drawTriangleSkeleton() local 341 SkPath path; drawTriangle() local [all...] |
/third_party/skia/third_party/externals/spirv-cross/ |
H A D | test_shaders.py | 20 import os.path namespace 42 def remove_file(path): 43 #print('Removing file:', path) 44 os.remove(path) 47 f, path = tempfile.mkstemp(suffix = suff) 49 #print('Creating temporary:', path) 50 return path 70 _, ext = os.path.splitext(shader) 87 path = create_temporary() 91 remove_file(path) [all...] |
/third_party/skia/bench/ |
H A D | nanobench.cpp | 615 SkString path; in collect_files() local 616 while (it.next(&path)) { in collect_files() 617 list->push_back(SkOSPath::Join(paths[i], path.c_str())); in collect_files() 664 static sk_sp<SkPicture> ReadPicture(const char* path) { in ReadPicture() argument 667 if (CommandLineFlags::ShouldSkip(FLAGS_match, SkOSPath::Basename(path).c_str())) { in ReadPicture() 671 std::unique_ptr<SkStream> stream = SkStream::MakeFromFile(path); in ReadPicture() 673 SkDebugf("Could not read %s.\n", path); in ReadPicture() 680 static std::unique_ptr<MSKPPlayer> ReadMSKP(const char* path) { in ReadMSKP() argument 683 if (CommandLineFlags::ShouldSkip(FLAGS_match, SkOSPath::Basename(path).c_str())) { in ReadMSKP() 687 std::unique_ptr<SkStreamSeekable> stream = SkStream::MakeFromFile(path); in ReadMSKP() 696 ReadSVGPicture(const char* path) ReadSVGPicture() argument 761 SkString path = fTextBlobTraces[fCurrentTextBlobTrace++]; rawNext() local 776 const SkString& path = fSKPs[fCurrentRecording++]; rawNext() variable 791 const SkString& path = fSKPs[fCurrentDeserialPicture++]; rawNext() variable 807 const SkString& path = fSKPs[fCurrentSKP++]; rawNext() variable 830 const char* path = fSVGs[fCurrentSVG++].c_str(); rawNext() variable 847 const SkString& path = fSKPs[fCurrentAnimSKP]; rawNext() variable 865 const SkString& path = fMSKPs[fCurrentMSKP++]; rawNext() variable 879 const SkString& path = fImages[fCurrentCodec]; rawNext() variable 958 const SkString& path = fImages[fCurrentAndroidCodec]; rawNext() variable 1004 const SkString& path = fImages[fCurrentBRDImage]; rawNext() variable [all...] |
H A D | HairlinePathBench.cpp | 60 SkPath path; variable 61 this->makePath(&path); 64 path.transform(m); 69 canvas->drawPath(path, paint); 88 void makePath(SkPath* path) override { 101 path->moveTo(SkIntToScalar(points[base1] + xTrans), 103 path->lineTo(SkIntToScalar(points[base2] + xTrans), 105 path->lineTo(SkIntToScalar(points[base3] + xTrans), 120 void makePath(SkPath* path) override { 133 path [all...] |
/third_party/skia/third_party/externals/angle2/scripts/ |
H A D | process_angle_perf_results.py | 30 d = os.path.dirname 31 ANGLE_DIR = d(d(os.path.realpath(__file__))) 32 sys.path.append(os.path.join(ANGLE_DIR, 'tools', 'perf')) 101 output_json: A path to a JSON file to which the merged results should be 136 with open(os.path.join(directory, 'test_results.json')) as json_data: 182 benchmark_log_file = os.path.join(directory, 'benchmark_log.txt') 183 if os.path.exists(benchmark_log_file): 212 return os.path.basename(directory).replace(" benchmark", "") 221 if not os.path [all...] |
H A D | run_gtest_angle_test.py | 34 # Add //src/testing into sys.path for importing xvfb and test_env, and 36 d = os.path.dirname 37 THIS_DIR = d(os.path.abspath(__file__)) 39 sys.path.insert(0, os.path.join(ANGLE_SRC_DIR, 'testing')) 40 sys.path.insert(0, os.path.join(ANGLE_SRC_DIR, 'testing', 'scripts')) 42 sys.path.insert(0, os.path.join(CHROMIUM_SRC_DIR, 'testing')) 43 sys.path [all...] |
/third_party/astc-encoder/Test/testlib/ |
H A D | misc.py | 24 def path_splitall(path): 26 Utility function to split a relative path into its component pieces. 29 path(str): The relative path to split. 32 list(str): An array of path parts. 34 # Sanity check we have a relative path on Windows 35 assert ":" not in path 38 while path: 39 head, tail = os.path.split(path) [all...] |
/third_party/python/Lib/test/ |
H A D | test_os.py | 114 # longer path if longer paths support is enabled. Internally, the os 120 # On Windows, the test can stop when trying to create a path longer 124 # On VxWorks, PATH_MAX is defined as 1024 bytes. Creating a path 133 with os_helper.change_cwd(tmpdir) as path: 134 expected = path 140 need = min_len - (len(cwd) + len(os.path.sep)) 146 path = os.path.join(path, dirname) 148 os.mkdir(path) [all...] |
/test/testfwk/developer_test/src/core/testcase/ |
H A D | testcase_manager.py | 60 short_name, _ = os.path.splitext(os.path.basename(suite_file))
94 filename = os.path.basename(suite_file)
104 if os.path.exists(json_file_path):
147 if os.path.exists(json_file_path):
160 if os.path.exists(json_file_path):
182 LOG.info("test case path: " + test_case_path)
185 if os.path.exists(test_case_path):
210 test_case_out_path = os.path.join(test_case_path, test_type)
211 if os.path [all...] |
/third_party/node/src/api/ |
H A D | exceptions.cc | 27 const char* path) { in ErrnoException() 43 if (path != nullptr) { in ErrnoException() 44 // FIXME(bnoordhuis) It's questionable to interpret the file path as UTF-8. in ErrnoException() 45 path_string = String::NewFromUtf8(isolate, path).ToLocalChecked(); in ErrnoException() 75 static Local<String> StringFromPath(Isolate* isolate, const char* path) { in StringFromPath() argument 77 if (strncmp(path, "\\\\?\\UNC\\", 8) == 0) { in StringFromPath() 81 String::NewFromUtf8(isolate, path + 8).ToLocalChecked()); in StringFromPath() 82 } else if (strncmp(path, "\\\\?\\", 4) == 0) { in StringFromPath() 83 return String::NewFromUtf8(isolate, path + 4).ToLocalChecked(); in StringFromPath() 87 return String::NewFromUtf8(isolate, path) in StringFromPath() 23 ErrnoException(Isolate* isolate, int errorno, const char* syscall, const char* msg, const char* path) ErrnoException() argument 91 UVException(Isolate* isolate, int errorno, const char* syscall, const char* msg, const char* path, const char* dest) UVException() argument 187 WinapiErrnoException(Isolate* isolate, int errorno, const char* syscall, const char* msg, const char* path) WinapiErrnoException() argument [all...] |
/third_party/node/deps/uv/src/unix/ |
H A D | linux-inotify.c | 40 char* path; member 116 /* It's critical to keep a copy of path here, because it in uv__inotify_fork() 120 tmp_path = uv__strdup(handle->path); in uv__inotify_fork() 127 handle->path = tmp_path; in uv__inotify_fork() 138 tmp_path = handle->path; in uv__inotify_fork() 139 handle->path = NULL; in uv__inotify_fork() 160 /* No watchers left for this path. Clean up. */ in maybe_free_watcher_list() 175 const char* path; in uv__inotify_read() local 178 /* needs to be large enough for sizeof(inotify_event) + strlen(path) */ in uv__inotify_read() 211 path in uv__inotify_read() 249 uv_fs_event_start(uv_fs_event_t* handle, uv_fs_event_cb cb, const char* path, unsigned int flags) uv_fs_event_start() argument [all...] |
/third_party/skia/gm/ |
H A D | quadpaths.cpp | 37 void drawPath(SkPath& path,SkCanvas* canvas,SkColor color, in drawPath() argument 41 path.setFillType(fill); in drawPath() 50 canvas->drawPath(path, paint); in drawPath() 88 PathAndName path; variable 89 path.fPath.moveTo(25*SK_Scalar1, 10*SK_Scalar1); 90 path.fPath.quadTo(50*SK_Scalar1, 20*SK_Scalar1, 92 path.fName = "moveTo-quad"; 123 this->drawPath(path.fPath, canvas, color, rect, 167 void drawPath(SkPath& path,SkCanvas* canvas,SkColor color, in drawPath() argument 171 path in drawPath() 218 PathAndName path; global() variable [all...] |
/third_party/skia/infra/bots/recipe_modules/flavor/ |
H A D | api.py | 79 self._skia_dir = self.m.path['start_dir'].join('skia') 96 def create_clean_host_dir(self, path): 97 return self._f.create_clean_host_dir(path) 99 def create_clean_device_dir(self, path): 100 return self._f.create_clean_device_dir(path) 102 def read_file_on_device(self, path, **kwargs): 103 return self._f.read_file_on_device(path, **kwargs) 105 def remove_file_on_device(self, path): 106 return self._f.remove_file_on_device(path) 117 self.m.path['start_di [all...] |
/third_party/selinux/libselinux/include/selinux/ |
H A D | selinux.h | 110 extern int getfilecon(const char *path, char ** con); 111 extern int getfilecon_raw(const char *path, char ** con); 112 extern int lgetfilecon(const char *path, char ** con); 113 extern int lgetfilecon_raw(const char *path, char ** con); 118 extern int setfilecon(const char *path, const char * con); 119 extern int setfilecon_raw(const char *path, const char * con); 120 extern int lsetfilecon(const char *path, const char * con); 121 extern int lsetfilecon_raw(const char *path, const char * con); 339 extern int security_load_booleans(char *path) 452 may include the 'path' an [all...] |
/third_party/node/deps/v8/third_party/zlib/google/ |
H A D | zip_unittest.cc | 36 // Convenience macro to create a file path from a string literal. 37 #define FP(path) base::FilePath(FILE_PATH_LITERAL(path)) 48 for (base::FilePath path = files.Next(); !path.empty(); path = files.Next()) { in GetRelativePaths() 50 EXPECT_TRUE(dir.AppendRelativePath(path, &relative)); in GetRelativePaths() 163 for (const base::FilePath& path : paths) { 164 const auto it = files_.find(path); 176 bool List(const base::FilePath& path, 258 base::FilePath path; GetDataDirectory() local 274 TestUnzipFile(const base::FilePath& path, bool expect_hidden_files) TestUnzipFile() argument 401 base::FilePath path = GetDataDirectory().AppendASCII("evil.zip"); TEST_F() local 413 base::FilePath path = TEST_F() local [all...] |
/third_party/node/deps/zlib/google/ |
H A D | zip_unittest.cc | 36 // Convenience macro to create a file path from a string literal. 37 #define FP(path) base::FilePath(FILE_PATH_LITERAL(path)) 48 for (base::FilePath path = files.Next(); !path.empty(); path = files.Next()) { in GetRelativePaths() 50 EXPECT_TRUE(dir.AppendRelativePath(path, &relative)); in GetRelativePaths() 163 for (const base::FilePath& path : paths) { 164 const auto it = files_.find(path); 176 bool List(const base::FilePath& path, 258 base::FilePath path; GetDataDirectory() local 274 TestUnzipFile(const base::FilePath& path, bool expect_hidden_files) TestUnzipFile() argument 401 base::FilePath path = GetDataDirectory().AppendASCII("evil.zip"); TEST_F() local 413 base::FilePath path = TEST_F() local [all...] |
/test/testfwk/developer_test/local_coverage/ |
H A D | utils.py | 44 if os.path.exists(json_file): 58 ohos_config = os.path.join(root_path, "out", "ohos_config.json") 74 ohos_config = os.path.join(root_path, "out", "ohos_config.json") 132 def tree_find_file_endswith(path, suffix, file_list=None): 135 :param path: 需要遍历的目录 140 for f in os.listdir(path): 141 full_path = os.path.join(path, f) 142 if os.path.isfile(full_path) and full_path.endswith(suffix): 144 if os.path [all...] |
/test/testfwk/developer_test/aw/python/distributed/common/ |
H A D | common.py | 34 filedir, _ = os.path.split(testsuit_path) 41 result_path = os.path.join(result_rootpath, "result", subpath) 43 result_path = os.path.join(result_rootpath, "result") 45 result_path = os.path.join(result_rootpath, "result") 47 if not os.path.exists(result_path): 69 prefix_path = os.path.abspath(os.path.dirname(prefix_path)) 70 current_dir = os.path.join(prefix_path, product_form_name, 72 if not os.path.exists(current_dir): 87 if not os.path [all...] |
/third_party/eudev/src/shared/ |
H A D | smack-util.c | 28 #include "path-util.h" 48 int mac_smack_apply(const char *path, const char *label) { in mac_smack_apply() argument 51 assert(path); in mac_smack_apply() 58 r = lsetxattr(path, "security.SMACK64", label, strlen(label), 0); in mac_smack_apply() 60 r = lremovexattr(path, "security.SMACK64"); in mac_smack_apply() 150 int mac_smack_fix(const char *path, bool ignore_enoent, bool ignore_erofs) { in mac_smack_fix() argument 157 assert(path); in mac_smack_fix() 166 if (!path_startswith(path, "/dev")) in mac_smack_fix() 169 r = lstat(path, &st); in mac_smack_fix() 188 r = lsetxattr(path, "securit in mac_smack_fix() [all...] |
/third_party/curl/lib/ |
H A D | system_win32.c | 199 * filename [in] - The filename or full path of the DLL to load. If only the 222 /* Detect if there's already a path in the filename and load the library if in Curl_load_library() 240 /* Attempt to get the Windows system path */ in Curl_load_library() 243 /* Allocate space for the full DLL path (Room for the null terminator in Curl_load_library() 246 TCHAR *path = malloc(sizeof(TCHAR) * (systemdirlen + 1 + filenamelen)); in Curl_load_library() local 247 if(path && GetSystemDirectory(path, systemdirlen)) { in Curl_load_library() 248 /* Calculate the full DLL path */ in Curl_load_library() 249 _tcscpy(path + _tcslen(path), TEX in Curl_load_library() [all...] |
/third_party/node/tools/icu/ |
H A D | shrink-icu-src.py | 16 help='path to target ICU directory. Will be deleted.') 22 help='path to source ICU directory.') 28 help='path to icutmp dir.') 32 if os.path.isdir(options.icudst): 36 if not os.path.isdir(options.icusrc): 84 uvernum_h = os.path.join(icu_full_path, 'source/common/unicode/uvernum.h') 85 if not os.path.isfile(uvernum_h): 103 dst_datafile = os.path.join(options.icudst, "source","data","in", "icudt%s%s.dat" % (icu_ver_major, icu_endianness)) 105 src_datafile = os.path.join(options.icusrc, "source/data/in/icudt%sl.dat" % (icu_ver_major)) 108 if not os.path [all...] |
/third_party/libfuse/example/ |
H A D | null.c | 36 static int null_getattr(const char *path, struct stat *stbuf, in null_getattr() argument 41 if(strcmp(path, "/") != 0) in null_getattr() 55 static int null_truncate(const char *path, off_t size, in null_truncate() argument 61 if(strcmp(path, "/") != 0) in null_truncate() 67 static int null_open(const char *path, struct fuse_file_info *fi) in null_open() argument 71 if(strcmp(path, "/") != 0) in null_open() 77 static int null_read(const char *path, char *buf, size_t size, in null_read() argument 84 if(strcmp(path, "/") != 0) in null_read() 94 static int null_write(const char *path, const char *buf, size_t size, in null_write() argument 101 if(strcmp(path, "/") ! in null_write() [all...] |
/third_party/vk-gl-cts/external/openglcts/scripts/ |
H A D | build_caselists.py | 30 scriptPath = os.path.join(os.path.dirname(__file__), "..", "..", "..", "scripts") 31 sys.path.insert(0, scriptPath) 94 DEFAULT_BUILD_DIR = os.path.join(tempfile.gettempdir(), "deqp-caselists", "{targetName}-{buildType}") 112 return os.path.join(buildCfg.getBuildDir(), GLCTS_DIR_NAME) 123 return os.path.join(workDir, getCaseListFileName(module, caseListType)) 131 binPath = generator.getBinaryPath(buildCfg.getBuildType(), os.path.join(".", GLCTS_BIN_NAME)) 139 dstPath = os.path.join(dstDir, caseListFile) 141 if os.path.exists(srcPath): 146 if not os.path [all...] |
/third_party/skia/third_party/externals/dawn/scripts/ |
H A D | perf_test_runner.py | 25 base_path = os.path.abspath( 26 os.path.join(os.path.dirname(os.path.abspath(__file__)), '..')) 87 for path in perftests_paths: 88 binary_path = os.path.join(base_path, path, binary_name) 89 if os.path.exists(binary_path): 90 binary_mtime = os.path.getmtime(binary_path) 97 if perftests_path == None or not os.path [all...] |
/third_party/parse5/ |
H A D | build_parse5.py | 21 standard_system_build_dir = os.path.join(os.path.dirname(__file__), os.pardir, 23 build_dir = os.path.join(os.path.dirname(__file__), os.pardir, os.pardir, 25 if os.path.exists(standard_system_build_dir): 26 sys.path.append( 27 os.path.join(standard_system_build_dir, os.pardir, os.pardir)) 29 if os.path.exists(build_dir): 30 sys.path.append(os.path [all...] |