Home
last modified time | relevance | path

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

1234

/build/soong/rust/
Dandroidmk.go55 ret := android.AndroidMkData{
80 mod.subAndroidMk(&ret, mod.compiler)
82 mod.subAndroidMk(&ret, mod.sourceProvider)
84 ret.SubName += mod.Properties.SubName
86 return ret
89 func (binary *binaryDecorator) AndroidMk(ctx AndroidMkContext, ret *android.AndroidMkData) {
90 ctx.subAndroidMk(ret, binary.baseCompiler)
93 ret.DistFiles = android.MakeDefaultDistFiles(binary.distFile.Path())
96 ret.Class = "EXECUTABLES"
97 ret.Extra = append(ret.Extra, func(w io.Writer, outputFile android.Path) {
[all …]
/build/soong/python/
Dandroidmk.go42 ret := android.AndroidMkData{OutputFile: p.installSource}
44 p.subAndroidMk(&ret, p.installer)
46 return ret
49 func (p *binaryDecorator) AndroidMk(base *Module, ret *android.AndroidMkData) {
50 ret.Class = "EXECUTABLES"
52 ret.Extra = append(ret.Extra, func(w io.Writer, outputFile android.Path) {
58 base.subAndroidMk(ret, p.pythonInstaller)
61 func (p *testDecorator) AndroidMk(base *Module, ret *android.AndroidMkData) {
62 ret.Class = "NATIVE_TESTS"
64 ret.Extra = append(ret.Extra, func(w io.Writer, outputFile android.Path) {
[all …]
/build/soong/androidmk/parser/
Dmake_strings.go93 ret := unescape(ms.Strings[0])
95 ret += ms.Variables[i].Value(scope)
96 ret += unescape(ms.Strings[i+1])
98 return ret
106 ret := ms.Strings[0]
108 ret += ms.Variables[i].Dump()
109 ret += ms.Strings[i+1]
111 return ret
138 ret := []*MakeString{}
157 ret = append(ret, curMs)
[all …]
/build/soong/android/
Dutil.go46 ret := make([]byte, 0, n)
49 ret = append(ret, ' ')
51 ret = append(ret, prefix...)
52 ret = append(ret, s...)
54 return string(ret)
71 ret := make([]byte, 0, n)
74 ret = append(ret, separator...)
76 ret = append(ret, s...)
77 ret = append(ret, suffix...)
79 return string(ret)
[all …]
Dpaths.go234 ret := make(Paths, len(paths))
236 ret[i] = PathForSource(ctx, path)
238 return ret
245 ret := make(Paths, 0, len(paths))
249 ret = append(ret, p.Path())
252 return ret
273 ret, missingDeps := PathsAndMissingDepsForModuleSrcExcludes(ctx, paths, excludes)
281 return ret
292 ret := make(Paths, len(p))
294 ret[i] = path
[all …]
Dpath_properties.go66 var ret []string
82 ret = append(ret, sv.String())
84 ret = append(ret, sv.Interface().([]string)...)
91 return ret
/build/soong/scripts/
Dbuild_broken_logs.go214 ret := Branch{Logs: []ProductLog{}}
218 ret.Logs = append(ret.Logs, ParseProduct(ProductBranch{Branch: name, Name: product}))
221 ret.Settings = append(ret.Settings, buildBrokenSettings...)
222 if len(ret.Logs) > 0 {
223 for _, mtype := range ret.Logs[0].WarningModuleTypes {
227 ret.Settings = append(ret.Settings, Setting{
233 for _, mtype := range ret.Logs[0].ErrorModuleTypes {
237 ret.Settings = append(ret.Settings, Setting{
245 for _, productLog := range ret.Logs {
246 ScanProduct(ret.Settings, productLog)
[all …]
/build/soong/cc/config/
Dclang.go205 ret := make([]string, 0, len(cflags))
208 ret = append(ret, f)
212 return ret
216 ret := make([]string, 0, len(lldflags))
219 ret = append(ret, f)
223 return ret
Dtidy.go117 ret := make([]PathBasedTidyCheck, len(in))
119 ret[len(in)-i-1] = check
121 return ret
/build/blueprint/bootstrap/
Dglob.go96 ret := make([]byte, 0, n)
99 ret = append(ret, ' ')
101 ret = append(ret, prefix...)
102 ret = append(ret, '"')
103 ret = append(ret, s...)
104 ret = append(ret, '"')
106 return string(ret)
/build/soong/ui/build/
Dconfig.go95 ret := &configImpl{
100 ret.parallel = runtime.NumCPU() + 2
101 ret.keepGoing = 1
103 ret.totalRAM = detectTotalRAM(ctx)
105 ret.parseArgs(ctx, args)
108 if outDir, ok := ret.environ.Get("OUT_DIR"); ok {
109 ret.environ.Set("OUT_DIR", filepath.Clean(outDir))
112 if baseDir, ok := ret.environ.Get("OUT_DIR_COMMON_BASE"); ok {
119 ret.environ.Set("OUT_DIR", outDir)
122 if distDir, ok := ret.environ.Get("DIST_DIR"); ok {
[all …]
Ddumpvars.go55 var ret map[string]string
66 ret, err = dumpMakeVars(ctx, config, goals, makeVars, false, tmpDir)
68 return ret, err
71 ret = make(map[string]string)
76 ret[v] = f()
80 return ret, nil
114 ret := make(map[string]string, len(vars))
122 ret[key] = value
132 ctx.Metrics.SetMetadataMetrics(ret)
135 return ret, nil
Dexec.go43 ret := &Cmd{
53 return ret
142 ret, err := c.Output()
144 return ret
150 ret, err := c.CombinedOutput()
152 return ret
159 ret, err := c.CombinedOutput()
161 if len(ret) > 0 {
163 st.Error(string(ret))
165 st.Print(string(ret))
/build/soong/cmd/diff_target_files/
Dtarget_files.go47 var ret []*ZipArtifactFile
77 ret = append(ret, f)
81 ret = append(ret, f)
85 return ret, nil
Dallow_list.go34 var ret []allowList
37 for _, x := range ret {
44 ret = append(ret, allowList{
70 return ret, nil
163 var ret []byte
175 ret = append(ret, "\n"...)
176 ret = append(ret, s.Bytes()...)
180 return ret, nil
/build/soong/ui/terminal/
Dformat.go106 var ret string
110 ret = fmt.Sprintf("FAILED: %s\n%s", targets, result.Output)
112 ret = fmt.Sprintf("FAILED: %s\n%s\n%s", targets, result.Command, result.Output)
115 ret = result.Output
118 if len(ret) > 0 && ret[len(ret)-1] != '\n' {
119 ret += "\n"
122 return ret
/build/blueprint/parser/
Dast.go66 ret := *m
67 ret.Properties = make([]*Property, len(m.Properties))
69 ret.Properties[i] = m.Properties[i].Copy()
71 return &ret
98 ret := *p
99 ret.Value = p.Value.Copy()
100 return &ret
197 ret := *x
198 ret.Args[0] = x.Args[0].Copy()
199 ret.Args[1] = x.Args[1].Copy()
[all …]
/build/blueprint/bootstrap/bpdoc/
Dproperties.go36 ret := *ps
37 ret.Properties = append([]Property(nil), ret.Properties...)
38 for i, prop := range ret.Properties {
39 ret.Properties[i] = prop.Clone()
42 return &ret
46 ret := *p
47 ret.Properties = append([]Property(nil), ret.Properties...)
48 for i, prop := range ret.Properties {
49 ret.Properties[i] = prop.Clone()
52 return ret
/build/soong/makedeps/
Ddeps.go45 ret := &Deps{}
61 ret.Output = outputs[0].Value(nil)
71 ret.Inputs = append(ret.Inputs, input.Value(nil))
78 return ret, nil
/build/make/tools/fs_config/
Dfs_config.go45 if ret := ctx.DeviceConfig().TargetFSConfigGen(); len(ret) != 0 {
46 t.paths = android.PathsForSource(ctx, ret)
/build/soong/ui/tracer/
Dtracer.go93 ret := &tracerImpl{
99 ret.startBuffer()
101 return ret
209 ret := Thread(t.nextTid)
212 t.defineThread(ret, name)
213 return ret
/build/soong/third_party/zip/
Dandroid.go89 ret := []byte{}
99 ret = append(ret, input[:4+size]...)
105 ret = append(ret, input...)
107 return ret
/build/blueprint/pathtools/
Dglob.go214 var ret []string
226 ret = append(ret, m)
229 return ret, nil
234 ret := make([]string, 0, len(matches))
241 ret = append(ret, match)
244 return ret
/build/blueprint/
Dglob.go101 ret := ""
108 ret += string(c)
110 ret += "_"
114 return ret
/build/soong/java/
Daapt2.go68 ret := make(android.WritablePaths, 0, len(paths))
72 ret = append(ret, outPaths...)
91 sort.Slice(ret, func(i, j int) bool {
92 return ret[i].String() < ret[j].String()
94 return ret

1234