Lines Matching refs:sourcePos
296 const SourcePos sourcePos;
307 , sourcePos(in->getPrintableSource(), block.getLineNumber())
322 if (!outTable->makeAttribute(myPackage, ident, sourcePos, type, comment, appendComment)) {
357 attr.sourcePos.error("A 'name' attribute is required for <attr>\n");
369 attr.sourcePos.error("Tag <attr> 'format' attribute value \"%s\" not valid\n",
386 attr.sourcePos.error("Tag <attr> 'min' attribute must be a number, not \"%s\"\n",
392 err = outTable->addBag(attr.sourcePos, myPackage, attr16, attr.ident,
404 attr.sourcePos.error("Tag <attr> 'max' attribute must be a number, not \"%s\"\n",
410 err = outTable->addBag(attr.sourcePos, myPackage, attr16, attr.ident,
417 attr.sourcePos.error("Tag <attr> must have format=integer attribute if using max or min\n");
427 attr.sourcePos.error("Tag <attr> 'localization' attribute value \"%s\" not valid\n",
435 err = outTable->addBag(attr.sourcePos, myPackage, attr16, attr.ident,
453 SourcePos(in->getPrintableSource(), block.getLineNumber())
473 err = outTable->addBag(SourcePos(in->getPrintableSource(), block.getLineNumber()),
482 SourcePos(in->getPrintableSource(), block.getLineNumber())
486 SourcePos(in->getPrintableSource(), block.getLineNumber())
497 SourcePos(in->getPrintableSource(), block.getLineNumber())
507 SourcePos(in->getPrintableSource(), block.getLineNumber())
512 SourcePos(in->getPrintableSource(), block.getLineNumber())
543 err = outTable->addBag(SourcePos(in->getPrintableSource(), block.getLineNumber()),
557 SourcePos(in->getPrintableSource(), block.getLineNumber())
564 SourcePos(in->getPrintableSource(), block.getLineNumber())
631 err = outTable->addBag(SourcePos(in->getPrintableSource(), block->getLineNumber()),
773 err = outTable->addEntry(SourcePos(in->getPrintableSource(), block->getLineNumber()),
871 SourcePos(in->getPrintableSource(), block.getLineNumber()).error(
876 SourcePos(in->getPrintableSource(), block.getLineNumber()).error(
903 SourcePos(in->getPrintableSource(), 0).warning(
946 SourcePos srcPos(in->getPrintableSource(), block.getLineNumber());
1018 SourcePos srcPos(in->getPrintableSource(), block.getLineNumber());
1131 SourcePos(in->getPrintableSource(), block.getLineNumber()).error(
1137 SourcePos(in->getPrintableSource(), block.getLineNumber()).warning(
1141 SourcePos(in->getPrintableSource(), block.getLineNumber()).warning(
1158 SourcePos srcPos(in->getPrintableSource(), block.getLineNumber());
1201 SourcePos srcPos(in->getPrintableSource(), block.getLineNumber());
1231 SourcePos srcPos(in->getPrintableSource(), block.getLineNumber());
1285 SourcePos(in->getPrintableSource(), block.getLineNumber()).error(
1300 SourcePos srcPos(String8(in->getPrintableSource()), block.getLineNumber());
1311 SourcePos(in->getPrintableSource(), block.getLineNumber()).error(
1342 SourcePos(in->getPrintableSource(), block.getLineNumber()).error(
1349 SourcePos(in->getPrintableSource(), block.getLineNumber()).error(
1384 SourcePos(in->getPrintableSource(), block.getLineNumber()).warning(
1400 SourcePos(in->getPrintableSource(), block.getLineNumber()));
1444 SourcePos(in->getPrintableSource(), block.getLineNumber()).error(
1469 SourcePos(in->getPrintableSource(), block.getLineNumber()).error(
1512 SourcePos(in->getPrintableSource(), block.getLineNumber()).error(
1523 SourcePos(in->getPrintableSource(), block.getLineNumber()).error(
1551 err = outTable->startBag(SourcePos(in->getPrintableSource(),
1567 SourcePos(in->getPrintableSource(), block.getLineNumber()).error(
1601 SourcePos(in->getPrintableSource(), block.getLineNumber()).error(
1606 SourcePos(in->getPrintableSource(), block.getLineNumber()).error(
1615 SourcePos(in->getPrintableSource(), block.getLineNumber()).error(
1654 SourcePos(in->getPrintableSource(), block.getLineNumber()).error(
1717 SourcePos(in->getPrintableSource(), block.getLineNumber()).error(
1728 SourcePos(in->getPrintableSource(), block.getLineNumber()).error(
1793 const SourcePos unknown(String8("????"), 0);
1834 status_t ResourceTable::addPublic(const SourcePos& sourcePos,
1845 sourcePos.error("Error declaring public resource %s/%s for included package %s\n",
1851 sp<Type> t = getType(package, type, sourcePos);
1855 return t->addPublic(sourcePos, name, ident);
1858 status_t ResourceTable::addEntry(const SourcePos& sourcePos,
1874 sourcePos.error("Resource entry %s/%s is already defined in package %s.",
1879 sp<Entry> e = getEntry(package, type, name, sourcePos, overwrite,
1884 status_t err = e->setItem(sourcePos, value, style, format, overwrite);
1891 status_t ResourceTable::startBag(const SourcePos& sourcePos,
1909 sourcePos.error("Resource entry %s/%s is already defined in package %s.",
1926 sourcePos.error("Resource does not already exist in overlay at '%s'; use <add-resource> to add.\n",
1931 sp<Entry> e = getEntry(package, type, name, sourcePos, overlay, params);
1941 if ((result = e->makeItABag(sourcePos)) != NO_ERROR) {
1946 return e->emptyBag(sourcePos);
1951 status_t ResourceTable::addBag(const SourcePos& sourcePos,
1975 sourcePos.file.striing(), sourcePos.line, String8(type).string());
1978 sp<Entry> e = getEntry(package, type, name, sourcePos, replace, params);
1989 status_t err = e->addToBag(sourcePos, bagKey, value, style, replace, isId, format);
2113 const SourcePos& source,
2152 String8(name).string(), formatItem.sourcePos.file.string(),
2153 formatItem.sourcePos.line);
2166 void ResourceTable::canAddEntry(const SourcePos& pos,
2487 ac->sourcePos.error("Error: %s (at '%s' with value '%s').\n",
2636 const SourcePos unknown(String8("????"), 0);
2782 ResourceTable::addLocalization(const String16& name, const String8& locale, const SourcePos& src)
2811 const std::map<String8, SourcePos>& configSrcMap = nameIter.second;
2815 SourcePos().warning("string '%s' has no default translation.",
2868 SourcePos().warning("string '%s' is missing %u required localizations:%s",
3447 const SourcePos& pos = c->getEntries().valueAt(k)->getPos();
3463 ResourceTable::Item::Item(const SourcePos& _sourcePos,
3468 : sourcePos(_sourcePos)
3505 status_t ResourceTable::Entry::makeItABag(const SourcePos& sourcePos)
3514 sourcePos.error("Resource entry %s is already defined as a single item.\n"
3517 mItem.sourcePos.file.string(), mItem.sourcePos.line);
3521 status_t ResourceTable::Entry::setItem(const SourcePos& sourcePos,
3527 Item item(sourcePos, false, value, style);
3531 sourcePos.error("Resource entry %s is already defined as a bag.",
3535 sourcePos.error("Resource entry %s is already defined as a bag.\n"
3538 item.sourcePos.file.string(), item.sourcePos.line);
3543 sourcePos.error("Resource entry %s is already defined.\n"
3546 mItem.sourcePos.file.string(), mItem.sourcePos.line);
3556 status_t ResourceTable::Entry::addToBag(const SourcePos& sourcePos,
3561 status_t err = makeItABag(sourcePos);
3566 Item item(sourcePos, isId, value, style, format);
3575 sourcePos.error("Resource entry %s already has bag item %s.\n"
3578 item.sourcePos.file.string(), item.sourcePos.line);
3601 status_t ResourceTable::Entry::emptyBag(const SourcePos& sourcePos)
3603 status_t err = makeItABag(sourcePos);
3629 status_t err = table->addEntry(SourcePos(String8("<generated>"), 0), package,
3642 // item.sourcePos.file.string(), item.sourcePos.line);
3647 status_t err = table->addBag(SourcePos("<generated>", 0), package,
3687 it.sourcePos.error("Error: %s: %s '%s'.\n", errorMsg,
3702 AccessorCookie ac(it.sourcePos, String8(mName), String8(it.value));
3714 AccessorCookie ac(it.sourcePos, String8(key), String8(it.value));
3859 status_t ResourceTable::Type::addPublic(const SourcePos& sourcePos,
3866 sourcePos.error("Public resource %s/%s has an invalid 0 identifier (0x%08x).\n",
3876 sourcePos.error("Public resource %s/%s has conflicting type codes for its"
3886 mFirstPublicSourcePos = new SourcePos(sourcePos);
3890 mPublic.add(name, Public(sourcePos, String16(), ident));
3894 sourcePos.error("Public resource %s/%s has conflicting public identifiers"
3898 p.sourcePos.file.string(), p.sourcePos.line);
3912 const SourcePos& sourcePos,
3922 sourcePos.error("Resource at %s appears in overlay but not"
3927 c = new ConfigList(entry, sourcePos);
3946 sourcePos.file.string(), sourcePos.line,
3966 sourcePos.file.string(), sourcePos.line);
3969 e = new Entry(entry, sourcePos);
3980 sourcePos.error("Internal error: config not found in mOrderedConfigs when adding entry");
4059 e->setPublicSourcePos(p.sourcePos);
4068 p.sourcePos.error("Multiple entry names declared for public entry"
4082 p.sourcePos.error("Public symbol %s/%s declared here is not defined.",
4117 const SourcePos& sourcePos,
4122 t = new Type(type, sourcePos);
4261 sp<Type> privateAttrType = getType(String16(kAttrPrivateType), SourcePos());
4295 const SourcePos& sourcePos,
4302 return p->getType(type, sourcePos, doSetIndex);
4308 const SourcePos& sourcePos,
4313 sp<Type> t = getType(package, type, sourcePos, doSetIndex);
4317 return t->getEntry(name, sourcePos, config, doSetIndex, overlay, mBundle->getAutoAddOverlay());
4821 addEntry(SourcePos(),
4904 SourcePos(node->getFilename(), node->getStartLineNumber()).printf(
4944 SourcePos(target->getSourceFile(), -1).printf(
4953 addEntry(SourcePos(),
5122 SourcePos source(child->getFilename(), child->getStartLineNumber());
5211 SourcePos(parent->getFilename(), parent->getStartLineNumber())