Home
last modified time | relevance | path

Searched refs:pos (Results 1 – 25 of 30) sorted by relevance

12

/build/make/tools/product_config/test/com/android/build/config/
DPositionTest.java28 final Position pos = Position.parse(""); in testParseEmpty() local
30 Assert.assertEquals(null, pos.getFile()); in testParseEmpty()
31 Assert.assertEquals(Position.NO_LINE, pos.getLine()); in testParseEmpty()
36 final Position pos = Position.parse("asdf"); in testParseOnlyFile() local
38 Assert.assertEquals("asdf", pos.getFile()); in testParseOnlyFile()
39 Assert.assertEquals(Position.NO_LINE, pos.getLine()); in testParseOnlyFile()
44 final Position pos = Position.parse("asdf:1"); in testParseBoth() local
46 Assert.assertEquals("asdf", pos.getFile()); in testParseBoth()
47 Assert.assertEquals(1, pos.getLine()); in testParseBoth()
52 final Position pos = Position.parse("asdf:"); in testParseEndsWithColon() local
[all …]
/build/blueprint/parser/
Dprinter.go33 pos scanner.Position member
55 pos: scanner.Position{
139 func (p *printer) printList(list []Expression, pos, endPos scanner.Position) {
141 p.printToken("[", pos)
142 if len(list) > 1 || pos.Line != endPos.Line {
202 p.unindent(p.pos)
215 func (p *printer) printToken(s string, pos scanner.Position) {
218 if pos == noPos {
219 pos = p.pos
223 p.printEndOfLineCommentsBefore(pos)
[all …]
Dparser.go124 pos := p.scanner.Position
125 if !pos.IsValid() {
126 pos = p.scanner.Pos()
130 Pos: pos,
179 pos := p.scanner.Position
186 defs = append(defs, p.parseAssignment(ident, pos, "+="))
188 defs = append(defs, p.parseAssignment(ident, pos, "="))
190 defs = append(defs, p.parseModule(ident, pos))
210 pos := p.scanner.Position
220 assignment.EqualsPos = pos
[all …]
Dast.go428 pos := c.Slash
430 pos.Offset += len(comment) + 1
431 pos.Column = len(comment) + 1
433 pos.Line += len(c.Comment) - 1
434 return pos
505 func endPos(pos scanner.Position, n int) scanner.Position {
506 pos.Offset += n
507 pos.Column += n
508 return pos
Dsort.go229 if c.Pos().Offset > e.pos.Offset && c.Pos().Offset < e.nextPos.Offset {
231 file.Comments[j].Comments[0].Slash.Offset += values[i].Pos().Offset - e.pos.Offset
235 curPos.Offset += e.nextPos.Offset - e.pos.Offset
262 pos scanner.Position member
/build/make/tools/
Dparsedeps.py12 self.pos = ""
38 def setPos(self, tgt, pos): argument
43 t.pos = pos
98 pos,tgt = line.rsplit(":", 1)
99 pos = pos[1:].strip()
101 deps.setPos(tgt, pos)
136 if t.pos:
137 print t.tgt, " " * (width-len(t.tgt)), " #", t.pos
Dcheck_elf_file.py267 pos = name_with_version.rfind('@')
268 if pos == -1:
272 if pos > 0 and name_with_version[pos - 1] == '@':
273 name = name_with_version[0:pos - 1]
275 name = name_with_version[0:pos]
276 version = name_with_version[pos + 1:]
/build/soong/androidmk/parser/
Dparser.go88 func (p *parser) Unpack(pos Pos) scanner.Position {
89 offset := int(pos)
99 func (p *parser) pos() Pos { func
100 pos := p.scanner.Position
101 if !pos.IsValid() {
102 pos = p.scanner.Pos()
104 return Pos(pos.Offset)
208 pos := p.pos()
212 expression := SimpleMakeString("", pos)
238 NamePos: pos,
[all …]
Dmake_strings.go41 func SimpleMakeString(s string, pos Pos) *MakeString {
43 StringPos: pos,
58 pos := ms.StringPos
60 pos = ms.Variables[len(ms.Variables)-1].End()
62 return Pos(int(pos) + len(ms.Strings[len(ms.Strings)-1]))
/build/soong/makedeps/
Ddeps.go41 pos := func(node parser.Node) string {
53 return nil, fmt.Errorf("%sunexpected recipe in rule: %v", pos(node), x)
57 return nil, fmt.Errorf("%sunsupported variable expansion: %v", pos(node), x.Target.Dump())
68 … return nil, fmt.Errorf("%sunsupported variable expansion: %v", pos(node), x.Prerequisites.Dump())
74 return nil, fmt.Errorf("%sunexpected line: %#v", pos(node), node)
/build/make/tools/product_config/src/com/android/build/config/
DStr.java34 public Str(Position pos, String s) { in Str() argument
36 mPosition = pos; in Str()
75 public static ArrayList<Str> toList(Position pos, List<String> list) { in toList() argument
78 result.add(new Str(pos, s)); in toList()
DCsvParser.java115 int pos = 0; in parse() local
200 if (pos >= buf.length) { in parse()
206 buf[pos] = (char)c; in parse()
207 pos++; in parse()
214 String field = new String(buf, 0, pos); in parse()
222 pos = 0; in parse()
DErrorReporter.java151 public void add(Position pos, String message) { in add() argument
152 ErrorReporter.this.add(this, false, pos, message); in add()
166 public void fatal(Position pos, String message) { in fatal() argument
167 ErrorReporter.this.add(this, true, pos, message); in fatal()
242 private void add(Category category, boolean fatal, Position pos, String message) { in add() argument
248 final Entry entry = new Entry(category, pos, message); in add()
DMakeWriter.java81 Position pos = null; in writeAssign() local
88 pos = value.getPosition(); in writeAssign()
93 pos = value.getPosition(); in writeAssign()
99 pos = values.get(i).getPosition(); in writeAssign()
103 out.print(" # " + config.getVarType(varName) + " " + pos); in writeAssign()
DFlattenConfig.java442 final Position pos = item.getPosition(); in flattenAssignList() local
443 if (pos != null && pos.getFile() != null) { in flattenAssignList()
444 position = pos; in flattenAssignList()
/build/make/tools/releasetools/
Dsparse_img.py81 pos = 0 # in blocks
100 care_data.append(pos)
101 care_data.append(pos + chunk_sz)
102 offset_map.append((pos, chunk_sz, f.tell(), None))
103 pos += chunk_sz
108 care_data.append(pos)
109 care_data.append(pos + chunk_sz)
110 offset_map.append((pos, chunk_sz, None, fill_data))
111 pos += chunk_sz
124 care_data.append(pos)
[all …]
/build/make/tools/atree/
Dfs.cpp105 size_t pos = 0; in mkdir_recursively() local
108 if (path.length() != 0 and path[0] == '/') pos++; in mkdir_recursively()
111 pos = path.find('/', pos); in mkdir_recursively()
112 string p = path.substr(0, pos); in mkdir_recursively()
128 pos++; in mkdir_recursively()
Dfiles.cpp152 string::size_type pos = 0; in replace_variables() local
153 while((pos = result.find(it->first, pos)) != string::npos) { in replace_variables()
154 result = result.replace(pos, it->first.length(), it->second); in replace_variables()
155 pos += it->second.length(); in replace_variables()
385 int pos = filename.rfind('/'); in dir_part() local
386 if (pos <= 0) { in dir_part()
389 return filename.substr(0, pos); in dir_part()
/build/make/core/
Dchecktree24 pos = 0
26 pos = s.find(" ", pos) + 1
28 return s[pos:]
/build/soong/androidmk/androidmk/
Dandroidmk.go107 func (f *bpFile) setMkPos(pos, end scanner.Position) {
120 if pos.Line >= f.mkPos.Line {
121 f.bpPos.Line += (pos.Line - f.mkPos.Line)
419 pos := file.bpPos
437 val.(*bpparser.Operator).OperatorPos = pos
453 NamePos: pos,
466 NamePos: pos,
476 NamePos: pos,
479 EqualsPos: pos,
489 NamePos: pos,
[all …]
/build/blueprint/
Dname_interface.go88 return &namespaceContextImpl{moduleInfo.pos.Filename}
112 " %s <-- previous definition here", name, group.modules.firstModule().pos),
133 oldName, newName, existingGroup.modules.firstModule().pos),
Dmodule_ctx.go153 Errorf(pos scanner.Position, fmt string, args ...interface{})
419 func (d *baseModuleContext) Errorf(pos scanner.Position,
424 Pos: pos,
434 Pos: d.module.pos,
443 pos := d.module.propertyPos[property]
445 if !pos.IsValid() {
446 pos = d.module.pos
453 Pos: pos,
514 Pos: module.pos,
1215 module.pos = mctx.module.pos
[all …]
Dcontext.go246 pos scanner.Position member
1413 Pos: module.pos,
1500 module.pos = moduleDef.TypePos
1515 Pos: module.pos,
1532 errs[i] = &BlueprintError{Err: errs[i], Pos: module.pos}
1638 Pos: module.pos,
1663 Pos: module.pos,
1671 Pos: module.pos,
1680 Pos: module.pos,
1698 Pos: module.pos,
[all …]
/build/soong/symbol_inject/
Dsymbol_inject.go111 pos := int64(offset) + int64(len(buf))
113 _, err = io.Copy(w, io.NewSectionReader(r, pos, 1<<63-1-pos))
/build/make/tools/droiddoc/templates-pdk/assets/
Dandroid-developer-reference.js242 var pos = full.lastIndexOf("/");
243 file = full.substr(pos) + file;
244 full = full.substr(0, pos);

12