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

Method addLeafFile

tools/aapt/AaptAssets.cpp:1742–1753  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1740}
1741
1742status_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
1755ssize_t AaptDir::slurpFullTree(Bundle* bundle, const String8& srcDir,
1756 const AaptGroupEntry& kind, const String8& resType,

Callers 1

slurpResourceZipMethod · 0.80

Calls 3

addMethod · 0.65
indexOfKeyMethod · 0.45
addFileMethod · 0.45

Tested by

no test coverage detected