/test/testfwk/xdevice/src/xdevice/_core/config/ |
H A D | resource_manager.py | 34 if os.path.exists(xml_filepath): 80 if os.path.exists(filepath): 95 _, fullname = os.path.split(filepath) 96 filename, ext = os.path.splitext(fullname) 110 src = os.path.join(resource_dir, push_value[0:pos].strip()) 120 src = os.path.join(resource_dir, push_value[0:pos].strip()) 135 resource_dir = os.path.join(os.path.dirname(testsuite_filepath), 137 if os.path.exists(resource_dir): 138 xml_filepath = os.path [all...] |
/test/xts/device_attest/services/oem_adapter/src/ |
H A D | device_attest_oem_file.c | 49 int32_t OEMGetFileSize(const char* path, const char* fileName, uint32_t* result) in OEMGetFileSize() argument 51 if (path == NULL || fileName == NULL || result == NULL) { in OEMGetFileSize() 55 char* filePath = OEMGenFilePath(path, fileName); in OEMGetFileSize() 85 int32_t OEMWriteFile(const char* path, const char* fileName, const char* data, uint32_t dataLen) in OEMWriteFile() argument 87 if (path == NULL || fileName == NULL || data == NULL || dataLen == 0) { in OEMWriteFile() 91 char* filePath = OEMGenFilePath(path, fileName); in OEMWriteFile() 128 int32_t OEMReadFile(const char* path, const char* fileName, char* buffer, uint32_t bufferLen) in OEMReadFile() argument 130 if (path == NULL || fileName == NULL || buffer == NULL || bufferLen == 0) { in OEMReadFile() 135 if (OEMGetFileSize(path, fileName, &fileSize) != 0 || fileSize > bufferLen) { in OEMReadFile() 139 char* filePath = OEMGenFilePath(path, fileNam in OEMReadFile() 207 OEMCreateFile(const char* path, const char* fileName) OEMCreateFile() argument [all...] |
/third_party/FreeBSD/sys/compat/linuxkpi/common/src/ |
H A D | adp.c | 62 void fs_show(const char *path) in fs_show() argument 66 if (path == NULL) { in fs_show() 67 PRINTK("path is NULL\n"); in fs_show() 70 ret = statfs(path, &fss); in fs_show() 71 PRINTK("Filesystem %s info: \n", path); in fs_show() 165 char *basename(const char *path) in basename() argument 171 if ((path != NULL) && *path) { in basename() 172 first = (CHAR *)path; in basename() 173 last = (CHAR *)path in basename() [all...] |
/third_party/PyYAML/lib/yaml/ |
H A D | resolver.py | 38 def add_path_resolver(cls, tag, path, kind=None): 40 # `new_path` is a pattern that is matched against the path from the 54 for element in path: 62 raise ResolverError("Invalid path element: %s" % element) 98 for path, kind in self.resolver_prefix_paths[-1]: 99 if self.check_resolver_prefix(depth, path, kind, 101 if len(path) > depth: 102 prefix_paths.append((path, kind)) 104 exact_paths[kind] = self.yaml_path_resolvers[path, kind] 106 for path, kin [all...] |
/third_party/node/lib/ |
H A D | os.js | 182 let path; 184 path = process.env.TEMP || 187 if (path.length > 1 && StringPrototypeEndsWith(path, '\\') && 188 !StringPrototypeEndsWith(path, ':\\')) 189 path = StringPrototypeSlice(path, 0, -1); 191 path = safeGetenv('TMPDIR') || 195 if (path.length > 1 && StringPrototypeEndsWith(path, '/')) [all...] |
/third_party/node/tools/gyp/pylib/gyp/ |
H A D | xcode_ninja.py | 24 (build_file_root, build_file_ext) = os.path.splitext(main_gyp) 28 workspace_path = os.path.join(options.generator_output, workspace_path) 38 name = os.path.splitext(os.path.basename(gyp_name))[0] + ".xcodeproj" 43 workspace_file = os.path.join(workspace_path, "contents.xcworkspacedata") 60 # Determine ninja top level build dir (e.g. /path/to/out). 65 ninja_toplevel = os.path.join( 174 data: Dict of flattened build files keyed on gyp path. 187 (build_file_root, build_file_ext) = os.path.splitext(orig_gyp) 254 base = os.path [all...] |
/third_party/node/deps/npm/node_modules/node-gyp/gyp/pylib/gyp/ |
H A D | xcode_ninja.py | 24 (build_file_root, build_file_ext) = os.path.splitext(main_gyp) 28 workspace_path = os.path.join(options.generator_output, workspace_path) 38 name = os.path.splitext(os.path.basename(gyp_name))[0] + ".xcodeproj" 43 workspace_file = os.path.join(workspace_path, "contents.xcworkspacedata") 60 # Determine ninja top level build dir (e.g. /path/to/out). 65 ninja_toplevel = os.path.join( 174 data: Dict of flattened build files keyed on gyp path. 187 (build_file_root, build_file_ext) = os.path.splitext(orig_gyp) 254 base = os.path [all...] |
/third_party/libfuse/example/ |
H A D | invalidate_path.c | 83 static int xmp_getattr(const char *path, in xmp_getattr() argument 86 if (strcmp(path, "/") == 0) { in xmp_getattr() 90 } else if (strcmp(path, "/" TIME_FILE_NAME) == 0) { in xmp_getattr() 95 } else if (strcmp(path, "/" GROW_FILE_NAME) == 0) { in xmp_getattr() 107 static int xmp_readdir(const char *path, void *buf, fuse_fill_dir_t filler, in xmp_readdir() argument 113 if (strcmp(path, "/") != 0) { in xmp_readdir() 127 static int xmp_open(const char *path, struct fuse_file_info *fi) { in xmp_open() argument 128 (void) path; in xmp_open() 135 static int xmp_read(const char *path, char *buf, size_t size, off_t offset, in xmp_read() argument 139 if (strcmp(path, "/" TIME_FILE_NAM in xmp_read() 179 invalidate(struct fuse *fuse, const char *path) invalidate() argument [all...] |
/third_party/ltp/testcases/network/nfsv4/locks/ |
H A D | locktests.py | 65 def install(self, path): 66 self.command="'cd "+path+"; tar xzf "+SRC+"; cd locks; make'" 72 def cp(self, fichier, path): 73 command="scp "+fichier+" "+user+"@"+self.machine+":"+path 123 path=os.path.abspath(".") 129 c.mkdir(path) 130 c.cp(fichier, path) 131 c.install(path) 140 path [all...] |
/third_party/rust/crates/clang-sys/build/ |
H A D | dynamic.rs | 6 use std::path::{Path, PathBuf}; 15 fn parse_elf_header(path: &Path) -> io::Result<u8> { in parse_elf_header() 16 let mut file = File::open(path)?; in parse_elf_header() 27 fn parse_pe_header(path: &Path) -> io::Result<u16> { in parse_pe_header() 28 let mut file = File::open(path)?; in parse_pe_header() 52 fn validate_library(path: &Path) -> Result<(), String> { in validate_library() 54 let class = parse_elf_header(path).map_err(|e| e.to_string())?; in validate_library() 66 let magic = parse_pe_header(path).map_err(|e| e.to_string())?; in validate_library() 146 let path = directory.join(&filename); in search_libclang_directories() 147 match validate_library(&path) { in search_libclang_directories() [all...] |
/third_party/python/Lib/idlelib/ |
H A D | grep.py | 31 io: iomenu.IOBinding instance with default path to search. 57 yield from (os.path.join(dirpath, name) 79 globvar: String value of Entry widget for path to search. 99 io: iomenu.IOBinding instance containing file path. 103 path = io.filename or "" 105 path = "" 106 dir, base = os.path.split(path) 107 head, tail = os.path.splitext(base) 110 self.globvar.set(os.path [all...] |
/third_party/skia/third_party/externals/angle2/src/tests/restricted_traces/ |
H A D | retrace_restricted_traces.py | 33 script_dir = os.path.dirname(sys.argv[0]) 34 return os.path.join(script_dir, trace) 42 try_path = os.path.join(trace_path, header) 43 if os.path.isfile(try_path): 101 def path_contains_header(path): 102 for file in os.listdir(path): 110 parser.add_argument('gn_path', help='GN build path') 138 script_dir = os.path.dirname(sys.argv[0]) 141 with open(os.path.join(script_dir, DEFAULT_TEST_JSON)) as f: 146 binary = os.path [all...] |
/third_party/vixl/tools/ |
H A D | util.py | 39 def ListCCFilesWithoutExt(path): 40 src_files = glob.glob(os.path.join(path, '*.cc')) 41 return [os.path.splitext(os.path.basename(x))[0] for x in src_files] 59 if not os.path.exists(path_name): 70 def relrealpath(path, start=os.getcwd()): 71 return os.path.relpath(os.path.realpath(path), star [all...] |
/third_party/protobuf/python/ |
H A D | setup.py | 23 if 'PROTOC' in os.environ and os.path.exists(os.environ['PROTOC']): 25 elif os.path.exists("../src/protoc"): 27 elif os.path.exists("../src/protoc.exe"): 29 elif os.path.exists("../vsprojects/Debug/protoc.exe"): 31 elif os.path.exists("../vsprojects/Release/protoc.exe"): 43 with open(os.path.join('google', 'protobuf', '__init__.py')) as version_file: 54 if not require and not os.path.exists(source): 59 if (not os.path.exists(output) or 60 (os.path.exists(source) and 61 os.path [all...] |
/third_party/python/Lib/lib2to3/tests/ |
H A D | test_main.py | 15 TEST_DATA_DIR = os.path.join(os.path.dirname(__file__), "data") 16 PY2_TEST_MODULE = os.path.join(TEST_DATA_DIR, "py2_test_grammar.py") 59 self.py2_src_dir = os.path.join(self.temp_dir, "python2_project") 60 self.py3_dest_dir = os.path.join(self.temp_dir, "python3_project") 65 open(os.path.join(self.py2_src_dir, "__init__.py"), "w").close() 68 self.setup_files.append(os.path.basename(PY2_TEST_MODULE)) 69 self.trivial_py2_file = os.path.join(self.py2_src_dir, "trivial.py") 70 self.init_py2_file = os.path.join(self.py2_src_dir, "__init__.py") 96 os.path [all...] |
/third_party/skia/infra/bots/recipes/ |
H A D | skpbench.py | 17 'recipe_engine/path', 32 with api.context(cwd=api.path['start_dir'].join('skia')): 61 table = api.path.join(api.vars.swarming_out_dir, 'table') 81 skpbench_invocation = api.path.join(api.flavor.device_dirs.bin_dir, 'skpbench') 112 api.path.join(api.flavor.device_dirs.skp_dir, 'desk_*svg.skp'), 113 api.path.join(api.flavor.device_dirs.skp_dir, 'desk_motionmark*.skp'), 114 api.path.join(api.flavor.device_dirs.skp_dir, 'desk_chalkboard.skp')] 145 json_path = api.path.join( 200 api.path.exists( 201 api.path['start_di [all...] |
/third_party/vk-gl-cts/scripts/log/ |
H A D | bottleneck_report.py | 32 self.path = "" 38 self.path = "" 55 self.element.path = attrs.getValue("CasePath") 71 print('%-4i%12i\t%12s' % (int(ndx), int(test.timeOfExecution), test.path)) 86 self.element.path = attrs.getValue("Name") 87 if self.element.path == "dEQP-VK" : 92 if test.path[:test.path.rfind(".")] in self.element.path : 111 if test.path [all...] |
/kernel/linux/linux-5.10/fs/btrfs/ |
H A D | qgroup.c | 333 struct btrfs_path *path = NULL; in btrfs_read_qgroup_config() local 349 path = btrfs_alloc_path(); in btrfs_read_qgroup_config() 350 if (!path) { in btrfs_read_qgroup_config() 367 ret = btrfs_search_slot_for_read(quota_root, &key, path, 1, 1); in btrfs_read_qgroup_config() 374 slot = path->slots[0]; in btrfs_read_qgroup_config() 375 l = path->nodes[0]; in btrfs_read_qgroup_config() 450 ret = btrfs_next_item(quota_root, path); in btrfs_read_qgroup_config() 456 btrfs_release_path(path); in btrfs_read_qgroup_config() 464 ret = btrfs_search_slot_for_read(quota_root, &key, path, 1, 0); in btrfs_read_qgroup_config() 468 slot = path in btrfs_read_qgroup_config() 588 struct btrfs_path *path; add_qgroup_relation_item() local 612 struct btrfs_path *path; del_qgroup_relation_item() local 642 struct btrfs_path *path; add_qgroup_item() local 710 struct btrfs_path *path; del_qgroup_item() local 756 struct btrfs_path *path; update_qgroup_limit_item() local 799 struct btrfs_path *path; update_qgroup_info_item() local 844 struct btrfs_path *path; update_qgroup_status_item() local 887 struct btrfs_path *path; btrfs_clean_quota_tree() local 933 struct btrfs_path *path = NULL; btrfs_quota_enable() local 1904 adjust_slots_upwards(struct btrfs_path *path, int root_level) adjust_slots_upwards() argument 2310 struct btrfs_path *path = NULL; btrfs_qgroup_trace_subtree() local 3221 is_last_leaf(struct btrfs_path *path) is_last_leaf() argument 3236 qgroup_rescan_leaf(struct btrfs_trans_handle *trans, struct btrfs_path *path) qgroup_rescan_leaf() argument 3331 struct btrfs_path *path; btrfs_qgroup_rescan_worker() local [all...] |
H A D | send.c | 37 * A fs_path is a helper to dynamically build path names with unknown size. 39 * It allows fast adding of path elements on the right side (normal path) and 40 * fast adding to the left side (reversed path). A reversed path can also be 55 * Average path length does not exceed 200 bytes, we'll have 415 * The real size of the buffer is bigger, this will let the fast path in fs_path_ensure_buf() 538 struct btrfs_path *path; in alloc_path_for_send() local 540 path = btrfs_alloc_path(); in alloc_path_for_send() 541 if (!path) in alloc_path_for_send() 748 send_link(struct send_ctx *sctx, struct fs_path *path, struct fs_path *lnk) send_link() argument 773 send_unlink(struct send_ctx *sctx, struct fs_path *path) send_unlink() argument 796 send_rmdir(struct send_ctx *sctx, struct fs_path *path) send_rmdir() argument 819 __get_inode_info(struct btrfs_root *root, struct btrfs_path *path, u64 ino, u64 *size, u64 *gen, u64 *mode, u64 *uid, u64 *gid, u64 *rdev) __get_inode_info() argument 860 struct btrfs_path *path; get_inode_info() local 884 iterate_inode_ref(struct btrfs_root *root, struct btrfs_path *path, struct btrfs_key *found_key, int resolve, iterate_inode_ref_t iterate, void *ctx) iterate_inode_ref() argument 1004 iterate_dir_item(struct btrfs_root *root, struct btrfs_path *path, iterate_dir_item_t iterate, void *ctx) iterate_dir_item() argument 1135 get_inode_path(struct btrfs_root *root, u64 ino, struct fs_path *path) get_inode_path() argument 1297 find_extent_clone(struct send_ctx *sctx, struct btrfs_path *path, u64 ino, u64 data_offset, u64 ino_size, struct clone_root **found) find_extent_clone() argument 1486 struct btrfs_path *path; read_symlink() local 1546 struct btrfs_path *path; gen_unique_name() local 1712 struct btrfs_path *path; lookup_dir_item_inode() local 1747 struct btrfs_path *path; get_first_ref() local 2352 struct btrfs_path *path; send_subvol_begin() local 2533 struct btrfs_path *path = NULL; send_utimes() local 2678 struct btrfs_path *path = NULL; did_create_dir() local 2774 set_ref_path(struct recorded_ref *ref, struct fs_path *path) set_ref_path() argument 2786 __record_ref(struct list_head *head, u64 dir, u64 dir_gen, struct fs_path *path) __record_ref() argument 2841 orphanize_inode(struct send_ctx *sctx, u64 ino, u64 gen, struct fs_path *path) orphanize_inode() argument 2944 struct btrfs_path *path; can_rmdir() local 3473 struct btrfs_path *path; wait_for_dest_dir_move() local 3601 struct btrfs_path *path = NULL; is_ancestor() local 4466 find_iref(struct btrfs_root *root, struct btrfs_path *path, struct btrfs_key *key, u64 dir, u64 dir_gen, struct fs_path *name) find_iref() argument 4563 struct btrfs_path *path; process_all_refs() local 4633 send_set_xattr(struct send_ctx *sctx, struct fs_path *path, const char *name, int name_len, const char *data, int data_len) send_set_xattr() argument 4655 send_remove_xattr(struct send_ctx *sctx, struct fs_path *path, const char *name, int name_len) send_remove_xattr() argument 4787 find_xattr(struct btrfs_root *root, struct btrfs_path *path, struct btrfs_key *key, const char *name, int name_len, char **data, int *data_len) find_xattr() argument 4886 struct btrfs_path *path; process_all_new_xattrs() local 5265 struct btrfs_path *path; send_capabilities() local 5320 struct btrfs_path *path; clone_range() local 5581 send_write_or_clone(struct send_ctx *sctx, struct btrfs_path *path, struct btrfs_key *key, struct clone_root *clone_root) send_write_or_clone() argument 5619 struct btrfs_path *path = NULL; is_extent_unchanged() local 5805 struct btrfs_path *path; get_last_extent() local 5837 struct btrfs_path *path; range_is_hole_in_parent() local 5899 maybe_send_hole(struct send_ctx *sctx, struct btrfs_path *path, struct btrfs_key *key) maybe_send_hole() argument 5942 process_extent(struct send_ctx *sctx, struct btrfs_path *path, struct btrfs_key *key) process_extent() argument 6006 struct btrfs_path *path; process_all_extents() local 6243 struct btrfs_path *path; btrfs_unlink_all_paths() local 6599 compare_refs(struct send_ctx *sctx, struct btrfs_path *path, struct btrfs_key *key) compare_refs() argument 6703 struct btrfs_path *path; full_send_tree() local 6748 tree_move_down(struct btrfs_path *path, int *level) tree_move_down() argument 6763 tree_move_next_or_upnext(struct btrfs_path *path, int *level, int root_level) tree_move_next_or_upnext() argument 6793 tree_advance(struct btrfs_path *path, int *level, int root_level, int allow_down, struct btrfs_key *key) tree_advance() argument [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...] |
/kernel/linux/linux-6.6/fs/btrfs/ |
H A D | qgroup.c | 358 struct btrfs_path *path = NULL; in btrfs_read_qgroup_config() local 374 path = btrfs_alloc_path(); in btrfs_read_qgroup_config() 375 if (!path) { in btrfs_read_qgroup_config() 392 ret = btrfs_search_slot_for_read(quota_root, &key, path, 1, 1); in btrfs_read_qgroup_config() 399 slot = path->slots[0]; in btrfs_read_qgroup_config() 400 l = path->nodes[0]; in btrfs_read_qgroup_config() 475 ret = btrfs_next_item(quota_root, path); in btrfs_read_qgroup_config() 481 btrfs_release_path(path); in btrfs_read_qgroup_config() 489 ret = btrfs_search_slot_for_read(quota_root, &key, path, 1, 0); in btrfs_read_qgroup_config() 493 slot = path in btrfs_read_qgroup_config() 613 struct btrfs_path *path; add_qgroup_relation_item() local 637 struct btrfs_path *path; del_qgroup_relation_item() local 667 struct btrfs_path *path; add_qgroup_item() local 735 struct btrfs_path *path; del_qgroup_item() local 781 struct btrfs_path *path; update_qgroup_limit_item() local 824 struct btrfs_path *path; update_qgroup_info_item() local 869 struct btrfs_path *path; update_qgroup_status_item() local 913 struct btrfs_path *path; btrfs_clean_quota_tree() local 957 struct btrfs_path *path = NULL; btrfs_quota_enable() local 1980 adjust_slots_upwards(struct btrfs_path *path, int root_level) adjust_slots_upwards() argument 2364 struct btrfs_path *path = NULL; btrfs_qgroup_trace_subtree() local 3282 is_last_leaf(struct btrfs_path *path) is_last_leaf() argument 3297 qgroup_rescan_leaf(struct btrfs_trans_handle *trans, struct btrfs_path *path) qgroup_rescan_leaf() argument 3399 struct btrfs_path *path; btrfs_qgroup_rescan_worker() local [all...] |
/foundation/filemanagement/file_api/interfaces/kits/js/src/mod_fs/properties/ |
H A D | open.cpp | 127 static int OpenFileByPath(const string &path, unsigned int mode) in OpenFileByPath() argument 135 int ret = uv_fs_open(nullptr, open_req.get(), path.c_str(), mode, S_IRUSR | in OpenFileByPath() 142 static int OpenFileByDatashare(const string &path, unsigned int flags) in OpenFileByDatashare() argument 156 Uri uri(path); in OpenFileByDatashare() 199 static tuple<int, string> OpenFileByUri(const string &path, unsigned int mode) in OpenFileByUri() argument 201 Uri uri(path); in OpenFileByUri() 204 return OpenByFileDataUri(uri, path, mode); in OpenFileByUri() 210 if (RemoteUri::IsRemoteUri(path, fd, mode)) { in OpenFileByUri() 212 return { fd, path }; in OpenFileByUri() 218 return { -EINVAL, path }; in OpenFileByUri() 265 string path; global() member 269 AsyncCbExec(shared_ptr<AsyncOpenFileArg> arg, const string &path, unsigned int mode) AsyncCbExec() argument [all...] |
/kernel/linux/linux-6.6/Documentation/sphinx/ |
H A D | kfigure.py | 52 from os import path namespace 86 if path.isfile(fname): 90 if not path.isdir(folder): 105 return (path.exists(path1) 256 fname, in_ext = path.splitext(path.basename(img_node['uri'])) 258 src_fname = path.join(translator.builder.srcdir, img_node['uri']) 259 if not path.exists(src_fname): 260 src_fname = path.join(translator.builder.outdir, img_node['uri']) 276 dst_fname = path [all...] |
/third_party/libcoap/tests/ |
H A D | test_uri.c | 30 CU_ASSERT(uri.path.length == 16); in t_parse_uri1() 31 CU_ASSERT_NSTRING_EQUAL(uri.path.s, ".well-known/core", 16); in t_parse_uri1() 53 CU_ASSERT(uri.path.length == 16); in t_parse_uri2() 54 CU_ASSERT_NSTRING_EQUAL(uri.path.s, ".well-known/core", 16); in t_parse_uri2() 76 CU_ASSERT(uri.path.length == 0); in t_parse_uri3() 106 CU_ASSERT(uri.path.length == 0); in t_parse_uri5() 107 CU_ASSERT(uri.path.s == NULL); in t_parse_uri5() 131 CU_ASSERT(uri.path.length == 16); in t_parse_uri6() 132 CU_ASSERT_NSTRING_EQUAL(uri.path.s, ".well-known/core", 16); in t_parse_uri6() 149 /* The list of path segment in t_parse_uri7() [all...] |
/third_party/skia/samplecode/ |
H A D | SampleSlides.cpp | 67 static void scale(SkPath* path, SkScalar scale) { in scale() argument 70 path->transform(m); in scale() 74 SkPath path; in one_d_pe() local 75 path.moveTo(SkIntToScalar(gXY[0]), SkIntToScalar(gXY[1])); in one_d_pe() 77 path.lineTo(SkIntToScalar(gXY[i]), SkIntToScalar(gXY[i+1])); in one_d_pe() 78 path.close(); in one_d_pe() 79 path.offset(SkIntToScalar(-6), 0); in one_d_pe() 80 scale(&path, 1.5f); in one_d_pe() 82 paint->setPathEffect(SkPath1DPathEffect::Make(path, SkIntToScalar(21), 0, in one_d_pe() 103 SkPath path; in MakeTileEffect() local 120 SkPath path; patheffect_slide() local [all...] |