Home
last modified time | relevance | path

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

123

/build/make/tools/product_config/test/com/android/build/config/
DOptionsTest.java26 private Options parse(Errors errors, String[] args) { in parse() argument
30 final Options.Parser parser = new Options.Parser(errors, args, env); in parse()
37 final Errors errors = new Errors(); in testErrorMissingLast() local
39 final Options options = parse(errors, new String[] { in testErrorMissingLast()
43 Assert.assertNotEquals("", TestErrors.getErrorMessages(errors)); in testErrorMissingLast()
45 TestErrors.assertHasEntry(errors.ERROR_COMMAND_LINE, errors); in testErrorMissingLast()
50 final Errors errors = new Errors(); in testErrorMissingNotLast() local
52 final Options options = parse(errors, new String[] { in testErrorMissingNotLast()
56 Assert.assertNotEquals("", TestErrors.getErrorMessages(errors)); in testErrorMissingNotLast()
58 TestErrors.assertHasEntry(errors.ERROR_COMMAND_LINE, errors); in testErrorMissingNotLast()
[all …]
DErrorReporterTest.java31 TestErrors errors = new TestErrors(); in testAdding() local
33 errors.ERROR.add(new Position("a", 12), "Errrororrrr"); in testAdding()
35 Assert.assertTrue(errors.hadWarningOrError()); in testAdding()
36 Assert.assertTrue(errors.hadError()); in testAdding()
38 List<TestErrors.Entry> entries = errors.getEntries(); in testAdding()
42 Assert.assertEquals(errors.ERROR, entry.getCategory()); in testAdding()
47 Assert.assertNotEquals("", errors.getErrorMessages()); in testAdding()
55 TestErrors errors = new TestErrors(); in testNoError() local
57 Assert.assertFalse(errors.hadWarningOrError()); in testNoError()
58 Assert.assertFalse(errors.hadError()); in testNoError()
[all …]
DTestErrors.java57 public static void assertHasEntry(Errors.Category category, ErrorReporter errors) { in assertHasEntry() argument
59 for (Errors.Entry entry: errors.getEntries()) { in assertHasEntry()
70 public static String getErrorMessages(ErrorReporter errors) { in getErrorMessages() argument
73 errors.printErrors(new PrintStream(stream, true, StandardCharsets.UTF_8.name())); in getErrorMessages()
/build/make/tools/product_config/src/com/android/build/config/
DMain.java28 public Main(Errors errors, Options options) { in Main() argument
29 mErrors = errors; in Main()
82 Errors errors = new Errors(); in main() local
86 Options options = Options.parse(errors, args, System.getenv()); in main()
87 if (errors.hadError()) { in main()
95 (new Main(errors, options)).run(); in main()
114 errors.printErrors(System.err); in main()
115 if (errors.hadError()) { in main()
DKatiImpl.java47 public KatiImpl(Errors errors, Options options) { in KatiImpl() argument
48 this(errors, options, new KatiCommandImpl(errors, options)); in KatiImpl()
52 public KatiImpl(Errors errors, Options options, KatiCommand command) { in KatiImpl() argument
53 mErrors = errors; in KatiImpl()
DOptions.java103 public Parser(Errors errors, String[] args, Map<String,String> env) { in Parser() argument
104 mErrors = errors; in Parser()
234 public static Options parse(Errors errors, String[] args, Map<String, String> env) { in parse() argument
235 return (new Parser(errors, args, env)).parse(); in parse()
DKatiCommandImpl.java63 public KatiCommandImpl(Errors errors, Options options) { in KatiCommandImpl() argument
64 mErrors = errors; in KatiCommandImpl()
DDumpConfigParser.java60 private DumpConfigParser(Errors errors, String filename, Reader reader) { in DumpConfigParser() argument
61 mErrors = errors; in DumpConfigParser()
69 public static Map<String,MakeConfig> parse(Errors errors, String filename, Reader reader) in parse() argument
71 DumpConfigParser parser = new DumpConfigParser(errors, filename, reader); in parse()
/build/soong/python/
Dpython_test.go55 errors []string
67 errors: []string{
85 errors: []string{
107 errors: []string{
142 errors: []string{
167 errors: []string{
215 errors: []string{
332 errorPatterns := make([]string, len(d.errors))
333 for i, s := range d.errors {
/build/soong/android/
Dpackage_ctx.go45 errors []error member
58 e.errors = append(e.errors, fmt.Errorf(format, args...))
80 if len(ctx.errors) > 0 {
81 return "", ctx.errors[0]
95 if len(ctx.errors) > 0 {
96 return params, ctx.errors[0]
111 if len(ctx.errors) > 0 {
112 return params, ctx.errors[0]
Dnamespace_test.go174 errors.New(
397errors.New(`dir1/Android.bp:2:4: module "soong_namespace": namespace a_nonexistent_namespace does …
426 errors.New(`dir1/subdir1/Android.bp:4:4: "b" depends on undefined module "a"
489 errors.New(`dir3/Android.bp:5:4: "c" depends on undefined module "a"
511 errors.New(`dir1/Android.bp:4:4: namespace dir1 already exists`),
532 errors.New(`dir1/Android.bp:5:4: a namespace must be the first module in the file`),
556 errors.New(`dir1/Android.bp:7:4: module "a" already defined
578 errors.New(`include.bp:2:5: A namespace may only be declared in a file named Android.bp`),
Dpaths_test.go58 err: []error{errors.New("Path is outside directory: ..")},
63 err: []error{errors.New("Path is outside directory: ../a")},
68 err: []error{errors.New("Path is outside directory: ../a")},
73 err: []error{errors.New("Path is outside directory: /a")},
78 err: []error{errors.New("Path is outside directory: ../b")},
83 err: []error{errors.New("Path is outside directory: ../c")},
88 err: []error{errors.New("Path is outside directory: ..")},
103 err: []error{errors.New("Path contains invalid character($): $host/../$a")},
108 err: []error{errors.New("Path contains invalid character($): $host/..")},
120 check(t, "validateSafePath", p(testCase.in), out, ctx.errors, testCase.out, testCase.err)
[all …]
/build/soong/cmd/diff_target_files/
Dglob.go27 return false, errors.New("pattern has '**' as last path element")
48 return false, errors.New("pattern contains multiple '**'")
63 return false, errors.New("pattern contains other characters between '**' and path separator")
/build/make/tools/
Dmerge-event-log-tags.py38 errors = [] variable
131 errors.extend(tagfile.errors)
134 if errors:
135 for fn, ln, msg in errors:
Devent_log_tags.py36 self.errors.append((self.filename, linenum, msg))
47 self.errors = []
Djava-event-log-tags.py93 if tagfile.errors:
94 for fn, ln, msg in tagfile.errors:
/build/blueprint/proptools/
Dunpack_test.go797 errors []string
807 errors: []string{`<input>:3:13: unrecognized property "missing"`},
823 errors: []string{`<input>:4:14: unrecognized property "nested.missing"`},
837 errors: []string{`<input>:3:13: mutated field mutated cannot be set in a Blueprint file`},
855 errors: []string{`<input>:4:14: mutated field nested.mutated cannot be set in a Blueprint file`},
870 errors: []string{
892 errors: []string{
909 errors: []string{
927 errors: []string{
943 errors: []string{
[all …]
Dextend_test.go792 err: errors.New("expected pointer to struct, got struct {}"),
799 err: errors.New("expected pointer to struct, got struct {}"),
806 err: errors.New("expected pointer to struct, got *[]string"),
813 err: errors.New("expected pointer to struct, got *[]string"),
827 …err: errors.New("expected matching types for dst and src, got *struct { A string } and *struct { B…
1096 return Append, errors.New("unknown order")
1314 err: errors.New("expected pointer to struct, got struct {}"),
1321 err: errors.New("expected pointer to struct, got struct {}"),
1328 err: errors.New("expected pointer to struct, got *[]string"),
1335 err: errors.New("expected pointer to struct, got *[]string"),
[all …]
/build/soong/zip/
Dzip.go210 errors chan error member
439 z.errors = make(chan error)
440 defer close(z.errors)
463 return errors.New("must specify --jar when specifying a manifest via -m")
484 z.errors <- err
564 case err := <-z.errors:
571 case err := <-z.errors:
795 z.errors <- err
809 z.errors <- err
857 z.errors <- err
[all …]
/build/soong/third_party/zip/
Dandroid.go139 return nil, errors.New("archive/zip: invalid duplicate FileHeader")
186 return 0, errors.New("zip: write to closed file")
193 return errors.New("zip: file closed twice")
Dregister.go50 return 0, errors.New("Write after Close")
88 return 0, errors.New("Read after Close")
/build/blueprint/parser/
Dparser.go27 var errTooManyErrors = errors.New("too many errors")
66 errs = p.errors
75 errs = p.errors
104 errors []error member
132 p.errors = append(p.errors, err)
133 if len(p.errors) >= maxErrors {
/build/soong/androidmk/parser/
Dparser.go25 var errTooManyErrors = errors.New("too many errors")
57 return p.nodes, p.errors
63 errors []error member
112 p.errors = append(p.errors, err)
113 if len(p.errors) >= maxErrors {
/build/soong/ui/logger/
Dlogger.go282 panic(fatalLog{errors.New(output)})
290 panic(fatalLog{errors.New(output)})
298 panic(fatalLog{errors.New(output)})
/build/blueprint/pathtools/
Dglob.go33 var GlobMultipleRecursiveErr = errors.New("pattern contains multiple '**'")
34 var GlobLastRecursiveErr = errors.New("pattern has '**' as last path element")
35 var GlobInvalidRecursiveErr = errors.New("pattern contains other characters between '**' and path s…

123