/foundation/graphic/graphic_2d/rosen/samples/2d_graphics/test/src/ |
H A D | path_test.cpp | 49 Path path; in TestDrawStar() local 50 path.MoveTo(a.GetX(), a.GetY()); in TestDrawStar() 51 path.LineTo(b.GetX(), b.GetY()); in TestDrawStar() 52 path.LineTo(c.GetX(), c.GetY()); in TestDrawStar() 53 path.LineTo(d.GetX(), d.GetY()); in TestDrawStar() 54 path.LineTo(e.GetX(), e.GetY()); in TestDrawStar() 55 path.Close(); in TestDrawStar() 67 canvas.AttachPen(pen).AttachBrush(brush).DrawPath(path); in TestDrawStar() 109 Path path; in TestMoveTo() local 110 path in TestMoveTo() 147 Path path; TestLineTo() local 165 Path path; TestArcTo() local 186 Path path; TestCubicTo() local 210 Path path; TestQuadTo() local 235 Path path; TestAddRect() local 264 Path path; TestAddOval() local 292 Path path; TestAddArc() local 316 Path path; TestAddPoly() local 336 Path path; TestAddCircle() local 352 Path path; TestAddRoundRect() local 379 Path path; TestAddPath() local 407 Path path; TestFillStyle() local 430 Path path; TestFillStyle2() local 453 Path path; TestFillStyle3() local 476 Path path; TestFillStyle4() local 499 Path path; TestOffset() local 517 Path path; TestTransform() local 550 Path path; TestOp() local 578 Path path; TestOp2() local 606 Path path; TestOp3() local 634 Path path; TestOp4() local 662 Path path; TestOp5() local [all...] |
/third_party/skia/docs/examples/ |
H A D | Path_arcTo.cpp | 8 SkPath path; in REG_FIDDLE() local 11 path.moveTo(0, 0); in REG_FIDDLE() 12 path.arcTo({20, 20, 120, 120}, -90, 90, false); in REG_FIDDLE() 13 canvas->drawPath(path, paint); in REG_FIDDLE() 14 path.rewind(); in REG_FIDDLE() 15 path.arcTo({120, 20, 220, 120}, -90, 90, false); in REG_FIDDLE() 16 canvas->drawPath(path, paint); in REG_FIDDLE() 17 path.rewind(); in REG_FIDDLE() 18 path.moveTo(0, 0); in REG_FIDDLE() 19 path in REG_FIDDLE() [all...] |
H A D | Path_isLastContourClosed.cpp | 7 auto debugster = [](const char* prefix, const SkPath& path) -> void { in REG_FIDDLE() 9 path.isLastContourClosed() ? "" : "not "); in REG_FIDDLE() 11 SkPath path; in REG_FIDDLE() local 12 debugster("initial", path); in REG_FIDDLE() 13 path.close(); in REG_FIDDLE() 14 debugster("after close", path); in REG_FIDDLE() 15 path.lineTo(0, 0); in REG_FIDDLE() 16 debugster("after lineTo", path); in REG_FIDDLE() 17 path.close(); in REG_FIDDLE() 18 debugster("after close", path); in REG_FIDDLE() [all...] |
/third_party/ntfs-3g/libfuse-lite/ |
H A D | fuse.c | 462 fprintf(stderr, "fuse: path too long: ...%s\n", s + len); in add_name() 710 int fuse_fs_getattr(struct fuse_fs *fs, const char *path, struct stat *buf) in fuse_fs_getattr() argument 714 return fs->op.getattr(path, buf); in fuse_fs_getattr() 719 int fuse_fs_fgetattr(struct fuse_fs *fs, const char *path, struct stat *buf, in fuse_fs_fgetattr() argument 724 return fs->op.fgetattr(path, buf, fi); in fuse_fs_fgetattr() 726 return fs->op.getattr(path, buf); in fuse_fs_fgetattr() 741 int fuse_fs_unlink(struct fuse_fs *fs, const char *path) in fuse_fs_unlink() argument 745 return fs->op.unlink(path); in fuse_fs_unlink() 750 int fuse_fs_rmdir(struct fuse_fs *fs, const char *path) in fuse_fs_rmdir() argument 754 return fs->op.rmdir(path); in fuse_fs_rmdir() 759 fuse_fs_symlink(struct fuse_fs *fs, const char *linkname, const char *path) fuse_fs_symlink() argument 777 fuse_fs_release(struct fuse_fs *fs, const char *path, struct fuse_file_info *fi) fuse_fs_release() argument 787 fuse_fs_opendir(struct fuse_fs *fs, const char *path, struct fuse_file_info *fi) fuse_fs_opendir() argument 797 fuse_fs_open(struct fuse_fs *fs, const char *path, struct fuse_file_info *fi) fuse_fs_open() argument 807 fuse_fs_read(struct fuse_fs *fs, const char *path, char *buf, size_t size, off_t off, struct fuse_file_info *fi) fuse_fs_read() argument 817 fuse_fs_write(struct fuse_fs *fs, const char *path, const char *buf, size_t size, off_t off, struct fuse_file_info *fi) fuse_fs_write() argument 827 fuse_fs_fsync(struct fuse_fs *fs, const char *path, int datasync, struct fuse_file_info *fi) fuse_fs_fsync() argument 837 fuse_fs_fsyncdir(struct fuse_fs *fs, const char *path, int datasync, struct fuse_file_info *fi) fuse_fs_fsyncdir() argument 847 fuse_fs_flush(struct fuse_fs *fs, const char *path, struct fuse_file_info *fi) fuse_fs_flush() argument 857 fuse_fs_statfs(struct fuse_fs *fs, const char *path, struct statvfs *buf) fuse_fs_statfs() argument 869 fuse_fs_releasedir(struct fuse_fs *fs, const char *path, struct fuse_file_info *fi) fuse_fs_releasedir() argument 879 fuse_fs_readdir(struct fuse_fs *fs, const char *path, void *buf, fuse_fill_dir_t filler, off_t off, struct fuse_file_info *fi) fuse_fs_readdir() argument 890 fuse_fs_create(struct fuse_fs *fs, const char *path, mode_t mode, struct fuse_file_info *fi) fuse_fs_create() argument 900 fuse_fs_lock(struct fuse_fs *fs, const char *path, struct fuse_file_info *fi, int cmd, struct flock *lock) fuse_fs_lock() argument 910 fuse_fs_chown(struct fuse_fs *fs, const char *path, uid_t uid, gid_t gid) fuse_fs_chown() argument 919 fuse_fs_truncate(struct fuse_fs *fs, const char *path, off_t size) fuse_fs_truncate() argument 928 fuse_fs_ftruncate(struct fuse_fs *fs, const char *path, off_t size, struct fuse_file_info *fi) fuse_fs_ftruncate() argument 940 fuse_fs_utimens(struct fuse_fs *fs, const char *path, const struct timespec tv[2]) fuse_fs_utimens() argument 955 fuse_fs_access(struct fuse_fs *fs, const char *path, int mask) fuse_fs_access() argument 964 fuse_fs_readlink(struct fuse_fs *fs, const char *path, char *buf, size_t len) fuse_fs_readlink() argument 974 fuse_fs_mknod(struct fuse_fs *fs, const char *path, mode_t mode, dev_t rdev) fuse_fs_mknod() argument 984 fuse_fs_mkdir(struct fuse_fs *fs, const char *path, mode_t mode) fuse_fs_mkdir() argument 993 fuse_fs_setxattr(struct fuse_fs *fs, const char *path, const char *name, const char *value, size_t size, int flags) fuse_fs_setxattr() argument 1003 fuse_fs_getxattr(struct fuse_fs *fs, const char *path, const char *name, char *value, size_t size) fuse_fs_getxattr() argument 1013 fuse_fs_listxattr(struct fuse_fs *fs, const char *path, char *list, size_t size) fuse_fs_listxattr() argument 1023 fuse_fs_bmap(struct fuse_fs *fs, const char *path, size_t blocksize, uint64_t *idx) fuse_fs_bmap() argument 1033 fuse_fs_removexattr(struct fuse_fs *fs, const char *path, const char *name) fuse_fs_removexattr() argument 1042 fuse_fs_ioctl(struct fuse_fs *fs, const char *path, int cmd, void *arg, struct fuse_file_info *fi, unsigned int flags, void *data) fuse_fs_ioctl() argument 1163 lookup_path(struct fuse *f, fuse_ino_t nodeid, const char *name, const char *path, struct fuse_entry_param *e, struct fuse_file_info *fi) lookup_path() argument 1341 char *path; fuse_lib_lookup() local 1380 char *path; fuse_lib_getattr() local 1411 fuse_fs_chmod(struct fuse_fs *fs, const char *path, mode_t mode) fuse_fs_chmod() argument 1425 char *path; fuse_lib_setattr() local 1505 char *path; fuse_lib_access() local 1528 char *path; fuse_lib_readlink() local 1554 char *path; fuse_lib_mknod() local 1594 char *path; fuse_lib_mkdir() local 1619 char *path; fuse_lib_unlink() local 1647 char *path; fuse_lib_rmdir() local 1673 char *path; fuse_lib_symlink() local 1761 fuse_do_release(struct fuse *f, fuse_ino_t ino, const char *path, struct fuse_file_info *fi) fuse_do_release() argument 1790 char *path; fuse_lib_create() local 1849 open_auto_cache(struct fuse *f, fuse_ino_t ino, const char *path, struct fuse_file_info *fi) open_auto_cache() argument 1886 char *path = NULL; fuse_lib_open() local 1933 char *path; fuse_lib_read() local 1977 char *path; fuse_lib_write() local 2013 char *path; fuse_lib_fsync() local 2049 char *path; fuse_lib_opendir() local 2180 char *path; readdir_fill() local 2247 char *path; fuse_lib_releasedir() local 2270 char *path; fuse_lib_fsyncdir() local 2293 char *path; fuse_lib_statfs() local 2324 char *path; fuse_lib_setxattr() local 2345 char *path; common_getxattr() local 2391 char *path; common_listxattr() local 2438 char *path; fuse_lib_removexattr() local 2571 fuse_flush_common(struct fuse *f, fuse_req_t req, fuse_ino_t ino, const char *path, struct fuse_file_info *fi) fuse_flush_common() argument 2607 char *path; fuse_lib_release() local 2636 char *path; fuse_lib_flush() local 2654 char *path; fuse_lock_common() local 2719 char *path; fuse_lib_bmap() local 2746 char *path, *out_buf = NULL; fuse_lib_ioctl() local 3222 char *path = get_path(f, node->nodeid); fuse_destroy() local [all...] |
/kernel/linux/linux-6.6/fs/ |
H A D | namei.c | 100 * inside the path - always follow. 192 /* The empty path is special. */ in getname_flags() 542 * path_get - get a reference to a path 543 * @path: path to get the reference to 545 * Given a path increment the reference count to the dentry and the vfsmount. 547 void path_get(const struct path *path) in path_get() argument 549 mntget(path->mnt); in path_get() 550 dget(path in path_get() 560 path_put(const struct path *path) path_put() argument 569 struct path path; global() member 702 __legitimize_path(struct path *path, unsigned seq, unsigned mseq) __legitimize_path() argument 718 legitimize_path(struct nameidata *nd, struct path *path, unsigned seq) legitimize_path() argument 995 nd_jump_link(const struct path *path) nd_jump_link() argument 1274 follow_up(struct path *path) follow_up() argument 1297 choose_mountpoint_rcu(struct mount *m, const struct path *root, struct path *path, unsigned *seqp) choose_mountpoint_rcu() argument 1317 choose_mountpoint(struct mount *m, const struct path *root, struct path *path) choose_mountpoint() argument 1347 follow_automount(struct path *path, int *count, unsigned lookup_flags) follow_automount() argument 1379 __traverse_mounts(struct path *path, unsigned flags, bool *jumped, int *count, unsigned lookup_flags) __traverse_mounts() argument 1432 traverse_mounts(struct path *path, bool *jumped, int *count, unsigned lookup_flags) traverse_mounts() argument 1447 follow_down_one(struct path *path) follow_down_one() argument 1468 follow_down(struct path *path, unsigned int flags) follow_down() argument 1484 __follow_mount_rcu(struct nameidata *nd, struct path *path) __follow_mount_rcu() argument 1528 handle_mounts(struct nameidata *nd, struct dentry *dentry, struct path *path) handle_mounts() argument 1838 struct path path; step_into() local 1882 struct path path; follow_dotdot_rcu() local 1922 struct path path; follow_dotdot() local 2471 path_lookupat(struct nameidata *nd, unsigned flags, struct path *path) path_lookupat() argument 2504 filename_lookup(int dfd, struct filename *name, unsigned flags, struct path *path, struct path *root) filename_lookup() argument 2576 __kern_path_locked(struct filename *name, struct path *path) __kern_path_locked() argument 2598 kern_path_locked(const char *name, struct path *path) kern_path_locked() argument 2607 kern_path(const char *name, unsigned int flags, struct path *path) kern_path() argument 2644 vfs_path_lookup(struct dentry *dentry, struct vfsmount *mnt, const char *name, unsigned int flags, struct path *path) vfs_path_lookup() argument 2881 path_pts(struct path *path) path_pts() argument 2907 user_path_at_empty(int dfd, const char __user *name, unsigned flags, struct path *path, int *empty) user_path_at_empty() argument 3220 may_open_dev(const struct path *path) may_open_dev() argument 3226 may_open(struct mnt_idmap *idmap, const struct path *path, int acc_mode, int flag) may_open() argument 3285 const struct path *path = &filp->f_path; handle_truncate() local 3740 struct path path; do_tmpfile() local 3761 struct path path; do_o_path() local 3853 filename_create(int dfd, struct filename *name, struct path *path, unsigned int lookup_flags) filename_create() argument 3921 kern_path_create(int dfd, const char *pathname, struct path *path, unsigned int lookup_flags) kern_path_create() argument 3932 done_path_create(struct path *path, struct dentry *dentry) done_path_create() argument 3941 user_path_create(int dfd, const char __user *pathname, struct path *path, unsigned int lookup_flags) user_path_create() argument 4022 struct path path; do_mknodat() local 4125 struct path path; do_mkdirat() local 4220 struct path path; do_rmdir() local 4359 struct path path; do_unlinkat() local 4486 struct path path; do_symlinkat() local [all...] |
/kernel/linux/linux-6.6/drivers/media/platform/mediatek/mdp3/ |
H A D | mtk-mdp3-cmdq.c | 47 static int mdp_path_subfrm_require(const struct mdp_path *path, in mdp_path_subfrm_require() argument 51 const int p_id = path->mdp_dev->mdp_data->mdp_plat_id; in mdp_path_subfrm_require() 53 const struct mtk_mdp_driver_data *data = path->mdp_dev->mdp_data; in mdp_path_subfrm_require() 54 struct device *dev = &path->mdp_dev->pdev->dev; in mdp_path_subfrm_require() 55 struct mtk_mutex **mutex = path->mdp_dev->mdp_mutex; in mdp_path_subfrm_require() 60 num_comp = CFG_GET(MT8183, path->config, num_components); in mdp_path_subfrm_require() 63 switch (path->comps[0].comp->public_id) { in mdp_path_subfrm_require() 84 ctx = &path->comps[index]; in mdp_path_subfrm_require() 98 static int mdp_path_subfrm_run(const struct mdp_path *path, in mdp_path_subfrm_run() argument 102 const int p_id = path in mdp_path_subfrm_run() 145 mdp_path_ctx_init(struct mdp_dev *mdp, struct mdp_path *path) mdp_path_ctx_init() argument 170 mdp_path_config_subfrm(struct mdp_cmdq_cmd *cmd, struct mdp_path *path, u32 count) mdp_path_config_subfrm() argument 236 mdp_path_config(struct mdp_dev *mdp, struct mdp_cmdq_cmd *cmd, struct mdp_path *path) mdp_path_config() argument 401 struct mdp_path *path = NULL; mdp_cmdq_send() local [all...] |
/third_party/vk-gl-cts/scripts/ |
H A D | make_release.py | 50 def removeLeadingPath (path, basePath): 52 assert os.path.normpath(path) == path 53 assert os.path.normpath(basePath) == basePath 54 return path[len(basePath) + 1:] 58 if os.path.exists(file): 64 basePath = os.path.normpath(basePath) 67 relPath = removeLeadingPath(os.path.normpath(os.path [all...] |
/foundation/multimedia/media_library/frameworks/innerkitsimpl/test/unittest/medialibrary_photo_operations_test/src/ |
H A D | medialibrary_photo_edit_test.cpp | 113 string path; member 119 string path; member 139 void WriteDefferedPhoto(bool &isEdited, std::string &path) in WriteDefferedPhoto() argument 142 int ret = MediaLibraryPhotoOperations::ProcessMultistagesPhoto(isEdited, path, BUF, sizeof(BUF), 1); in WriteDefferedPhoto() 175 photoMode.path = GetStringVal(PhotoColumn::MEDIA_FILE_PATH, resultSet); in GetPhotoMode() 184 return mode.path; in GetFilePath() 238 string GetEditDataDirPath(std::string &path) in GetEditDataDirPath() argument 240 return ROOT_DIR + ".editData/" + path.substr(ROOT_DIR.length()); in GetEditDataDirPath() 243 bool ValidSourceFile(std::string &path) in ValidSourceFile() argument 245 string sourcePath = GetEditDataDirPath(path) in ValidSourceFile() 249 ValidEditdata(std::string &path) ValidEditdata() argument 255 ValidEditdataCamera(std::string &path) ValidEditdataCamera() argument 261 ValidPhoto(std::string &path) ValidPhoto() argument 271 string path = GetFilePath(fileId); TakePhotoMock() local [all...] |
/kernel/linux/linux-5.10/tools/perf/util/ |
H A D | data.c | 25 zfree(&files[nr].path); in close_dir() 50 ret = asprintf(&file->path, "%s/data.%d", data->path, i); in perf_data__create_dir() 54 ret = open(file->path, O_RDWR|O_CREAT|O_TRUNC, S_IRUSR|S_IWUSR); in perf_data__create_dir() 93 dir = opendir(data->path); in perf_data__open_dir() 99 char path[PATH_MAX]; in perf_data__open_dir() local 102 snprintf(path, sizeof(path), "%s/%s", data->path, dent->d_name); in perf_data__open_dir() 103 if (stat(path, in perf_data__open_dir() [all...] |
/third_party/python/Lib/distutils/tests/ |
H A D | test_archive_util.py | 7 from os.path import splitdrive 53 if os.path.supports_unicode_filenames: 111 base_name = os.path.join(tmpdir2, target_name) 119 self.assertTrue(os.path.exists(tarball)) 122 def _tarinfo(self, path): 123 tar = tarfile.open(path) 138 dist = os.path.join(tmpdir, 'dist') 142 os.mkdir(os.path.join(dist, 'sub')) 144 os.mkdir(os.path.join(dist, 'sub2')) 153 base_name = os.path [all...] |
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/slider/ |
H A D | slider_tip_modifier.cpp | 136 void SliderTipModifier::PaintHorizontalBubble(float vertexOffsetFromBlock, RSPath& path) in PaintHorizontalBubble() argument 147 path.MoveTo(vertex_.GetX(), vertex_.GetY()); in PaintHorizontalBubble() 148 path.ArcTo(arrowRadius, arrowRadius, 0.0f, RSPathDirection::CW_DIRECTION, vertex_.GetX() + arrowHorizonOffset, in PaintHorizontalBubble() 150 path.LineTo(vertex_.GetX() + arrowSizeWidth * HALF, vertex_.GetY() + arrowSizeHeight); in PaintHorizontalBubble() 151 path.ArcTo(circularRadius, circularRadius, 0.0f, RSPathDirection::CW_DIRECTION, in PaintHorizontalBubble() 153 path.LineTo(vertex_.GetX() - arrowSizeWidth * HALF, vertex_.GetY() + bubbleSize_.Height()); in PaintHorizontalBubble() 154 path.ArcTo(circularRadius, circularRadius, 0.0f, RSPathDirection::CW_DIRECTION, in PaintHorizontalBubble() 156 path.LineTo(vertex_.GetX() - arrowHorizonOffset * HALF, vertex_.GetY() + arrowVerticalOffset); in PaintHorizontalBubble() 159 path.MoveTo(vertex_.GetX(), vertex_.GetY()); in PaintHorizontalBubble() 160 path in PaintHorizontalBubble() 173 PaintVerticalBubble(float vertexOffsetFromBlock, RSPath& path) PaintVerticalBubble() argument 222 PaintHorizontalBubbleSuitableAging(float vertexOffsetFromBlock, RSPath& path) PaintHorizontalBubbleSuitableAging() argument 283 PaintVerticalBubbleSuitableAging(float vertexOffsetFromBlock, RSPath& path) PaintVerticalBubbleSuitableAging() argument 343 RSPath path; PaintBubble() local [all...] |
/third_party/vk-gl-cts/scripts/android/ |
H A D | build_apk.py | 40 sys.path.append(os.path.join(os.path.dirname(__file__), "..")) 47 def __init__(self, path, desired_version): 48 self.path = path 49 self.buildToolsVersion = SDKEnv.selectBuildToolsVersion(self.path, desired_version) 52 def getBuildToolsVersions (path): 53 buildToolsPath = os.path.join(path, "buil [all...] |
/kernel/linux/linux-5.10/include/linux/ |
H A D | path.h | 8 struct path { struct 13 extern void path_get(const struct path *); 14 extern void path_put(const struct path *); 16 static inline int path_equal(const struct path *path1, const struct path *path2) in path_equal() 21 static inline void path_put_init(struct path *path) in path_put_init() argument 23 path_put(path); in path_put_init() 24 *path = (struct path) { }; in path_put_init() [all...] |
/kernel/linux/linux-6.6/include/linux/ |
H A D | path.h | 8 struct path { struct 13 extern void path_get(const struct path *); 14 extern void path_put(const struct path *); 16 static inline int path_equal(const struct path *path1, const struct path *path2) in path_equal() 21 static inline void path_put_init(struct path *path) in path_put_init() argument 23 path_put(path); in path_put_init() 24 *path = (struct path) { }; in path_put_init() [all...] |
/third_party/node/deps/npm/node_modules/tuf-js/dist/utils/ |
H A D | url.js | 5 function join(base, path) { 6 return new url_1.URL(ensureTrailingSlash(base) + removeLeadingSlash(path)).toString(); 9 function ensureTrailingSlash(path) { 10 return path.endsWith('/') ? path : path + '/'; 12 function removeLeadingSlash(path) { 13 return path.startsWith('/') ? path.slice(1) : path; [all...] |
/third_party/skia/gm/ |
H A D | crbug_884166.cpp | 19 SkPathBuilder path; in DEF_SIMPLE_GM() local 20 path.moveTo(153.25, 280.75); in DEF_SIMPLE_GM() 21 path.lineTo(161.75, 281.75); in DEF_SIMPLE_GM() 22 path.lineTo(164.25, 282.00); in DEF_SIMPLE_GM() 23 path.lineTo( 0.00, 276.00); in DEF_SIMPLE_GM() 24 path.lineTo(161.50, 0.00); in DEF_SIMPLE_GM() 25 path.lineTo(286.25, 231.25); in DEF_SIMPLE_GM() 26 path.lineTo(163.75, 282.00); in DEF_SIMPLE_GM() 27 path.lineTo(150.00, 280.00); in DEF_SIMPLE_GM() 28 canvas->drawPath(path in DEF_SIMPLE_GM() [all...] |
/base/hiviewdfx/faultloggerd/interfaces/innerkits/procinfo/ |
H A D | procinfo.cpp | 43 static bool GetProcStatusByPath(struct ProcInfo& procInfo, const std::string& path) in GetProcStatusByPath() argument 46 FILE *fp = fopen(path.c_str(), "r"); in GetProcStatusByPath() 100 std::string path = StringPrintf("/proc/%d/task/%d/status", pid, tid); in TidToNstid() local 101 if (path.empty()) { in TidToNstid() 106 if (!GetProcStatusByPath(procInfo, path)) { in TidToNstid() 118 std::string path = StringPrintf("/proc/%d/status", realPid); in GetProcStatusByPid() local 119 return GetProcStatusByPath(procInfo, path); in GetProcStatusByPid() 129 std::string path; in IsThreadInPid() local 131 path = StringPrintf("%s/%d", PROC_SELF_TASK_PATH, tid); in IsThreadInPid() 133 path in IsThreadInPid() 140 std::string path; GetTidsByPidWithFunc() local 206 std::string path = StringPrintf("/proc/%d/comm", tid); ReadThreadName() local 214 std::string path = StringPrintf("/proc/%d/task/%d/comm", pid, tid); ReadThreadNameByPidAndTid() local 222 std::string path; ReadProcessName() local 235 std::string path = StringPrintf("/proc/%d/status", pid); ReadProcessStatus() local 250 std::string path = StringPrintf("/proc/%d/wchan", pid); ReadProcessWchan() local [all...] |
/foundation/multimedia/media_library/frameworks/innerkitsimpl/test/unittest/medialibrary_scanner_db_test/src/ |
H A D | medialibrary_metadata_extractor_test.cpp | 37 string path = "/storage/cloud/files/"; in HWTEST_F() local 38 mediaScannerDb->GetFileBasicInfo(path, data); in HWTEST_F() 48 string path = "/storage/cloud/files/"; in HWTEST_F() local 49 mediaScannerDb->GetFileBasicInfo(path, data); in HWTEST_F() 59 string path; in HWTEST_F() local 60 mediaScannerDb->GetFileBasicInfo(path, data); in HWTEST_F() 63 // empty path Extract will return E_IMAGE in HWTEST_F() 72 string path = "/storage/cloud/files/"; in HWTEST_F() local 73 mediaScannerDb->GetFileBasicInfo(path, data); in HWTEST_F() 76 // empty path ExtractAVMetadat in HWTEST_F() 85 string path = "/storage/cloud/files/"; HWTEST_F() local 97 string path = "/storage/cloud/files/"; HWTEST_F() local 109 string path; HWTEST_F() local 122 string path = "/storage/cloud/files/"; HWTEST_F() local 134 string path = "/storage/cloud/100/files/Documents/CreateImageLcdTest_001.jpg"; HWTEST_F() local 146 string path = "/storage/cloud/files/"; HWTEST_F() local 166 string path = "/storage/cloud/files/"; HWTEST_F() local 189 string path = "/storage/cloud/files/"; HWTEST_F() local [all...] |
/third_party/node/tools/inspector_protocol/jinja2/ |
H A D | loaders.py | 15 from os import path namespace 23 """Split a path into segments and perform a sanity check. If it detects 24 '..' in the path it will raise a `TemplateNotFound` error. 28 if path.sep in piece \ 29 or (path.altsep and path.altsep in piece) or \ 30 piece == path.pardir: 47 from os.path import join, exists, getmtime 51 def __init__(self, path): 52 self.path [all...] |
/third_party/python/Tools/scripts/ |
H A D | patchcheck.py | 6 import os.path namespace 16 EXCLUDE_DIRS = [os.path.join('Modules', '_ctypes', 'libffi_osx'), 17 os.path.join('Modules', '_ctypes', 'libffi_msvc'), 18 os.path.join('Modules', '_decimal', 'libmpdec'), 19 os.path.join('Modules', 'expat'), 20 os.path.join('Modules', 'zlib')] 101 if not os.path.exists(os.path.join(SRCDIR, '.git')): 121 if os.path.exists(os.path [all...] |
/third_party/skia/infra/bots/recipe_modules/flavor/ |
H A D | default.py | 45 resource_dir=self.m.path['start_dir'].join('skia', 'resources'), 46 images_dir=self.m.path['start_dir'].join('skimage'), 47 lotties_dir=self.m.path['start_dir'].join('lottie-samples'), 48 skp_dir=self.m.path['start_dir'].join('skp'), 49 svg_dir=self.m.path['start_dir'].join('svg'), 50 mskp_dir=self.m.path['start_dir'].join('mskp'), 52 texttraces_dir=self.m.path['start_dir'].join('text_blob_traces')) 56 """Like os.path.join(), but for paths on a connected device.""" 57 return self.m.path.join(*args) 89 def create_clean_device_dir(self, path) [all...] |
/base/security/certificate_manager/services/cert_manager_standard/cert_manager_engine/main/core/src/ |
H A D | cert_manager_file.c | 28 inline uint32_t CertManagerFileSize(const char *path, const char *fileName) in CertManagerFileSize() argument 30 return CmFileSize(path, fileName); in CertManagerFileSize() 33 inline uint32_t CertManagerFileRead(const char *path, const char *fileName, uint32_t offset, uint8_t *buf, uint32_t len) in CertManagerFileRead() argument 35 return CmFileRead(path, fileName, offset, buf, len); in CertManagerFileRead() 38 inline int32_t CertManagerFileWrite(const char *path, const char *fileName, in CertManagerFileWrite() argument 41 return CmFileWrite(path, fileName, offset, buf, len); in CertManagerFileWrite() 44 inline int32_t CertManagerFileRemove(const char *path, const char *fileName) in CertManagerFileRemove() argument 46 return CmFileRemove(path, fileName); in CertManagerFileRemove() 49 static int32_t GetNumberOfFiles(const char *path) in GetNumberOfFiles() argument 51 void *dir = CmOpenDir(path); in GetNumberOfFiles() 79 MallocFileNames(struct CmMutableBlob **fNames, const char *path, uint32_t *fileCount) MallocFileNames() argument 110 GetFileNames(const char *path, struct CmMutableBlob *fNames, uint32_t fileCount) GetFileNames() argument 156 CertManagerGetFilenames(struct CmMutableBlob *fileNames, const char *path) CertManagerGetFilenames() argument 200 GetCertCount(const char *path) GetCertCount() argument [all...] |
/base/security/selinux_adapter/test/unittest/common/ |
H A D | test_common.cpp | 24 bool CreateDirectory(const std::string &path) in CreateDirectory() argument 29 index = path.find('/', index + 1); in CreateDirectory() 31 subPath = path; in CreateDirectory() 33 subPath = path.substr(0, index); in CreateDirectory() 43 return access(path.c_str(), F_OK) == 0; in CreateDirectory() 46 bool RemoveDirectory(const std::string &path) in RemoveDirectory() argument 54 if (access(path.c_str(), F_OK) != 0) { in RemoveDirectory() 57 int statRet = stat(path.c_str(), &dirStat); in RemoveDirectory() 63 remove(path.c_str()); in RemoveDirectory() 65 dirp = opendir(path in RemoveDirectory() 81 GetDirectory(const std::string &path) GetDirectory() argument 91 CreateFile(const std::string &path) CreateFile() argument [all...] |
/base/security/selinux_adapter/framework/policycoreutils/src/ |
H A D | selinux_restorecon.c | 67 int RestoreconCommon(const char *path, unsigned int flag, unsigned int nthreads) in RestoreconCommon() argument 74 return selinux_restorecon_parallel(path, flag, nthreads); in RestoreconCommon() 85 static int RestoreconSb(const char *path, char *newSecontext) in RestoreconSb() argument 88 if (lgetfilecon(path, &oldSecontext) < 0) { in RestoreconSb() 89 selinux_log(SELINUX_ERROR, "Get current secontext failed on: %s, errno: %s\n", path, strerror(errno)); in RestoreconSb() 94 if (lsetfilecon(path, newSecontext) < 0) { in RestoreconSb() 95 selinux_log(SELINUX_ERROR, "Set selinux context failed on: %s, errno: %s\n", path, strerror(errno)); in RestoreconSb() 158 int Restorecon(const char *path) in Restorecon() argument 160 return RestoreconCommon(path, SELINUX_RESTORECON_REALPATH, 1); in Restorecon() 163 int RestoreconRecurse(const char *path) in RestoreconRecurse() argument 168 RestoreconRecurseParallel(const char *path, unsigned int nthreads) RestoreconRecurseParallel() argument 173 RestoreconRecurseForce(const char *path) RestoreconRecurseForce() argument 180 RestoreconFromParentDir(const char *path) RestoreconFromParentDir() argument [all...] |
/foundation/arkui/ace_engine/frameworks/core/components/svg/ |
H A D | rosen_render_svg_circle.cpp | 50 SkPath path; in Paint() local 51 path.addCircle(ConvertDimensionToPx(cx_, LengthType::HORIZONTAL), ConvertDimensionToPx(cy_, LengthType::VERTICAL), in Paint() 57 RSRecordingPath path; in Paint() local 58 path.AddCircle(ConvertDimensionToPx(cx_, LengthType::HORIZONTAL), ConvertDimensionToPx(cy_, LengthType::VERTICAL), in Paint() 65 RosenSvgPainter::SetFillStyle(canvas, path, fillState_, renderInfo); in Paint() 66 RosenSvgPainter::SetStrokeStyle(canvas, path, strokeState_, renderInfo); in Paint() 84 SkPath path; in PaintDirectly() local 85 path.addCircle(ConvertDimensionToPx(cx_, LengthType::HORIZONTAL), ConvertDimensionToPx(cy_, LengthType::VERTICAL), in PaintDirectly() 94 RSRecordingPath path; in PaintDirectly() local 95 path in PaintDirectly() 103 UpdateMotion(const std::string& path, const std::string& rotate, double percent) UpdateMotion() argument 116 SkPath path; GetPaintBounds() local [all...] |