Home
last modified time | relevance | path

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

12345

/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/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/ui/status/
Dninja.go43 n := &NinjaReader{
50 go n.run()
52 return n
65 func (n *NinjaReader) Close() {
67 close(n.cancel)
72 case <-n.done:
75n.status.Error(fmt.Sprintf("ninja fifo didn't finish after %s", NINJA_READER_CLOSE_TIMEOUT.String(…
81 func (n *NinjaReader) run() {
82 defer close(n.done)
88 f, err := os.Open(n.fifo)
[all …]
/build/make/tools/canoninja/
Dcanoninja.go95 if n := bytes.IndexByte(b, '\n'); n >= 0 {
96 return b[:n+1]
103 n := bytes.IndexByte(line, ':')
104 if n <= 0 {
107 ruleName := line[n+1:]
111 if n := bytes.IndexAny(ruleName, " \t\r\n"); n >= 0 {
112 ruleName = ruleName[0:n]
126 if n := bytes.IndexAny(ruleName, " \t\r\n"); n >= 0 {
127 ruleName = ruleName[0:n]
/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.go139 func (ms *MakeString) SplitN(sep string, n int) []*MakeString {
140 return ms.splitNFunc(n, func(s string, n int) []string {
141 return splitAnyN(s, sep, n)
226 func (ms *MakeString) splitNFunc(n int, splitFunc func(s string, n int) []string) []*MakeString {
234 if n != 0 {
235 split := splitFunc(s, n)
236 if n != -1 {
237 if len(split) > n {
240 n -= len(split)
300 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/make/
DMETADATA2 license_note: "would be NOTICE save for GPL in:\n"
3 " core/LINUX_KERNEL_COPYING\n"
4 " tools/droiddoc/templates-pdk/assets/jquery-1.6.2.min.js\n"
5 " tools/droiddoc/templates-pdk/assets/jquery-history.js\n"
/build/soong/bp2build/
Dperformance_test.go144 for n := 0; n < b.N; n++ {
170 for n := 0; n < b.N; n++ {
197 for n := 0; n < b.N; n++ {
/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/soong/mk2rbc/
Dandroid_products.go98 if n := strings.Index(token, ":"); n >= 0 {
99 product = token[0:n]
100 config_path = token[n+1:]
Dsoong_variables.go132 func (ctx context) inferSoongVariableType(vType string, n *mkparser.MakeString) {
133 if n.Const() {
134 ctx.NewSoongVariable(n.Strings[0], vType)
137 if prefix, v, ok := prefixedVariable(n); ok {
/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 anonymousFunction7d6b433c0100.anonymousFunction7d6b433c0400.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/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)
/build/soong/android/
Dconfig_bp2build.go146 for _, c := range []string{`\n`, `"`, `\`} {
258 for n, dict := range m {
271 variableName: n,
475 if n := methodType.NumIn(); n != 1 {
477 name, n))
479 if n := methodType.NumOut(); n != 1 {
481 name, n))
/build/soong/java/
Ddroidstubs.go712 msg := fmt.Sprintf(`\n******************************\n`+
713 `You have tried to change the API from what has been previously approved.\n\n`+
714 `To make these errors go away, you have two choices:\n`+
715 ` 1. You can add '@hide' javadoc comments (and remove @SystemApi/@TestApi/etc)\n`+
716 ` to the new methods, etc. shown in the above diff.\n\n`+
717 ` 2. You can update current.txt and/or removed.txt by executing the following command:\n`+
718 ` m %s-update-current-api\n\n`+
719 ` To submit the revised current.txt to the main Android repository,\n`+
720 ` you will need approval.\n`+
721 `******************************\n`, ctx.ModuleName())
[all …]
/build/blueprint/parser/
Dast.go526 func (n NotEvaluated) Copy() Expression {
527 return NotEvaluated{Position: n.Position}
530 func (n NotEvaluated) String() string {
534 func (n NotEvaluated) Type() Type {
538 func (n NotEvaluated) Eval() Expression {
539 return NotEvaluated{Position: n.Position}
542 func (n NotEvaluated) Pos() scanner.Position { return n.Position }
543 func (n NotEvaluated) End() scanner.Position { return n.Position }
545 func endPos(pos scanner.Position, n int) scanner.Position {
546 pos.Offset += n
[all …]

12345