Searched refs:de (Results 1 – 8 of 8) sorted by relevance
/bootable/recovery/applypatch/ |
D | freecache.cpp | 43 struct dirent* de; in EliminateOpenFiles() local 44 while ((de = readdir(d.get())) != 0) { in EliminateOpenFiles() 46 if (!android::base::ParseUint(de->d_name, &pid)) { in EliminateOpenFiles() 49 std::string path = android::base::StringPrintf("/proc/%s/fd/", de->d_name); in EliminateOpenFiles() 66 printf("%s is open by %s\n", link, de->d_name); in EliminateOpenFiles() 89 struct dirent* de; in FindExpendableFiles() local 90 while ((de = readdir(d.get())) != 0) { in FindExpendableFiles() 91 std::string path = std::string(dirs[i]) + "/" + de->d_name; in FindExpendableFiles()
|
/bootable/recovery/otautil/ |
D | DirUtil.cpp | 169 struct dirent *de; in dirUnlinkHierarchy() local 190 while ((de = readdir(dir)) != NULL) { in dirUnlinkHierarchy() 193 if (!strcmp(de->d_name, "..") || !strcmp(de->d_name, ".")) { in dirUnlinkHierarchy() 196 snprintf(dn, sizeof(dn), "%s/%s", path, de->d_name); in dirUnlinkHierarchy()
|
D | ThermalUtil.cpp | 33 static int thermal_filter(const dirent* de) { in thermal_filter() argument 34 if (android::base::StartsWith(de->d_name, "thermal_zone")) { in thermal_filter()
|
/bootable/recovery/minui/ |
D | events.cpp | 65 dirent* de; in ev_init() local 66 while ((de = readdir(dir))) { in ev_init() 67 if (strncmp(de->d_name, "event", 5)) continue; in ev_init() 68 int fd = openat(dirfd(dir), de->d_name, O_RDONLY); in ev_init()
|
/bootable/recovery/tests/manual/ |
D | recovery_test.cpp | 104 static int png_filter(const dirent* de) { in png_filter() argument 105 if (de->d_type != DT_REG || !android::base::EndsWith(de->d_name, "_text.png")) { in png_filter()
|
/bootable/recovery/ |
D | screen_ui.cpp | 540 dirent* de; in LoadAnimation() local 544 while ((de = readdir(dir.get())) != nullptr) { in LoadAnimation() 546 if (sscanf(de->d_name, "intro%d%n.png", &value, &num_chars) == 1) { in LoadAnimation() 547 intro_frame_names.emplace_back(de->d_name, num_chars); in LoadAnimation() 548 } else if (sscanf(de->d_name, "loop%d%n.png", &value, &num_chars) == 1) { in LoadAnimation() 549 loop_frame_names.emplace_back(de->d_name, num_chars); in LoadAnimation()
|
D | recovery.cpp | 538 struct dirent* de; in erase_volume() local 541 while ((de = readdir(d.get())) != nullptr) { in erase_volume() 542 if (strncmp(de->d_name, "last_", 5) == 0 || strcmp(de->d_name, "log") == 0) { in erase_volume() 543 std::string path = android::base::StringPrintf("%s/%s", CACHE_LOG_DIR, de->d_name); in erase_volume() 682 dirent* de; in browse_directory() local 683 while ((de = readdir(d.get())) != nullptr) { in browse_directory() 684 std::string name(de->d_name); in browse_directory() 686 if (de->d_type == DT_DIR) { in browse_directory() 690 } else if (de->d_type == DT_REG && android::base::EndsWithIgnoreCase(name, ".zip")) { in browse_directory()
|
/bootable/recovery/update_verifier/ |
D | update_verifier.cpp | 67 static int dm_name_filter(const dirent* de) { in dm_name_filter() argument 68 if (android::base::StartsWith(de->d_name, "dm-")) { in dm_name_filter()
|