Home | History | Annotate | Download | only in aapt

Lines Matching refs:SourcePos

246     const SourcePos sourcePos;
257 , sourcePos(in->getPrintableSource(), block.getLineNumber())
275 sourcePos.error("Attribute \"%s\" has already been defined\n",
283 status_t err = outTable->addBag(sourcePos, myPackage,
325 attr.sourcePos.error("A 'name' attribute is required for <attr>\n");
337 attr.sourcePos.error("Tag <attr> 'format' attribute value \"%s\" not valid\n",
354 attr.sourcePos.error("Tag <attr> 'min' attribute must be a number, not \"%s\"\n",
360 err = outTable->addBag(attr.sourcePos, myPackage, attr16, attr.ident,
372 attr.sourcePos.error("Tag <attr> 'max' attribute must be a number, not \"%s\"\n",
378 err = outTable->addBag(attr.sourcePos, myPackage, attr16, attr.ident,
385 attr.sourcePos.error("Tag <attr> must have format=integer attribute if using max or min\n");
395 attr.sourcePos.error("Tag <attr> 'localization' attribute value \"%s\" not valid\n",
403 err = outTable->addBag(attr.sourcePos, myPackage, attr16, attr.ident,
421 SourcePos(in->getPrintableSource(), block.getLineNumber())
441 err = outTable->addBag(SourcePos(in->getPrintableSource(), block.getLineNumber()),
450 SourcePos(in->getPrintableSource(), block.getLineNumber())
454 SourcePos(in->getPrintableSource(), block.getLineNumber())
465 SourcePos(in->getPrintableSource(), block.getLineNumber())
475 SourcePos(in->getPrintableSource(), block.getLineNumber())
480 SourcePos(in->getPrintableSource(), block.getLineNumber())
489 err = outTable->startBag(SourcePos(in->getPrintableSource(), block.getLineNumber()),
520 err = outTable->addBag(SourcePos(in->getPrintableSource(), block.getLineNumber()),
534 SourcePos(in->getPrintableSource(), block.getLineNumber())
541 SourcePos(in->getPrintableSource(), block.getLineNumber())
606 err = outTable->addBag(SourcePos(in->getPrintableSource(), block->getLineNumber()),
746 err = outTable->addEntry(SourcePos(in->getPrintableSource(), block->getLineNumber()),
844 SourcePos(in->getPrintableSource(), block.getLineNumber()).error(
849 SourcePos(in->getPrintableSource(), block.getLineNumber()).error(
897 SourcePos srcPos(in->getPrintableSource(), block.getLineNumber());
969 SourcePos srcPos(in->getPrintableSource(), block.getLineNumber());
1082 SourcePos(in->getPrintableSource(), block.getLineNumber()).error(
1101 SourcePos srcPos(in->getPrintableSource(), block.getLineNumber());
1144 SourcePos srcPos(in->getPrintableSource(), block.getLineNumber());
1174 SourcePos srcPos(in->getPrintableSource(), block.getLineNumber());
1228 SourcePos(in->getPrintableSource(), block.getLineNumber()).error(
1243 SourcePos srcPos(String8(in->getPrintableSource()), block.getLineNumber());
1254 SourcePos(in->getPrintableSource(), block.getLineNumber()).error(
1281 SourcePos(in->getPrintableSource(), block.getLineNumber()).error(
1288 SourcePos(in->getPrintableSource(), block.getLineNumber()).error(
1377 SourcePos(in->getPrintableSource(), block.getLineNumber()).error(
1401 SourcePos(in->getPrintableSource(), block.getLineNumber()).error(
1437 SourcePos(in->getPrintableSource(), block.getLineNumber()).error(
1448 SourcePos(in->getPrintableSource(), block.getLineNumber()).error(
1476 err = outTable->startBag(SourcePos(in->getPrintableSource(),
1492 SourcePos(in->getPrintableSource(), block.getLineNumber()).error(
1526 SourcePos(in->getPrintableSource(), block.getLineNumber()).error(
1531 SourcePos(in->getPrintableSource(), block.getLineNumber()).error(
1540 SourcePos(in->getPrintableSource(), block.getLineNumber()).error(
1569 SourcePos(in->getPrintableSource(), block.getLineNumber()).error(
1618 SourcePos(in->getPrintableSource(), block.getLineNumber()).error(
1629 SourcePos(in->getPrintableSource(), block.getLineNumber()).error(
1728 const SourcePos unknown(String8("????"), 0);
1734 status_t ResourceTable::addPublic(const SourcePos& sourcePos,
1745 sourcePos.error("Error declaring public resource %s/%s for included package %s\n",
1751 sp<Type> t = getType(package, type, sourcePos);
1755 return t->addPublic(sourcePos, name, ident);
1758 status_t ResourceTable::addEntry(const SourcePos& sourcePos,
1782 sourcePos.file.string(), sourcePos.line, String8(type).string(),
1787 sp<Entry> e = getEntry(package, type, name, sourcePos, overwrite,
1792 status_t err = e->setItem(sourcePos, value, style, format, overwrite);
1799 status_t ResourceTable::startBag(const SourcePos& sourcePos,
1823 sourcePos.file.striing(), sourcePos.line, String8(type).string());
1838 sourcePos.error("Resource does not already exist in overlay at '%s'; use <add-resource> to add.\n",
1843 sp<Entry> e = getEntry(package, type, name, sourcePos, overlay, params);
1853 if ((result = e->makeItABag(sourcePos)) != NO_ERROR) {
1858 return e->emptyBag(sourcePos);
1863 status_t ResourceTable::addBag(const SourcePos& sourcePos,
1887 sourcePossourcePos.line, String8(type).string());
1890 sp<Entry> e = getEntry(package, type, name, sourcePos, replace, params);
1901 status_t err = e->addToBag(sourcePos, bagKey, value, style, replace, isId, format);
2023 void ResourceTable::canAddEntry(const SourcePos& pos,
2316 ac->sourcePos.error("Error: %s (at '%s' with value '%s').\n",
2455 const SourcePos unknown(String8("????"), 0);
3107 const SourcePos& pos = c->getEntries().valueAt(k)->getPos();
3123 ResourceTable::Item::Item(const SourcePos& _sourcePos,
3128 : sourcePos(_sourcePos)
3140 status_t ResourceTable::Entry::makeItABag(const SourcePos& sourcePos)
3149 sourcePos.error("Resource entry %s is already defined as a single item.\n"
3152 mItem.sourcePos.file.string(), mItem.sourcePos.line);
3156 status_t ResourceTable::Entry::setItem(const SourcePos& sourcePos,
3162 Item item(sourcePos, false, value, style);
3166 sourcePos.error("Resource entry %s is already defined as a bag.\n"
3169 item.sourcePos.file.string(), item.sourcePos.line);
3173 sourcePos.error("Resource entry %s is already defined.\n"
3176 mItem.sourcePos.file.string(), mItem.sourcePos.line);
3186 status_t ResourceTable::Entry::addToBag(const SourcePos& sourcePos,
3191 status_t err = makeItABag(sourcePos);
3196 Item item(sourcePos, isId, value, style, format);
3205 sourcePos.error("Resource entry %s already has bag item %s.\n"
3208 item.sourcePos.file.string(), item.sourcePos.line);
3220 status_t ResourceTable::Entry::emptyBag(const SourcePossourcePos)
3222 status_t err = makeItABag(sourcePos);
3243 status_t err = table->addEntry(SourcePos(String8("<generated>"), 0), package,
3256 // item.sourcePos.file.string(), item.sourcePos.line);
3261 status_t err = table->addBag(SourcePos("<generated>", 0), package,
3301 it.sourcePos.error("Error: %s: %s '%s'.\n", errorMsg,
3316 AccessorCookie ac(it.sourcePos, String8(mName), String8(it.value));
3328 AccessorCookie ac(it.sourcePos, String8(key), String8(it.value));
3475 status_t ResourceTable::Type::addPublic(const SourcePos& sourcePos,
3482 sourcePos.error("Public resource %s/%s has an invalid 0 identifier (0x%08x).\n",
3492 sourcePos.error("Public resource %s/%s has conflicting type codes for its"
3502 mFirstPublicSourcePos = new SourcePos(sourcePos);
3506 mPublic.add(name, Public(sourcePos, String16(), ident));
3510 sourcePos.error("Public resource %s/%s has conflicting public identifiers"
3514 p.sourcePos.file.string(), p.sourcePos.line);
3528 const SourcePos& sourcePos,
3538 sourcePos.error("Resource at %s appears in overlay but not"
3543 c = new ConfigList(entry, sourcePos);
3561 sourcePos.file.string(), sourcePos.line,
3581 sourcePos.file.string(), sourcePos.line));
3583 e = new Entry(entry, sourcePos);
3594 sourcePos.error("Internal error: config not found in mOrderedConfigs when adding entry");
3634 p.sourcePos.error("Public entry identifier 0x%x entry index "
3640 e->setPublicSourcePos(p.sourcePos);
3649 p.sourcePos.error("Multiple entry names declared for public entry"
3663 p.sourcePos.error("Public symbol %s/%s declared here is not defined.",
3698 const SourcePos& sourcePos,
3703 t = new Type(type, sourcePos);
3832 const SourcePos& sourcePos,
3839 return p->getType(type, sourcePos, doSetIndex);
3845 const SourcePos& sourcePos,
3850 sp<Type> t = getType(package, type, sourcePos, doSetIndex);
3854 return t->getEntry(name, sourcePos, config, doSetIndex, overlay, mBundle->getAutoAddOverlay());