Home
last modified time | relevance | path

Searched refs:indent (Results 1 – 25 of 25) sorted by relevance

/build/soong/scripts/
Dmanifest_fixer.py102 indent = get_indent(manifest.firstChild, 1)
107 manifest.insertBefore(doc.createTextNode(indent), manifest.firstChild)
156 indent = get_indent(manifest.firstChild, 1)
158 manifest.insertBefore(doc.createTextNode(indent), first)
161 indent = get_indent(application.firstChild, 2)
172 application.insertBefore(doc.createTextNode(indent), last)
179 indent = get_indent(application.previousSibling, 1)
180 application.appendChild(doc.createTextNode(indent))
201 indent = get_indent(manifest.firstChild, 1)
203 manifest.insertBefore(doc.createTextNode(indent), first)
[all …]
Dmanifest.py113 indent = ''
116 indent = text[:len(text)-len(text.lstrip())]
117 if not indent or indent == '\n':
119 indent = '\n' + (' ' * default_level * 4)
120 return indent
Djsonmodify.py135 json.dump(obj, f, indent=2, separators=(',', ': '))
138 print(json.dumps(obj, indent=2, separators=(',', ': ')))
/build/soong/bp2build/
Dconfigurability.go161 func prettyPrintAttribute(v bazel.Attribute, indent int) (string, error) {
211 s, err := prettyPrint(value, indent, false) // never emit zero values for the base value
220 selectMap, err := prettyPrintSelectMap(selectsData, defaultValue, indent, emitZeroValues)
253 func prettyPrintSelectMap(selectMap map[string]reflect.Value, defaultValue *string, indent int, emi…
270 s, err := prettyPrintSelectEntry(value, selectKey, indent, true)
284 return prettyPrint(val, indent, emitZeroValues)
295 …ectMap[bazel.ConditionsDefaultSelectKey], bazel.ConditionsDefaultSelectKey, indent, emitZeroValues)
306 …ret += fmt.Sprintf("%s\"%s\": %s,\n", starlark_fmt.Indention(indent+1), bazel.ConditionsDefaultSel…
309 ret += starlark_fmt.Indention(indent)
317 func prettyPrintSelectEntry(value reflect.Value, key string, indent int, emitZeroValues bool) (stri…
[all …]
Dbuild_conversion.go445 func prettyPrint(propertyValue reflect.Value, indent int, emitZeroValues bool) (string, error) {
468 return prettyPrint(propertyValue.Elem(), indent, emitZeroValues)
472 val, err := prettyPrint(propertyValue.Index(i), indent, emitZeroValues)
480 return starlark_fmt.PrintList(elements, indent, func(s string) string {
488 return prettyPrintAttribute(attr, indent)
494 structProps, err := extractStructProperties(propertyValue, indent)
503 return starlark_fmt.PrintDict(structProps, indent), nil
510 return starlark_fmt.PrintStringStringDict(v, indent), nil
523 func extractStructProperties(structValue reflect.Value, indent int) (map[string]string, error) {
550 propsToMerge, err := extractStructProperties(fieldValue, indent)
[all …]
/build/make/tools/warn/
D.pylintrc4 indent-string=' '
/build/make/core/
Ddex_preopt_config_merger.py96 f.write(json.dumps(cfgs[0], indent=4, separators=(',', ': ')))
/build/blueprint/parser/
Dprinter.go160 p.indent(p.curIndent() + 4)
192 p.indent(p.curIndent() + 4)
248 p.indent(p.curIndent() + 4)
268 p.indent(p.curIndent() + 4)
294 p.indent(p.curIndent() + 4)
481 func (p *printer) indent(i int) { func
/build/soong/starlark_fmt/
Dformat.go26 indent = 4 const
34 return strings.Repeat(" ", level*indent)
/build/soong/scripts/hiddenapi/
Danalyze_bcpf.py165 def snippet(self, indent): argument
167 snippet += format_comment_as_text(self.property_comment, indent)
292 indent = extract_indent(lines[property_line_index + 1])
307 indent = extract_indent(lines[property_line_index])
309 indent)
932 insert = textwrap.indent("\n".join(matched_signatures),
1387 def format_comment_as_text(text, indent): argument
1389 [f"{line}\n" for line in format_comment_as_lines(text, indent)])
1392 def format_comment_as_lines(text, indent): argument
1393 lines = textwrap.wrap(text.strip("\n"), width=77 - len(indent))
/build/bazel/scripts/incremental_build/
Dui.py135 textwrap.indent(
139 textwrap.indent(util.get_csv_columns_cmd(default_log_dir), " " * 4),
Dperf_metrics.py91 json.dump(build_info, f, indent=True, cls=util.CustomEncoder)
Dincremental_build.py320 logging.info(json.dumps(build_info, indent=2, cls=util.CustomEncoder))
/build/blueprint/bootstrap/bpdoc/
Dproperties.go348 indent := unicode.IsSpace(r)
349 if indent && !preformatted {
352 } else if !indent && line != "" && preformatted {
/build/make/tools/releasetools/
Dedify_generator.py45 indent = cmd.index("(")+1
48 x = re.compile("^(.{,%d})\0" % (linelen-indent,))
51 out.append(" " * indent)
Dfind_shareduid_violation.py123 return json.dumps(output, indent=2, sort_keys=True)
Dpylintrc269 indent-string=' '
271 # Number of spaces of indent required inside a hanging or continued line.
272 indent-after-paren=4
Dsign_target_files_apks.py846 indent = len(line_info_parsed.group(1))
851 while indent <= indent_stack[-1][0]:
860 indent_stack.append([indent, empty_list])
864 indent_stack.append([indent, empty_dict])
/build/make/tools/
Dfind_static_candidates.py218 print(json.dumps(module_info[args.module], default=list, indent=2))
/build/soong/tests/
Dgenrule_sandbox_test.py197 print(textwrap.indent(d, " "))
/build/soong/bin/
Dsoongdbg360 json.dump([m for m in modules], sys.stdout, indent=4, default=lambda o: o.__dict__)
363 json.dump(m, sys.stdout, indent=4, default=lambda o: o.__dict__)
/build/make/tools/sbom/
Dsbom_writers.py356 file.write(json.dumps(doc, indent=4))
/build/soong/cmd/soong_build/
Dwritedocs.go312 .accordion,.simple{margin-left:1.5em;text-indent:-1.5em;margin-top:.25em}
/build/make/tools/perf/
Dbenchmarks469 json.dump(data, f, indent=2, sort_keys=True)
/build/make/tools/droiddoc/templates-pdk/assets/
Dandroid-developer-core.css377 div.indent {