MCPcopy Create free account
hub / github.com/CyanogenMod/android_frameworks_base / checkForIds

Function checkForIds

tools/aapt/Resource.cpp:552–565  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

550}
551
552static void checkForIds(const String8& path, ResXMLParser& parser)
553{
554 ResXMLTree::event_code_t code;
555 while ((code=parser.next()) != ResXMLTree::END_DOCUMENT
556 && code > ResXMLTree::BAD_DOCUMENT) {
557 if (code == ResXMLTree::START_TAG) {
558 ssize_t index = parser.indexOfAttribute(NULL, "id");
559 if (index >= 0) {
560 fprintf(stderr, "%s:%d: warning: found plain 'id' attribute; did you mean the new 'android:id' name?\n",
561 path.string(), parser.getLineNumber());
562 }
563 }
564 }
565}
566
567static bool applyFileOverlay(Bundle *bundle,
568 const sp<AaptAssets>& assets,

Callers 1

buildResourcesFunction · 0.85

Calls 4

indexOfAttributeMethod · 0.80
stringMethod · 0.80
nextMethod · 0.45
getLineNumberMethod · 0.45

Tested by

no test coverage detected