Lines Matching refs:contents
354 contents := bp.content.String()
355 syntaxCheckSnapshotBpFile(ctx, contents)
404 func syntaxCheckSnapshotBpFile(ctx android.ModuleContext, contents string) {
405 errs := android.CheckBlueprintSyntax(ctx, "Android.bp", contents)
410 Generated Android.bp contents
413 for i, line := range strings.Split(contents, "\n") {
530 func generateBpContents(contents *generatedContents, bpFile *bpFile) {
531 contents.Printfln("// This is auto-generated. DO NOT EDIT.")
533 contents.Printfln("")
534 contents.Printfln("%s {", bpModule.moduleType)
535 outputPropertySet(contents, bpModule.bpPropertySet)
536 contents.Printfln("}")
540 func outputPropertySet(contents *generatedContents, set *bpPropertySet) {
541 contents.Indent()
553 contents.Printfln("%s: [", name)
554 contents.Indent()
556 contents.Printfln("%q,", v[i])
558 contents.Dedent()
559 contents.Printfln("],")
561 contents.Printfln("%s: [],", name)
563 contents.Printfln("%s: [%q],", name, v[0])
567 contents.Printfln("%s: %t,", name, v)
573 contents.Printfln("%s: %q,", name, value)
583 contents.Printfln("%s: {", name)
584 outputPropertySet(contents, v)
585 contents.Printfln("},")
589 contents.Dedent()
593 contents := &generatedContents{}
594 generateBpContents(contents, s.builderForTests.bpFile)
595 return contents.content.String()