Home
last modified time | relevance | path

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

1234

/build/blueprint/
Dninja_writer.go44 func (n *ninjaWriter) Comment(comment string) error {
45 n.justDidBlankLine = false
75 _, err := io.WriteString(n.writer, line)
85 _, err := fmt.Fprintf(n.writer, "# %s\n", line)
94 func (n *ninjaWriter) Pool(name string) error {
95 n.justDidBlankLine = false
96 _, err := fmt.Fprintf(n.writer, "pool %s\n", name)
100 func (n *ninjaWriter) Rule(name string) error {
101 n.justDidBlankLine = false
102 _, err := fmt.Fprintf(n.writer, "rule %s\n", name)
[all …]
Dninja_strings.go96 n := strings.Count(str, "$")
97 if n == 0 {
104 strings: make([]string, 0, n+1),
105 variables: make([]Variable, 0, n),
286 func (n varNinjaString) Value(pkgNames map[*packageContext]string) string {
287 return n.ValueWithEscaper(pkgNames, defaultEscaper)
290 func (n varNinjaString) ValueWithEscaper(pkgNames map[*packageContext]string,
293 if len(n.strings) == 1 {
294 return escaper.Replace(n.strings[0])
298 str.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.go127 func (ms *MakeString) SplitN(sep string, n int) []*MakeString {
128 return ms.splitNFunc(n, func(s string, n int) []string {
129 return splitAnyN(s, sep, n)
137 func (ms *MakeString) splitNFunc(n int, splitFunc func(s string, n int) []string) []*MakeString {
145 if n != 0 {
146 split := splitFunc(s, n)
147 if n != -1 {
148 if len(split) > n {
151 n -= len(split)
204 func splitAnyN(s, sep string, n int) []string {
[all …]
Dmake_strings_test.go26 n int
41 n: -1,
76 n: 3,
93 got := test.in.SplitN(test.sep, test.n)
/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.go257 var n []Property
270 n = append(n, parent)
275 n = append(n, child)
279 *p = n
289 var n []Property
294 for i := range n {
295 s := &n[i]
303 n = append(n, child)
305 *p = n
/build/make/tools/droiddoc/templates-ndk/assets/js/
Dprettify.js6 …:8,t:9,n:10,v:11,f:12,r:13},n=[],p=0,d=a.length;p<d;++p){g=a[p];if(g.global||g.multiline)throw Err… property
7 … e(a){for(var l=a.d,p=[l,"pln"],d=0,g=a.a.match(y)||[],r={},n=0,z=g.length;n<z;++n){var f=g[n],b=r…
9 …gth;d<g;++d){var r=e[d],n=r[3];if(n)for(var k=n.length;--k>=0;)h[n.charAt(k)]=r;r=r[1];n=""+r;p.ha…
10 …arning)\b|[^\n\r]*)/,q,"#"]),e.push(["str",/^<(?:(?:(?:\.\.\/)*|\/?)(?:[\w-]+(?:\/[\w-]+)+)?[\w-]+…
11 q,"#"]));a.cStyleComments&&(e.push(["com",/^\/\/[^\n\r]*/,q]),e.push(["com",/^\/\*[\S\s]*?(?:\*\/|$…
22 ["default-markup","htm","html","mxml","xhtml","xml","xsl"]);k(x([["pln",/^\s+/,q," \t\r\n"],["atv",…
/build/soong/third_party/zip/
Dzip_test.go116 n int64 member
131 return last.off + last.n
134 func (r *rleBuffer) Write(p []byte) (n int, err error) {
148 rp.n += int64(len(p))
159 rp.n++
165 func (r *rleBuffer) ReadAt(p []byte, off int64) (n int, err error) {
171 return part.off+part.n > off
178 for i := skipBytes; i < part.n; i++ {
179 if n == len(p) {
182 p[n] = part.b
[all …]
/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…
Djquery-resizable.min.js19n,d=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","mar…
29n){var m=c.ui[k].prototype;for(var j in n){m.plugins[j]=m.plugins[j]||[];m.plugins[j].push([l,n[j]… argument
40n:".ui-resizable-n",e:".ui-resizable-e",s:".ui-resizable-s",w:".ui-resizable-w",se:".ui-resizable-… property
/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/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.go67 if n := ulimitOrFatal(ctx, config, "-n"); n < rbeLeastNFiles {
68 ctx.Fatalf("max open files is insufficient: %d; want >= %d.\n", n, rbeLeastNFiles)
/build/soong/android/
Dutil.go41 n := len(" ") * (len(strs) - 1)
43 n += len(prefix) + len(s)
46 ret := make([]byte, 0, n)
66 n := len(" ") * (len(strs) - 1)
68 n += len(suffix) + len(s)
71 ret := make([]byte, 0, n)
292 n := runtime.Callers(skip+1, pc[:])
293 if n != 1 {
/build/soong/sysprop/
Dsysprop_library.go252 msg := fmt.Sprintf(`\n******************************\n`+
253 `API of sysprop_library %s doesn't match with current.txt\n`+
254 `Please update current.txt by:\n`+
255 `m %s-dump-api && rm -rf %q && cp -f %q %q\n`+
256 `******************************\n`, baseModuleName, baseModuleName,
268 msg = fmt.Sprintf(`\n******************************\n`+
269 `API of sysprop_library %s doesn't match with latest version\n`+
270 `Please fix the breakage and rebuild.\n`+
271 `******************************\n`, baseModuleName)
/build/soong/java/
Ddroiddoc.go1103 msg := fmt.Sprintf(`\n******************************\n`+
1104 `You have tried to change the API from what has been previously approved.\n\n`+
1105 `To make these errors go away, you have two choices:\n`+
1106 ` 1. You can add '@hide' javadoc comments to the methods, etc. listed in the\n`+
1107 ` errors above.\n\n`+
1108 ` 2. You can update current.txt by executing the following command:\n`+
1109 ` make %s-update-current-api\n\n`+
1110 ` To submit the revised current.txt to the main Android repository,\n`+
1111 ` you will need approval.\n`+
1112 `******************************\n`, ctx.ModuleName())
[all …]
/build/blueprint/bootstrap/
Dglob.go91 n := len(" ") * (len(strs) - 1)
93 n += len(prefix) + len(s) + len(`""`)
96 ret := make([]byte, 0, n)

1234