Home
last modified time | relevance | path

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

1234

/system/memory/libmeminfo/libdmabufinfo/
Ddmabuf_sysfs_stats.cpp69 if (!strcmp(dent->d_name, ".") || !strcmp(dent->d_name, "..")) continue; in GetDmabufSysfsStats()
72 "%s/%s", dmabuf_sysfs_stats_path.c_str(), dent->d_name); in GetDmabufSysfsStats()
77 if (!android::base::ParseUint(dent->d_name, &info.inode)) { in GetDmabufSysfsStats()
78 LOG(ERROR) << "Unable to parse value from " << dent->d_name; in GetDmabufSysfsStats()
127 if (!strcmp(dent->d_name, ".") || !strcmp(dent->d_name, "..")) continue; in GetDmabufTotalExportedKb()
130 "%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.cpp65 if (de->d_name == "."s || de->d_name == ".."s) { in FreeRamdisk()
73 if (fstatat(dfd, de->d_name, &info, AT_SYMLINK_NOFOLLOW) != 0) { in FreeRamdisk()
83 auto fd = openat(dfd, de->d_name, O_RDONLY | O_DIRECTORY | O_CLOEXEC); in FreeRamdisk()
97 if (de->d_name == "snapuserd"s && IsFirstStageSnapuserdRunning()) { in FreeRamdisk()
101 unlinkat(dfd, de->d_name, is_dir ? AT_REMOVEDIR : 0); in FreeRamdisk()
148 if (sscanf(entry->d_name, "%d.%d", &dir_major, &dir_minor) != 2 || dir_major != major || in LoadKernelModules()
152 module_dirs.emplace_back(entry->d_name); in LoadKernelModules()
Dueventd.cpp172 if (strcmp(dent->d_name, ".") == 0 || strcmp(dent->d_name, "..") == 0) continue; in GenerateRestoreCon()
175 if (fstatat(dirfd(dir.get()), dent->d_name, &st, 0) == -1) continue; in GenerateRestoreCon()
178 std::string fullpath = directory + "/" + dent->d_name; in GenerateRestoreCon()
/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/libprocinfo/include/procinfo/
Dprocess.h87 if (strcmp(dent->d_name, ".") != 0 && strcmp(dent->d_name, "..") != 0) {
89 if (!android::base::ParseInt(dent->d_name, &tid, 1, std::numeric_limits<pid_t>::max())) {
91 *error = std::string("failed to parse task id: ") + dent->d_name;
/system/extras/iotop/
Dtasklist.cpp39 if (isdigit(entry->d_name[0])) { in ScanPidsInDir()
40 pid_t pid = atoi(entry->d_name); in ScanPidsInDir()
/system/libhidl/base/
DHidlInternal.cpp167 void *handle = dlopen((path + file->d_name).c_str(), RTLD_NOW); in registerInstrumentationCallbacks()
170 LOG(WARNING) << "couldn't load file: " << file->d_name in registerInstrumentationCallbacks()
207 << file->d_name; in registerInstrumentationCallbacks()
223 if (std::regex_match(file->d_name, cm, e)) return true; in isInstrumentationLib()
/system/core/fs_mgr/
Dfs_mgr_fstab.cpp348 if (dp->d_type != DT_DIR || dp->d_name[0] == '.') continue; in ReadFstabFromDt()
355 file_name = android::base::StringPrintf("%s/%s/status", fstabdir_name.c_str(), dp->d_name); in ReadFstabFromDt()
358 LINFO << "dt_fstab: Skip disabled entry for partition " << dp->d_name; in ReadFstabFromDt()
363 file_name = android::base::StringPrintf("%s/%s/dev", fstabdir_name.c_str(), dp->d_name); in ReadFstabFromDt()
365 LERROR << "dt_fstab: Failed to find device for partition " << dp->d_name; in ReadFstabFromDt()
372 android::base::StringPrintf("%s/%s/mnt_point", fstabdir_name.c_str(), dp->d_name); in ReadFstabFromDt()
374 LINFO << "dt_fstab: Using a specified mount point " << value << " for " << dp->d_name; in ReadFstabFromDt()
377 mount_point = android::base::StringPrintf("/%s", dp->d_name); in ReadFstabFromDt()
381 file_name = android::base::StringPrintf("%s/%s/type", fstabdir_name.c_str(), dp->d_name); in ReadFstabFromDt()
383 LERROR << "dt_fstab: Failed to find type for partition " << dp->d_name; in ReadFstabFromDt()
[all …]
Dfs_mgr_vendor_overlay.cpp62 if (dp->d_type != DT_DIR || dp->d_name[0] == '.') { in fs_mgr_get_vendor_overlay_dirs()
65 vendor_overlay_dirs.emplace_back(overlay_top, dp->d_name); in fs_mgr_get_vendor_overlay_dirs()
/system/tools/aidl/
Dio_delegate.cpp223 if (!strcmp(ent->d_name, ".") || !strcmp(ent->d_name, "..")) { in add_list_files()
227 result->emplace_back(dirname + OS_PATH_SEPARATOR + ent->d_name); in add_list_files()
229 if (auto ret = add_list_files(dirname + OS_PATH_SEPARATOR + ent->d_name, result); !ret.ok()) { in add_list_files()
/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/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/libbase/
Dprocess.cpp29 pid_t pid = atoi(de->d_name); in Increment()
/system/core/fastboot/device/
Dutility.cpp166 if (!strcmp(de->d_name, ".") || !strcmp(de->d_name, "..")) { in ListPartitions()
170 std::string path = "/dev/block/by-name/" + std::string(de->d_name); in ListPartitions()
172 partitions.emplace_back(de->d_name); in ListPartitions()
/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.cpp146 if (entry->d_type != DT_DIR || entry->d_name[0] != 'c') { in get_ce_key_paths()
147 LOG(DEBUG) << "Skipping non-key " << entry->d_name; in get_ce_key_paths()
150 result.emplace_back(directory_path + "/" + entry->d_name); in get_ce_key_paths()
398 if (entry->d_type != DT_DIR || !is_numeric(entry->d_name)) { in load_all_de_keys()
399 LOG(DEBUG) << "Skipping non-de-key " << entry->d_name; in load_all_de_keys()
402 userid_t user_id = std::stoi(entry->d_name); in load_all_de_keys()
403 auto key_path = de_dir + "/" + entry->d_name; in load_all_de_keys()
977 if (entry->d_type != DT_DIR || entry->d_name[0] == '.') { in destroy_volume_keys()
978 LOG(DEBUG) << "Skipping non-user " << entry->d_name; in destroy_volume_keys()
981 res &= destroy_volkey(directory_path + "/" + entry->d_name, volume_uuid); in destroy_volume_keys()
Dvold_prepare_subdirs.cpp131 if (entry->d_name[0] == '.') continue; in rmrf_contents()
132 auto subdir = path + "/" + entry->d_name; in rmrf_contents()
153 const char* name = entry->d_name; in prepare_apex_subdirs()
DLoop.cpp139 auto test = std::string(de->d_name); in destroyAll()
142 auto path = root + de->d_name; in destroyAll()
/system/core/libprocessgroup/
Dprocessgroup.cpp162 if (!StartsWith(dir->d_name, "pid_")) { in RemoveUidProcessGroups()
166 auto path = StringPrintf("%s/%s", uid_path.c_str(), dir->d_name); in RemoveUidProcessGroups()
203 if (!StartsWith(dir->d_name, "uid_")) { in removeAllProcessGroups()
207 auto path = StringPrintf("%s/%s", cgroup_root_path.c_str(), dir->d_name); in removeAllProcessGroups()
244 if (!strcmp("..", dir_entry->d_name)) { in MkdirAndChown()
248 std::string file_path = path + "/" + dir_entry->d_name; in MkdirAndChown()
/system/core/mkbootfs/
Dmkbootfs.c184 if(de->d_name[0] == '.') continue; in _archive_dir()
187 if(!strcmp(de->d_name, "root")) continue; in _archive_dir()
198 names[entries] = strdup(de->d_name); in _archive_dir()
201 de->d_name); in _archive_dir()
/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()

1234