Lines Matching refs:sourcePos
262 const SourcePos sourcePos; member
273 , sourcePos(in->getPrintableSource(), block.getLineNumber()) in PendingAttribute()
291 sourcePos.error("Attribute \"%s\" has already been defined\n", in createIfNeeded()
299 status_t err = outTable->addBag(sourcePos, myPackage, in createIfNeeded()
341 attr.sourcePos.error("A 'name' attribute is required for <attr>\n"); in compileAttribute()
353 attr.sourcePos.error("Tag <attr> 'format' attribute value \"%s\" not valid\n", in compileAttribute()
370 attr.sourcePos.error("Tag <attr> 'min' attribute must be a number, not \"%s\"\n", in compileAttribute()
376 err = outTable->addBag(attr.sourcePos, myPackage, attr16, attr.ident, in compileAttribute()
388 attr.sourcePos.error("Tag <attr> 'max' attribute must be a number, not \"%s\"\n", in compileAttribute()
394 err = outTable->addBag(attr.sourcePos, myPackage, attr16, attr.ident, in compileAttribute()
401 attr.sourcePos.error("Tag <attr> must have format=integer attribute if using max or min\n"); in compileAttribute()
411 attr.sourcePos.error("Tag <attr> 'localization' attribute value \"%s\" not valid\n", in compileAttribute()
419 err = outTable->addBag(attr.sourcePos, myPackage, attr16, attr.ident, in compileAttribute()
1795 status_t ResourceTable::addPublic(const SourcePos& sourcePos, in addPublic() argument
1806 sourcePos.error("Error declaring public resource %s/%s for included package %s\n", in addPublic()
1812 sp<Type> t = getType(package, type, sourcePos); in addPublic()
1816 return t->addPublic(sourcePos, name, ident); in addPublic()
1819 status_t ResourceTable::addEntry(const SourcePos& sourcePos, in addEntry() argument
1835 sourcePos.error("Resource entry %s/%s is already defined in package %s.", in addEntry()
1840 sp<Entry> e = getEntry(package, type, name, sourcePos, overwrite, in addEntry()
1845 status_t err = e->setItem(sourcePos, value, style, format, overwrite); in addEntry()
1852 status_t ResourceTable::startBag(const SourcePos& sourcePos, in startBag() argument
1870 sourcePos.error("Resource entry %s/%s is already defined in package %s.", in startBag()
1887 …sourcePos.error("Resource does not already exist in overlay at '%s'; use <add-resource> to add.\n", in startBag()
1892 sp<Entry> e = getEntry(package, type, name, sourcePos, overlay, params); in startBag()
1902 if ((result = e->makeItABag(sourcePos)) != NO_ERROR) { in startBag()
1907 return e->emptyBag(sourcePos); in startBag()
1912 status_t ResourceTable::addBag(const SourcePos& sourcePos, in addBag() argument
1936 sourcePos.file.striing(), sourcePos.line, String8(type).string()); in addBag()
1939 sp<Entry> e = getEntry(package, type, name, sourcePos, replace, params); in addBag()
1950 status_t err = e->addToBag(sourcePos, bagKey, value, style, replace, isId, format); in addBag()
2386 ac->sourcePos.error("Error: %s (at '%s' with value '%s').\n", in reportError()
3335 : sourcePos(_sourcePos) in Item()
3372 status_t ResourceTable::Entry::makeItABag(const SourcePos& sourcePos) in makeItABag() argument
3381 sourcePos.error("Resource entry %s is already defined as a single item.\n" in makeItABag()
3384 mItem.sourcePos.file.string(), mItem.sourcePos.line); in makeItABag()
3388 status_t ResourceTable::Entry::setItem(const SourcePos& sourcePos, in setItem() argument
3394 Item item(sourcePos, false, value, style); in setItem()
3398 sourcePos.error("Resource entry %s is already defined as a bag.", in setItem()
3402 sourcePos.error("Resource entry %s is already defined as a bag.\n" in setItem()
3405 item.sourcePos.file.string(), item.sourcePos.line); in setItem()
3410 sourcePos.error("Resource entry %s is already defined.\n" in setItem()
3413 mItem.sourcePos.file.string(), mItem.sourcePos.line); in setItem()
3423 status_t ResourceTable::Entry::addToBag(const SourcePos& sourcePos, in addToBag() argument
3428 status_t err = makeItABag(sourcePos); in addToBag()
3433 Item item(sourcePos, isId, value, style, format); in addToBag()
3442 sourcePos.error("Resource entry %s already has bag item %s.\n" in addToBag()
3445 item.sourcePos.file.string(), item.sourcePos.line); in addToBag()
3468 status_t ResourceTable::Entry::emptyBag(const SourcePos& sourcePos) in emptyBag() argument
3470 status_t err = makeItABag(sourcePos); in emptyBag()
3552 it.sourcePos.error("Error: %s: %s '%s'.\n", errorMsg, in assignResourceIds()
3567 AccessorCookie ac(it.sourcePos, String8(mName), String8(it.value)); in prepareFlatten()
3579 AccessorCookie ac(it.sourcePos, String8(key), String8(it.value)); in prepareFlatten()
3726 status_t ResourceTable::Type::addPublic(const SourcePos& sourcePos, in addPublic() argument
3733 sourcePos.error("Public resource %s/%s has an invalid 0 identifier (0x%08x).\n", in addPublic()
3743 sourcePos.error("Public resource %s/%s has conflicting type codes for its" in addPublic()
3753 mFirstPublicSourcePos = new SourcePos(sourcePos); in addPublic()
3757 mPublic.add(name, Public(sourcePos, String16(), ident)); in addPublic()
3761 sourcePos.error("Public resource %s/%s has conflicting public identifiers" in addPublic()
3765 p.sourcePos.file.string(), p.sourcePos.line); in addPublic()
3779 const SourcePos& sourcePos, in getEntry() argument
3789 sourcePos.error("Resource at %s appears in overlay but not" in getEntry()
3794 c = new ConfigList(entry, sourcePos); in getEntry()
3812 sourcePos.file.string(), sourcePos.line, in getEntry()
3832 sourcePos.file.string(), sourcePos.line)); in getEntry()
3834 e = new Entry(entry, sourcePos); in getEntry()
3924 e->setPublicSourcePos(p.sourcePos); in applyPublicEntryOrder()
3933 p.sourcePos.error("Multiple entry names declared for public entry" in applyPublicEntryOrder()
3947 p.sourcePos.error("Public symbol %s/%s declared here is not defined.", in applyPublicEntryOrder()
3982 const SourcePos& sourcePos, in getType() argument
3987 t = new Type(type, sourcePos); in getType()
4163 const SourcePos& sourcePos, in getType() argument
4170 return p->getType(type, sourcePos, doSetIndex); in getType()
4176 const SourcePos& sourcePos, in getEntry() argument
4181 sp<Type> t = getType(package, type, sourcePos, doSetIndex); in getEntry()
4185 return t->getEntry(name, sourcePos, config, doSetIndex, overlay, mBundle->getAutoAddOverlay()); in getEntry()