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

Method buildIncludedResources

tools/aapt/AaptAssets.cpp:2624–2643  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2622}
2623
2624status_t AaptAssets::buildIncludedResources(Bundle* bundle)
2625{
2626 if (!mHaveIncludedAssets) {
2627 // Add in all includes.
2628 const Vector<const char*>& incl = bundle->getPackageIncludes();
2629 const size_t N=incl.size();
2630 for (size_t i=0; i<N; i++) {
2631 if (bundle->getVerbose())
2632 printf("Including resources from package: %s\n", incl[i]);
2633 if (!mIncludedAssets.addAssetPath(String8(incl[i]), NULL)) {
2634 fprintf(stderr, "ERROR: Asset package include '%s' not found.\n",
2635 incl[i]);
2636 return UNKNOWN_ERROR;
2637 }
2638 }
2639 mHaveIncludedAssets = true;
2640 }
2641
2642 return NO_ERROR;
2643}
2644
2645status_t AaptAssets::addIncludedResources(const sp<AaptFile>& file)
2646{

Callers 1

addIncludedResourcesMethod · 0.80

Calls 3

getVerboseMethod · 0.80
sizeMethod · 0.65
addAssetPathMethod · 0.45

Tested by

no test coverage detected