Lines Matching refs:dir

400 AaptGroupEntry::initFromDirName(const char* dir, String8* resType)  in initFromDirName()  argument
402 const char* q = strchr(dir, '-'); in initFromDirName()
405 typeLen = q - dir; in initFromDirName()
407 typeLen = strlen(dir); in initFromDirName()
410 String8 type(dir, typeLen); in initFromDirName()
605 status_t AaptDir::addDir(const String8& name, const sp<AaptDir>& dir) in addDir() argument
610 mDirs.add(name, dir); in addDir()
628 sp<AaptDir> dir = new AaptDir(name, subdir->mPath.appendPathCopy(name)); in makeDir() local
629 subdir->mDirs.add(name, dir); in makeDir()
630 return dir; in makeDir()
663 DIR* dir = NULL; in slurpFullTree() local
665 dir = opendir(srcDir.string()); in slurpFullTree()
666 if (dir == NULL) { in slurpFullTree()
677 entry = readdir(dir); in slurpFullTree()
692 closedir(dir); in slurpFullTree()
908 sp<AaptDir> dir = this; in addFile() local
919 ssize_t i = dir->getFiles().indexOfKey(rootStr); in addFile()
921 group = dir->getFiles().valueAt(i); in addFile()
924 status_t res = dir->addFile(rootStr, group); in addFile()
937 ssize_t i = dir->getDirs().indexOfKey(rootStr); in addFile()
939 dir = dir->getDirs().valueAt(i); in addFile()
942 status_t res = dir->addDir(rootStr, subdir); in addFile()
946 dir = subdir; in addFile()
1136 DIR* dir = opendir(srcDir.string()); in slurpResourceTree() local
1137 if (dir == NULL) { in slurpResourceTree()
1149 struct dirent* entry = readdir(dir); in slurpResourceTree()
1184 sp<AaptDir> dir = makeDir(resType); in slurpResourceTree() local
1185 ssize_t res = dir->slurpFullTree(bundle, subdirName, group, in slurpResourceTree()
1201 mResDirs.add(dir); in slurpResourceTree()
1211 closedir(dir); in slurpResourceTree()
1212 dir = NULL; in slurpResourceTree()
1245 sp<AaptDir> dir = dirName == "" ? this : makeDir(dirName); in slurpResourceZip() local
1263 dir->removeFile(entryName.getPathLeaf()); in slurpResourceZip()
1266 status_t err = dir->addLeafFile(entryName.getPathLeaf(), file); in slurpResourceZip()
1348 const sp<AaptDir>& dir = resdirs.itemAt(i); in filter() local
1349 if (dir->getLeaf() == kValuesDir) { in filter()
1355 if (dir->getLeaf() == kMipmapDir) { in filter()
1363 const size_t NG = dir->getFiles().size(); in filter()
1365 sp<AaptGroup> grp = dir->getFiles().valueAt(j); in filter()