Home
last modified time | relevance | path

Searched refs:d_name (Results 1 – 25 of 87) sorted by relevance

1234

/system/memory/libmeminfo/libdmabufinfo/
Ddmabuf_sysfs_stats.cpp75 if (!strcmp(dent->d_name, ".") || !strcmp(dent->d_name, "..")) continue; in GetDmabufSysfsStats()
78 "%s/%s", dmabuf_sysfs_stats_path.c_str(), dent->d_name); in GetDmabufSysfsStats()
83 if (!android::base::ParseUint(dent->d_name, &info.inode)) { in GetDmabufSysfsStats()
84 LOG(ERROR) << "Unable to parse value from " << dent->d_name; in GetDmabufSysfsStats()
133 if (!strcmp(dent->d_name, ".") || !strcmp(dent->d_name, "..")) continue; in GetDmabufTotalExportedKb()
136 "%s/%s", dmabuf_sysfs_stats_path.c_str(), dent->d_name); in GetDmabufTotalExportedKb()
/system/extras/tests/audio/alsa/
Dpcmtest.cpp84 if (de->d_name[0] == '.') in getPcmNodes()
86 if (strstr(de->d_name, PCM_PREFIX)) in getPcmNodes()
107 if (de->d_name[0] == '.') in getSndDev()
110 if (strstr(de->d_name, PCM_PREFIX)) { in getSndDev()
116 sscanf(de->d_name, PCM_PREFIX "C%uD%u", &(pcmnodes[pcms].card), in getSndDev()
118 flags = de->d_name[strlen(de->d_name)-1]; in getSndDev()
133 if (strstr(de->d_name, MIXER_PREFIX)) { in getSndDev()
135 sscanf(de->d_name, MIXER_PREFIX "C%u", &mixer); in getSndDev()
139 if (strstr(de->d_name, TIMER_PREFIX)) { in getSndDev()
/system/apex/libs/libapexutil/
Dapexutil.cpp65 if (entry->d_name[0] == '.') in GetActivePackages()
69 if (strchr(entry->d_name, '@') != nullptr) in GetActivePackages()
71 if (strcmp(entry->d_name, "sharedlibs") == 0) in GetActivePackages()
73 std::string apex_path = apex_root + "/" + entry->d_name; in GetActivePackages()
/system/core/init/
Dpersistent_properties.cpp66 if (!StartsWith(entry->d_name, "persist.")) { in LoadLegacyPersistentProperties()
73 unique_fd fd(openat(dirfd(dir.get()), entry->d_name, O_RDONLY | O_NOFOLLOW | O_CLOEXEC)); in LoadLegacyPersistentProperties()
75 PLOG(ERROR) << "Unable to open persistent property file \"" << entry->d_name << "\""; in LoadLegacyPersistentProperties()
81 PLOG(ERROR) << "fstat on property file \"" << entry->d_name << "\" failed"; in LoadLegacyPersistentProperties()
89 PLOG(ERROR) << "skipping insecure property file " << entry->d_name in LoadLegacyPersistentProperties()
97 AddPersistentProperty(entry->d_name, value, &persistent_properties); in LoadLegacyPersistentProperties()
99 PLOG(ERROR) << "Unable to read persistent property file " << entry->d_name; in LoadLegacyPersistentProperties()
115 if (!StartsWith(entry->d_name, "persist.")) { in RemoveLegacyPersistentPropertyFiles()
121 unlinkat(dirfd(dir.get()), entry->d_name, 0); in RemoveLegacyPersistentPropertyFiles()
Dfirst_stage_init.cpp66 if (de->d_name == "."s || de->d_name == ".."s) { in FreeRamdisk()
74 if (fstatat(dfd, de->d_name, &info, AT_SYMLINK_NOFOLLOW) != 0) { in FreeRamdisk()
84 auto fd = openat(dfd, de->d_name, O_RDONLY | O_DIRECTORY | O_CLOEXEC); in FreeRamdisk()
98 if (de->d_name == "snapuserd"s && IsFirstStageSnapuserdRunning()) { in FreeRamdisk()
102 unlinkat(dfd, de->d_name, is_dir ? AT_REMOVEDIR : 0); in FreeRamdisk()
188 if (sscanf(entry->d_name, "%d.%d", &dir_major, &dir_minor) != 2 || dir_major != major || in LoadKernelModules()
192 module_dirs.emplace_back(entry->d_name); in LoadKernelModules()
Dueventd.cpp193 if (strcmp(dent->d_name, ".") == 0 || strcmp(dent->d_name, "..") == 0) continue; in GenerateRestoreCon()
196 if (fstatat(dirfd(dir.get()), dent->d_name, &st, 0) == -1) continue; in GenerateRestoreCon()
199 std::string fullpath = directory + "/" + dent->d_name; in GenerateRestoreCon()
/system/core/fs_mgr/
Dblockdev.cpp49 if (ent->d_name[0] == '.') { in PartitionParent()
52 std::string path = StringPrintf("/sys/class/block/%s/%s", ent->d_name, blockdev.c_str()); in PartitionParent()
55 return ent->d_name; in PartitionParent()
68 if (ent->d_name[0] == '.') { in BlockdevName()
71 const std::string path = std::string("/dev/block/") + ent->d_name; in BlockdevName()
74 return ent->d_name; in BlockdevName()
Dfs_mgr_fstab.cpp377 if (dp->d_type != DT_DIR || dp->d_name[0] == '.') continue; in ReadFstabFromDt()
384 file_name = android::base::StringPrintf("%s/%s/status", fstabdir_name.c_str(), dp->d_name); in ReadFstabFromDt()
387 LINFO << "dt_fstab: Skip disabled entry for partition " << dp->d_name; in ReadFstabFromDt()
392 file_name = android::base::StringPrintf("%s/%s/dev", fstabdir_name.c_str(), dp->d_name); in ReadFstabFromDt()
394 LERROR << "dt_fstab: Failed to find device for partition " << dp->d_name; in ReadFstabFromDt()
401 android::base::StringPrintf("%s/%s/mnt_point", fstabdir_name.c_str(), dp->d_name); in ReadFstabFromDt()
403 LINFO << "dt_fstab: Using a specified mount point " << value << " for " << dp->d_name; in ReadFstabFromDt()
406 mount_point = android::base::StringPrintf("/%s", dp->d_name); in ReadFstabFromDt()
410 file_name = android::base::StringPrintf("%s/%s/type", fstabdir_name.c_str(), dp->d_name); in ReadFstabFromDt()
412 LERROR << "dt_fstab: Failed to find type for partition " << dp->d_name; in ReadFstabFromDt()
[all …]
Dfs_mgr_vendor_overlay.cpp61 if (dp->d_type != DT_DIR || dp->d_name[0] == '.') { in fs_mgr_get_vendor_overlay_dirs()
64 vendor_overlay_dirs.emplace_back(overlay_top, dp->d_name); in fs_mgr_get_vendor_overlay_dirs()
/system/libprocinfo/include/procinfo/
Dprocess.h89 if (strcmp(dent->d_name, ".") != 0 && strcmp(dent->d_name, "..") != 0) {
91 if (!android::base::ParseInt(dent->d_name, &tid, 1, std::numeric_limits<pid_t>::max())) {
92 return SetError(error, 0, "failed to parse task id %s", dent->d_name);
/system/netd/server/
DPppController.cpp147 if (de->d_name[0] == '.') in updateTtyList()
149 if ((!strncmp(de->d_name, "tty", 3)) && (strlen(de->d_name) > 3)) { in updateTtyList()
150 mTtys->push_back(strdup(de->d_name)); in updateTtyList()
/system/apex/tools/
Dhost_apex_verifier.cc105 if (base::EndsWith(entry->d_name, "rc")) { in CheckInitRc()
106 init_configs.push_back(init_dir_path + "/" + entry->d_name); in CheckInitRc()
178 if (base::EndsWith(entry->d_name, ".apex") || in ScanPartitionApexes()
179 base::EndsWith(entry->d_name, ".capex")) { in ScanPartitionApexes()
181 partition_dir + "/" + entry->d_name); in ScanPartitionApexes()
/system/extras/iotop/
Dtasklist.cpp39 if (isdigit(entry->d_name[0])) { in ScanPidsInDir()
40 pid_t pid = atoi(entry->d_name); in ScanPidsInDir()
/system/core/toolbox/
Dgetevent.c294 if (strstr(de->d_name, prefix) == de->d_name) { in print_hid_descriptor()
295 snprintf(filename, sizeof(filename), "%s/%s/rdesc", dirname, de->d_name); in print_hid_descriptor()
299 printf(" HID descriptor: %s\n\n", de->d_name); in print_hid_descriptor()
486 if(de->d_name[0] == '.' && in scan_dir()
487 (de->d_name[1] == '\0' || in scan_dir()
488 (de->d_name[1] == '.' && de->d_name[2] == '\0'))) in scan_dir()
490 strcpy(filename, de->d_name); in scan_dir()
/system/core/debuggerd/libdebuggerd/
Dopen_files_list.cpp51 if (*de->d_name == '.') { in populate_open_files_list()
55 int fd = atoi(de->d_name); in populate_open_files_list()
56 std::string path = fd_dir_name + "/" + std::string(de->d_name); in populate_open_files_list()
/system/core/fastboot/device/
Dutility.cpp157 if (!strcmp(de->d_name, ".") || !strcmp(de->d_name, "..")) { in ListPartitions()
161 std::string path = "/dev/block/by-name/" + std::string(de->d_name); in ListPartitions()
163 partitions.emplace_back(de->d_name); in ListPartitions()
/system/tools/aidl/
Dio_delegate.cpp253 if (!strcmp(ent->d_name, ".") || !strcmp(ent->d_name, "..")) { in add_list_files()
257 result->emplace_back(dirname + OS_PATH_SEPARATOR + ent->d_name); in add_list_files()
259 if (auto ret = add_list_files(dirname + OS_PATH_SEPARATOR + ent->d_name, result); !ret.ok()) { in add_list_files()
/system/memory/lmkd/
Dreaper.cpp76 if (de->d_name[0] == '.') continue; in set_process_group_and_prio()
77 t_pid = atoi(de->d_name); in set_process_group_and_prio()
80 ALOGW("Failed to get t_pid for '%s' of pid(%d)", de->d_name, pid); in set_process_group_and_prio()
/system/vold/
DProcess.cpp101 if (!android::base::ParseInt(proc_de->d_name, &pid)) continue; in KillProcessesWithTmpfsMounts()
146 if (!android::base::ParseInt(proc_de->d_name, &pid)) continue; in KillProcessesWithOpenFiles()
164 found |= checkSymlink(fd_path + "/" + fd_de->d_name, prefix); in KillProcessesWithOpenFiles()
DFsCrypt.cpp161 if (entry->d_type != DT_DIR || entry->d_name[0] != 'c') { in get_ce_key_paths()
162 LOG(DEBUG) << "Skipping non-key " << entry->d_name; in get_ce_key_paths()
165 result.emplace_back(directory_path + "/" + entry->d_name); in get_ce_key_paths()
442 if (entry->d_type != DT_DIR || !is_numeric(entry->d_name)) { in load_all_de_keys()
443 LOG(DEBUG) << "Skipping non-de-key " << entry->d_name; in load_all_de_keys()
446 userid_t user_id = std::stoi(entry->d_name); in load_all_de_keys()
447 auto key_path = de_dir + "/" + entry->d_name; in load_all_de_keys()
1113 if (entry->d_type != DT_DIR || entry->d_name[0] == '.') { in destroy_volume_keys()
1114 LOG(DEBUG) << "Skipping non-user " << entry->d_name; in destroy_volume_keys()
1117 res &= destroy_volkey(directory_path + "/" + entry->d_name, volume_uuid); in destroy_volume_keys()
/system/libbase/
Dprocess.cpp29 pid_t pid = atoi(de->d_name); in Increment()
/system/extras/memtrack/
Dmemtrack.cpp178 len = strlen(dir_data->d_name); in scan()
182 if (!isdigit(dir_data->d_name[i])) { in scan()
186 pid = pid * 10 + dir_data->d_name[i] - '0'; in scan()
189 getInformation(pid, dir_data->d_name, len); in scan()
/system/core/libvndksupport/tests/
Dlinker_test.cpp36 std::string name = dp->d_name; in find_sphal_lib()
/system/core/libprocessgroup/
Dprocessgroup.cpp240 if (!StartsWith(dir->d_name, "pid_")) { in RemoveUidProcessGroups()
244 auto path = StringPrintf("%s/%s", uid_path.c_str(), dir->d_name); in RemoveUidProcessGroups()
294 if (!StartsWith(dir->d_name, "uid_")) { in removeAllProcessGroupsInternal()
298 auto path = StringPrintf("%s/%s", cgroup_root_path.c_str(), dir->d_name); in removeAllProcessGroupsInternal()
345 if (!strcmp("..", dir_entry->d_name)) { in MkdirAndChown()
349 std::string file_path = path + "/" + dir_entry->d_name; in MkdirAndChown()
/system/core/mkbootfs/
Dmkbootfs.c163 if(de->d_name[0] == '.') continue; in _archive_dir()
166 if(!strcmp(de->d_name, "root")) continue; in _archive_dir()
175 names[entries] = strdup(de->d_name); in _archive_dir()
177 errx(1, "failed to strdup name \"%s\"", de->d_name); in _archive_dir()

1234