/system/core/fs_mgr/ |
D | fs_mgr_vendor_overlay.cpp | 60 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()
|
D | fs_mgr_fstab.cpp | 372 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/ |
D | linker_test.cpp | 39 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/ |
D | FileSystem.cpp | 62 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/ |
D | search_directories.cc | 426 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/ |
D | init.cpp | 426 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/ |
D | ServiceManagement.cpp | 130 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/ |
D | ProcessCallStack.cpp | 130 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/ |
D | libllkd.cpp | 751 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/ |
D | logcat.cpp | 656 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/ |
D | d59297b8.0 | 9 zbl+dp+++T42NKA7wfYxEUV0kz1XgMX5iZnK5atq1LXaQZAQwdbWQonCv/Q4EpVM
|
/system/core/adb/ |
D | adb.bash | 433 command adb ${args[@]} shell ls -dp ${file}"*" '2>/dev/null' 2> /dev/null | tr -d '\r'
|