Home
last modified time | relevance | path

Searched refs:pids (Results 1 – 25 of 50) sorted by relevance

12

/frameworks/av/media/utils/
DTimeCheck.cpp36 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/
DProcessInfoService.h38 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()
DIProcessInfoService.h32 /*in*/ int32_t* pids,
36 /*in*/ int32_t* pids,
/frameworks/base/core/java/com/android/internal/os/
DSelectedProcessCpuThreadReader.java44 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/
DProcfsMemoryUtil.java81 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/
DProcessInfoService.cpp29 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()
DIProcessInfoService.cpp31 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/
DTimeCheckFuzz.cpp40 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/
DCarServiceHelperService.java514 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/
DIProcessInfoService.aidl27 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/
DWatchdog.java544 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 …]
DSystemServerInitThreadPool.java192 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/
Ddump_utils.cpp139 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/
DTimeCheck.h38 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/
DDevicesFactoryHalHybrid.cpp40 status_t DevicesFactoryHalHybrid::getHalPids(std::vector<pid_t> *pids) { in getHalPids() argument
42 return mHidlFactory->getHalPids(pids); in getHalPids()
DDevicesFactoryHalLocal.h36 status_t getHalPids(std::vector<pid_t> *pids __unused) override { in getHalPids()
DDevicesFactoryHalHybrid.h39 status_t getHalPids(std::vector<pid_t> *pids) override;
DDevicesFactoryHalHidl.cpp140 status_t DevicesFactoryHalHidl::getHalPids(std::vector<pid_t> *pids) { in getHalPids() argument
159 *pids = {pidsSet.begin(), pidsSet.end()}; in getHalPids()
DDevicesFactoryHalHidl.h45 status_t getHalPids(std::vector<pid_t> *pids) override;
/frameworks/base/services/tests/servicestests/src/com/android/server/am/
DActivityManagerTest.java530 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/
Dutil_android.py270 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/
Dadb_utils.py66 _, 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/
DAnrController.java215 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/
DDevicesFactoryHalInterface.h40 virtual status_t getHalPids(std::vector<pid_t> *pids) = 0;
/frameworks/base/services/core/java/com/android/server/am/
DHealthStatsBatteryStatsWriter.java54 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()

12