/frameworks/native/libs/binder/include_processinfo/processinfo/ |
D | ProcessInfoService.h | 38 status_t getProcessStatesImpl(size_t length, /*in*/ int32_t* pids, /*out*/ int32_t* states); 39 status_t getProcessStatesScoresImpl(size_t length, /*in*/ int32_t* pids, 55 static status_t getProcessStatesFromPids(size_t length, /*in*/ int32_t* pids, in getProcessStatesFromPids() argument 57 return ProcessInfoService::getInstance().getProcessStatesImpl(length, /*in*/ pids, in getProcessStatesFromPids() 71 static status_t getProcessStatesScoresFromPids(size_t length, /*in*/ int32_t* pids, in getProcessStatesScoresFromPids() argument 74 length, /*in*/ pids, /*out*/ states, /*out*/ scores); in getProcessStatesScoresFromPids()
|
D | IProcessInfoService.h | 32 /*in*/ int32_t* pids, 36 /*in*/ int32_t* pids,
|
/frameworks/opt/car/services/builtInServices/host_tests/src/com/android/internal/car/test/ |
D | CarServiceCrashDumpTest.java | 156 List<String> pids = new ArrayList<String>(); in getHalPids() local 172 pids.add(fields[1]); in getHalPids() 178 return pids; in getHalPids() 185 List<String> pids = new ArrayList<String>(); in getNativePids() local 189 pids.add(pid); in getNativePids() 192 return pids; in getNativePids() 201 List<String> pids = new ArrayList<String>(); in testCarServiceCrashDump() local 207 pids.add(systemServerPid); in testCarServiceCrashDump() 210 pids.addAll(halPids); in testCarServiceCrashDump() 214 pids.addAll(nativePids); in testCarServiceCrashDump() [all …]
|
/frameworks/av/services/mediaresourcemanager/ |
D | UidObserver.cpp | 74 std::set<int32_t> pids{pid}; in add() local 75 mUids.emplace(uid, std::move(pids)); in add() 109 void UidObserver::getTerminatedProcesses(const std::vector<int32_t>& pids, in getTerminatedProcesses() argument 113 if (mProcessInfo->checkProcessExistent(pids, &existent)) { in getTerminatedProcesses() 117 terminatedPids.push_back(pids[index]); in getTerminatedProcesses() 141 std::vector<int32_t> pids; in onUidGone() local 142 std::copy(found->second.begin(), found->second.end(), std::back_inserter(pids)); in onUidGone() 143 getTerminatedProcesses(pids, terminatedPids); in onUidGone()
|
/frameworks/base/core/java/com/android/internal/os/ |
D | SelectedProcessCpuThreadReader.java | 44 int[] pids = Process.getPidsForCommands(mCmdline); in readAbsolute() local 45 if (pids == null || pids.length != 1) { in readAbsolute() 48 int pid = pids[0]; in readAbsolute()
|
/frameworks/av/media/utils/ |
D | TimeCheck.cpp | 121 void TimeCheck::accessAudioHalPids(std::vector<pid_t>* pids, bool update) { in accessAudioHalPids() argument 127 audioHalPids[(curAudioHalPids++ + 1) % kNumAudioHalPidsVectors] = *pids; in accessAudioHalPids() 129 *pids = audioHalPids[curAudioHalPids % kNumAudioHalPidsVectors]; in accessAudioHalPids() 134 void TimeCheck::setAudioHalPids(const std::vector<pid_t>& pids) { in setAudioHalPids() argument 135 accessAudioHalPids(&(const_cast<std::vector<pid_t>&>(pids)), true); in setAudioHalPids() 140 std::vector<pid_t> pids; in getAudioHalPids() local 141 accessAudioHalPids(&pids, false); in getAudioHalPids() 142 return pids; in getAudioHalPids() 264 std::vector<pid_t> pids = TimeCheck::getAudioHalPids(); in onTimeout() local 266 if (pids.size() != 0) { in onTimeout() [all …]
|
D | ProcessInfo.cpp | 53 bool ProcessInfo::checkProcessExistent(const std::vector<int32_t>& pids, in checkProcessExistent() argument 61 size_t count = pids.size(); in checkProcessExistent() 64 const_cast<int32_t*>(pids.data()), in checkProcessExistent() 78 mOverrideMap.find(pids[index]); in checkProcessExistent()
|
/frameworks/base/services/core/java/com/android/server/stats/pull/ |
D | ProcfsMemoryUtil.java | 84 int[] pids = new int[1024]; in getProcessCmdlines() local 85 pids = Process.getPids("/proc", pids); in getProcessCmdlines() 87 SparseArray<String> cmdlines = new SparseArray<>(pids.length); in getProcessCmdlines() 88 for (int pid : pids) { in getProcessCmdlines()
|
/frameworks/native/libs/binder/ |
D | ProcessInfoService.cpp | 29 status_t ProcessInfoService::getProcessStatesImpl(size_t length, /*in*/ int32_t* pids, in getProcessStatesImpl() argument 40 err = pis->getProcessStatesFromPids(length, /*in*/ pids, /*out*/ states); in getProcessStatesImpl() 61 /*in*/ int32_t* pids, /*out*/ int32_t* states, in getProcessStatesScoresImpl() argument 73 /*in*/ pids, /*out*/ states, /*out*/ scores); in getProcessStatesScoresImpl()
|
D | IProcessInfoService.cpp | 31 virtual status_t getProcessStatesFromPids(size_t length, /*in*/ int32_t* pids, in getProcessStatesFromPids() argument 36 data.writeInt32Array(length, pids); in getProcessStatesFromPids() 53 /*in*/ int32_t* pids, /*out*/ int32_t* states, /*out*/ int32_t* scores) in getProcessStatesAndOomScoresFromPids() argument 57 data.writeInt32Array(length, pids); in getProcessStatesAndOomScoresFromPids()
|
/frameworks/av/media/utils/fuzzers/ |
D | TimeCheckFuzz.cpp | 40 std::vector<pid_t> pids(pid_size); in LLVMFuzzerTestOneInput() local 41 for (auto& pid : pids) { in LLVMFuzzerTestOneInput() 47 android::mediautils::TimeCheck::setAudioHalPids(pids); in LLVMFuzzerTestOneInput()
|
/frameworks/native/libs/dumputils/ |
D | dump_utils.cpp | 164 static void get_interesting_aidl_pids(std::set<int> &pids) { in get_interesting_aidl_pids() argument 172 pids.insert(serviceDebugInfo.pid); in get_interesting_aidl_pids() 178 static void get_interesting_hidl_pids(std::set<int> &pids) { in get_interesting_hidl_pids() argument 193 pids.insert(info.pid); in get_interesting_hidl_pids()
|
/frameworks/base/core/java/android/os/ |
D | IProcessInfoService.aidl | 27 void getProcessStatesFromPids(in int[] pids, out int[] states); in getProcessStatesFromPids() argument 34 void getProcessStatesAndOomScoresFromPids(in int[] pids, out int[] states, out int[] scores); in getProcessStatesAndOomScoresFromPids() argument
|
/frameworks/native/libs/binderdebug/ |
D | BinderDebug.cpp | 78 bool pids = false; in getBinderPidInfo() local 90 pids = true; in getBinderPidInfo() 91 } else if (pids) { in getBinderPidInfo() 134 int32_t handle, std::vector<pid_t>* pids) { in getBinderClientPids() argument 195 pids->push_back(pid); in getBinderClientPids()
|
/frameworks/av/media/utils/include/mediautils/ |
D | ProcessInfoInterface.h | 80 virtual bool checkProcessExistent(const std::vector<int32_t>& pids, in checkProcessExistent() 83 (void)pids; in checkProcessExistent()
|
D | TimeCheck.h | 98 static void setAudioHalPids(const std::vector<pid_t>& pids); 136 static void accessAudioHalPids(std::vector<pid_t>* pids, bool update);
|
D | ProcessInfo.h | 36 bool checkProcessExistent(const std::vector<int32_t>& pids,
|
/frameworks/base/services/core/java/com/android/server/ |
D | Watchdog.java | 778 private static void addInterestingHidlPids(HashSet<Integer> pids) { in addInterestingHidlPids() argument 792 pids.add(info.pid); in addInterestingHidlPids() 799 private static void addInterestingAidlPids(HashSet<Integer> pids) { in addInterestingAidlPids() argument 806 pids.add(info.debugPid); in addInterestingAidlPids() 813 HashSet<Integer> pids = new HashSet<>(); in getInterestingNativePids() local 814 addInterestingAidlPids(pids); in getInterestingNativePids() 815 addInterestingHidlPids(pids); in getInterestingNativePids() 820 pids.add(i); in getInterestingNativePids() 824 return new ArrayList<Integer>(pids); in getInterestingNativePids() 840 final ArrayList<Integer> pids; in run() local [all …]
|
D | SystemServerInitThreadPool.java | 194 final ArrayList<Integer> pids = new ArrayList<>(); in dumpStackTraces() local 195 pids.add(Process.myPid()); in dumpStackTraces() 196 StackTracesDumpHelper.dumpStackTraces(pids, in dumpStackTraces()
|
/frameworks/native/cmds/dumpsys/ |
D | dumpsys.cpp | 391 std::vector<pid_t> pids; in dumpClientsToFd() local 399 getBinderClientPids(BinderDebugContext::BINDER, myPid, servicePid, handle.value(), &pids); in dumpClientsToFd() 403 pids.erase(std::remove_if(pids.begin(), pids.end(), [&](pid_t pid) { return pid == myPid; }), in dumpClientsToFd() 404 pids.end()); in dumpClientsToFd() 405 WriteStringToFd("Client PIDs: " + ::android::base::Join(pids, ", ") + "\n", fd.get()); in dumpClientsToFd()
|
/frameworks/opt/car/services/builtInServices/src/com/android/internal/car/ |
D | CarServiceHelperService.java | 547 private static void addInterestingHidlPids(HashSet<Integer> pids) { in addInterestingHidlPids() argument 559 pids.add(info.pid); in addInterestingHidlPids() 569 private static void addInterestingAidlPids(HashSet<Integer> pids) { in addInterestingAidlPids() argument 578 pids.add(info.debugPid); in addInterestingAidlPids() 596 HashSet<Integer> pids = new HashSet<Integer>(); in getInterestingNativePids() local 597 addInterestingHidlPids(pids); in getInterestingNativePids() 598 addInterestingAidlPids(pids); in getInterestingNativePids() 603 pids.add(i); in getInterestingNativePids() 607 return new ArrayList<Integer>(pids); in getInterestingNativePids() 617 ArrayList<Integer> pids = new ArrayList<>(); in dumpServiceStacks() local [all …]
|
/frameworks/base/core/tests/coretests/src/com/android/internal/os/ |
D | ProcLocksReaderTest.java | 120 public void onBlockingFileLock(IntArray pids) { in onBlockingFileLock() argument 121 mPids.add(pids.toArray()); in onBlockingFileLock()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/am/ |
D | ActivityManagerTest.java | 735 final int[] pids = new int[3]; in testKillPids() local 737 pids[0] = startTargetService(am, TEST_APP1, TEST_CLASS, uid1, TEST_APP1, in testKillPids() 739 pids[1] = startTargetService(am, TEST_APP2, TEST_CLASS, uid2, TEST_APP2, in testKillPids() 741 pids[2] = startTargetService(am, TEST_APP3, TEST_CLASS, uid3, TEST_APP3, in testKillPids() 744 mService.killPids(pids, "testKillPids", false); in testKillPids() 840 final List<Integer> pids = new ArrayList<>(); in getIsolatedProcesses() local 842 pids.add(Integer.parseInt(output.substring(matcher.start(), matcher.end()))); in getIsolatedProcesses() 844 return pids; in getIsolatedProcesses() 848 List<Integer> pids) { in verifyIsolatedProcesses() argument 850 assertTrue("Isolated processes don't match", l.containsAll(pids)); in verifyIsolatedProcesses() [all …]
|
/frameworks/base/services/core/java/com/android/server/am/ |
D | HealthStatsBatteryStatsWriter.java | 54 SparseArray<? extends BatteryStats.Uid.Pid> pids; in writeUid() local 136 pids = uid.getPidStats(); in writeUid() 137 N = pids.size(); in writeUid() 140 writePid(writer, pids.valueAt(i)); in writeUid() 141 uidWriter.addStats(UidHealthStats.STATS_PIDS, Integer.toString(pids.keyAt(i)), writer); in writeUid()
|
/frameworks/native/libs/binderdebug/include/binderdebug/ |
D | BinderDebug.h | 45 int32_t handle, std::vector<pid_t>* pids);
|