Lines Matching refs:sourcePos
245 const SourcePos sourcePos;
256 , sourcePos(in->getPrintableSource(), block.getLineNumber())
274 sourcePos.error("Attribute \"%s\" has already been defined\n",
282 status_t err = outTable->addBag(sourcePos, myPackage,
324 attr.sourcePos.error("A 'name' attribute is required for <attr>\n");
336 attr.sourcePos.error("Tag <attr> 'format' attribute value \"%s\" not valid\n",
353 attr.sourcePos.error("Tag <attr> 'min' attribute must be a number, not \"%s\"\n",
359 err = outTable->addBag(attr.sourcePos, myPackage, attr16, attr.ident,
371 attr.sourcePos.error("Tag <attr> 'max' attribute must be a number, not \"%s\"\n",
377 err = outTable->addBag(attr.sourcePos, myPackage, attr16, attr.ident,
384 attr.sourcePos.error("Tag <attr> must have format=integer attribute if using max or min\n");
394 attr.sourcePos.error("Tag <attr> 'localization' attribute value \"%s\" not valid\n",
402 err = outTable->addBag(attr.sourcePos, myPackage, attr16, attr.ident,
420 SourcePos(in->getPrintableSource(), block.getLineNumber())
440 err = outTable->addBag(SourcePos(in->getPrintableSource(), block.getLineNumber()),
449 SourcePos(in->getPrintableSource(), block.getLineNumber())
453 SourcePos(in->getPrintableSource(), block.getLineNumber())
464 SourcePos(in->getPrintableSource(), block.getLineNumber())
474 SourcePos(in->getPrintableSource(), block.getLineNumber())
479 SourcePos(in->getPrintableSource(), block.getLineNumber())
488 err = outTable->startBag(SourcePos(in->getPrintableSource(), block.getLineNumber()),
519 err = outTable->addBag(SourcePos(in->getPrintableSource(), block.getLineNumber()),
533 SourcePos(in->getPrintableSource(), block.getLineNumber())
540 SourcePos(in->getPrintableSource(), block.getLineNumber())
605 err = outTable->addBag(SourcePos(in->getPrintableSource(), block->getLineNumber()),
713 err = outTable->addEntry(SourcePos(in->getPrintableSource(), block->getLineNumber()),
805 SourcePos(in->getPrintableSource(), block.getLineNumber()).error(
810 SourcePos(in->getPrintableSource(), block.getLineNumber()).error(
858 SourcePos srcPos(in->getPrintableSource(), block.getLineNumber());
930 SourcePos srcPos(in->getPrintableSource(), block.getLineNumber());
1043 SourcePos(in->getPrintableSource(), block.getLineNumber()).error(
1062 SourcePos srcPos(in->getPrintableSource(), block.getLineNumber());
1092 SourcePos srcPos(in->getPrintableSource(), block.getLineNumber());
1146 SourcePos(in->getPrintableSource(), block.getLineNumber()).error(
1161 SourcePos srcPos(String8(in->getPrintableSource()), block.getLineNumber());
1172 SourcePos(in->getPrintableSource(), block.getLineNumber()).error(
1199 SourcePos(in->getPrintableSource(), block.getLineNumber()).error(
1206 SourcePos(in->getPrintableSource(), block.getLineNumber()).error(
1295 SourcePos(in->getPrintableSource(), block.getLineNumber()).error(
1319 SourcePos(in->getPrintableSource(), block.getLineNumber()).error(
1355 SourcePos(in->getPrintableSource(), block.getLineNumber()).error(
1366 SourcePos(in->getPrintableSource(), block.getLineNumber()).error(
1394 err = outTable->startBag(SourcePos(in->getPrintableSource(),
1410 SourcePos(in->getPrintableSource(), block.getLineNumber()).error(
1444 SourcePos(in->getPrintableSource(), block.getLineNumber()).error(
1449 SourcePos(in->getPrintableSource(), block.getLineNumber()).error(
1458 SourcePos(in->getPrintableSource(), block.getLineNumber()).error(
1487 SourcePos(in->getPrintableSource(), block.getLineNumber()).error(
1536 SourcePos(in->getPrintableSource(), block.getLineNumber()).error(
1547 SourcePos(in->getPrintableSource(), block.getLineNumber()).error(
1622 const SourcePos unknown(String8("????"), 0);
1628 status_t ResourceTable::addPublic(const SourcePos& sourcePos,
1639 sourcePos.error("Error declaring public resource %s/%s for included package %s\n",
1645 sp<Type> t = getType(package, type, sourcePos);
1649 return t->addPublic(sourcePos, name, ident);
1652 status_t ResourceTable::addEntry(const SourcePos& sourcePos,
1676 sourcePos.file.string(), sourcePos.line, String8(type).string(),
1681 sp<Entry> e = getEntry(package, type, name, sourcePos, overwrite,
1686 status_t err = e->setItem(sourcePos, value, style, format, overwrite);
1693 status_t ResourceTable::startBag(const SourcePos& sourcePos,
1717 sourcePos.file.striing(), sourcePos.line, String8(type).string());
1732 sourcePos.error("Resource does not already exist in overlay at '%s'; use <add-resource> to add.\n",
1737 sp<Entry> e = getEntry(package, type, name, sourcePos, overlay, params);
1747 if ((result = e->makeItABag(sourcePos)) != NO_ERROR) {
1752 return e->emptyBag(sourcePos);
1757 status_t ResourceTable::addBag(const SourcePos& sourcePos,
1781 sourcePos.file.striing(), sourcePos.line, String8(type).string());
1784 sp<Entry> e = getEntry(package, type, name, sourcePos, replace, params);
1795 status_t err = e->addToBag(sourcePos, bagKey, value, style, replace, isId, format);
1917 void ResourceTable::canAddEntry(const SourcePos& pos,
2196 ac->sourcePos.error("Error: %s (at '%s' with value '%s').\n",
2339 const SourcePos unknown(String8("????"), 0);
2936 const SourcePos& pos = c->getEntries().valueAt(k)->getPos();
2952 ResourceTable::Item::Item(const SourcePos& _sourcePos,
2957 : sourcePos(_sourcePos)
2969 status_t ResourceTable::Entry::makeItABag(const SourcePos& sourcePos)
2978 sourcePos.error("Resource entry %s is already defined as a single item.\n"
2981 mItem.sourcePos.file.string(), mItem.sourcePos.line);
2985 status_t ResourceTable::Entry::setItem(const SourcePos& sourcePos,
2991 Item item(sourcePos, false, value, style);
2995 sourcePos.error("Resource entry %s is already defined as a bag.\n"
2998 item.sourcePos.file.string(), item.sourcePos.line);
3002 sourcePos.error("Resource entry %s is already defined.\n"
3005 mItem.sourcePos.file.string(), mItem.sourcePos.line);
3015 status_t ResourceTable::Entry::addToBag(const SourcePos& sourcePos,
3020 status_t err = makeItABag(sourcePos);
3025 Item item(sourcePos, isId, value, style, format);
3034 sourcePos.error("Resource entry %s already has bag item %s.\n"
3037 item.sourcePos.file.string(), item.sourcePos.line);
3049 status_t ResourceTable::Entry::emptyBag(const SourcePos& sourcePos)
3051 status_t err = makeItABag(sourcePos);
3072 status_t err = table->addEntry(SourcePos(String8("<generated>"), 0), package,
3085 // item.sourcePos.file.string(), item.sourcePos.line);
3090 status_t err = table->addBag(SourcePos("<generated>", 0), package,
3130 it.sourcePos.error("Error: %s: %s '%s'.\n", errorMsg,
3144 AccessorCookie ac(it.sourcePos, String8(mName), String8(it.value));
3155 AccessorCookie ac(it.sourcePos, String8(key), String8(it.value));
3278 status_t ResourceTable::Type::addPublic(const SourcePos& sourcePos,
3285 sourcePos.error("Public resource %s/%s has an invalid 0 identifier (0x%08x).\n",
3295 sourcePos.error("Public resource %s/%s has conflicting type codes for its"
3305 mFirstPublicSourcePos = new SourcePos(sourcePos);
3309 mPublic.add(name, Public(sourcePos, String16(), ident));
3313 sourcePos.error("Public resource %s/%s has conflicting public identifiers"
3317 p.sourcePos.file.string(), p.sourcePos.line);
3331 const SourcePos& sourcePos,
3341 sourcePos.error("Resource at %s appears in overlay but not"
3346 c = new ConfigList(entry, sourcePos);
3364 sourcePos.file.string(), sourcePos.line,
3383 sourcePos.file.string(), sourcePos.line));
3385 e = new Entry(entry, sourcePos);
3396 sourcePos.error("Internal error: config not found in mOrderedConfigs when adding entry");
3436 p.sourcePos.error("Public entry identifier 0x%x entry index "
3442 e->setPublicSourcePos(p.sourcePos);
3451 p.sourcePos.error("Multiple entry names declared for public entry"
3465 p.sourcePos.error("Public symbol %s/%s declared here is not defined.",
3500 const SourcePos& sourcePos,
3505 t = new Type(type, sourcePos);
3636 const SourcePos& sourcePos,
3643 return p->getType(type, sourcePos, doSetIndex);
3649 const SourcePos& sourcePos,
3654 sp<Type> t = getType(package, type, sourcePos, doSetIndex);
3658 return t->getEntry(name, sourcePos, config, doSetIndex, overlay, mBundle->getAutoAddOverlay());