Home
last modified time | relevance | path

Searched refs:pidInfo (Results 1 – 5 of 5) sorted by relevance

/aosp12/frameworks/native/libs/binderdebug/tests/
H A Dbinderdebug_test.cpp47 BinderPidInfo pidInfo; in TEST() local
48 const auto& status = getBinderPidInfo(BinderDebugContext::BINDER, getpid(), &pidInfo); in TEST()
51 EXPECT_TRUE(!pidInfo.refPids.empty()); in TEST()
55 BinderPidInfo pidInfo; in TEST() local
56 const auto& status = getBinderPidInfo(BinderDebugContext::BINDER, getpid(), &pidInfo); in TEST()
58 EXPECT_TRUE(pidInfo.threadUsage <= pidInfo.threadCount); in TEST()
60 EXPECT_GE(pidInfo.threadCount, 1); in TEST()
/aosp12/frameworks/native/libs/binderdebug/
H A DBinderDebug.cpp68 status_t getBinderPidInfo(BinderDebugContext context, pid_t pid, BinderPidInfo* pidInfo) { in getBinderPidInfo() argument
89 pidInfo->refPids[ptr].push_back(pid); in getBinderPidInfo()
108 pidInfo->threadUsage++; in getBinderPidInfo()
111 pidInfo->threadCount++; in getBinderPidInfo()
/aosp12/frameworks/native/cmds/dumpsys/
H A Ddumpsys.cpp344 BinderPidInfo pidInfo; in dumpThreadsToFd() local
345 status = getBinderPidInfo(BinderDebugContext::BINDER, pid, &pidInfo); in dumpThreadsToFd()
349 WriteStringToFd("Threads in use: " + std::to_string(pidInfo.threadUsage) + "/" + in dumpThreadsToFd()
350 std::to_string(pidInfo.threadCount) + "\n", in dumpThreadsToFd()
/aosp12/frameworks/native/libs/binderdebug/include/binderdebug/
H A DBinderDebug.h35 status_t getBinderPidInfo(BinderDebugContext context, pid_t pid, BinderPidInfo* pidInfo);
/aosp12/frameworks/native/cmds/lshal/
H A DListCommand.cpp206 pid_t serverPid, BinderPidInfo *pidInfo) const { in getPidInfo()
207 const auto& status = getBinderPidInfo(BinderDebugContext::HWBINDER, serverPid, pidInfo); in getPidInfo()
646 const BinderPidInfo* pidInfo = getPidInfoCached(debugInfo.pid); in fetchBinderizedEntry() local
647 if (pidInfo == nullptr) { in fetchBinderizedEntry()
654 auto it = pidInfo->refPids.find(debugInfo.ptr); in fetchBinderizedEntry()
655 if (it != pidInfo->refPids.end()) { in fetchBinderizedEntry()
659 entry->threadUsage = pidInfo->threadUsage; in fetchBinderizedEntry()
660 entry->threadCount = pidInfo->threadCount; in fetchBinderizedEntry()