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

Method addResource

tools/aapt/AaptAssets.cpp:2054–2064  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2052}
2053
2054void AaptAssets::addResource(const String8& leafName, const String8& path,
2055 const sp<AaptFile>& file, const String8& resType)
2056{
2057 sp<AaptDir> res = AaptDir::makeDir(kResString);
2058 String8 dirname = file->getGroupEntry().toDirName(resType);
2059 sp<AaptDir> subdir = res->makeDir(dirname);
2060 sp<AaptGroup> grr = new AaptGroup(leafName, path);
2061 grr->addFile(file);
2062
2063 subdir->addFile(leafName, grr);
2064}
2065
2066
2067ssize_t AaptAssets::slurpFromArgs(Bundle* bundle)

Callers 1

makeFileResourcesFunction · 0.80

Calls 3

toDirNameMethod · 0.80
makeDirMethod · 0.80
addFileMethod · 0.45

Tested by

no test coverage detected