Home
last modified time | relevance | path

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

1234

/system/extras/tests/audio/alsa/
Dpcmtest.cpp63 if (de->d_name[0] == '.') in getPcmNodes()
65 if (strstr(de->d_name, PCM_PREFIX)) in getPcmNodes()
86 if (de->d_name[0] == '.') in getSndDev()
89 if (strstr(de->d_name, PCM_PREFIX)) { in getSndDev()
95 sscanf(de->d_name, PCM_PREFIX "C%uD%u", &(pcmnodes[pcms].card), in getSndDev()
97 flags = de->d_name[strlen(de->d_name)-1]; in getSndDev()
112 if (strstr(de->d_name, MIXER_PREFIX)) { in getSndDev()
114 sscanf(de->d_name, MIXER_PREFIX "C%u", &mixer); in getSndDev()
118 if (strstr(de->d_name, TIMER_PREFIX)) { in getSndDev()
/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.cpp63 if (de->d_name == "."s || de->d_name == ".."s) { in FreeRamdisk()
71 if (fstatat(dfd, de->d_name, &info, AT_SYMLINK_NOFOLLOW) != 0) { in FreeRamdisk()
81 auto fd = openat(dfd, de->d_name, O_RDONLY | O_DIRECTORY | O_CLOEXEC); in FreeRamdisk()
93 unlinkat(dfd, de->d_name, is_dir ? AT_REMOVEDIR : 0); in FreeRamdisk()
139 if (sscanf(entry->d_name, "%d.%d", &dir_major, &dir_minor) != 2 || dir_major != major || in LoadKernelModules()
143 module_dirs.emplace_back(entry->d_name); in LoadKernelModules()
Dueventd.cpp171 if (strcmp(dent->d_name, ".") == 0 || strcmp(dent->d_name, "..") == 0) continue; in GenerateRestoreCon()
174 if (fstatat(dirfd(dir.get()), dent->d_name, &st, 0) == -1) continue; in GenerateRestoreCon()
177 std::string fullpath = directory + "/" + dent->d_name; in GenerateRestoreCon()
/system/apex/libs/libapexutil/
Dapexutil.cpp64 if (entry->d_name[0] == '.') in GetActivePackages()
68 if (strchr(entry->d_name, '@') != nullptr) in GetActivePackages()
70 std::string apex_path = apex_root + "/" + entry->d_name; in GetActivePackages()
/system/core/libprocinfo/include/procinfo/
Dprocess.h83 if (strcmp(dent->d_name, ".") != 0 && strcmp(dent->d_name, "..") != 0) {
85 if (!android::base::ParseInt(dent->d_name, &tid, 1, std::numeric_limits<pid_t>::max())) {
87 *error = std::string("failed to parse task id: ") + 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/libhidl/base/
DHidlInternal.cpp158 void *handle = dlopen((path + file->d_name).c_str(), RTLD_NOW); in registerInstrumentationCallbacks()
161 LOG(WARNING) << "couldn't load file: " << file->d_name in registerInstrumentationCallbacks()
198 << file->d_name; in registerInstrumentationCallbacks()
214 if (std::regex_match(file->d_name, cm, e)) return true; in isInstrumentationLib()
/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/fs_mgr/
Dfs_mgr_fstab.cpp343 if (dp->d_type != DT_DIR || dp->d_name[0] == '.') continue; in ReadFstabFromDt()
350 file_name = android::base::StringPrintf("%s/%s/status", fstabdir_name.c_str(), dp->d_name); in ReadFstabFromDt()
353 LINFO << "dt_fstab: Skip disabled entry for partition " << dp->d_name; in ReadFstabFromDt()
358 file_name = android::base::StringPrintf("%s/%s/dev", fstabdir_name.c_str(), dp->d_name); in ReadFstabFromDt()
360 LERROR << "dt_fstab: Failed to find device for partition " << dp->d_name; in ReadFstabFromDt()
367 android::base::StringPrintf("%s/%s/mnt_point", fstabdir_name.c_str(), dp->d_name); in ReadFstabFromDt()
369 LINFO << "dt_fstab: Using a specified mount point " << value << " for " << dp->d_name; in ReadFstabFromDt()
372 mount_point = android::base::StringPrintf("/%s", dp->d_name); in ReadFstabFromDt()
376 file_name = android::base::StringPrintf("%s/%s/type", fstabdir_name.c_str(), dp->d_name); in ReadFstabFromDt()
378 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/vold/
DVolumeManager.cpp482 if (!android::base::ParseInt(de->d_name, &pid)) continue; in remountUid()
487 pidFd = openat(dirfd(dir), de->d_name, O_RDONLY | O_DIRECTORY | O_CLOEXEC); in remountUid()
492 PLOG(WARNING) << "Failed to stat " << de->d_name; in remountUid()
500 LOG(DEBUG) << "Found matching PID " << de->d_name; in remountUid()
502 PLOG(WARNING) << "Failed to read namespace for " << de->d_name; in remountUid()
521 PLOG(WARNING) << "Failed to read exe name for " << de->d_name; in remountUid()
534 PLOG(WARNING) << "Failed to open namespace for " << de->d_name; in remountUid()
540 PLOG(ERROR) << "Failed to setns for " << de->d_name; in remountUid()
561 PLOG(ERROR) << "Failed to mount " << storageSource << " for " << de->d_name; in remountUid()
565 PLOG(ERROR) << "Failed to set MS_SLAVE to /storage for " << de->d_name; in remountUid()
[all …]
DProcess.cpp98 if (!android::base::ParseInt(proc_de->d_name, &pid)) continue; in KillProcessesWithOpenFiles()
116 found |= checkSymlink(fd_path + "/" + fd_de->d_name, prefix); in KillProcessesWithOpenFiles()
Dvold_prepare_subdirs.cpp113 if (entry->d_name[0] == '.') continue; in rmrf_contents()
114 auto subdir = path + "/" + entry->d_name; in rmrf_contents()
135 const char* name = entry->d_name; in prepare_apex_subdirs()
/system/tools/aidl/
Dio_delegate.cpp208 if (!strcmp(ent->d_name, ".") || !strcmp(ent->d_name, "..")) { in add_list_files()
212 result->emplace_back(dirname + OS_PATH_SEPARATOR + ent->d_name); in add_list_files()
214 add_list_files(dirname + OS_PATH_SEPARATOR + ent->d_name, result); 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/memory/libmeminfo/libdmabufinfo/
Ddmabufinfo.cpp110 ::android::base::StringPrintf("%s/%s", fdpath.c_str(), dent->d_name); in ReadDmaBufFdRefs()
112 if (!strcmp(dent->d_name, ".") || !strcmp(dent->d_name, "..") || in ReadDmaBufFdRefs()
128 if (!::android::base::ParseInt(dent->d_name, &fd)) { in ReadDmaBufFdRefs()
/system/core/fastboot/device/
Dutility.cpp163 if (!strcmp(de->d_name, ".") || !strcmp(de->d_name, "..")) { in ListPartitions()
167 std::string path = "/dev/block/by-name/" + std::string(de->d_name); in ListPartitions()
169 partitions.emplace_back(de->d_name); in ListPartitions()
/system/security/keystore/
DKeyStore.cpp470 if (file->d_name[0] == '.') { in upgradeKeystore()
476 unsigned long thisUid = strtoul(file->d_name, &end, 10); in upgradeKeystore()
482 unlinkat(dirfd(dir), file->d_name, 0); in upgradeKeystore()
491 if (renameat(dirfd(dir), file->d_name, dirfd(otherdir), file->d_name) < 0) { in upgradeKeystore()
492 ALOGW("couldn't rename blob: %s: %s", file->d_name, strerror(errno)); in upgradeKeystore()
/system/core/cpio/
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()
/system/bpf/bpfloader/
DBpfLoader.cpp63 string s = ent->d_name; in loadAllElfObjects()

1234