/developers/samples/android/ui/text/RoundedBackground-Kotlin/lib/src/main/java/com/android/example/text/styling/roundedbg/ |
LayoutExtensions.kt | 24 * Android system default line spacing extra 29 * Android system default line spacing multiplier 34 * Get the line bottom discarding the line spacing added. 36 fun Layout.getLineBottomWithoutSpacing(line: Int): Int { 37 val lineBottom = getLineBottom(line) 39 val isLastLine = line == lineCount - 1 52 val lineHeight = getLineHeight(line) 65 * Get the line height of a line [all...] |
/external/jsilver/src/com/google/clearsilver/jsilver/data/ |
DefaultHdfParser.java | 43 String line; local 44 while ((line = lineReader.readLine()) != null) { 45 parseLine(line, output, context, lineReader, dataFileName, errorHandler); 49 private void parseLine(String line, Data output, List<String> context, 52 line = stripComment(line); 55 if ((split = split(line, "=")) != null) { 58 } else if ((split = split(line, "<<")) != null) { 64 } else if ((split = split(line, "{")) != null) { 68 } else if (split(line, "}") != null) 78 errorHandler.error(lineReader.getLineNumber(), line, dataFileName, "Bad HDF syntax"); local 98 String line; local [all...] |
/external/python/cpython3/Tools/clinic/ |
cpp.py | 14 A simple C preprocessor that scans C source and computes, line by line, 19 string but on another line and with preprocessor macros in between... 39 " line=", str(self.line_number), 57 print("Error at" + filename, "line", self.line_number, ":") 66 for line in s.split("\n"): 67 self.writeline(line) 69 def writeline(self, line): 71 line = line.strip( [all...] |
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Tools/freeze/ |
parsesetup.py | 18 line = fp.readline()
20 line = pendingline + line
22 if not line:
24 if line.endswith('\\\n'):
25 pendingline = line[:-2]
26 matchobj = makevardef.match(line)
55 line = fp.readline()
57 line = pendingline + line
[all...] |
/external/python/cpython2/Tools/freeze/ |
parsesetup.py | 18 line = fp.readline() 20 line = pendingline + line 22 if not line: 24 if line.endswith('\\\n'): 25 pendingline = line[:-2] 26 matchobj = makevardef.match(line) 55 line = fp.readline() 57 line = pendingline + line [all...] |
/external/vboot_reference/scripts/image_signing/ |
unpack_firmwarefd.sh | 30 line=$(mosys -f -k eeprom map $1 | grep "$match_str") 31 offset="$(echo $line | sed -e 's/.*area_offset=\"\([a-f0-9x]*\)\".*/\1/')" 33 size="$(echo $line | sed -e 's/.*area_size=\"\([a-f0-9x]*\)\".*/\1/')" 40 line=$(mosys -f -k eeprom map $1 | grep "$match_str") 41 offset="$(echo $line | sed -e 's/.*area_offset=\"\([a-f0-9x]*\)\".*/\1/')" 44 size="$(echo $line | sed -e 's/.*area_size=\"\([a-f0-9x]*\)\".*/\1/')" 49 line=$(mosys -f -k eeprom map $1 | grep "$match_str") 50 offset="$(echo $line | sed -e 's/.*area_offset=\"\([a-f0-9x]*\)\".*/\1/')" 53 size="$(echo $line | sed -e 's/.*area_size=\"\([a-f0-9x]*\)\".*/\1/')"
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Tools/scripts/ |
combinerefs.py | 18 a line of output for each object still alive at the end:
43 it's common for the line showing the dict of interned strings to display
45 (albeit painfully) because such containees don't have a line of their own.
76 # while the regexp object pat matches line. If whilematch is false, lines
77 # are read so long as pat doesn't match them. In any case, the first line
79 # (when whilematch is false), is lost, and fileiter will resume at the line
82 for line in fileiter:
83 if bool(pat.match(line)) == whilematch:
84 yield line
92 for line in read(fi, re.compile(r'^Remaining objects:$'), False): [all...] |
/external/python/cpython2/Tools/scripts/ |
combinerefs.py | 18 a line of output for each object still alive at the end: 43 it's common for the line showing the dict of interned strings to display 45 (albeit painfully) because such containees don't have a line of their own. 76 # while the regexp object pat matches line. If whilematch is false, lines 77 # are read so long as pat doesn't match them. In any case, the first line 79 # (when whilematch is false), is lost, and fileiter will resume at the line 82 for line in fileiter: 83 if bool(pat.match(line)) == whilematch: 84 yield line 92 for line in read(fi, re.compile(r'^Remaining objects:$'), False) [all...] |
/external/python/cpython3/Modules/_blake2/ |
blake2b2s.py | 23 for line in f: 25 mo = PUBLIC_SEARCH.search(line) 38 for line in f: 39 line = line.replace('blake2b', 'blake2s') 40 line = line.replace('BLAKE2b', 'BLAKE2s') 41 line = line.replace('BLAKE2B', 'BLAKE2S') 42 lines.append(line) [all...] |
/external/python/cpython3/Modules/_sha3/ |
cleanup.py | 27 for line in f: 29 #if line.startswith(STATICS): 30 # buf.append("static " + line) 33 if line.startswith("typedef unsigned long long int"): 34 buf.append("/* %s */\n" % line.strip()) 37 if "brg_endian.h" in line: 38 buf.append("/* %s */\n" % line.strip()) 41 line = CPP1.sub(r"/*\1 */\n", line) 42 line = CPP2.sub(r" /*\1 */\n", line [all...] |
/external/python/cpython3/Tools/scripts/ |
combinerefs.py | 18 a line of output for each object still alive at the end: 43 it's common for the line showing the dict of interned strings to display 45 (albeit painfully) because such containees don't have a line of their own. 76 # while the regexp object pat matches line. If whilematch is false, lines 77 # are read so long as pat doesn't match them. In any case, the first line 79 # (when whilematch is false), is lost, and fileiter will resume at the line 82 for line in fileiter: 83 if bool(pat.match(line)) == whilematch: 84 yield line 93 for line in read(fi, re.compile(r'^Remaining objects:$'), False) [all...] |
/external/toybox/toys/other/ |
fmt.c | 20 Reformat input to wordwrap at a given line length, preserving existing 23 -w WIDTH Maximum characters per line (default 75) 44 char *line; local 47 // Flush line on EOF 51 for (line = *pline, idx = count = 0; isspace(line[idx]); idx++) { 52 if (line[idx]=='\t') count += 8-(count&7); 53 else if (line[idx]==' ') count++; 57 // Blank lines (even with same indentation) flush line 71 char *word = line+idx [all...] |
/external/v8/tools/ |
draw_instruction_graph.sh | 99 set style line 2 lc rgb '#800000' 100 set style line 3 lc rgb '#d00000' 101 set style line 4 lc rgb '#ff6000' 102 set style line 5 lc rgb '#ffc000' 103 set style line 6 lc rgb '#ffff00' 105 set style line 7 lc rgb '#ff00ff' 106 set style line 8 lc rgb '#ffc0ff' 108 set style line 9 lc rgb '#004040' 109 set style line 10 lc rgb '#008080' 110 set style line 11 lc rgb '#40c0c0 [all...] |
objdump-v8 | 47 def format_line(line): 48 pieces = line.split(None, 3) 52 def is_comment(line): 53 stripped = line.strip() 68 for line in codefile: 69 if line.startswith("0x"): 70 addr = int(line.split()[0], 0) 73 sys.stdout.write(format_line(line)) 77 if not is_comment(line): 80 sys.stdout.write(line) [all...] |
/external/harfbuzz_ng/src/ |
hb-ot-shape-complex-khmer-machine.hh | 2 #line 1 "hb-ot-shape-complex-khmer-machine.rl" 35 #line 36 "hb-ot-shape-complex-khmer-machine.hh" 226 #line 36 "hb-ot-shape-complex-khmer-machine.rl" 230 #line 80 "hb-ot-shape-complex-khmer-machine.rl" 249 #line 250 "hb-ot-shape-complex-khmer-machine.hh" 257 #line 100 "hb-ot-shape-complex-khmer-machine.rl" 265 #line 266 "hb-ot-shape-complex-khmer-machine.hh" 276 #line 1 "NONE" 279 #line 280 "hb-ot-shape-complex-khmer-machine.hh" 298 #line 1 "NONE [all...] |
/external/perf_data_converter/src/quipper/ |
perf_recorder_test.cc | 112 EXPECT_TRUE(stat.line(0).has_time_ms()); 113 EXPECT_TRUE(stat.line(0).has_count()); 114 EXPECT_TRUE(stat.line(0).has_event_name()); 116 EXPECT_GE(stat.line(0).time_ms(), 200); 117 EXPECT_EQ("cycles", stat.line(0).event_name()); 150 EXPECT_TRUE(stat.line(0).has_time_ms()); 151 EXPECT_TRUE(stat.line(0).has_count()); 152 EXPECT_TRUE(stat.line(0).has_event_name()); 153 EXPECT_GE(stat.line(0).time_ms(), 200); 154 EXPECT_EQ("cycles", stat.line(0).event_name()) [all...] |
/external/skia/tests/ |
PathOpsQuadLineIntersectionTest.cpp | 19 SkDLine line; member in struct:lineQuad 23 // quad line results 33 static int doIntersect(SkIntersections& intersections, const SkDQuad& quad, const SkDLine& line, 37 if (line[0].fX == line[1].fX) { 38 double top = line[0].fY; 39 double bottom = line[1].fY; 45 result = intersections.vertical(quad, top, bottom, line[0].fX, flipped); 46 } else if (line[0].fY == line[1].fY) 64 SkDLine line; member in struct:oneLineQuad 90 const SkDLine& line = oneOffs[index].line; local 119 const SkDLine& line = lineQuadTests[index].line; local [all...] |
/external/skqp/tests/ |
PathOpsQuadLineIntersectionTest.cpp | 19 SkDLine line; member in struct:lineQuad 23 // quad line results 33 static int doIntersect(SkIntersections& intersections, const SkDQuad& quad, const SkDLine& line, 37 if (line[0].fX == line[1].fX) { 38 double top = line[0].fY; 39 double bottom = line[1].fY; 45 result = intersections.vertical(quad, top, bottom, line[0].fX, flipped); 46 } else if (line[0].fY == line[1].fY) 64 SkDLine line; member in struct:oneLineQuad 90 const SkDLine& line = oneOffs[index].line; local 119 const SkDLine& line = lineQuadTests[index].line; local [all...] |
/external/strace/xlat/ |
gen.sh | 43 local line 44 line="$1"; shift 47 val="$(printf %s "$line" | 51 def="$(printf %s "${line}" | 96 local line val m def xlat 97 line="$1"; shift 99 val="$(printf %s "${line}" | sed -r -n 's/^([^[:space:]]+).*$/\1/p')" 101 def="$(printf %s "${line}" | 148 local unconditional= line 150 while read line; d [all...] |
/external/cldr/tools/java/org/unicode/cldr/util/ |
FileProcessor.java | 22 * @param line 25 protected boolean handleLine(int lineCount, String line) { 36 public void handleComment(String line, int commentCharPosition) { 73 String line = null; local 77 line = in.readLine(); 78 if (line == null) { 81 int comment = line.indexOf("#"); 83 handleComment(line, comment); 84 line = line.substring(0, comment) [all...] |
/external/jemalloc/test/unit/ |
prof_active.c | 9 mallctl_bool_get(const char *name, bool expected, const char *func, int line) 16 "%s():%d: Unexpected mallctl failure reading %s", func, line, name); 17 assert_b_eq(old, expected, "%s():%d: Unexpected %s value", func, line, 23 const char *func, int line) 32 line, name); 34 line, name); 39 int line) 42 mallctl_bool_get("prof.active", prof_active_old_expected, func, line); 49 bool prof_active_new, const char *func, int line) 53 prof_active_new, func, line); 87 line); local 91 "%s():%d: Unexpected backtrace count", func, line); local [all...] |
/external/jemalloc_new/test/unit/ |
prof_active.c | 4 mallctl_bool_get(const char *name, bool expected, const char *func, int line) { 10 "%s():%d: Unexpected mallctl failure reading %s", func, line, name); 11 assert_b_eq(old, expected, "%s():%d: Unexpected %s value", func, line, 17 const char *func, int line) { 25 line, name); 27 line, name); 32 int line) { 33 mallctl_bool_get("prof.active", prof_active_old_expected, func, line); 40 bool prof_active_new, const char *func, int line) { 42 prof_active_new, func, line); 71 line); local 75 "%s():%d: Unexpected backtrace count", func, line); local [all...] |
/external/libdrm/amdgpu/ |
amdgpu_asic_id.c | 37 static int parse_one_line(struct amdgpu_device *dev, const char *line) 48 /* ignore empty line and commented line */ 49 if (strlen(line) == 0 || line[0] == '#') 52 buf = strdup(line); 110 char *line = NULL; local 123 /* 1st valid line is file version */ 124 while ((n = getline(&line, &len, fp)) != -1) { 126 if (line[n - 1] == '\n' [all...] |
/external/tensorflow/tensorflow/contrib/cmake/ |
python_sanity_test.py | 43 lines = [line.strip() for line in lines] 44 lines = [line for line in lines if line] 49 for line in lines: 50 # line is comment 51 if line.startswith("#"): 52 line = line[1:].strip( [all...] |
/external/v8/tools/ignition/ |
linux_perf_bytecode_annotate.py | 40 for line in perf_stream: 42 if line[0] == "#": 44 line = line.strip() 46 # Empty line signals the end of the callchain. 47 if not line: 54 symbol_and_offset = line.split(" ", 1)[1] 72 for line in ignition_codegen: 73 if line.startswith(name_string): 77 for line in ignition_codegen [all...] |