Home
last modified time | relevance | path

Searched refs:ent (Results 1 – 11 of 11) sorted by relevance

/system/libziparchive/
Dzip_cd_entry_map.cc49 uint32_t ent = hash & (hash_table_size_ - 1); in GetCdEntryOffset() local
50 while (hash_table_[ent].name_offset != 0) { in GetCdEntryOffset()
51 if (hash_table_[ent].ToStringView(start) == name) { in GetCdEntryOffset()
52 return {kSuccess, hash_table_[ent].name_offset}; in GetCdEntryOffset()
54 ent = (ent + 1) & (hash_table_size_ - 1); in GetCdEntryOffset()
63 uint32_t ent = hash & (hash_table_size_ - 1); in AddToMap() local
69 while (hash_table_[ent].name_offset != 0) { in AddToMap()
70 if (hash_table_[ent].ToStringView(start) == name) { in AddToMap()
75 ent = (ent + 1) & (hash_table_size_ - 1); in AddToMap()
80 hash_table_[ent].name_offset = static_cast<uint32_t>(name.data() - start_char); in AddToMap()
[all …]
/system/bpf/bpfloader/
DBpfLoader.cpp59 struct dirent* ent; in loadAllElfObjects() local
62 while ((ent = readdir(dir)) != NULL) { in loadAllElfObjects()
63 string s = ent->d_name; in loadAllElfObjects()
/system/tools/aidl/
Dio_delegate.cpp207 while (struct dirent* ent = readdir(dir.get())) { in add_list_files() local
208 if (!strcmp(ent->d_name, ".") || !strcmp(ent->d_name, "..")) { in add_list_files()
211 if (ent->d_type == DT_REG) { in add_list_files()
212 result->emplace_back(dirname + OS_PATH_SEPARATOR + ent->d_name); in add_list_files()
213 } else if (ent->d_type == DT_DIR) { in add_list_files()
214 add_list_files(dirname + OS_PATH_SEPARATOR + ent->d_name, result); in add_list_files()
/system/vold/
DMoveStorage.cpp71 struct dirent* ent; in pushBackContents() local
72 while ((ent = readdir(dirp.get())) != NULL) { in pushBackContents()
73 if ((!strcmp(ent->d_name, ".")) || (!strcmp(ent->d_name, ".."))) { in pushBackContents()
76 auto subdir = path + "/" + ent->d_name; in pushBackContents()
/system/core/debuggerd/handler/
Ddebuggerd_fallback.cpp122 struct dirent* ent; in iterate_siblings() local
123 while ((ent = readdir(dir))) { in iterate_siblings()
125 long tid = strtol(ent->d_name, &end, 10); in iterate_siblings()
126 if (end == ent->d_name || *end != '\0') { in iterate_siblings()
/system/extras/latencytop/
Dlatencytop.c203 struct dirent *ent; in read_process_stats() local
216 while ((ent = readdir(dir))) { in read_process_stats()
217 if (!isdigit(ent->d_name[0])) in read_process_stats()
220 tid = atoi(ent->d_name); in read_process_stats()
/system/netd/server/
DInterfaceController.cpp124 const dirent *ent = readdir(dir); in forEachInterface() local
125 if (!ent) { in forEachInterface()
128 if ((ent->d_type != DT_DIR) || !isInterfaceName(ent->d_name)) { in forEachInterface()
131 fn(dirname, ent->d_name); in forEachInterface()
/system/tools/hidl/
DCoordinator.cpp462 struct dirent *ent; in getPackageInterfaceFiles() local
463 while ((ent = readdir(dir.get())) != nullptr) { in getPackageInterfaceFiles()
465 if (ent->d_type == DT_UNKNOWN) { in getPackageInterfaceFiles()
467 const auto filename = packagePath + std::string(ent->d_name); in getPackageInterfaceFiles()
475 } else if (ent->d_type != DT_REG) { in getPackageInterfaceFiles()
481 const auto d_namelen = strlen(ent->d_name); in getPackageInterfaceFiles()
484 || strcmp(ent->d_name + d_namelen - suffix_len, suffix)) { in getPackageInterfaceFiles()
488 fileNames->push_back(std::string(ent->d_name, d_namelen - suffix_len)); in getPackageInterfaceFiles()
/system/core/fs_mgr/
Dfs_mgr.cpp917 struct dirent* ent; in TranslateExtLabels() local
918 while ((ent = readdir(blockdir.get()))) { in TranslateExtLabels()
919 if (ent->d_type != DT_BLK) in TranslateExtLabels()
923 openat(dirfd(blockdir.get()), ent->d_name, O_RDONLY | O_CLOEXEC))); in TranslateExtLabels()
925 LERROR << "Cannot open block device /dev/block/" << ent->d_name; in TranslateExtLabels()
938 LINFO << "/dev/block/" << ent->d_name << " not ext{234}"; in TranslateExtLabels()
943 std::string new_blk_device = "/dev/block/"s + ent->d_name; in TranslateExtLabels()
/system/media/camera/docs/
Dmetadata_model.py878 for ent in self.entries:
879 new_ent = new_ent_dict.setdefault(ent.name,
880 ent.merge())
/system/core/adb/
Dsysdeps_win32.cpp2340 struct dirent* ent = reinterpret_cast<struct dirent*>(went); in adb_readdir() local
2356 strcpy(ent->d_name, name_utf8.c_str()); in adb_readdir()
2358 return ent; in adb_readdir()