/third_party/protobuf/csharp/src/Google.Protobuf.Test/ |
H A D | FieldMaskTreeTest.cs | 47 RepeatedField<string> paths = tree.ToFieldMask().Paths; in AddFieldPath() 48 Assert.AreEqual(0, paths.Count); in AddFieldPath() 51 paths = tree.ToFieldMask().Paths; in AddFieldPath() 52 Assert.AreEqual(1, paths.Count); in AddFieldPath() 53 Assert.Contains("", paths); in AddFieldPath() 57 paths = tree.ToFieldMask().Paths; in AddFieldPath() 58 Assert.AreEqual(2, paths.Count); in AddFieldPath() 59 Assert.Contains("foo", paths); in AddFieldPath() 63 paths = tree.ToFieldMask().Paths; in AddFieldPath() 64 Assert.AreEqual(2, paths in AddFieldPath() [all...] |
/third_party/protobuf/src/google/protobuf/util/internal/ |
H A D | field_mask_utility.cc | 109 util::Status DecodeCompactFieldMaskPaths(StringPiece paths, in DecodeCompactFieldMaskPaths() argument 112 int length = paths.length(); in DecodeCompactFieldMaskPaths() 127 if (paths[i] == '\\') { in DecodeCompactFieldMaskPaths() 131 if (paths[i] != '\"') { in DecodeCompactFieldMaskPaths() 135 if (i >= length - 1 || paths[i + 1] != ']') { in DecodeCompactFieldMaskPaths() 139 "Invalid FieldMask '", paths, in DecodeCompactFieldMaskPaths() 147 if (i < length - 1 && paths[i + 1] != '.' && paths[i + 1] != ',' && in DecodeCompactFieldMaskPaths() 148 paths[i + 1] != ')' && paths[ in DecodeCompactFieldMaskPaths() [all...] |
/third_party/alsa-utils/axfer/ |
H A D | xfer-options.c | 52 static int allocate_paths(struct xfer_context *xfer, char *const *paths, in allocate_paths() argument 63 xfer->paths = calloc(count, sizeof(xfer->paths[0])); in allocate_paths() 64 if (xfer->paths == NULL) in allocate_paths() 69 xfer->paths[0] = strdup("-"); in allocate_paths() 70 if (xfer->paths[0] == NULL) in allocate_paths() 74 xfer->paths[i] = strndup(paths[i], PATH_MAX); in allocate_paths() 75 if (xfer->paths[i] == NULL) in allocate_paths() 180 !strcmp(xfer->paths[ in validate_options() [all...] |
/third_party/skia/gm/ |
H A D | pathmaskcache.cpp | 77 SkTArray<SkPath> paths; variable 78 paths.push_back(); 79 paths.back().moveTo(0.f, 0.f); 80 paths.back().lineTo(98.f, 100.f); 81 paths.back().lineTo(100.f, 100.f); 82 paths.back().conicTo(150.f, 50.f, 100.f, 0.f, 0.6f); 83 paths.back().conicTo(148.f, 50.f, 100.f, 100.f, 0.6f); 84 paths.back().conicTo(50.f, 30.f, 0.f, 100.f, 0.9f); 86 paths.push_back(); 87 paths [all...] |
/third_party/node/deps/v8/third_party/zlib/google/ |
H A D | zip_writer.cc | 181 bool ZipWriter::AddMixedEntries(Paths paths) { in AddMixedEntries() argument 182 // Pointers to directory paths in |paths|. in AddMixedEntries() 188 // First pass. We don't know which paths are files and which ones are in AddMixedEntries() 190 // path. Try to open all of the paths as files. We'll get invalid file in AddMixedEntries() 193 while (!paths.empty()) { in AddMixedEntries() 194 // Work with chunks of 50 paths at most. in AddMixedEntries() 195 const size_t n = std::min<size_t>(paths.size(), 50); in AddMixedEntries() 196 const Paths relative_paths = paths.subspan(0, n); in AddMixedEntries() 197 paths in AddMixedEntries() 229 AddFileEntries(Paths paths) AddFileEntries() argument 268 AddDirectoryEntries(Paths paths) AddDirectoryEntries() argument 294 Filter(std::vector<base::FilePath>* const paths) Filter() argument [all...] |
/third_party/node/deps/zlib/google/ |
H A D | zip_writer.cc | 181 bool ZipWriter::AddMixedEntries(Paths paths) { in AddMixedEntries() argument 182 // Pointers to directory paths in |paths|. in AddMixedEntries() 188 // First pass. We don't know which paths are files and which ones are in AddMixedEntries() 190 // path. Try to open all of the paths as files. We'll get invalid file in AddMixedEntries() 193 while (!paths.empty()) { in AddMixedEntries() 194 // Work with chunks of 50 paths at most. in AddMixedEntries() 195 const size_t n = std::min<size_t>(paths.size(), 50); in AddMixedEntries() 196 const Paths relative_paths = paths.subspan(0, n); in AddMixedEntries() 197 paths in AddMixedEntries() 229 AddFileEntries(Paths paths) AddFileEntries() argument 268 AddDirectoryEntries(Paths paths) AddDirectoryEntries() argument 294 Filter(std::vector<base::FilePath>* const paths) Filter() argument [all...] |
/third_party/node/benchmark/path/ |
H A D | relative-posix.js | 6 paths: [ 18 function main({ n, paths }) { 20 const delimIdx = paths.indexOf('|'); 22 to = paths.slice(delimIdx + 1); 23 paths = paths.slice(0, delimIdx); 29 posix.relative(`${paths}${i}`, `${to}${i}`); 31 posix.relative(paths, to);
|
H A D | relative-win32.js | 6 paths: [ 16 function main({ n, paths }) { 18 const delimIdx = paths.indexOf('|'); 20 to = paths.slice(delimIdx + 1); 21 paths = paths.slice(0, delimIdx); 27 win32.relative(`${paths}${i}`, `${to}${i}`); 29 win32.relative(paths, to);
|
/third_party/skia/third_party/externals/spirv-cross/ |
H A D | test_shaders.py | 185 def cross_compile_msl(shader, spirv, opt, iterations, paths): 191 spirv_cmd = [paths.spirv_as, '--target-env', spirv_env, '-o', spirv_path, shader] 198 subprocess.check_call([paths.glslang, '--amb' ,'--target-env', 'vulkan1.1', '-V', '-o', spirv_path, shader]) 202 subprocess.check_call([paths.spirv_opt, '--skip-validation', '-O', '--graphics-robust-access', '-o', spirv_path, spirv_path]) 204 subprocess.check_call([paths.spirv_opt, '--skip-validation', '-O', '-o', spirv_path, spirv_path]) 206 spirv_cross_path = paths.spirv_cross 349 subprocess.check_call([paths.spirv_val, '--scalar-block-layout', '--target-env', spirv_env, spirv_path]) 384 def validate_shader_hlsl(shader, force_no_external_validation, paths): 391 hlsl_args = [paths.glslang, '--amb', '-e', 'main', '-D', '--target-env', 'vulkan1.1', '-V', shader] 431 def cross_compile_hlsl(shader, spirv, opt, force_no_external_validation, iterations, paths) [all...] |
/third_party/node/deps/npm/node_modules/@tufjs/models/dist/ |
H A D | role.js | 75 * - ``paths`` is set: delegates targets matching any path pattern in ``paths`` 79 * ``paths`` and ``pathHashPrefixes`` are mutually exclusive: both cannot be 85 const { name, terminating, paths, pathHashPrefixes } = opts; 88 if (opts.paths && opts.pathHashPrefixes) { 89 throw new error_1.ValueError('paths and pathHashPrefixes are mutually exclusive'); 91 this.paths = paths; 101 util_1.default.isDeepStrictEqual(this.paths, other.paths) [all...] |
/third_party/skia/src/core/ |
H A D | HMSymbol.cpp | 19 void HMSymbol::PathOutlineDecompose(const SkPath& path, std::vector<SkPath>& paths) in PathOutlineDecompose() argument 29 paths.push_back(path_stemp); in PathOutlineDecompose() 51 paths.push_back(path_stemp); in PathOutlineDecompose() 60 paths.push_back(path_stemp); in PathOutlineDecompose() 65 const std::vector<SkPath>& paths, std::vector<SkPath>& multPaths) in MultilayerPath() 69 for (size_t i = 0; i < paths.size(); i++) { in MultilayerPath() 70 path.addPath(paths[i]); in MultilayerPath() 78 if (multMap[i][j] < paths.size()) { in MultilayerPath() 79 path.addPath(paths[multMap[i][j]]); in MultilayerPath() 64 MultilayerPath(const std::vector<std::vector<size_t>>& multMap, const std::vector<SkPath>& paths, std::vector<SkPath>& multPaths) MultilayerPath() argument
|
/third_party/skia/third_party/externals/sfntly/cpp/tools/ |
H A D | clean_fonts_repo.py | 39 paths = GetFontList(args.source, ['.ttf', '.ttc', '.otf', 'OFL.txt'], True) 40 map (os.remove, paths) 42 map(lambda path: os.removedirs(os.path.dirname(path)), paths) 46 paths = GetLevelList(args.source, 4, True) 47 print paths 48 map(os.remove, paths) 50 map(lambda path: os.removedirs(os.path.dirname(path)), paths)
|
H A D | utils.py | 25 paths = [] 37 paths.append(os.path.join(root, path)) 38 return paths 45 paths = [] 53 paths.append(root_path) 54 return paths
|
/third_party/rust/crates/which-rs/src/ |
H A D | finder.rs | 58 paths: Option<U>, in find() 76 let p = paths.ok_or(Error::CannotFindBinaryPath)?; in find() 77 let paths: Vec<_> = env::split_paths(&p).collect(); in find() 79 Either::Right(Self::path_search_candidates(path, paths).into_iter()) in find() 92 paths: Option<T>, in find_re() 98 let p = paths.ok_or(Error::CannotFindBinaryPath)?; in find_re() 100 // change the API to borrow on `paths`. in find_re() 102 let paths: Vec<_> = env::split_paths(&p).collect(); in find_re() 104 let matching_re = paths in find_re() 133 paths in path_search_candidates() [all...] |
H A D | lib.rs | 64 /// Does not resolve relative paths. 84 /// Find all binaries with `binary_name` using `cwd` to resolve relative paths. 148 /// Find `binary_name` in the path list `paths`, using `cwd` to resolve relative paths. 149 pub fn which_in<T, U, V>(binary_name: T, paths: Option<U>, cwd: V) -> Result<path::PathBuf> in which_in() 155 which_in_all(binary_name, paths, cwd) in which_in() 159 /// Find all binaries matching a regular expression in a list of paths. 166 /// * `paths` - A string containing the paths to search 177 /// let paths [all...] |
/third_party/node/lib/internal/modules/cjs/ |
H A D | loader.js | 398 // Given a module name, and a list of paths to test, returns the first 605 * @param {Array<string>} paths Folders to search as file paths 609 Module._findPath = function(request, paths, isMain) { 612 paths = ['']; 613 } else if (!paths || paths.length === 0) { 617 const cacheKey = request + '\x00' + ArrayPrototypeJoin(paths, '\x00'); 656 for (let i = 0; i < paths.length; i++) { 658 const curPath = paths[ [all...] |
/third_party/python/Tools/scripts/ |
H A D | win_add2path.py | 37 paths = [envpath] 40 paths.append(path) 42 envpath = os.pathsep.join(paths) 44 return paths, envpath 47 paths, envpath = modify() 48 if len(paths) > 1: 50 print('\n'.join(paths[1:]))
|
/third_party/musl/porting/linux/user/ldso/ |
H A D | namespace.c | 492 strlist *paths; in is_accessible() local 493 if (ns->env_paths && (paths = strsplit(ns->env_paths, ":"))) { in is_accessible() 494 for (size_t i = 0; i < paths->num; i++) { in is_accessible() 495 size_t len = strlen(paths->strs[i]); in is_accessible() 496 if (strncmp(lib_pathname, paths->strs[i], len) == 0 && in is_accessible() 502 strlist_free(paths); in is_accessible() 506 strlist_free(paths); in is_accessible() 518 if (ns->lib_paths && (paths = strsplit(ns->lib_paths, ":"))) { in is_accessible() 519 for (size_t i = 0; i < paths->num; i++) { in is_accessible() 520 size_t len = strlen(paths in is_accessible() 551 strlist *paths; check_asan_path() local [all...] |
/third_party/musl/ldso/linux/ |
H A D | namespace.c | 492 strlist *paths; in is_accessible() local 493 if (ns->env_paths && (paths = strsplit(ns->env_paths, ":"))) { in is_accessible() 494 for (size_t i = 0; i < paths->num; i++) { in is_accessible() 495 size_t len = strlen(paths->strs[i]); in is_accessible() 496 if (strncmp(lib_pathname, paths->strs[i], len) == 0 && in is_accessible() 502 strlist_free(paths); in is_accessible() 506 strlist_free(paths); in is_accessible() 518 if (ns->lib_paths && (paths = strsplit(ns->lib_paths, ":"))) { in is_accessible() 519 for (size_t i = 0; i < paths->num; i++) { in is_accessible() 520 size_t len = strlen(paths in is_accessible() 551 strlist *paths; check_asan_path() local [all...] |
/third_party/node/test/parallel/ |
H A D | test-module-relative-lookup.js | 13 let paths = _module._resolveLookupPaths(moduleName); 15 assertFunction(paths[0], '.'); 17 paths = _module._resolveLookupPaths(moduleName, null); 18 assertFunction(paths && paths[0], '.');
|
/third_party/icu/tools/cldr/cldr-to-icu/src/test/java/org/unicode/icu/tool/cldrtoicu/ |
H A D | IcuDataTest.java | 56 Set<RbPath> paths = icuData.getPaths(); in testGetPaths() 57 assertThat(paths).isEmpty(); in testGetPaths() 62 assertThat(paths).containsExactly(fooBar); in testGetPaths() 63 assertThat(paths).hasSize(1); in testGetPaths() 68 assertThat(paths).containsExactly(fooBar, fooBaz).inOrder(); in testGetPaths() 69 assertThat(paths).hasSize(2); in testGetPaths() 72 assertThrows(UnsupportedOperationException.class, () -> paths.add(RbPath.of("nope"))); in testGetPaths() 73 assertThrows(UnsupportedOperationException.class, () -> paths.remove(fooBar)); in testGetPaths() 74 assertThrows(UnsupportedOperationException.class, paths::clear); in testGetPaths()
|
/third_party/node/deps/npm/node_modules/@sigstore/verify/dist/key/ |
H A D | certificate.js | 55 // Construct all possible paths from the leaf 56 let paths = this.buildPaths(leafCert); 57 // Filter for paths which contain a trusted certificate 58 paths = paths.filter((path) => path.some((cert) => this.trustedCerts.includes(cert))); 59 if (paths.length === 0) { 65 // Find the shortest of possible paths 67 const path = paths.reduce((prev, curr) => prev.length < curr.length ? prev : curr); 73 // Recursively build all possible paths from the leaf to the root 75 const paths [all...] |
/third_party/mesa3d/src/compiler/nir/ |
H A D | nir_lower_goto_ifs.c | 49 struct path paths[2]; member 140 if (_mesa_set_search(fork->paths[i].reachable, target)) { in set_path_vars() 147 fork = fork->paths[i].fork; in set_path_vars() 156 * If the blocks are in different fork paths, the condition will be used. 167 if (_mesa_set_search(fork->paths[i].reachable, then_block)) { in set_path_vars_cond() 168 if (_mesa_set_search(fork->paths[i].reachable, else_block)) { in set_path_vars_cond() 175 fork = fork->paths[i].fork; in set_path_vars_cond() 191 set_path_vars(b, fork->paths[i].fork, then_block); in set_path_vars_cond() 192 set_path_vars(b, fork->paths[!i].fork, else_block); in set_path_vars_cond() 277 struct set *reachable = _mesa_set_clone(fork->paths[ in fork_reachable() [all...] |
/third_party/protobuf/java/util/src/main/java/com/google/protobuf/util/ |
H A D | FieldMaskUtil.java | 69 // Ignore empty paths. in toString() 91 * Parses from a string to a FieldMask and validates all field paths. 101 * Constructs a FieldMask for a list of field paths in a certain type. 106 public static FieldMask fromStringList(Class<? extends Message> type, Iterable<String> paths) { in fromStringList() argument 107 return fromStringList(Internal.getDefaultInstance(type).getDescriptorForType(), paths); in fromStringList() 111 * Constructs a FieldMask for a list of field paths in a certain type. 115 public static FieldMask fromStringList(Descriptor descriptor, Iterable<String> paths) { in fromStringList() argument 116 return fromStringList(Optional.of(descriptor), paths); in fromStringList() 120 * Constructs a FieldMask for a list of field paths in a certain type. Does not validate the given 121 * paths 123 fromStringList(Iterable<String> paths) fromStringList() argument 127 fromStringList(Optional<Descriptor> descriptor, Iterable<String> paths) fromStringList() argument [all...] |
/third_party/vulkan-loader/tests/framework/shim/ |
H A D | shim_common.cpp | 196 void parse_and_add_env_var_override(std::vector<std::string>& paths, std::string env_var_contents) { argument 198 paths.insert(paths.end(), parsed_paths.begin(), parsed_paths.end()); 202 std::vector<std::string> paths; local 210 paths.push_back((home / ".config").str()); 211 paths.push_back((home / ".local/share").str()); 218 parse_and_add_env_var_override(paths, get_env_var("XDG_CONFIG_HOME", report_errors)); 220 parse_and_add_env_var_override(paths, get_env_var("VK_LAYER_PATH", false)); // don't report failure 222 parse_and_add_env_var_override(paths, FALLBACK_DATA_DIRS); 223 parse_and_add_env_var_override(paths, FALLBACK_CONFIG_DIR [all...] |