Home
last modified time | relevance | path

Searched refs:dp (Results 1 – 8 of 8) sorted by relevance

/system/core/libvndksupport/tests/
Dlinker_test.cpp39 dirent* dp; in find_sphal_lib() local
40 while ((dp = readdir(dir.get())) != nullptr) { in find_sphal_lib()
41 std::string name = dp->d_name; in find_sphal_lib()
/system/core/fs_mgr/
Dfs_mgr_fstab.cpp409 dirent* dp; in read_fstab_from_dt() local
410 while ((dp = readdir(fstabdir.get())) != NULL) { in read_fstab_from_dt()
412 if (dp->d_type != DT_DIR || dp->d_name[0] == '.') continue; in read_fstab_from_dt()
419 file_name = android::base::StringPrintf("%s/%s/status", fstabdir_name.c_str(), dp->d_name); in read_fstab_from_dt()
422 LINFO << "dt_fstab: Skip disabled entry for partition " << dp->d_name; in read_fstab_from_dt()
427 file_name = android::base::StringPrintf("%s/%s/dev", fstabdir_name.c_str(), dp->d_name); in read_fstab_from_dt()
429 LERROR << "dt_fstab: Failed to find device for partition " << dp->d_name; in read_fstab_from_dt()
434 fstab_entry.push_back(android::base::StringPrintf("/%s", dp->d_name)); in read_fstab_from_dt()
436 file_name = android::base::StringPrintf("%s/%s/type", fstabdir_name.c_str(), dp->d_name); in read_fstab_from_dt()
438 LERROR << "dt_fstab: Failed to find type for partition " << dp->d_name; in read_fstab_from_dt()
[all …]
/system/core/init/
Dinit.cpp529 struct dirent *dp; in process_kernel_dt() local
530 while ((dp = readdir(dir.get())) != NULL) { in process_kernel_dt()
531 … if (dp->d_type != DT_REG || !strcmp(dp->d_name, "compatible") || !strcmp(dp->d_name, "name")) { in process_kernel_dt()
535 std::string file_name = get_android_dt_dir() + dp->d_name; in process_kernel_dt()
540 property_set("ro.boot."s + dp->d_name, dt_file); in process_kernel_dt()
951 dirent* dp; in set_usb_controller() local
952 while ((dp = readdir(dir.get())) != nullptr) { in set_usb_controller()
953 if (dp->d_name[0] == '.') continue; in set_usb_controller()
955 property_set("sys.usb.controller", dp->d_name); in set_usb_controller()
Dreboot.cpp147 struct dirent* dp; in TurnOffBacklight() local
148 while ((dp = readdir(dir.get())) != nullptr) { in TurnOffBacklight()
149 if (((dp->d_type != DT_DIR) && (dp->d_type != DT_LNK)) || (dp->d_name[0] == '.')) { in TurnOffBacklight()
153 std::string fileName = StringPrintf("%s/%s/brightness", backlightDir, dp->d_name); in TurnOffBacklight()
/system/core/libutils/
DProcessCallStack.cpp130 std::unique_ptr<DIR, decltype(&closedir)> dp(opendir(PATH_SELF_TASK), closedir); in update() local
131 if (dp == NULL) { in update()
155 while ((ep = readdir(dp.get())) != NULL) { in update()
/system/libhidl/transport/
DServiceManagement.cpp176 dirent* dp; in search() local
177 while ((dp = readdir(dir.get())) != nullptr) { in search()
178 std::string name = dp->d_name; in search()
226 dirent* dp; in fetchPidsForPassthroughLibraries() local
227 while ((dp = readdir(dir.get())) != nullptr) { in fetchPidsForPassthroughLibraries()
228 pid_t pid = strtoll(dp->d_name, NULL, 0); in fetchPidsForPassthroughLibraries()
230 std::string mapsPath = proc + dp->d_name + "/maps"; in fetchPidsForPassthroughLibraries()
/system/core/logcat/
Dlogcat.cpp662 struct dirent* dp; in lastLogTime() local
664 while (!!(dp = readdir(dir.get()))) { in lastLogTime()
665 if ((dp->d_type != DT_REG) || !!strncmp(dp->d_name, file, len) || in lastLogTime()
666 (dp->d_name[len] && ((dp->d_name[len] != '.') || in lastLogTime()
667 (strtoll(dp->d_name + 1, nullptr, 10) != 1)))) { in lastLogTime()
673 file_name += dp->d_name; in lastLogTime()
699 if (!dp->d_name[len] && found) break; in lastLogTime()
/system/ca-certificates/files/
Dd59297b8.09 zbl+dp+++T42NKA7wfYxEUV0kz1XgMX5iZnK5atq1LXaQZAQwdbWQonCv/Q4EpVM