| 2622 | } |
| 2623 | |
| 2624 | status_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 | |
| 2645 | status_t AaptAssets::addIncludedResources(const sp<AaptFile>& file) |
| 2646 | { |
no test coverage detected