Home
last modified time | relevance | path

Searched refs:dp (Results 1 – 21 of 21) 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.cpp338 dirent* dp; in ReadFstabFromDt() local
341 while ((dp = readdir(fstabdir.get())) != NULL) { in ReadFstabFromDt()
343 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()
[all …]
/system/libvintf/
DFileSystem.cpp51 dirent* dp; in listFiles() local
52 while (errno = 0, dp = readdir(dir.get()), dp != nullptr) { in listFiles()
53 if (dp->d_type != DT_DIR) { in listFiles()
54 out->push_back(dp->d_name); in listFiles()
/system/core/libvndksupport/tests/
Dlinker_test.cpp34 dirent* dp; in find_sphal_lib() local
35 while ((dp = readdir(dir.get())) != nullptr) { in find_sphal_lib()
36 std::string name = dp->d_name; in find_sphal_lib()
/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/libhidl/transport/
DServiceManagement.cpp132 dirent* dp; in tryShortenProcessName() local
133 while ((dp = readdir(dir.get())) != nullptr) { in tryShortenProcessName()
134 if (dp->d_type != DT_DIR) continue; in tryShortenProcessName()
135 if (dp->d_name[0] == '.') continue; in tryShortenProcessName()
137 std::fstream fs(kTasks + dp->d_name + "/comm"); in tryShortenProcessName()
139 ALOGI("Could not rename process, failed read comm for %s.", dp->d_name); in tryShortenProcessName()
281 dirent* dp; in findFiles() local
282 while ((dp = readdir(dir.get())) != nullptr) { in findFiles()
283 std::string name = dp->d_name; in findFiles()
342 dirent* dp; in fetchPidsForPassthroughLibraries() local
[all …]
/system/hardware/interfaces/suspend/1.0/default/
DSystemSuspend.cpp239 std::unique_ptr<DIR, decltype(&closedir)> dp(fdopendir(dup(mSuspendStatsFd.get())), &closedir); in getSuspendStats() local
240 if (!dp) { in getSuspendStats()
245 rewinddir(dp.get()); in getSuspendStats()
253 while ((de = readdir(dp.get()))) { in getSuspendStats()
DWakeLockEntryList.cpp286 std::unique_ptr<DIR, decltype(&closedir)> dp(fdopendir(dup(mKernelWakelockStatsFd.get())), in getKernelWakelockStats() local
288 if (dp) { in getKernelWakelockStats()
290 rewinddir(dp.get()); in getKernelWakelockStats()
293 while ((de = readdir(dp.get()))) { in getKernelWakelockStats()
DSystemSuspendUnitTest.cpp526 std::unique_ptr<DIR, decltype(&closedir)> dp(opendir(dirPath.c_str()), &closedir); in clearDirectory() local
527 if (!dp) { in clearDirectory()
531 rewinddir(dp.get()); in clearDirectory()
533 while ((de = readdir(dp.get()))) { in clearDirectory()
/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/logcat/
Dlogcat.cpp471 struct dirent* dp; in lastLogTime() local
473 while (!!(dp = readdir(dir.get()))) { in lastLogTime()
474 if ((dp->d_type != DT_REG) || !!strncmp(dp->d_name, file, len) || in lastLogTime()
475 (dp->d_name[len] && ((dp->d_name[len] != '.') || in lastLogTime()
476 (strtoll(dp->d_name + 1, nullptr, 10) != 1)))) { in lastLogTime()
482 file_name += dp->d_name; in lastLogTime()
508 if (!dp->d_name[len] && found) break; in lastLogTime()
/system/core/fs_mgr/libsnapshot/
Dsnapshot_fuzz_utils.cpp231 dirent* dp; local
232 while ((dp = readdir(dir.get())) != nullptr) {
233 if (exclude_names.find(dp->d_name) != exclude_names.end()) {
236 if (!ShouldDeleteLoopDevice(StringPrintf("%s/%s", BLOCK_SYSFS, dp->d_name).data())) {
239 PCHECK(loop_control.Detach(StringPrintf("/dev/block/%s", dp->d_name).data()));
Dsnapshot.cpp1479 struct dirent* dp; in ListSnapshots() local
1480 while ((dp = readdir(dir.get())) != nullptr) { in ListSnapshots()
1481 if (dp->d_type != DT_REG) continue; in ListSnapshots()
1482 snapshots->emplace_back(dp->d_name); in ListSnapshots()
/system/core/llkd/
Dlibllkd.cpp759 bool getValidTidDir(dirent* dp, std::string* piddir) { in getValidTidDir() argument
760 if (!::isdigit(dp->d_name[0])) { in getValidTidDir()
765 if (__predict_false(dp->d_type != DT_DIR)) { in getValidTidDir()
766 if (__predict_false(dp->d_type == DT_UNKNOWN)) { // can't b/c procfs in getValidTidDir()
769 *piddir += dp->d_name; in getValidTidDir()
776 *piddir += dp->d_name; in getValidTidDir()
1001 for (auto dp = llkTopDirectory.read(); dp != nullptr; dp = llkTopDirectory.read()) { in llkCheck() local
1004 if (!getValidTidDir(dp, &piddir)) { in llkCheck()
1016 for (auto tp = taskDirectory.read(dir::task, dp); tp != nullptr; in llkCheck()
/system/core/init/
Ddevices.cpp393 struct dirent* dp; in RemoveDeviceMapperLinks() local
395 while ((dp = readdir(dh.get())) != nullptr) { in RemoveDeviceMapperLinks()
396 if (dp->d_type != DT_LNK) continue; in RemoveDeviceMapperLinks()
398 auto path = dir + "/" + dp->d_name; in RemoveDeviceMapperLinks()
Dproperty_service.cpp1076 struct dirent* dp; in ProcessKernelDt() local
1077 while ((dp = readdir(dir.get())) != NULL) { in ProcessKernelDt()
1078 if (dp->d_type != DT_REG || !strcmp(dp->d_name, "compatible") || in ProcessKernelDt()
1079 !strcmp(dp->d_name, "name")) { in ProcessKernelDt()
1083 std::string file_name = get_android_dt_dir() + dp->d_name; in ProcessKernelDt()
1088 InitPropertySet("ro.boot."s + dp->d_name, dt_file); in ProcessKernelDt()
Dinit.cpp547 dirent* dp; in SetUsbController() local
548 while ((dp = readdir(dir.get())) != nullptr) { in SetUsbController()
549 if (dp->d_name[0] == '.') continue; in SetUsbController()
551 SetProperty("sys.usb.controller", dp->d_name); in SetUsbController()
/system/teeui/libteeui/include/teeui/
Dutils.h177 using dp = UnitT<Unit::DP>;
183 template <> static constexpr const char* str<dp> = "dp";
457 operator Coordinate<dp, Numeric>() const { return valuepx_ / dp2px_; }
498 Proxy operator=(const Coordinate<dp, Numeric>& rhs) const {
522 using dps = Coordinate<dp>;
526 constexpr dps operator""_dp(long double dp) {
527 return dps(dp);
535 constexpr dps operator""_dp(unsigned long long dp) {
536 return dps(dp);
/system/teeui/test/example_config/
DREADME59 …"native-test-flag": "--dp2px=<pixel per density independent pixel (px/dp) ratio of the device. Typ…
/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'