Home
last modified time | relevance | path

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

123

/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/kati/
Drule_parser.go189 return nil, errors.New("*** missing separator.")
201 return nil, errors.New("*** mixed implicit and normal rules: deprecated syntax")
245 return nil, errors.New("*** mixed implicit and normal rules: deprecated syntax")
254 return nil, errors.New("*** missing target pattern.")
258 return nil, errors.New("*** target pattern contains no '%'.")
262 return nil, errors.New("*** multiple target patterns.")
Dpathutil.go523 errNotFind = errors.New("not find command")
524 errFindBackground = errors.New("find command: background")
525 errFindUnbalancedQuote = errors.New("find command: unbalanced quote")
526 errFindDupChdir = errors.New("find command: dup chdir")
527 errFindDupTestdir = errors.New("find command: dup testdir")
528 errFindExtra = errors.New("find command: extra")
529 errFindUnexpectedEnd = errors.New("find command: unexpected end")
530 errFindAbspath = errors.New("find command: abs path")
531 errFindNoSuchDir = errors.New("find command: no such dir")
894 errNotFindleaves = errors.New("not findleaves command")
[all …]
Dexpr.go30 errEndOfInput = errors.New("unexpected end of input")
31 errNotLiteral = errors.New("valueNum: not literal")
33 errUnterminatedVariableReference = errors.New("*** unterminated variable reference.")
427 return nil, 0, errors.New("empty expr")
430 return nil, 0, errors.New("should starts with $")
433 return nil, 0, errors.New("should handle $$ as literal $")
Dbuf.go24 New: func() interface{} { return new(evalBuffer) },
27 New: func() interface{} { return new(wordBuffer) },
/build/soong/ui/logger/
Dlogger_test.go101 log := New(&bytes.Buffer{})
132 log := New(&bytes.Buffer{})
154 log := New(&bytes.Buffer{})
169 log := New(&bytes.Buffer{})
185 log := New(&bytes.Buffer{})
Dlogger.go151 func New(out io.Writer) *stdLogger { func
153 stderr: log.New(out, "", log.Ltime),
154 fileLogger: log.New(ioutil.Discard, "", log.Ldate|log.Lmicroseconds|log.Llongfile),
282 panic(fatalLog{errors.New(output)})
290 panic(fatalLog{errors.New(output)})
298 panic(fatalLog{errors.New(output)})
/build/soong/finder/cmd/
Dfinder.go104 logger := log.New(writer, "", log.Ldate|log.Lmicroseconds|log.Lshortfile)
128 return errors.New("Param 'db' must be nonempty")
150 service, err := finder.New(params, fs.OsFs, logger, dbPath)
/build/soong/cc/
Dvndk.go168 return errors.New("VNDK-SP extensions must not depend on VNDK or VNDK extensions")
177 return errors.New("VNDK-core and VNDK-SP must not depend on VNDK extensions")
181 return errors.New("VNDK-SP must only depend on VNDK-SP")
186 return errors.New("VNDK-core must only depend on VNDK-core or VNDK-SP")
/build/soong/python/
Dpython_test.go373 testErrs = append(testErrs, errors.New(v))
379 testErrs = append(testErrs, errors.New(v))
402 testErrs = append(testErrs, errors.New(fmt.Sprintf(
410 testErrs = append(testErrs, errors.New(fmt.Sprintf(
421 testErrs = append(testErrs, errors.New(fmt.Sprintf(
/build/blueprint/proptools/
Dclone.go24 result := reflect.New(structValue.Type())
82 newValue := reflect.New(srcFieldValue.Type()).Elem()
113 newValue := reflect.New(srcFieldValue.Type())
181 result := reflect.New(structValue.Type())
218 newValue := reflect.New(srcFieldValue.Type()).Elem()
Dextend_test.go672 err: errors.New("expected pointer to struct, got struct {}"),
679 err: errors.New("expected pointer to struct, got struct {}"),
686 err: errors.New("expected pointer to struct, got *[]string"),
693 err: errors.New("expected pointer to struct, got *[]string"),
707 …err: errors.New("expected matching types for dst and src, got *struct { A string } and *struct { B…
1183 err: errors.New("expected pointer to struct, got struct {}"),
1190 err: errors.New("expected pointer to struct, got struct {}"),
1197 err: errors.New("expected pointer to struct, got *[]string"),
1204 err: errors.New("expected pointer to struct, got *[]string"),
/build/soong/android/
Dnamespace_test.go154 errors.New(
377 …errors.New(`dir1/Android.bp:2:4: module "soong_namespace": namespace a_nonexistent_namespace does …
406 errors.New(`dir1/subdir1/Android.bp:4:4: "b" depends on undefined module "a"
469 errors.New(`dir3/Android.bp:5:4: "c" depends on undefined module "a"
491 errors.New(`dir1/Android.bp:4:4: namespace dir1 already exists`),
512 errors.New(`dir1/Android.bp:5:4: a namespace must be the first module in the file`),
536 errors.New(`dir1/Android.bp:7:4: module "a" already defined
558 errors.New(`include.bp:2:5: A namespace may only be declared in a file named Android.bp`),
Dpaths_test.go60 err: []error{errors.New("Path is outside directory: ..")},
65 err: []error{errors.New("Path is outside directory: ../a")},
70 err: []error{errors.New("Path is outside directory: ../a")},
75 err: []error{errors.New("Path is outside directory: /a")},
80 err: []error{errors.New("Path is outside directory: ../b")},
85 err: []error{errors.New("Path is outside directory: ../c")},
90 err: []error{errors.New("Path is outside directory: ..")},
105 err: []error{errors.New("Path contains invalid character($): $host/../$a")},
110 err: []error{errors.New("Path contains invalid character($): $host/..")},
Dfilegroup.go74 var androidMkTemplate = template.Must(template.New("filegroup").Parse(`
/build/soong/third_party/zip/
Dandroid.go130 return nil, errors.New("archive/zip: invalid duplicate FileHeader")
177 return 0, errors.New("zip: write to closed file")
184 return errors.New("zip: file closed twice")
Dregister.go50 return 0, errors.New("Write after Close")
88 return 0, errors.New("Read after Close")
Dwriter.go64 return errors.New("zip: writer closed twice")
222 return nil, errors.New("archive/zip: invalid duplicate FileHeader")
338 return 0, errors.New("zip: write to closed file")
348 return errors.New("zip: file closed twice")
Dreader.go19 ErrFormat = errors.New("zip: not a valid zip file")
20 ErrAlgorithm = errors.New("zip: unsupported compression algorithm")
21 ErrChecksum = errors.New("zip: checksum error")
424 return nil, errors.New("zip: invalid comment length")
/build/soong/ui/build/
Dfinder.go72 f, err = finder.New(cacheParams, filesystem, logger.New(ioutil.Discard),
Dproc_sync_test.go207 noopLogger := logger.New(ioutil.Discard)
219 noopLogger := logger.New(ioutil.Discard)
231 noopLogger := logger.New(ioutil.Discard)
/build/soong/ui/status/
Dninja_test.go36 nr := NewNinjaReader(logger.New(ioutil.Discard), stat.StartTool(), filepath.Join(tempDir, "fifo"))
/build/blueprint/loadplugins/
Dloadplugins.go59 var pluginTmpl = template.Must(template.New("pluginloader").Parse(`
/build/soong/cmd/soong_ui/
Dmain.go61 log := logger.New(writer)
74 trace := tracer.New(log)
77 met := metrics.New()
/build/kati/testcase/
Dgen_testcase_parse_benchmark.go38 var tmpl = template.Must(template.New("benchmarktest").Parse(`

123