Lines Matching refs:sourcePos

293     const SourcePos sourcePos;  member
304 , sourcePos(in->getPrintableSource(), block.getLineNumber()) in PendingAttribute()
319 if (!outTable->makeAttribute(myPackage, ident, sourcePos, type, comment, appendComment)) { in createIfNeeded()
354 attr.sourcePos.error("A 'name' attribute is required for <attr>\n"); in compileAttribute()
366 attr.sourcePos.error("Tag <attr> 'format' attribute value \"%s\" not valid\n", in compileAttribute()
383 attr.sourcePos.error("Tag <attr> 'min' attribute must be a number, not \"%s\"\n", in compileAttribute()
389 err = outTable->addBag(attr.sourcePos, myPackage, attr16, attr.ident, in compileAttribute()
401 attr.sourcePos.error("Tag <attr> 'max' attribute must be a number, not \"%s\"\n", in compileAttribute()
407 err = outTable->addBag(attr.sourcePos, myPackage, attr16, attr.ident, in compileAttribute()
414 attr.sourcePos.error("Tag <attr> must have format=integer attribute if using max or min\n"); in compileAttribute()
424 attr.sourcePos.error("Tag <attr> 'localization' attribute value \"%s\" not valid\n", in compileAttribute()
432 err = outTable->addBag(attr.sourcePos, myPackage, attr16, attr.ident, in compileAttribute()
1831 status_t ResourceTable::addPublic(const SourcePos& sourcePos, in addPublic() argument
1842 sourcePos.error("Error declaring public resource %s/%s for included package %s\n", in addPublic()
1848 sp<Type> t = getType(package, type, sourcePos); in addPublic()
1852 return t->addPublic(sourcePos, name, ident); in addPublic()
1855 status_t ResourceTable::addEntry(const SourcePos& sourcePos, in addEntry() argument
1871 sourcePos.error("Resource entry %s/%s is already defined in package %s.", in addEntry()
1876 sp<Entry> e = getEntry(package, type, name, sourcePos, overwrite, in addEntry()
1881 status_t err = e->setItem(sourcePos, value, style, format, overwrite); in addEntry()
1888 status_t ResourceTable::startBag(const SourcePos& sourcePos, in startBag() argument
1906 sourcePos.error("Resource entry %s/%s is already defined in package %s.", in startBag()
1923sourcePos.error("Resource does not already exist in overlay at '%s'; use <add-resource> to add.\n", in startBag()
1928 sp<Entry> e = getEntry(package, type, name, sourcePos, overlay, params); in startBag()
1938 if ((result = e->makeItABag(sourcePos)) != NO_ERROR) { in startBag()
1943 return e->emptyBag(sourcePos); in startBag()
1948 status_t ResourceTable::addBag(const SourcePos& sourcePos, in addBag() argument
1972 sourcePos.file.striing(), sourcePos.line, String8(type).string()); in addBag()
1975 sp<Entry> e = getEntry(package, type, name, sourcePos, replace, params); in addBag()
1986 status_t err = e->addToBag(sourcePos, bagKey, value, style, replace, isId, format); in addBag()
2149 String8(name).string(), formatItem.sourcePos.file.string(), in makeAttribute()
2150 formatItem.sourcePos.line); in makeAttribute()
2484 ac->sourcePos.error("Error: %s (at '%s' with value '%s').\n", in reportError()
3465 : sourcePos(_sourcePos) in Item()
3502 status_t ResourceTable::Entry::makeItABag(const SourcePos& sourcePos) in makeItABag() argument
3511 sourcePos.error("Resource entry %s is already defined as a single item.\n" in makeItABag()
3514 mItem.sourcePos.file.string(), mItem.sourcePos.line); in makeItABag()
3518 status_t ResourceTable::Entry::setItem(const SourcePos& sourcePos, in setItem() argument
3524 Item item(sourcePos, false, value, style); in setItem()
3528 sourcePos.error("Resource entry %s is already defined as a bag.", in setItem()
3532 sourcePos.error("Resource entry %s is already defined as a bag.\n" in setItem()
3535 item.sourcePos.file.string(), item.sourcePos.line); in setItem()
3540 sourcePos.error("Resource entry %s is already defined.\n" in setItem()
3543 mItem.sourcePos.file.string(), mItem.sourcePos.line); in setItem()
3553 status_t ResourceTable::Entry::addToBag(const SourcePos& sourcePos, in addToBag() argument
3558 status_t err = makeItABag(sourcePos); in addToBag()
3563 Item item(sourcePos, isId, value, style, format); in addToBag()
3572 sourcePos.error("Resource entry %s already has bag item %s.\n" in addToBag()
3575 item.sourcePos.file.string(), item.sourcePos.line); in addToBag()
3598 status_t ResourceTable::Entry::emptyBag(const SourcePos& sourcePos) in emptyBag() argument
3600 status_t err = makeItABag(sourcePos); in emptyBag()
3684 it.sourcePos.error("Error: %s: %s '%s'.\n", errorMsg, in assignResourceIds()
3699 AccessorCookie ac(it.sourcePos, String8(mName), String8(it.value)); in prepareFlatten()
3711 AccessorCookie ac(it.sourcePos, String8(key), String8(it.value)); in prepareFlatten()
3856 status_t ResourceTable::Type::addPublic(const SourcePos& sourcePos, in addPublic() argument
3863 sourcePos.error("Public resource %s/%s has an invalid 0 identifier (0x%08x).\n", in addPublic()
3873 sourcePos.error("Public resource %s/%s has conflicting type codes for its" in addPublic()
3883 mFirstPublicSourcePos = new SourcePos(sourcePos); in addPublic()
3887 mPublic.add(name, Public(sourcePos, String16(), ident)); in addPublic()
3891 sourcePos.error("Public resource %s/%s has conflicting public identifiers" in addPublic()
3895 p.sourcePos.file.string(), p.sourcePos.line); in addPublic()
3909 const SourcePos& sourcePos, in getEntry() argument
3919 sourcePos.error("Resource at %s appears in overlay but not" in getEntry()
3924 c = new ConfigList(entry, sourcePos); in getEntry()
3943 sourcePos.file.string(), sourcePos.line, in getEntry()
3963 sourcePos.file.string(), sourcePos.line); in getEntry()
3966 e = new Entry(entry, sourcePos); in getEntry()
4056 e->setPublicSourcePos(p.sourcePos); in applyPublicEntryOrder()
4065 p.sourcePos.error("Multiple entry names declared for public entry" in applyPublicEntryOrder()
4079 p.sourcePos.error("Public symbol %s/%s declared here is not defined.", in applyPublicEntryOrder()
4114 const SourcePos& sourcePos, in getType() argument
4119 t = new Type(type, sourcePos); in getType()
4292 const SourcePos& sourcePos, in getType() argument
4299 return p->getType(type, sourcePos, doSetIndex); in getType()
4305 const SourcePos& sourcePos, in getEntry() argument
4310 sp<Type> t = getType(package, type, sourcePos, doSetIndex); in getEntry()
4314 return t->getEntry(name, sourcePos, config, doSetIndex, overlay, mBundle->getAutoAddOverlay()); in getEntry()