/test/testfwk/developer_test/src/core/build/ |
H A D | pretreat_targets.py | 55 for line in self.target_list: 56 path = line.split(':')[0][2:] 57 name = line.split(':')[1].split('(')[0] 118 for line in lines: 119 if "TargetName" in line: 120 line = line.replace("TargetName", name) 121 json_data += line 130 for line in gn_file.readlines(): 131 if line [all...] |
/third_party/ffmpeg/libavformat/ |
H A D | srtdec.c | 44 /* Check if the first non-empty line is a number. We do not check what the in srt_probe() 52 /* Check if the next line matches a SRT timestamp */ in srt_probe() 72 static int get_event_info(const char *line, struct event_info *ei) in get_event_info() argument 80 if (sscanf(line, "%d:%d:%d%*1[,.]%d --> %d:%d:%d%*1[,.]%d" in get_event_info() 132 char line[4096], line_cache[4096]; in srt_read_header() local 151 ptrdiff_t len = ff_subtitles_read_line(&tr, line, sizeof(line)); in srt_read_header() 156 if (!len || !line[0]) in srt_read_header() 159 if (get_event_info(line, &tmp_ei) < 0) { in srt_read_header() 166 /* We got some cache and a new line s in srt_read_header() [all...] |
/third_party/mbedtls/tests/scripts/ |
H A D | check_test_cases.py | 34 def line(self): member in ScriptOutputError 38 """Store file and line information about errors or warnings in test suites.""" 74 line_number: the line number in the given file. 93 for line_number, line in enumerate(data_file, 1): 94 line = line.rstrip(b'\r\n') 95 if not line: 98 if line.startswith(b'#'): 101 # This is a test case description line. 103 data_file_name, line_number, line) [all...] |
/third_party/musl/scripts/ |
H A D | print_so_deps.py | 55 def get_soname(line): 56 m = re.search("[\S\s]+\[(\S+)\]", line) 65 for line in lines: 66 if "success" in line: 73 for line in lines: 74 if "No such file or directory" in line: 128 for line in lines: 129 if "Library soname" in line: 130 entry_so = self.get_soname(line) 131 if "NEEDED" in line [all...] |
/third_party/python/Tools/c-analyzer/c_parser/parser/ |
H A D | _info.py | 20 self.line = lines[-1] 27 def add_line(self, line, lno=None): 39 line = line.lstrip() 40 self.text += ' ' + line 41 self.line = line 170 def _add_line(self, line, lno=None): 171 if not line.strip(): 172 # We don't worry about multi-line strin [all...] |
/third_party/vk-gl-cts/external/amber/src/src/vkscript/ |
H A D | section_parser.cc | 166 for (std::string line; std::getline(ss, line);) { in SplitSections() 170 if (line.empty() || line[0] == '#' || line == "\r") in SplitSections() 173 if (line[0] != '[') in SplitSections() 180 if (line.empty()) { in SplitSections() 185 if (line[0] == '[') { in SplitSections() 191 size_t name_end = line.rfind("]"); in SplitSections() 195 std::string name = line in SplitSections() [all...] |
/third_party/skia/src/sksl/ir/ |
H A D | SkSLForStatement.cpp | 80 std::unique_ptr<Statement> ForStatement::Convert(const Context& context, int line, in Convert() argument 111 unrollInfo = Analysis::GetLoopUnrollInfo(line, initializer.get(), test.get(), in Convert() 119 unrollInfo = Analysis::GetLoopUnrollInfo(line, initializer.get(), test.get(), in Convert() 136 scope.push_back(ForStatement::Make(context, line, /*initializer=*/nullptr, in Convert() 139 return Block::Make(line, std::move(scope)); in Convert() 142 return ForStatement::Make(context, line, std::move(initializer), std::move(test), in Convert() 147 std::unique_ptr<Statement> ForStatement::ConvertWhile(const Context& context, int line, in ConvertWhile() argument 152 context.fErrors->error(line, "while loops are not supported"); in ConvertWhile() 155 return ForStatement::Convert(context, line, /*initializer=*/nullptr, std::move(test), in ConvertWhile() 159 std::unique_ptr<Statement> ForStatement::Make(const Context& context, int line, in Make() argument [all...] |
H A D | SkSLTypeReference.h | 24 TypeReference(const Context& context, int line, const Type* value) in TypeReference() argument 25 : TypeReference(line, value, context.fTypes.fInvalid.get()) {} in TypeReference() 29 int line, 33 static std::unique_ptr<TypeReference> Make(const Context& context, int line, const Type* type); 52 TypeReference(int line, const Type* value, const Type* type) in TypeReference() argument 53 : INHERITED(line, kExpressionKind, type) in TypeReference()
|
/third_party/python/Lib/test/ |
H A D | test_modulefinder.py | 303 for line in source.splitlines(): 304 if type(line) != bytes: 305 line = line.encode('utf-8') 306 if line.startswith(b' ') or line.startswith(b'\t'): 307 ofi.write(line.strip() + b'\n') 311 if type(line) == bytes: 312 line = line [all...] |
H A D | pythoninfo.py | 399 # Only keep the first line 802 for line in output.splitlines(): 803 line = line.strip() 804 if line.startswith('Caption='): 805 line = line.removeprefix('Caption=').strip() 806 if line: 807 info_add('windows.version_caption', line) 808 elif line [all...] |
/third_party/skia/experimental/sktext/tests/ |
H A D | WrappedText.cpp | 77 const SkPoint positions[], // Positions relative to the line 126 auto& line = testVisitor.fTestLines[lineIndex]; in UNIX_ONLY_TEST() local 127 REPORTER_ASSERT(reporter, line.runRange == Range<RunIndex>(runIndex, runIndex + 1)); in UNIX_ONLY_TEST() 128 REPORTER_ASSERT(reporter, line.runRange.width() == 1); in UNIX_ONLY_TEST() 130 REPORTER_ASSERT(reporter, line.lineText == run.dirTextRange); in UNIX_ONLY_TEST() 131 REPORTER_ASSERT(reporter, runIndex <= 1 ? line.hardBreak : !line.hardBreak); in UNIX_ONLY_TEST() 132 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(verticalOffset, line.bounds.fTop)); in UNIX_ONLY_TEST() 134 // There is only one line that is wrapped and it has enough trailing spaces to exceed the line widt in UNIX_ONLY_TEST() [all...] |
/third_party/rust/crates/rust-openssl/openssl/src/ |
H A D | error.rs | 103 line: c_int, 118 let mut line = 0; in get() variables 122 match ERR_get_error_all(&mut file, &mut line, &mut func, &mut data, &mut flags) { in get() 154 line, in get() 174 line!() as _, in put() 198 self.line, in put_error() 208 let line = self.line; in put_error() 210 let line = self.line in put_error() 279 pub fn line(&self) -> u32 { file() functions [all...] |
/third_party/vk-gl-cts/scripts/verify/ |
H A D | verify.py | 43 for line in f: 44 s = line.strip() 108 for line in statement.splitlines(): 109 if beginsWith(line, "CONFORM_VERSION:"): 113 assert len(line.split()) >= 2 114 package.conformVersion = line.split()[1] 116 elif beginsWith(line, "PRODUCT:"): 118 elif beginsWith(line, "CPU:"): 123 elif beginsWith(line, "OS:"): 127 assert len(line [all...] |
/third_party/icu/icu4j/perf-tests/src/com/ibm/icu/dev/test/perf/ |
H A D | CollationPerformanceTest.java | 209 //print the line in doDump() 210 String line = com.ibm.icu.impl.Utility.escape((String)list.get(i)); in doDump() 211 System.out.println(line); in doDump() 214 CollationElementIterator CEiter = ((com.ibm.icu.text.RuleBasedCollator)icuCol).getCollationElementIterator(line); in doDump() 235 CollationKey ck = ((com.ibm.icu.text.RuleBasedCollator)icuCol).getCollationKey(line); in doDump() 508 for (int line=0; line < tests.length; line++) { in doKeyGen() 510 totalChars += tests[line].length(); in doKeyGen() 511 byte[] sortKey = javaCol.getCollationKey(tests[line]) in doKeyGen() [all...] |
/third_party/musl/src/passwd/ |
H A D | getspnam.c | 8 static char *line; in getspnam() local 13 if (!line) line = malloc(LINE_LIM); in getspnam() 14 if (!line) return 0; in getspnam() 15 e = getspnam_r(name, &sp, line, LINE_LIM, &res); in getspnam()
|
H A D | getpwent_a.c | 11 int __getpwent_a(FILE *f, struct passwd *pw, char **line, size_t *size, struct passwd **res) in __getpwent_a() argument 19 if ((l=getline(line, size, f)) < 0) { in __getpwent_a() 21 free(*line); in __getpwent_a() 22 *line = 0; in __getpwent_a() 26 line[0][l-1] = 0; in __getpwent_a() 28 s = line[0]; in __getpwent_a()
|
/third_party/mesa3d/src/intel/tools/ |
H A D | error2aub.c | 299 char *line = NULL; in main() local 301 while (getline(&line, &line_size, err_file) > 0) { in main() 302 const char *pci_id_start = strstr(line, "PCI ID"); in main() 305 int matched = sscanf(line, "PCI ID: 0x%04x\n", &pci_id); in main() 316 if (strstr(line, " command stream:")) { in main() 317 engine_from_name(line, &active_engine_class, &active_engine_instance); in main() 321 if (sscanf(line, " ring->head: 0x%x\n", in main() 328 if (sscanf(line, " ring->tail: 0x%x\n", in main() 336 if (strncmp(line, active_start, strlen(active_start)) == 0) { in main() 337 char *ring = line in main() [all...] |
/third_party/skia/samplecode/ |
H A D | SampleImageFilterDAG.cpp | 144 SkPaint line; in draw_node() local 145 line.setStrokeWidth(0.f); in draw_node() 146 line.setStyle(SkPaint::kStroke_Style); in draw_node() 158 line.setColor(SK_ColorBLACK); in draw_node() 159 canvas->drawRect(content, line); in draw_node() 166 line.setColor(SK_ColorRED); in draw_node() 167 canvas->drawRect(SkRect::Make(SkIRect(node.fHintedLayerBounds)).makeOutset(3.f, 3.f), line); in draw_node() 169 line.setColor(SK_ColorGREEN); in draw_node() 170 canvas->drawRect(SkRect::Make(SkIRect(node.fUnhintedLayerBounds)).makeOutset(2.f, 2.f), line); in draw_node() 173 line in draw_node() 255 SkPaint line; draw_dag() local [all...] |
/third_party/mesa3d/src/egl/ |
H A D | egl-entrypoint-check.py | 70 for line in lines: 71 line = line.strip() 72 if line.startswith(PREFIX): 73 assert line.endswith(SUFFIX) 74 entrypoints.append(line[len(PREFIX):-len(SUFFIX)])
|
/third_party/python/Lib/idlelib/ |
H A D | zzdummy.py | 18 line = lines[pos] 19 lines[pos] = format_line(self, line) 49 def z_in_event(self, line): 50 """Insert text at the beginning of each selected line. 55 return f'{self.ztext}{line}' 58 def z_out_event(self, line): 59 """Remove specific text from the beginning of each selected line. 64 zlength = 0 if not line.startswith(self.ztext) else len(self.ztext) 65 return line[zlength:]
|
/third_party/skia/infra/bots/assets/armhf_sysroot/ |
H A D | create.py | 52 for line in fileinput.input(bad_libpthread, inplace=True): 53 if line.startswith("GROUP"): 56 print(line) 59 for line in fileinput.input(bad_libc, inplace=True): 60 if line.startswith("GROUP"): 64 print(line)
|
/third_party/vk-gl-cts/scripts/src_util/ |
H A D | check_whitespace.py | 33 for lineNum, line in enumerate(f): 34 if line.endswith(" \n") or line.endswith("\t\n"): 37 if " \t" in line: 40 if line.endswith("\r") or line.endswith("\r\n"): 42 print("%s:%i incorrect line ending" % (file, lineNum+1))
|
/test/xts/tools/lite/reliability/ |
H A D | NativePressTest.py | 53 for line in splitlines: 54 print("Start go get pid with line:" + line) 55 if len(line.split()) >= 1: 56 print("Start go get pid:" + line) 57 testPID.append(line.split()[1]) 87 for line in splitlines: 88 print("Get exception file with line " + line) 89 splitlines = line [all...] |
/third_party/icu/icu4c/source/test/intltest/ |
H A D | textfile.cpp | 78 UBool TextFile::readLine(UnicodeString& line, UErrorCode& ec) { in readLine() argument 104 // Remove BOM in first line, if present in readLine() 109 line = str.unescape(); in readLine() 113 UBool TextFile::readLineSkippingComments(UnicodeString& line, UErrorCode& ec, in readLineSkippingComments() argument 116 if (!readLine(line, ec)) return false; in readLineSkippingComments() 119 ICU_Utility::skipWhitespace(line, pos, true); in readLineSkippingComments() 121 if (pos == line.length() || line.charAt(pos) == 0x23/*'#'*/) { in readLineSkippingComments() 124 // Process line in readLineSkippingComments() 125 if (trim) line in readLineSkippingComments() [all...] |
/third_party/node/deps/ngtcp2/ngtcp2/lib/ |
H A D | ngtcp2_mem.c | 77 const char *func, const char *file, size_t line) { in ngtcp2_mem_malloc_debug() 81 file, line); in ngtcp2_mem_malloc_debug() 87 const char *file, size_t line) { in ngtcp2_mem_free_debug() 88 fprintf(stderr, "free ptr=%p in %s at %s:%zu\n", ptr, func, file, line); in ngtcp2_mem_free_debug() 94 const char *func, const char *file, size_t line) { in ngtcp2_mem_calloc_debug() 98 size, func, file, line); in ngtcp2_mem_calloc_debug() 105 size_t line) { in ngtcp2_mem_realloc_debug() 109 size, func, file, line); in ngtcp2_mem_realloc_debug() 76 ngtcp2_mem_malloc_debug(const ngtcp2_mem *mem, size_t size, const char *func, const char *file, size_t line) ngtcp2_mem_malloc_debug() argument 86 ngtcp2_mem_free_debug(const ngtcp2_mem *mem, void *ptr, const char *func, const char *file, size_t line) ngtcp2_mem_free_debug() argument 93 ngtcp2_mem_calloc_debug(const ngtcp2_mem *mem, size_t nmemb, size_t size, const char *func, const char *file, size_t line) ngtcp2_mem_calloc_debug() argument 103 ngtcp2_mem_realloc_debug(const ngtcp2_mem *mem, void *ptr, size_t size, const char *func, const char *file, size_t line) ngtcp2_mem_realloc_debug() argument
|