Home
last modified time | relevance | path

Searched refs:n (Results 1 – 25 of 80) sorted by relevance

1234

/build/blueprint/
Dninja_writer.go48 func (n *ninjaWriter) Comment(comment string) error {
49 n.justDidBlankLine = false
79 _, err := n.writer.WriteString(line)
89 _, err := n.writer.WriteString("# ")
93 _, err = n.writer.WriteString(line)
97 _, err = n.writer.WriteString("\n")
106 func (n *ninjaWriter) Pool(name string) error {
107 n.justDidBlankLine = false
108 return n.writeStatement("pool", name)
111 func (n *ninjaWriter) Rule(name string) error {
[all …]
Dninja_strings.go97 n := strings.Count(str, "$")
98 if n == 0 {
105 strings: make([]string, 0, n+1),
106 variables: make([]Variable, 0, n),
287 func (n varNinjaString) Value(pkgNames map[*packageContext]string) string {
288 if len(n.strings) == 1 {
289 return defaultEscaper.Replace(n.strings[0])
292 n.ValueWithEscaper(str, pkgNames, defaultEscaper)
296 func (n varNinjaString) ValueWithEscaper(w io.StringWriter, pkgNames map[*packageContext]string,
299 w.WriteString(escaper.Replace(n.strings[0]))
[all …]
Dninja_strings_test.go186 for n := 0; n < b.N; n++ {
198 for n := 0; n < b.N; n++ {
214 for n := 0; n < b.N; n++ {
/build/soong/ui/status/
Dninja.go41 n := &NinjaReader{
48 go n.run()
50 return n
63 func (n *NinjaReader) Close() {
65 close(n.cancel)
70 case <-n.done:
73n.status.Error(fmt.Sprintf("ninja fifo didn't finish after %s", NINJA_READER_CLOSE_TIMEOUT.String(…
79 func (n *NinjaReader) run() {
80 defer close(n.done)
86 f, err := os.Open(n.fifo)
[all …]
/build/soong/scripts/
Dbuild_broken_logs.go115 for n, v := range l.BuildBroken {
117 l.BuildBroken[n] = l2.BuildBroken[n]
120 for n, v := range l2.BuildBroken {
121 if _, ok := l.BuildBroken[n]; !ok {
122 l.BuildBroken[n] = v
126 for n := range l.HasBroken {
127 if l.HasBroken[n] < l2.HasBroken[n] {
128 l.HasBroken[n] = l2.HasBroken[n]
131 for n := range l2.HasBroken {
132 if _, ok := l.HasBroken[n]; !ok {
[all …]
/build/soong/androidmk/parser/
Dmake_strings_test.go26 n int
32 n: -1,
48 n: 3,
59 n: -1,
69 n: -1,
82 got := test.in.SplitN(test.sep, test.n)
233 n := len(items) / 2
234 if len(items) != (2*n + 1) {
238 ms := &MakeString{Strings: make([]string, n+1), Variables: make([]Variable, n)}
240 for i := 1; i <= n; i++ {
Dmake_strings.go129 func (ms *MakeString) SplitN(sep string, n int) []*MakeString {
130 return ms.splitNFunc(n, func(s string, n int) []string {
131 return splitAnyN(s, sep, n)
216 func (ms *MakeString) splitNFunc(n int, splitFunc func(s string, n int) []string) []*MakeString {
224 if n != 0 {
225 split := splitFunc(s, n)
226 if n != -1 {
227 if len(split) > n {
230 n -= len(split)
281 func splitAnyN(s, sep string, n int) []string {
[all …]
/build/make/tools/
Djava-layers.py102 n = 0
106 n = n + 1
107 return n
126 n = [0]
127 lines = [lineno(x,n) for x in lines]
128 lines = [(n,s.split("#")[0].strip()) for (n,s) in lines]
129 lines = [(n,s) for (n,s) in lines if len(s) > 0]
130 lines = [(n,s.split()) for (n,s) in lines]
132 for n,words in lines:
147 + " line %d.\n") % (filename, n, lower, deps[lower].lineno))
[all …]
/build/soong/symbol_inject/
Dsymbol_inject.go127 var n int
128 for n = i; n < len(file.Symbols); n++ {
129 if file.Symbols[n].Section != symbol.Section {
130 n = len(file.Symbols)
133 if file.Symbols[n].Addr > symbol.Addr {
141 if n < len(file.Symbols) {
142 end = file.Symbols[n].Addr
/build/soong/cmd/fileslist/
Dfileslist.go63 func (n *Node) scan() bool {
64 n.Size = n.stat.Size()
68 if n.stat.Mode()&os.ModeSymlink == 0 {
69 f, err := os.Open(n.path)
80 s, err := os.Readlink(n.path)
88 n.SHA256 = fmt.Sprintf("%x", h.Sum(nil))
/build/blueprint/bootstrap/bpdoc/
Dbpdoc.go319 var n []Property
332 n = append(n, parent)
337 n = append(n, child)
341 *p = n
351 var n []Property
356 for i := range n {
357 s := &n[i]
365 n = append(n, child)
367 *p = n
/build/make/tools/releasetools/
Drangelib.py279 def extend(self, n): argument
296 s1 = max(0, s - n)
297 e1 = e + n
301 def first(self, n): argument
320 if self.size() <= n:
325 if e - s >= n:
326 out += (s, s+n)
330 n -= e - s
/build/make/tools/droiddoc/templates-pdk/assets/
Dsearch_autocomplete.js184 var n = 0;
186 if (s.charAt(i) == c) ++n;
187 return n;
224 var n = b.__resultScore - a.__resultScore;
225 if (n == 0) // lexicographical sort if scores are the same
226 n = (a.label < b.label) ? -1 : 1;
227 return n;
Dprettify.js14 …:return parseInt(j.substring(1),8);default:return j.charCodeAt(1)}}function n(j){if(j<32)return(j<… function in anonymousFunctiond1eaf9100100.anonymousFunctiond1eaf9100400.Sd.Na
16 …apply(D,s);for(e=0;e<B.length;++e){A=B[e];D.push(n(A[0]));if(A[1]>A[0]){A[1]+1>A[0]&&D.push(Sb);D.…
18 …arAt(i);switch(l){case ic:d||(d=[]);d.push(c.substring(g,i));var n=a-b%a;for(b+=n;n>=0;n-=" …
19 n));g=i+1;break;case jc:b=0;break;default:++b}}if(!d)return c;d.push(c.substring(g));return d.join(…
20 m;++v){var w=b[v].match(Qa);if(w&&w[2]===n)if(w[1]===ra){if(--q===0)break a}else++q}if(v<m){g.push(…
21n={},q=0,v=m.length;q<v;++q){var w=m[q],j=w[3];if(j)for(var f=j.length;--f>=0;)c[j.charAt(f)]=w;va…
22 …E+B.length,D=h.substring(5);ia(n+x,k.substring(0,E),i,q);ia(n+x+E,B,Ra(D,B),q);ia(n+x+A,k.substrin…
/build/make/core/
Dpathmap.mk60 $(foreach n,$(1),$(patsubst $(n):%,%,$(filter $(n):%,$(pathmap_INCL))))
/build/soong/ui/build/
Dgoma.go61 if n := ulimitOrFatal(ctx, config, "-n"); n < gomaLeastNFiles {
62 ctx.Fatalf("max open files is insufficient: %d; want >= %d.\n", n, gomaLeastNFiles)
Drbe.go102 if n := ulimitOrFatal(ctx, config, "-n"); n < rbeLeastNFiles {
103 ctx.Fatalf("max open files is insufficient: %d; want >= %d.\n", n, rbeLeastNFiles)
/build/soong/java/
Ddroidstubs.go660 msg := fmt.Sprintf(`\n******************************\n`+
661 `You have tried to change the API from what has been previously approved.\n\n`+
662 `To make these errors go away, you have two choices:\n`+
663 ` 1. You can add '@hide' javadoc comments (and remove @SystemApi/@TestApi/etc)\n`+
664 ` to the new methods, etc. shown in the above diff.\n\n`+
665 ` 2. You can update current.txt and/or removed.txt by executing the following command:\n`+
666 ` m %s-update-current-api\n\n`+
667 ` To submit the revised current.txt to the main Android repository,\n`+
668 ` you will need approval.\n`+
669 `******************************\n`, ctx.ModuleName())
[all …]
/build/blueprint/parser/
Dast.go486 func (n NotEvaluated) Copy() Expression {
487 return NotEvaluated{Position: n.Position}
490 func (n NotEvaluated) String() string {
494 func (n NotEvaluated) Type() Type {
498 func (n NotEvaluated) Eval() Expression {
499 return NotEvaluated{Position: n.Position}
502 func (n NotEvaluated) Pos() scanner.Position { return n.Position }
503 func (n NotEvaluated) End() scanner.Position { return n.Position }
505 func endPos(pos scanner.Position, n int) scanner.Position {
506 pos.Offset += n
[all …]
/build/soong/sysprop/
Dsysprop_library.go288 msg := fmt.Sprintf(`\n******************************\n`+
289 `API of sysprop_library %s doesn't match with current.txt\n`+
290 `Please update current.txt by:\n`+
291 `m %s-dump-api && mkdir -p %q && rm -rf %q && cp -f %q %q\n`+
292 `******************************\n`, baseModuleName, baseModuleName,
305 msg = fmt.Sprintf(`\n******************************\n`+
306 `API of sysprop_library %s doesn't match with latest version\n`+
307 `Please fix the breakage and rebuild.\n`+
308 `******************************\n`, baseModuleName)
/build/soong/bp2build/
Dsymlink_forest.go108 for n, _ := range srcDirMap {
109 allEntries[n] = true
112 for n, _ := range buildFilesMap {
113 allEntries[n] = true
/build/soong/android/
Dneverallow.go232 n := r.(*rule)
233 if !n.appliesToPath(dir) {
237 if !n.appliesToModuleType(ctx.ModuleType()) {
241 if !n.appliesToProperties(properties) {
245 if !n.appliesToOsClass(osClass) {
249 if !n.appliesToDirectDeps(ctx) {
253 if !n.appliesToBootclasspathJar(ctx) {
257 ctx.ModuleErrorf("violates " + n.String())
/build/soong/cc/config/
Dbp2build.go57 for _, c := range []string{`\n`, `"`, `\`} {
77 list += fmt.Sprintf("\n \"%s\",", validateCharacters(flag))
/build/make/common/
Dmath.mk171 $(foreach n,$2, \
172 $(if $(call math_is_number,$(n)), \
173 $(if $(call math_lt,$(n),$(1)), \
174 $(n)))))
187 $(foreach n,$2, \
188 $(if $(call math_is_number,$(n)), \
189 $(if $(call math_gt_or_eq,$(n),$(1)), \
190 $(n)))))
/build/soong/finder/fs/
Dreaddir.go47 n, errno := syscall.ReadDirent(fd, buf)
52 if n <= 0 {
56 entries = parseDirent(buf[:n], entries)

1234