Home
last modified time | relevance | path

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

/system/core/fs_mgr/
Dfs_mgr_vendor_overlay.cpp60 struct dirent* dp; in fs_mgr_get_vendor_overlay_dirs() local
61 while ((dp = readdir(vendor_overlay_top.get())) != nullptr) { in fs_mgr_get_vendor_overlay_dirs()
62 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()
Dfs_mgr_fstab.cpp372 dirent* dp; in ReadFstabFromDt() local
375 while ((dp = readdir(fstabdir.get())) != NULL) { in ReadFstabFromDt()
377 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()
[all …]
/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/libvintf/
DFileSystem.cpp62 dirent* dp; in listFiles() local
63 while ((dp = readdir(dir.get())) != nullptr) { in listFiles()
64 if (dp->d_type != DT_DIR) { in listFiles()
65 out->push_back(dp->d_name); in listFiles()
/system/iorap/src/inode2filename/
Dsearch_directories.cc426 struct dirent *dp; in ReadDirectoryEntriesFromDirectoryPath() local
439 auto child_path = [&] { return dirpath + "/" + dp->d_name; }; in ReadDirectoryEntriesFromDirectoryPath()
443 if ((dp = system_call->readdir(dirp)) != nullptr) { in ReadDirectoryEntriesFromDirectoryPath()
444 if (dp->d_type == DT_DIR) { in ReadDirectoryEntriesFromDirectoryPath()
445 if (strcmp(".", dp->d_name) == 0 || strcmp("..", dp->d_name) == 0) { in ReadDirectoryEntriesFromDirectoryPath()
446 LOG(VERBOSE) << "Skip self/parent: " << dp->d_name; in ReadDirectoryEntriesFromDirectoryPath()
451 << ", ino: " << dp->d_ino << ", type: " << dp->d_type; in ReadDirectoryEntriesFromDirectoryPath()
453 static_cast<ino_t>(dp->d_ino), in ReadDirectoryEntriesFromDirectoryPath()
454 dp->d_type}); in ReadDirectoryEntriesFromDirectoryPath()
455 } else if (dp->d_type == DT_UNKNOWN) { in ReadDirectoryEntriesFromDirectoryPath()
[all …]
/system/core/init/
Dinit.cpp426 struct dirent *dp; in process_kernel_dt() local
427 while ((dp = readdir(dir.get())) != NULL) { in process_kernel_dt()
428 … if (dp->d_type != DT_REG || !strcmp(dp->d_name, "compatible") || !strcmp(dp->d_name, "name")) { in process_kernel_dt()
432 std::string file_name = get_android_dt_dir() + dp->d_name; in process_kernel_dt()
437 property_set("ro.boot."s + dp->d_name, dt_file); in process_kernel_dt()
486 dirent* dp; in set_usb_controller() local
487 while ((dp = readdir(dir.get())) != nullptr) { in set_usb_controller()
488 if (dp->d_name[0] == '.') continue; in set_usb_controller()
490 property_set("sys.usb.controller", dp->d_name); in set_usb_controller()
/system/libhidl/transport/
DServiceManagement.cpp130 dirent* dp; in tryShortenProcessName() local
131 while ((dp = readdir(dir.get())) != nullptr) { in tryShortenProcessName()
132 if (dp->d_type != DT_DIR) continue; in tryShortenProcessName()
133 if (dp->d_name[0] == '.') continue; in tryShortenProcessName()
135 std::fstream fs(kTasks + dp->d_name + "/comm"); in tryShortenProcessName()
137 ALOGI("Could not rename process, failed read comm for %s.", dp->d_name); in tryShortenProcessName()
248 dirent* dp; in findFiles() local
249 while ((dp = readdir(dir.get())) != nullptr) { in findFiles()
250 std::string name = dp->d_name; in findFiles()
302 dirent* dp; in fetchPidsForPassthroughLibraries() local
[all …]
/system/core/libutils/
DProcessCallStack.cpp130 std::unique_ptr<DIR, decltype(&closedir)> dp(opendir(PATH_SELF_TASK), closedir); in update() local
131 if (dp == nullptr) { in update()
155 while ((ep = readdir(dp.get())) != nullptr) { in update()
/system/core/llkd/
Dlibllkd.cpp751 bool getValidTidDir(dirent* dp, std::string* piddir) { in getValidTidDir() argument
752 if (!::isdigit(dp->d_name[0])) { in getValidTidDir()
757 if (__predict_false(dp->d_type != DT_DIR)) { in getValidTidDir()
758 if (__predict_false(dp->d_type == DT_UNKNOWN)) { // can't b/c procfs in getValidTidDir()
761 *piddir += dp->d_name; in getValidTidDir()
768 *piddir += dp->d_name; in getValidTidDir()
993 for (auto dp = llkTopDirectory.read(); dp != nullptr; dp = llkTopDirectory.read()) { in llkCheck() local
996 if (!getValidTidDir(dp, &piddir)) { in llkCheck()
1008 for (auto tp = taskDirectory.read(dir::task, dp); tp != nullptr; in llkCheck()
/system/core/logcat/
Dlogcat.cpp656 struct dirent* dp; in lastLogTime() local
658 while (!!(dp = readdir(dir.get()))) { in lastLogTime()
659 if ((dp->d_type != DT_REG) || !!strncmp(dp->d_name, file, len) || in lastLogTime()
660 (dp->d_name[len] && ((dp->d_name[len] != '.') || in lastLogTime()
661 (strtoll(dp->d_name + 1, nullptr, 10) != 1)))) { in lastLogTime()
667 file_name += dp->d_name; in lastLogTime()
693 if (!dp->d_name[len] && found) break; in lastLogTime()
/system/ca-certificates/files/
Dd59297b8.09 zbl+dp+++T42NKA7wfYxEUV0kz1XgMX5iZnK5atq1LXaQZAQwdbWQonCv/Q4EpVM
/system/core/adb/
Dadb.bash433 command adb ${args[@]} shell ls -dp ${file}"*" '2>/dev/null' 2> /dev/null | tr -d '\r'