| 2052 | } |
| 2053 | |
| 2054 | void 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 | |
| 2067 | ssize_t AaptAssets::slurpFromArgs(Bundle* bundle) |
no test coverage detected