/frameworks/av/media/utils/ |
D | TimeCheck.cpp | 36 void TimeCheck::accessAudioHalPids(std::vector<pid_t>* pids, bool update) { in accessAudioHalPids() argument 42 audioHalPids[(curAudioHalPids++ + 1) % kNumAudioHalPidsVectors] = *pids; in accessAudioHalPids() 44 *pids = audioHalPids[curAudioHalPids % kNumAudioHalPidsVectors]; in accessAudioHalPids() 49 void TimeCheck::setAudioHalPids(const std::vector<pid_t>& pids) { in setAudioHalPids() argument 50 accessAudioHalPids(&(const_cast<std::vector<pid_t>&>(pids)), true); in setAudioHalPids() 55 std::vector<pid_t> pids; in getAudioHalPids() local 56 accessAudioHalPids(&pids, false); in getAudioHalPids() 57 return pids; in getAudioHalPids() 124 std::vector<pid_t> pids = getAudioHalPids(); in threadLoop() local 125 if (pids.size() != 0) { in threadLoop() [all …]
|
/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/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/base/services/core/java/com/android/server/stats/pull/ |
D | ProcfsMemoryUtil.java | 81 int[] pids = new int[1024]; in getProcessCmdlines() local 82 pids = Process.getPids("/proc", pids); in getProcessCmdlines() 84 SparseArray<String> cmdlines = new SparseArray<>(pids.length); in getProcessCmdlines() 85 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::TimeCheck::setAudioHalPids(pids); in LLVMFuzzerTestOneInput()
|
/frameworks/opt/car/services/src/com/android/internal/car/ |
D | CarServiceHelperService.java | 514 HashSet<Integer> pids = new HashSet<>(); in getInterestingHalPids() local 522 pids.add(info.pid); in getInterestingHalPids() 526 return new ArrayList<Integer>(pids); in getInterestingHalPids() 536 ArrayList<Integer> pids = getInterestingHalPids(); in getInterestingNativePids() local 540 pids.ensureCapacity(pids.size() + nativePids.length); in getInterestingNativePids() 542 pids.add(i); in getInterestingNativePids() 546 return pids; in getInterestingNativePids() 552 ArrayList<Integer> pids = new ArrayList<>(); in dumpServiceStacks() local 553 pids.add(Process.myPid()); in dumpServiceStacks() 556 pids, null, null, getInterestingNativePids(), null); in dumpServiceStacks() [all …]
|
/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/base/services/core/java/com/android/server/ |
D | Watchdog.java | 544 private static void addInterestingHidlPids(HashSet<Integer> pids) { in addInterestingHidlPids() argument 558 pids.add(info.pid); in addInterestingHidlPids() 565 private static void addInterestingAidlPids(HashSet<Integer> pids) { in addInterestingAidlPids() argument 572 pids.add(info.debugPid); in addInterestingAidlPids() 579 HashSet<Integer> pids = new HashSet<>(); in getInterestingNativePids() local 580 addInterestingAidlPids(pids); in getInterestingNativePids() 581 addInterestingHidlPids(pids); in getInterestingNativePids() 586 pids.add(i); in getInterestingNativePids() 590 return new ArrayList<Integer>(pids); in getInterestingNativePids() 601 final ArrayList<Integer> pids; in run() local [all …]
|
D | SystemServerInitThreadPool.java | 192 final ArrayList<Integer> pids = new ArrayList<>(); in dumpStackTraces() local 193 pids.add(Process.myPid()); in dumpStackTraces() 194 ActivityManagerService.dumpStackTraces(pids, null, null, in dumpStackTraces()
|
/frameworks/native/libs/dumputils/ |
D | dump_utils.cpp | 139 std::set<int> pids; in get_interesting_hal_pids() local 153 pids.insert(info.pid); in get_interesting_hal_pids() 161 return pids; // whether it was okay or not in get_interesting_hal_pids()
|
/frameworks/av/media/utils/include/mediautils/ |
D | TimeCheck.h | 38 static void setAudioHalPids(const std::vector<pid_t>& pids); 68 static void accessAudioHalPids(std::vector<pid_t>* pids, bool update);
|
/frameworks/av/media/libaudiohal/impl/ |
D | DevicesFactoryHalHybrid.cpp | 40 status_t DevicesFactoryHalHybrid::getHalPids(std::vector<pid_t> *pids) { in getHalPids() argument 42 return mHidlFactory->getHalPids(pids); in getHalPids()
|
D | DevicesFactoryHalLocal.h | 36 status_t getHalPids(std::vector<pid_t> *pids __unused) override { in getHalPids()
|
D | DevicesFactoryHalHybrid.h | 39 status_t getHalPids(std::vector<pid_t> *pids) override;
|
D | DevicesFactoryHalHidl.cpp | 140 status_t DevicesFactoryHalHidl::getHalPids(std::vector<pid_t> *pids) { in getHalPids() argument 159 *pids = {pidsSet.begin(), pidsSet.end()}; in getHalPids()
|
D | DevicesFactoryHalHidl.h | 45 status_t getHalPids(std::vector<pid_t> *pids) override;
|
/frameworks/base/services/tests/servicestests/src/com/android/server/am/ |
D | ActivityManagerTest.java | 530 final int[] pids = new int[3]; in testKillPids() local 532 pids[0] = startTargetService(am, TEST_APP1, TEST_CLASS, uid1, TEST_APP1, in testKillPids() 534 pids[1] = startTargetService(am, TEST_APP2, TEST_CLASS, uid2, TEST_APP2, in testKillPids() 536 pids[2] = startTargetService(am, TEST_APP3, TEST_CLASS, uid3, TEST_APP3, in testKillPids() 539 mService.killPids(pids, "testKillPids", false); in testKillPids() 635 final List<Integer> pids = new ArrayList<>(); in getIsolatedProcesses() local 637 pids.add(Integer.parseInt(output.substring(matcher.start(), matcher.end()))); in getIsolatedProcesses() 639 return pids; in getIsolatedProcesses() 643 List<Integer> pids) { in verifyIsolatedProcesses() argument 645 assertTrue("Isolated processes don't match", l.containsAll(pids)); in verifyIsolatedProcesses() [all …]
|
/frameworks/rs/tests/lldb/tests/harness/ |
D | util_android.py | 270 pids = pid_output.split() 272 if len(pids) < 1: 276 if len(pids) > 1: 278 .format(process_name, pids)) 281 pid = int(pids[0]) 282 self._log.info('App pid found: {0}'.format(pids[0]))
|
/frameworks/base/startop/scripts/app_startup/lib/ |
D | adb_utils.py | 66 _, pids = cmd_utils.run_shell_command('adb shell ps | grep "{}" | ' 70 for pid in pids.split('\n'):
|
/frameworks/base/services/core/java/com/android/server/wm/ |
D | AnrController.java | 215 final int[] pids = shouldDumpSf[0] in preDumpIfLockTooSlow() local 218 if (pids != null) { in preDumpIfLockTooSlow() 220 for (int pid : pids) { in preDumpIfLockTooSlow()
|
/frameworks/av/media/libaudiohal/include/media/audiohal/ |
D | DevicesFactoryHalInterface.h | 40 virtual status_t getHalPids(std::vector<pid_t> *pids) = 0;
|
/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()
|