Searched refs:dent (Results 1 – 6 of 6) sorted by relevance
/system/memory/libmeminfo/libdmabufinfo/ |
D | dmabuf_sysfs_stats.cpp | 73 struct dirent* dent; in GetDmabufSysfsStats() local 74 while ((dent = readdir(dir.get()))) { in GetDmabufSysfsStats() 75 if (!strcmp(dent->d_name, ".") || !strcmp(dent->d_name, "..")) continue; in GetDmabufSysfsStats() 78 "%s/%s", dmabuf_sysfs_stats_path.c_str(), dent->d_name); in GetDmabufSysfsStats() 83 if (!android::base::ParseUint(dent->d_name, &info.inode)) { in GetDmabufSysfsStats() 84 LOG(ERROR) << "Unable to parse value from " << dent->d_name; in GetDmabufSysfsStats() 131 struct dirent* dent; in GetDmabufTotalExportedKb() local 132 while ((dent = readdir(dir.get()))) { in GetDmabufTotalExportedKb() 133 if (!strcmp(dent->d_name, ".") || !strcmp(dent->d_name, "..")) continue; in GetDmabufTotalExportedKb() 136 "%s/%s", dmabuf_sysfs_stats_path.c_str(), dent->d_name); in GetDmabufTotalExportedKb()
|
D | dmabufinfo.cpp | 130 struct dirent* dent; in ReadDmaBufFdRefs() local 131 while ((dent = readdir(dir.get()))) { in ReadDmaBufFdRefs() 133 if (!::android::base::ParseInt(dent->d_name, &fd)) { in ReadDmaBufFdRefs() 287 struct dirent* dent; in ReadProcfsDmaBufs() local 288 while ((dent = readdir(dir.get()))) { in ReadProcfsDmaBufs() 289 if (dent->d_type != DT_DIR) continue; in ReadProcfsDmaBufs() 291 int pid = atoi(dent->d_name); in ReadProcfsDmaBufs()
|
/system/libprocinfo/include/procinfo/ |
D | process.h | 87 struct dirent* dent; variable 88 while ((dent = readdir(dir.get()))) { 89 if (strcmp(dent->d_name, ".") != 0 && strcmp(dent->d_name, "..") != 0) { 91 if (!android::base::ParseInt(dent->d_name, &tid, 1, std::numeric_limits<pid_t>::max())) { 92 return SetError(error, 0, "failed to parse task id %s", dent->d_name);
|
/system/core/init/ |
D | ueventd.cpp | 191 struct dirent* dent; in GenerateRestoreCon() local 192 while ((dent = readdir(dir.get())) != NULL) { in GenerateRestoreCon() 193 if (strcmp(dent->d_name, ".") == 0 || strcmp(dent->d_name, "..") == 0) continue; in GenerateRestoreCon() 196 if (fstatat(dirfd(dir.get()), dent->d_name, &st, 0) == -1) continue; in GenerateRestoreCon() 199 std::string fullpath = directory + "/" + dent->d_name; in GenerateRestoreCon()
|
/system/memory/libdmabufheap/ |
D | BufferAllocator.cpp | 370 struct dirent* dent; in GetDmabufHeapList() local 371 while ((dent = readdir(dir.get()))) { in GetDmabufHeapList() 372 if (!strcmp(dent->d_name, ".") || !strcmp(dent->d_name, "..")) continue; in GetDmabufHeapList() 374 heap_list.insert(dent->d_name); in GetDmabufHeapList()
|
/system/memory/libmeminfo/ |
D | sysmeminfo.cpp | 354 struct dirent* dent; in ReadDmabufHeapTotalExportedKb() local 355 while ((dent = readdir(dir.get()))) { in ReadDmabufHeapTotalExportedKb() 356 if (!strcmp(dent->d_name, ".") || !strcmp(dent->d_name, "..")) continue; in ReadDmabufHeapTotalExportedKb() 358 heap_list.insert(dent->d_name); in ReadDmabufHeapTotalExportedKb()
|