| 1740 | } |
| 1741 | |
| 1742 | status_t AaptDir::addLeafFile(const String8& leafName, const sp<AaptFile>& file) |
| 1743 | { |
| 1744 | sp<AaptGroup> group; |
| 1745 | if (mFiles.indexOfKey(leafName) >= 0) { |
| 1746 | group = mFiles.valueFor(leafName); |
| 1747 | } else { |
| 1748 | group = new AaptGroup(leafName, mPath.appendPathCopy(leafName)); |
| 1749 | mFiles.add(leafName, group); |
| 1750 | } |
| 1751 | |
| 1752 | return group->addFile(file); |
| 1753 | } |
| 1754 | |
| 1755 | ssize_t AaptDir::slurpFullTree(Bundle* bundle, const String8& srcDir, |
| 1756 | const AaptGroupEntry& kind, const String8& resType, |
no test coverage detected