/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 | 338 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/ |
D | FileSystem.cpp | 51 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/ |
D | linker_test.cpp | 34 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/ |
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/libhidl/transport/ |
D | ServiceManagement.cpp | 132 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/ |
D | SystemSuspend.cpp | 239 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()
|
D | WakeLockEntryList.cpp | 286 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()
|
D | SystemSuspendUnitTest.cpp | 526 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/ |
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/logcat/ |
D | logcat.cpp | 471 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/ |
D | snapshot_fuzz_utils.cpp | 231 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()));
|
D | snapshot.cpp | 1479 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/ |
D | libllkd.cpp | 759 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/ |
D | devices.cpp | 393 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()
|
D | property_service.cpp | 1076 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()
|
D | init.cpp | 547 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/ |
D | utils.h | 177 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/ |
D | README | 59 …"native-test-flag": "--dp2px=<pixel per density independent pixel (px/dp) ratio of the device. Typ…
|
/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'
|