Lines Matching refs:dp
133 dirent* dp; in tryShortenProcessName() local
134 while ((dp = readdir(dir.get())) != nullptr) { in tryShortenProcessName()
135 if (dp->d_type != DT_DIR) continue; in tryShortenProcessName()
136 if (dp->d_name[0] == '.') continue; in tryShortenProcessName()
138 std::fstream fs(kTasks + dp->d_name + "/comm"); in tryShortenProcessName()
140 ALOGI("Could not rename process, failed read comm for %s.", dp->d_name); in tryShortenProcessName()
205 dirent* dp; in search() local
206 while ((dp = readdir(dir.get())) != nullptr) { in search()
207 std::string name = dp->d_name; in search()
255 dirent* dp; in fetchPidsForPassthroughLibraries() local
256 while ((dp = readdir(dir.get())) != nullptr) { in fetchPidsForPassthroughLibraries()
257 pid_t pid = strtoll(dp->d_name, nullptr, 0); in fetchPidsForPassthroughLibraries()
259 std::string mapsPath = proc + dp->d_name + "/maps"; in fetchPidsForPassthroughLibraries()