/build/blueprint/ |
D | context_test.go | 157 _, _, errs := ctx.parseOne(".", "Blueprint", r, parser.NewScope(nil), nil) 158 if len(errs) > 0 { 160 for _, err := range errs { 166 _, errs = ctx.ResolveDependencies(nil) 167 if len(errs) > 0 { 169 for _, err := range errs { 223 _, errs := ctx.ParseBlueprintsFiles("Blueprints", nil) 224 if len(errs) > 0 { 226 for _, err := range errs { 232 _, errs = ctx.ResolveDependencies(nil) [all …]
|
D | module_ctx_test.go | 99 _, errs := ctx.ParseFileList(".", []string{"Blueprints"}, nil) 100 if len(errs) > 0 { 102 for _, err := range errs { 107 _, errs = ctx.ResolveDependencies(nil) 108 if len(errs) > 0 { 111 for _, err := range errs { 115 for _, err := range errs { 226 _, errs := ctx.ParseFileList(".", []string{"Blueprints"}, nil) 227 if len(errs) > 0 { 229 for _, err := range errs { [all …]
|
D | context.go | 729 config interface{}) (deps []string, errs []error) { 740 config interface{}) (deps []string, errs []error) { 776 newModules, newDeps, errs := runAndRemoveLoadHooks(c, config, module, &scopedModuleFactories) 777 if len(errs) > 0 { 778 return errs 784 errs = addModule(n) 785 if len(errs) > 0 { 786 return errs 795 …module, errs := processModuleDef(def, file.Name, c.moduleFactories, scopedModuleFactories, c.ignor… 796 if len(errs) == 0 && module != nil { [all …]
|
D | provider_test.go | 135 _, errs := ctx.ParseBlueprintsFiles("Blueprints", nil) 136 if len(errs) == 0 { 137 _, errs = ctx.ResolveDependencies(nil) 139 if len(errs) == 0 { 140 _, errs = ctx.PrepareBuildActions(nil) 142 if len(errs) > 0 { 144 for _, err := range errs { 328 _, errs := ctx.ParseBlueprintsFiles("Blueprints", nil) 330 if len(errs) == 0 { 331 _, errs = ctx.ResolveDependencies(nil) [all …]
|
D | module_ctx.go | 374 errs []error member 415 d.errs = append(d.errs, err) 462 return len(d.errs) > 0 511 m.errs = append(m.errs, &ModuleError{ 1020 …modules, errs := mctx.context.createVariations(mctx.module, mctx.name, mctx.defaultVariation, vari… 1021 if len(errs) > 0 { 1022 mctx.errs = append(mctx.errs, errs...) 1117 depInfo, errs := mctx.context.addDependency(modInfo, tag, dep) 1118 if len(errs) > 0 { 1119 mctx.errs = append(mctx.errs, errs...) [all …]
|
D | visit_test.go | 128 _, errs := ctx.ParseBlueprintsFiles("Blueprints", nil) 129 if len(errs) > 0 { 131 for _, err := range errs { 137 _, errs = ctx.ResolveDependencies(nil) 138 if len(errs) > 0 { 140 for _, err := range errs {
|
/build/soong/android/ |
D | namespace_test.go | 146 _, errs := setupTestExpectErrs(t, 180 if len(errs) != 1 || errs[0].Error() != expectedErrors[0].Error() { 181 t.Errorf("Incorrect errors. Expected:\n%v\n, got:\n%v\n", expectedErrors, errs) 381 _, errs := setupTestExpectErrs(t, 399 if len(errs) != 1 || errs[0].Error() != expectedErrors[0].Error() { 400 t.Errorf("Incorrect errors. Expected:\n%v\n, got:\n%v\n", expectedErrors, errs) 405 _, errs := setupTestExpectErrs(t, 430 if len(errs) != 1 || errs[0].Error() != expectedErrors[0].Error() { 431 t.Errorf("Incorrect errors. Expected:\n%v\n, got:\n%v\n", expectedErrors, errs) 458 _, errs := setupTestExpectErrs(t, [all …]
|
/build/soong/android/soongconfig/ |
D | modules.go | 37 file, errs := parser.ParseAndEval(from, r, scope) 39 if len(errs) > 0 { 40 return nil, errs 54 errs = append(errs, newErrs...) 64 if len(errs) > 0 { 65 return nil, errs 83 func processImportModuleDef(v *SoongConfigDefinition, def *parser.Module) (errs []error) { 125 func processModuleTypeDef(v *SoongConfigDefinition, def *parser.Module) (errs []error) { 129 _, errs = proptools.UnpackProperties(def.Properties, props) 130 if len(errs) > 0 { [all …]
|
/build/blueprint/bootstrap/bpdoc/ |
D | bpdoc_test.go | 140 nestedProps, errs := findAllProperties("", p.Properties) 142 for _, err := range errs { 156 errs := []error{} 165 errs = append(errs, err) 170 errs = append(errs, nestedErrs...) 172 return foundProps, errs
|
/build/blueprint/proptools/ |
D | unpack_test.go | 31 errs []error 731 file, errs := parser.ParseAndEval("", r, parser.NewScope(nil)) 732 if len(errs) != 0 { 735 for _, err := range errs { 758 _, errs = UnpackProperties(module.Properties, output...) 759 if len(errs) != 0 && len(testCase.errs) == 0 { 762 for _, err := range errs { 766 } else if !reflect.DeepEqual(errs, testCase.errs) { 769 t.Errorf(" expected: %+v", testCase.errs) 770 t.Errorf(" got: %+v", errs) [all …]
|
D | unpack.go | 49 errs []error member 73 return nil, unpackContext.errs 83 if len(unpackContext.errs) >= maxUnpackErrors { 84 return nil, unpackContext.errs 99 if len(unusedNames) == 0 && len(unpackContext.errs) == 0 { 116 ctx.errs = append(ctx.errs, &UnpackError{ 121 return ctx.errs 125 nOldErrors := len(ctx.errs) 168 return len(ctx.errs) == nOldErrors 179 ctx.errs = append(ctx.errs, e) [all …]
|
/build/soong/makedeps/ |
D | deps.go | 33 nodes, errs := p.Parse() 35 if len(errs) == 1 { 36 return nil, errs[0] 37 } else if len(errs) > 1 { 38 return nil, fmt.Errorf("many errors: %v", errs)
|
/build/blueprint/bootstrap/ |
D | command.go | 229 blueprintFiles, errs := ctx.ParseFileList(filepath.Dir(args.TopFile), filesToParse, config) 230 if len(errs) > 0 { 231 fatalErrors(errs) 237 extraDeps, errs := ctx.ResolveDependencies(config) 238 if len(errs) > 0 { 239 fatalErrors(errs) 257 extraDeps, errs = ctx.PrepareBuildActions(config) 258 if len(errs) > 0 { 259 fatalErrors(errs) 292 buffer, errs := generateGlobNinjaFile(bootstrapConfig, config, ctx.Globs) [all …]
|
D | glob.go | 220 extraDeps, errs := ctx.ResolveDependencies(config) 224 if len(errs) > 0 { 225 return nil, errs 228 extraDeps, errs = ctx.PrepareBuildActions(config) 232 if len(errs) > 0 { 233 return nil, errs
|
/build/soong/bp2build/ |
D | build_conversion_test.go | 183 _, errs := ctx.ParseFileList(dir, []string{"Android.bp"}) 184 android.FailIfErrored(t, errs) 185 _, errs = ctx.PrepareBuildActions(config) 186 android.FailIfErrored(t, errs) 326 _, errs := ctx.ParseFileList(dir, []string{"Android.bp"}) 327 if Errored(t, "", errs) { 330 _, errs = ctx.ResolveDependencies(config) 331 if Errored(t, "", errs) { 491 _, errs := ctx.ParseFileList(dir, []string{"Android.bp"}) 492 android.FailIfErrored(t, errs) [all …]
|
D | cc_object_conversion_test.go | 224 _, errs := ctx.ParseFileList(dir, toParse) 225 if Errored(t, testCase.description, errs) { 228 _, errs = ctx.ResolveDependencies(config) 229 if Errored(t, testCase.description, errs) { 404 _, errs := ctx.ParseFileList(dir, toParse) 405 if Errored(t, testCase.description, errs) { 408 _, errs = ctx.ResolveDependencies(config) 409 if Errored(t, testCase.description, errs) {
|
D | sh_conversion_test.go | 103 _, errs := ctx.ParseFileList(dir, toParse) 104 if Errored(t, testCase.description, errs) { 107 _, errs = ctx.ResolveDependencies(config) 108 if Errored(t, testCase.description, errs) {
|
/build/soong/androidmk/cmd/ |
D | androidmk.go | 47 output, errs := androidmk.ConvertFile(os.Args[1], bytes.NewBuffer(b)) 51 if len(errs) > 0 { 52 for _, err := range errs {
|
/build/soong/partner/androidmk/ |
D | androidmk.go | 49 output, errs := androidmk.ConvertFile(os.Args[1], bytes.NewBuffer(b)) 50 if len(errs) > 0 { 51 for _, err := range errs {
|
D | androidmk_test.go | 63 …got, errs := androidmk.ConvertFile(fmt.Sprintf("<testcase %d>", i), bytes.NewBufferString(test.in)) 64 if len(errs) > 0 { 65 t.Errorf("Unexpected errors: %q", errs)
|
/build/blueprint/bpmodify/ |
D | bpmodify.go | 79 file, errs := parser.Parse(filename, r, parser.NewScope(nil)) 80 if len(errs) > 0 { 81 for _, err := range errs { 84 return fmt.Errorf("%d parsing errors", len(errs)) 87 modified, errs := findModules(file) 88 if len(errs) > 0 { 89 for _, err := range errs { 127 func findModules(file *parser.File) (modified bool, errs []error) { 135 errs = append(errs, newErrs...) 143 return modified, errs [all …]
|
D | bpmodify_test.go | 305 inAst, errs := parser.ParseAndEval("", strings.NewReader(testCase.input), parser.NewScope(nil)) 306 if len(errs) > 0 { 307 for _, err := range errs { 318 _, errs := processModule(inModule, "", inAst) 319 if len(errs) > 0 { 321 for _, err := range errs {
|
/build/soong/androidmk/parser/ |
D | parser_test.go | 43 got, errs := p.Parse() 45 if len(errs) != 0 { 46 t.Fatalf("Unexpected errors while parsing: %v", errs)
|
/build/soong/apex/ |
D | classpath_element_test.go | 33 errs []error member 45 t.errs = append(t.errs, t.testContext.ModuleErrorf(t.module, fmt, args...)) 254 …ndroid.FailIfNoMatchingErrors(t, "fragment non-apex-fragment{.*} is not part of an apex", ctx.errs) 263 …s multiple fragments, art-bootclasspath-fragment{.*} and art-bootclasspath-fragment{.*}", ctx.errs) 272 …two separate fragments, art-bootclasspath-fragment{.*} and mybootclasspath-fragment{.*}", ctx.errs) 288 …{.*} are separated by libraries from fragment mybootclasspath-fragment{.*} like bar{.*}", ctx.errs) 302 …ex10000} from fragment art-bootclasspath-fragment{.*} are separated by library quuz{.*}", ctx.errs) 315 …[otherapex\] which have no corresponding fragment in \[art-bootclasspath-fragment{.*}\]`, ctx.errs)
|
/build/soong/cc/ |
D | test_data_test.go | 130 _, errs := ctx.ParseBlueprintsFiles("Blueprints") 131 android.FailIfErrored(t, errs) 132 _, errs = ctx.PrepareBuildActions(config) 133 android.FailIfErrored(t, errs)
|