Lines Matching refs:sourcePos

295     const SourcePos sourcePos;  member
306 , sourcePos(in->getPrintableSource(), block.getLineNumber()) in PendingAttribute()
321 if (!outTable->makeAttribute(myPackage, ident, sourcePos, type, comment, appendComment)) { in createIfNeeded()
356 attr.sourcePos.error("A 'name' attribute is required for <attr>\n"); in compileAttribute()
368 attr.sourcePos.error("Tag <attr> 'format' attribute value \"%s\" not valid\n", in compileAttribute()
385 attr.sourcePos.error("Tag <attr> 'min' attribute must be a number, not \"%s\"\n", in compileAttribute()
391 err = outTable->addBag(attr.sourcePos, myPackage, attr16, attr.ident, in compileAttribute()
403 attr.sourcePos.error("Tag <attr> 'max' attribute must be a number, not \"%s\"\n", in compileAttribute()
409 err = outTable->addBag(attr.sourcePos, myPackage, attr16, attr.ident, in compileAttribute()
416 attr.sourcePos.error("Tag <attr> must have format=integer attribute if using max or min\n"); in compileAttribute()
426 attr.sourcePos.error("Tag <attr> 'localization' attribute value \"%s\" not valid\n", in compileAttribute()
434 err = outTable->addBag(attr.sourcePos, myPackage, attr16, attr.ident, in compileAttribute()
1833 status_t ResourceTable::addPublic(const SourcePos& sourcePos, in addPublic() argument
1844 sourcePos.error("Error declaring public resource %s/%s for included package %s\n", in addPublic()
1850 sp<Type> t = getType(package, type, sourcePos); in addPublic()
1854 return t->addPublic(sourcePos, name, ident); in addPublic()
1857 status_t ResourceTable::addEntry(const SourcePos& sourcePos, in addEntry() argument
1873 sourcePos.error("Resource entry %s/%s is already defined in package %s.", in addEntry()
1878 sp<Entry> e = getEntry(package, type, name, sourcePos, overwrite, in addEntry()
1883 status_t err = e->setItem(sourcePos, value, style, format, overwrite); in addEntry()
1890 status_t ResourceTable::startBag(const SourcePos& sourcePos, in startBag() argument
1908 sourcePos.error("Resource entry %s/%s is already defined in package %s.", in startBag()
1925sourcePos.error("Resource does not already exist in overlay at '%s'; use <add-resource> to add.\n", in startBag()
1930 sp<Entry> e = getEntry(package, type, name, sourcePos, overlay, params); in startBag()
1940 if ((result = e->makeItABag(sourcePos)) != NO_ERROR) { in startBag()
1945 return e->emptyBag(sourcePos); in startBag()
1950 status_t ResourceTable::addBag(const SourcePos& sourcePos, in addBag() argument
1974 sourcePos.file.striing(), sourcePos.line, String8(type).c_str()); in addBag()
1977 sp<Entry> e = getEntry(package, type, name, sourcePos, replace, params); in addBag()
1988 status_t err = e->addToBag(sourcePos, bagKey, value, style, replace, isId, format); in addBag()
2151 String8(name).c_str(), formatItem.sourcePos.file.c_str(), in makeAttribute()
2152 formatItem.sourcePos.line); in makeAttribute()
2485 ac->sourcePos.error("Error: %s (at '%s' with value '%s').\n", in reportError()
3458 : sourcePos(_sourcePos) in Item()
3495 status_t ResourceTable::Entry::makeItABag(const SourcePos& sourcePos) in makeItABag() argument
3504 sourcePos.error("Resource entry %s is already defined as a single item.\n" in makeItABag()
3507 mItem.sourcePos.file.c_str(), mItem.sourcePos.line); in makeItABag()
3511 status_t ResourceTable::Entry::setItem(const SourcePos& sourcePos, in setItem() argument
3517 Item item(sourcePos, false, value, style); in setItem()
3521 sourcePos.error("Resource entry %s is already defined as a bag.", in setItem()
3525 sourcePos.error("Resource entry %s is already defined as a bag.\n" in setItem()
3528 item.sourcePos.file.c_str(), item.sourcePos.line); in setItem()
3533 sourcePos.error("Resource entry %s is already defined.\n" in setItem()
3536 mItem.sourcePos.file.c_str(), mItem.sourcePos.line); in setItem()
3546 status_t ResourceTable::Entry::addToBag(const SourcePos& sourcePos, in addToBag() argument
3551 status_t err = makeItABag(sourcePos); in addToBag()
3556 Item item(sourcePos, isId, value, style, format); in addToBag()
3565 sourcePos.error("Resource entry %s already has bag item %s.\n" in addToBag()
3568 item.sourcePos.file.c_str(), item.sourcePos.line); in addToBag()
3591 status_t ResourceTable::Entry::emptyBag(const SourcePos& sourcePos) in emptyBag() argument
3593 status_t err = makeItABag(sourcePos); in emptyBag()
3677 it.sourcePos.error("Error: %s: %s '%s'.\n", errorMsg, in assignResourceIds()
3692 AccessorCookie ac(it.sourcePos, String8(mName), String8(it.value)); in prepareFlatten()
3704 AccessorCookie ac(it.sourcePos, String8(key), String8(it.value)); in prepareFlatten()
3849 status_t ResourceTable::Type::addPublic(const SourcePos& sourcePos, in addPublic() argument
3856 sourcePos.error("Public resource %s/%s has an invalid 0 identifier (0x%08x).\n", in addPublic()
3866 sourcePos.error("Public resource %s/%s has conflicting type codes for its" in addPublic()
3876 mFirstPublicSourcePos = new SourcePos(sourcePos); in addPublic()
3880 mPublic.add(name, Public(sourcePos, String16(), ident)); in addPublic()
3884 sourcePos.error("Public resource %s/%s has conflicting public identifiers" in addPublic()
3888 p.sourcePos.file.c_str(), p.sourcePos.line); in addPublic()
3902 const SourcePos& sourcePos, in getEntry() argument
3912 sourcePos.error("Resource at %s appears in overlay but not" in getEntry()
3917 c = new ConfigList(entry, sourcePos); in getEntry()
3936 sourcePos.file.c_str(), sourcePos.line, in getEntry()
3956 sourcePos.file.c_str(), sourcePos.line); in getEntry()
3959 e = new Entry(entry, sourcePos); in getEntry()
4049 e->setPublicSourcePos(p.sourcePos); in applyPublicEntryOrder()
4058 p.sourcePos.error("Multiple entry names declared for public entry" in applyPublicEntryOrder()
4072 p.sourcePos.error("Public symbol %s/%s declared here is not defined.", in applyPublicEntryOrder()
4107 const SourcePos& sourcePos, in getType() argument
4112 t = new Type(type, sourcePos); in getType()
4285 const SourcePos& sourcePos, in getType() argument
4292 return p->getType(type, sourcePos, doSetIndex); in getType()
4298 const SourcePos& sourcePos, in getEntry() argument
4303 sp<Type> t = getType(package, type, sourcePos, doSetIndex); in getEntry()
4307 return t->getEntry(name, sourcePos, config, doSetIndex, overlay, mBundle->getAutoAddOverlay()); in getEntry()