/test/testfwk/xdevice/plugins/ohos/src/ohos/drivers/ |
H A D | cpp_driver_lite.py | 116 if os.path.exists(self.result): 236 parser_instance.suites_name = os.path.basename(self.result) 285 report_path = os.path.join(self.config.report_path, "result") 291 os.path.join(report_path, "%s.xml" % execute_bin), 295 for xml_file in os.listdir(os.path.split(self.result)[0]): 298 if xml_file != os.path.split(self.result)[1]: 299 os.remove(os.path.join(os.path.split( 304 self.result = "%s.xml" % os.path.join(request.config.report_path, 411 os.path [all...] |
/third_party/node/deps/v8/tools/release/ |
H A D | common_includes.py | 54 VERSION_FILE = os.path.join("include", "v8-version.h") 59 V8_BASE = os.path.dirname( 60 os.path.dirname(os.path.dirname(os.path.abspath(__file__)))) 65 path_to_depot_tools = os.path.join(V8_BASE, 'third_party', 'depot_tools') 321 os.path.join(self._options.work_dir, "v8")) 344 if not self._state and os.path.exists(state_file): 452 if not os.path.exists(os.path [all...] |
/third_party/nghttp2/src/ |
H A D | shrpx_log.cc | 547 return req.path; in construct_absolute_request_uri() 550 auto len = req.authority.size() + req.path.size(); in construct_absolute_request_uri() 569 p = std::copy(std::begin(req.path), std::end(req.path), p); in construct_absolute_request_uri() 598 auto path = in upstream_accesslog() local 601 : req.path.empty() ? req.method == HTTP_OPTIONS ? StringRef::from_lit("*") in upstream_accesslog() 603 : req.path; in upstream_accesslog() 606 ? path in upstream_accesslog() 607 : StringRef{std::begin(path), in upstream_accesslog() 608 std::find(std::begin(path), st in upstream_accesslog() 974 open_log_file(const char *path) open_log_file() argument [all...] |
/third_party/skia/tests/ |
H A D | PathOpsExtendedTest.cpp | 260 SkDebugf(" SkPath path, pathB;\n"); 261 SkPathOpsDebug::ShowOnePath(a, "path", false); 263 SkDebugf(" testPathOp(reporter, path, pathB, %s, filename);\n", opStrs[shapeOp]); 327 out.append("(skiatest::Reporter* reporter) {\n SkPath path"); 360 bool testSimplify(SkPath& path, bool useXor, SkPath& out, PathOpsThreadState& state, 364 path.setFillType(fillType); 366 if (!Simplify(path, &out)) { 374 int result = comparePaths(state.fReporter, nullptr, path, out, *state.fBitmap); 381 pathPrefix = " path.setFillType(SkPathFillType::kEvenOdd);\n"; 384 const char testFunction[] = "testSimplify(reporter, path);"; 407 json_path_out(const SkPath& path, const char* pathName, const char* fillTypeName, bool lastField) json_path_out() argument 461 inner_simplify(skiatest::Reporter* reporter, const SkPath& path, const char* filename, ExpectSuccess expectSuccess, SkipAssert skipAssert, ExpectMatch expectMatch) inner_simplify() argument 511 testSimplify(skiatest::Reporter* reporter, const SkPath& path, const char* filename) testSimplify() argument 516 testSimplifyFuzz(skiatest::Reporter* reporter, const SkPath& path, const char* filename) testSimplifyFuzz() argument 521 testSimplifyCheck(skiatest::Reporter* reporter, const SkPath& path, const char* filename, bool checkFail) testSimplifyCheck() argument 527 testSimplifyFail(skiatest::Reporter* reporter, const SkPath& path, const char* filename) testSimplifyFail() argument [all...] |
/third_party/ltp/testcases/kernel/controllers/cpuset/cpuset_lib/ |
H A D | libcpuset.c | 184 * which say that for cpu on node N (from the path above), the 398 * time_t get_mtime(char *path) 400 * Return modtime of file at location path, else return 0. 403 static time_t get_mtime(const char *path) in get_mtime() argument 407 if (stat(path, &statbuf) != 0) in get_mtime() 413 * int set_mtime(const char *path, time_t mtime) 415 * Set modtime of file 'path' to 'mtime'. Return 0 on success, 419 static int set_mtime(const char *path, time_t mtime) in set_mtime() argument 425 return utime(path, ×); in set_mtime() 430 * False if either path ca 941 load_flag(const char *path, char *flagp, const char *flag) load_flag() argument 967 load_number(const char *path, int *numberp, const char *file) load_number() argument 1012 load_mask(const char *path, struct bitmask **bmpp, int nbits, const char *mask) load_mask() argument 1053 exists_flag(const char *path, const char *flag) exists_flag() argument 1065 store_flag(const char *path, const char *flag, int val) store_flag() argument 1073 store_number(const char *path, const char *file, int val) store_number() argument 1084 store_mask(const char *path, const char *mask, const struct bitmask *bmp) store_mask() argument 1485 parse_distance_file(unsigned int node, const char *path) parse_distance_file() argument 1733 apply_cpuset_settings(const char *path, const struct cpuset *cp) apply_cpuset_settings() argument 2246 isdir(const char *path) isdir() argument 2722 __cpuset_move(pid_t pid, const char *path) __cpuset_move() argument 3104 char *path; global() member 3191 char *path; global() member [all...] |
/third_party/python/Lib/test/ |
H A D | test_mailbox.py | 46 if os.path.isdir(target): 48 elif os.path.exists(target): 515 self.assertFalse(os.path.exists(self._get_lock_path())) 517 self.assertTrue(os.path.exists(self._get_lock_path())) 519 self.assertFalse(os.path.exists(self._get_lock_path())) 554 # Return the path of the dot lock file. May be overridden. 562 box = mailbox.Mailbox('path') 596 _factory = lambda self, path, factory=None: mailbox.Maildir(path, factory) 604 self.assertEqual(os.listdir(os.path [all...] |
H A D | test_pdb.py | 1708 'PYTHONSAFEPATH changes default sys.path') 1997 with os_helper.temp_dir() as temp_dir, patch("os.path.expanduser"): 1998 rc_path = os.path.join(temp_dir, ".pdbrc") 1999 os.path.expanduser.return_value = rc_path 2250 '''When running `python foo.py` sys.path[0] is an absolute path. `python -m pdb foo.py` should behave the same''' 2253 print('sys.path[0] is', sys.path[0]) 2258 expected = f'(Pdb) sys.path[0] is {os.path [all...] |
/foundation/filemanagement/dfs_service/services/distributedfiledaemon/src/network/softbus/ |
H A D | softbus_handler_asset.cpp | 433 LOGE("open file fail, path is %{public}s", GetAnonyString(rootFile).c_str()); in CompressFile() 502 int32_t SoftBusHandlerAsset::MkDir(const std::string &path, mode_t mode) in MkDir() argument 504 return TEMP_FAILURE_RETRY(mkdir(path.c_str(), mode)); in MkDir() 507 bool SoftBusHandlerAsset::MkDirRecurse(const std::string& path, mode_t mode) in MkDirRecurse() argument 509 size_t pos = path.rfind("/"); in MkDirRecurse() 511 LOGE("is not a dir, path : %{public}s", GetAnonyString(path).c_str()); in MkDirRecurse() 513 auto dirPath = path.substr(0, pos); in MkDirRecurse() 518 index = path.find('/', index + 1); in MkDirRecurse() 520 subPath = path in MkDirRecurse() 533 IsDir(const std::string &path) IsDir() argument 590 RemoveFile(const std::string &path, bool isRemove) RemoveFile() argument [all...] |
/kernel/linux/linux-5.10/fs/cifs/ |
H A D | link.c | 219 struct cifs_sb_info *cifs_sb, const unsigned char *path, in query_mf_symlink() 233 cifs_sb, path, buf, &bytes_read); in query_mf_symlink() 254 const unsigned char *path) in check_mf_symlink() 271 cifs_sb, path, buf, &bytes_read); in check_mf_symlink() 307 struct cifs_sb_info *cifs_sb, const unsigned char *path, in cifs_query_mf_symlink() 323 oparms.path = path; in cifs_query_mf_symlink() 351 struct cifs_sb_info *cifs_sb, const unsigned char *path, in cifs_create_mf_symlink() 365 oparms.path = path; in cifs_create_mf_symlink() 218 query_mf_symlink(const unsigned int xid, struct cifs_tcon *tcon, struct cifs_sb_info *cifs_sb, const unsigned char *path, char **symlinkinfo) query_mf_symlink() argument 252 check_mf_symlink(unsigned int xid, struct cifs_tcon *tcon, struct cifs_sb_info *cifs_sb, struct cifs_fattr *fattr, const unsigned char *path) check_mf_symlink() argument 306 cifs_query_mf_symlink(unsigned int xid, struct cifs_tcon *tcon, struct cifs_sb_info *cifs_sb, const unsigned char *path, char *pbuf, unsigned int *pbytes_read) cifs_query_mf_symlink() argument 350 cifs_create_mf_symlink(unsigned int xid, struct cifs_tcon *tcon, struct cifs_sb_info *cifs_sb, const unsigned char *path, char *pbuf, unsigned int *pbytes_written) cifs_create_mf_symlink() argument 388 smb3_query_mf_symlink(unsigned int xid, struct cifs_tcon *tcon, struct cifs_sb_info *cifs_sb, const unsigned char *path, char *pbuf, unsigned int *pbytes_read) smb3_query_mf_symlink() argument 449 smb3_create_mf_symlink(unsigned int xid, struct cifs_tcon *tcon, struct cifs_sb_info *cifs_sb, const unsigned char *path, char *pbuf, unsigned int *pbytes_written) smb3_create_mf_symlink() argument [all...] |
/kernel/linux/linux-5.10/fs/overlayfs/ |
H A D | overlayfs.h | 266 void ovl_path_upper(struct dentry *dentry, struct path *path); 267 void ovl_path_lower(struct dentry *dentry, struct path *path); 268 void ovl_path_lowerdata(struct dentry *dentry, struct path *path); 269 enum ovl_path_type ovl_path_real(struct dentry *dentry, struct path *path); 302 struct file *ovl_path_open(struct path *path, in [all...] |
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/ |
H A D | ICUBinary.java | 224 private final File path; field in ICUBinary.SingleDataFile 226 SingleDataFile(String item, File path) { in SingleDataFile() argument 228 this.path = path; in SingleDataFile() 232 return path.toString(); in toString() 238 return mapFile(path); in getData() 292 // Split the path and find files in each location. in addDataFilesFromPath() 306 String path = dataPath.substring(pathStart, pathLimit).trim(); in addDataFilesFromPath() 307 if (path.endsWith(File.separator)) { in addDataFilesFromPath() 308 path in addDataFilesFromPath() 518 mapFile(File path) mapFile() argument [all...] |
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/impl/ |
H A D | ICUBinary.java | 228 private final File path; field in ICUBinary.SingleDataFile 230 SingleDataFile(String item, File path) { in SingleDataFile() argument 232 this.path = path; in SingleDataFile() 236 return path.toString(); in toString() 242 return mapFile(path); in getData() 296 // Split the path and find files in each location. in addDataFilesFromPath() 310 String path = dataPath.substring(pathStart, pathLimit).trim(); in addDataFilesFromPath() 311 if (path.endsWith(File.separator)) { in addDataFilesFromPath() 312 path in addDataFilesFromPath() 523 mapFile(File path) mapFile() argument [all...] |
/third_party/libwebsockets/lib/roles/http/ |
H A D | cookie.c | 284 const char *ads, *path; in lws_cookie_write_nsc() local 303 path = stash->cis[CIS_PATH]; in lws_cookie_write_nsc() 306 path = lws_hdr_simple_ptr(wsi, _WSI_TOKEN_CLIENT_URI); in lws_cookie_write_nsc() 308 if (!ads || !path) in lws_cookie_write_nsc() 334 c->f[CE_PATH] = path; in lws_cookie_write_nsc() 335 c->l[CE_PATH] = strlen(path); in lws_cookie_write_nsc() 405 const char *domain, *path, *dl_domain, *dl_path, *po; in lws_cookie_attach_cookies() local 432 path = stash->cis[CIS_PATH]; in lws_cookie_attach_cookies() 434 if (!domain || !path) in lws_cookie_attach_cookies() 437 path_len = strlen(path); in lws_cookie_attach_cookies() [all...] |
/third_party/littlefs/scripts/ |
H A D | structs.py | 122 def openio(path, mode='r', buffering=-1): 124 if path == '-': 130 return open(path, mode, buffering) 142 '\s+(?P<path>[^\s]+)$') 150 for path in obj_paths: 154 # note objdump-path may contain extra args 155 cmd = objdump_path + ['--dwarf=rawline', path] 172 dirs[int(m.group('no'))] = m.group('path') 177 files[int(m.group('no'))] = os.path.join( 179 m.group('path')) [all...] |
/third_party/python/Tools/c-analyzer/c_common/ |
H A D | scriptutil.py | 6 import os.path namespace 22 filename = os.path.normpath(spec) 29 basename = os.path.basename(filename) 32 script = os.path.abspath(filename) 33 found = os.path.abspath(found) 34 if os.path.normcase(script) == os.path.normcase(found): 38 filename = os.path.abspath(filename) 47 filename = os.path.abspath(filename) 66 filename = os.path [all...] |
/third_party/python/Lib/distutils/ |
H A D | ccompiler.py | 46 # path, ie. no "cc -I -Idir1 -Idir2" or "cc -L -Ldir1 -Ldir2". 57 # library search path anyways. 269 strings). This does not affect any standard library search path 283 standard search path that the runtime linker may search by 347 ext = os.path.splitext(src)[1] 348 self.mkpath(os.path.dirname(obj)) 483 base, ext = os.path.splitext(source) 526 retaining their original path component. That is, "foo/bar.c" 539 directories to add to the default include file search path for this 806 library file 'lib' and return the full path t [all...] |
/third_party/skia/src/gpu/ops/ |
H A D | TriangulatingPathRenderer.cpp | 40 * This path renderer linearizes and decomposes the path into triangles using GrTriangulator, 49 // AA triangulated path case - which doesn't use the GrThreadSafeCache nor the VertexData object). 208 // include the path bounds. in TriangulatingPathOp() 228 SkPath path; in getPath() local 229 fShape.asPath(&path); in getPath() 230 return path; in getPath() 272 SkPath path; in Triangulate() local 273 shape.asPath(&path); in Triangulate() 275 return GrTriangulator::PathToTriangles(path, to in Triangulate() 348 SkPath path = this->getPath(); createAAMesh() local 548 const SkPath& path = GrTest::TestPath(random); GR_DRAW_OP_TEST_DEFINE() local 603 SkPath path; onCanDrawPath() local [all...] |
/third_party/python/Lib/xmlrpc/ |
H A D | server.py | 244 def _marshaled_dispatch(self, data, dispatch_method = None, path = None): 430 # Class attribute listing the accessible path components; 461 return self.path in self.rpc_paths 473 # Check that the path is legal 505 data, getattr(self, '_dispatch', None), self.path 615 def add_dispatcher(self, path, dispatcher): 616 self.dispatchers[path] = dispatcher 619 def get_dispatcher(self, path): 620 return self.dispatchers[path] 622 def _marshaled_dispatch(self, data, dispatch_method = None, path [all...] |
/third_party/skia/fuzz/ |
H A D | FuzzMain.cpp | 33 static DEFINE_string2(bytes, b, "", "A path to a file or a directory. If a file, the " 73 static int fuzz_file(SkString path, SkString type); 75 static SkString try_auto_detect(SkString path, SkString* name); 110 "Usage: fuzz -t <type> -b <path/to/file> [-n api-to-fuzz]\n" in main() 111 " fuzz -b <path/to/file>\n" in main() 117 SkString path = SkString(FLAGS_bytes.isEmpty() ? argv[0] : FLAGS_bytes[0]); in main() local 122 if (!sk_isdir(path.c_str())) { in main() 124 int rv = fuzz_file(path, type); in main() 132 SkOSFile::Iter it(path.c_str()); in main() 134 SkString p = SkOSPath::Join(path in main() 146 fuzz_file(SkString path, SkString type) fuzz_file() argument 318 try_auto_detect(SkString path, SkString* name) try_auto_detect() argument [all...] |
/third_party/rust/crates/syn/codegen/src/ |
H A D | parse.rs | 7 use std::path::{Path, PathBuf}; 135 syn::Type::Path(TypePath { qself: None, path }) => { in introspect_type() 136 let last = path.segments.last().unwrap(); in introspect_type() 185 if mac.path.segments.last().unwrap().ident == "Token" => in introspect_type() 200 if !attr.path().is_ident("cfg") { in introspect_features() 228 if attr.path().is_ident("non_exhaustive") { in is_non_exhaustive() 237 if attr.path().is_ident("doc") && attr.parse_args::<parsing::kw::hidden>().is_ok() { in is_doc_hidden() 357 let path: Path = content.parse()?; in eos_variant() 358 Some(path) in eos_variant() 423 let path in parse_token_macro() [all...] |
/kernel/linux/linux-6.6/fs/ |
H A D | xattr.c | 663 struct path path; in path_setxattr() local 667 error = user_path_at(AT_FDCWD, pathname, lookup_flags, &path); in path_setxattr() 670 error = mnt_want_write(path.mnt); in path_setxattr() 672 error = setxattr(mnt_idmap(path.mnt), path.dentry, name, in path_setxattr() 674 mnt_drop_write(path.mnt); in path_setxattr() 676 path_put(&path); in path_setxattr() 782 struct path path; in path_getxattr() local 859 struct path path; path_listxattr() local 924 struct path path; path_removexattr() local [all...] |
/kernel/linux/linux-6.6/fs/overlayfs/ |
H A D | super.c | 251 struct path path; in ovl_statfs() local 254 ovl_path_real(root_dentry, &path); in ovl_statfs() 256 err = vfs_statfs(&path, buf); in ovl_statfs() 371 static int ovl_check_namelen(const struct path *path, struct ovl_fs *ofs, in ovl_check_namelen() argument 375 int err = vfs_statfs(path, &statfs); in ovl_check_namelen() 385 static int ovl_lower_dir(const char *name, struct path *path, in ovl_lower_dir() argument 391 err = ovl_check_namelen(path, of in ovl_lower_dir() 981 ovl_get_fsid(struct ovl_fs *ofs, const struct path *path) ovl_get_fsid() argument [all...] |
/test/xts/acts/graphic/graphicnapidrawingtest/ |
H A D | NativeDrawingCanvasTest.cpp | 105 OH_Drawing_Path* path = OH_Drawing_PathCreate(); in HWTEST_F() local 106 OH_Drawing_PathMoveTo(path, INT32_MAX, INT32_MIN); in HWTEST_F() 109 OH_Drawing_PathClose(path); in HWTEST_F() 110 OH_Drawing_CanvasDrawPath(nullptr, path); in HWTEST_F() 112 OH_Drawing_PathDestroy(path); in HWTEST_F() 168 OH_Drawing_Path* path = OH_Drawing_PathCreate(); in HWTEST_F() local 169 EXPECT_NE(path, nullptr); in HWTEST_F() 184 OH_Drawing_PathMoveTo(path, aX, aY); in HWTEST_F() 185 OH_Drawing_PathLineTo(path, bX, bY); in HWTEST_F() 186 OH_Drawing_PathLineTo(path, c in HWTEST_F() 460 OH_Drawing_Path *path = OH_Drawing_PathCreate(); HWTEST_F() local 938 OH_Drawing_Path* path = OH_Drawing_PathCreate(); HWTEST_F() local [all...] |
/third_party/eudev/src/shared/ |
H A D | util.c | 63 #include "path-util.h" 243 int unlink_noerrno(const char *path) { in unlink_noerrno() argument 247 r = unlink(path); in unlink_noerrno() 461 int rmdir_parents(const char *path, const char *stop) { in rmdir_parents() argument 465 assert(path); in rmdir_parents() 468 l = strlen(path); in rmdir_parents() 471 while (l > 0 && path[l-1] == '/') in rmdir_parents() 478 while (l > 0 && path[l-1] != '/') in rmdir_parents() 482 while (l > 0 && path[l-1] == '/') in rmdir_parents() 488 if (!(t = strndup(path, in rmdir_parents() 945 dirname_malloc(const char *path) dirname_malloc() argument 970 chmod_and_chown(const char *path, mode_t mode, uid_t uid, gid_t gid) chmod_and_chown() argument 988 touch_file(const char *path, bool parents, usec_t stamp, uid_t uid, gid_t gid, mode_t mode) touch_file() argument 1027 touch(const char *path) touch() argument 1132 fopen_temporary(const char *path, FILE **_f, char **_temp_path) fopen_temporary() argument 1742 is_dir(const char* path, bool follow) is_dir() argument [all...] |
/third_party/skia/src/gpu/v1/ |
H A D | Device.cpp | 249 void Device::onClipPath(const SkPath& path, SkClipOp op, bool aa) { in onClipPath() argument 251 if (fContext->priv().options().fAllPathsVolatile && !path.isVolatile()) { in onClipPath() 252 this->onClipPath(SkPath(path).setIsVolatile(true), op, aa); in onClipPath() 257 fClip.clipPath(this->localToDevice(), path, GrAA(aa), op); in onClipPath() 271 SkPath path; in onClipRegion() local 272 globalRgn.getBoundaryPath(&path); in onClipRegion() 273 fClip.clipPath(this->globalToDevice().asM33(), path, aa, op); in onClipRegion() 354 SkPath path; in drawPoints() local 355 path.setIsVolatile(true); in drawPoints() 356 path in drawPoints() 536 SkPath path; drawDRRect() local 556 SkPath path; drawRegion() local 833 drawShadow(const SkPath& path, const SkDrawShadowRec& rec) drawShadow() argument [all...] |