Home
last modified time | relevance | path

Searched refs:pids (Results 1 – 25 of 46) 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()
45 *pids = audioHalPids[curAudioHalPids]; in accessAudioHalPids()
50 void TimeCheck::setAudioHalPids(const std::vector<pid_t>& pids) { in setAudioHalPids() argument
51 accessAudioHalPids(&(const_cast<std::vector<pid_t>&>(pids)), true); in setAudioHalPids()
56 std::vector<pid_t> pids; in getAudioHalPids() local
57 accessAudioHalPids(&pids, false); in getAudioHalPids()
58 return pids; in getAudioHalPids()
125 std::vector<pid_t> pids = getAudioHalPids(); in threadLoop() local
126 if (pids.size() != 0) { in threadLoop()
[all …]
/frameworks/native/libs/binder/include/binder/
DProcessInfoService.h39 status_t getProcessStatesImpl(size_t length, /*in*/ int32_t* pids, /*out*/ int32_t* states);
40 status_t getProcessStatesScoresImpl(size_t length, /*in*/ int32_t* pids,
56 static status_t getProcessStatesFromPids(size_t length, /*in*/ int32_t* pids, in getProcessStatesFromPids() argument
58 return ProcessInfoService::getInstance().getProcessStatesImpl(length, /*in*/ pids, in getProcessStatesFromPids()
72 static status_t getProcessStatesScoresFromPids(size_t length, /*in*/ int32_t* pids, in getProcessStatesScoresFromPids() argument
75 length, /*in*/ pids, /*out*/ states, /*out*/ scores); in getProcessStatesScoresFromPids()
DIProcessInfoService.h33 /*in*/ int32_t* pids,
37 /*in*/ int32_t* pids,
/frameworks/base/services/core/java/com/android/server/stats/pull/
DProcfsMemoryUtil.java78 int[] pids = new int[1024]; in getProcessCmdlines() local
79 pids = Process.getPids("/proc", pids); in getProcessCmdlines()
81 SparseArray<String> cmdlines = new SparseArray<>(pids.length); in getProcessCmdlines()
82 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/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.java521 HashSet<Integer> pids = new HashSet<>(); in getInterestingHalPids() local
531 pids.add(info.pid); in getInterestingHalPids()
533 return new ArrayList<Integer>(pids); in getInterestingHalPids()
540 ArrayList<Integer> pids = getInterestingHalPids(); in getInterestingNativePids() local
544 pids.ensureCapacity(pids.size() + nativePids.length); in getInterestingNativePids()
546 pids.add(i); in getInterestingNativePids()
550 return pids; in getInterestingNativePids()
614 ArrayList<Integer> pids = new ArrayList<>(mInterestingJavaPids); in run() local
615 ActivityManagerService.dumpStackTraces(pids, null, null, in run()
637 ArrayList<Integer> pids = new ArrayList<>(mInterestingJavaPids); in run() local
[all …]
DSystemServerInitThreadPool.java188 final ArrayList<Integer> pids = new ArrayList<>(); in dumpStackTraces() local
189 pids.add(Process.myPid()); in dumpStackTraces()
190 ActivityManagerService.dumpStackTraces(pids, null, null, in dumpStackTraces()
/frameworks/native/libs/dumputils/
Ddump_utils.cpp137 std::set<int> pids; in get_interesting_hal_pids() local
151 pids.insert(info.pid); in get_interesting_hal_pids()
159 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/opt/car/services/src/com/android/internal/car/
DCarServiceHelperService.java1107 HashSet<Integer> pids = new HashSet<>(); in getInterestingHalPids() local
1115 pids.add(info.pid); in getInterestingHalPids()
1119 return new ArrayList<Integer>(pids); in getInterestingHalPids()
1129 ArrayList<Integer> pids = getInterestingHalPids(); in getInterestingNativePids() local
1133 pids.ensureCapacity(pids.size() + nativePids.length); in getInterestingNativePids()
1135 pids.add(i); in getInterestingNativePids()
1139 return pids; in getInterestingNativePids()
1145 ArrayList<Integer> pids = new ArrayList<>(); in dumpServiceStacks() local
1146 pids.add(Process.myPid()); in dumpServiceStacks()
1149 pids, null, null, getInterestingNativePids(), null); in dumpServiceStacks()
[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/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()
/frameworks/av/media/libaudiohal/include/media/audiohal/
DDevicesFactoryHalInterface.h40 virtual status_t getHalPids(std::vector<pid_t> *pids) = 0;
/frameworks/base/packages/SystemUI/src/com/android/systemui/util/leak/
DDumpTruck.java70 public DumpTruck captureHeaps(List<Long> pids) { in captureHeaps() argument
83 for (Long pidL : pids) { in captureHeaps()
/frameworks/base/services/core/java/com/android/server/wm/
DInputManagerCallback.java150 final int[] pids = shouldDumpSf[0] in preDumpIfLockTooSlow() local
153 if (pids != null) { in preDumpIfLockTooSlow()
155 for (int pid : pids) { in preDumpIfLockTooSlow()
/frameworks/base/core/java/com/android/internal/os/
DProcessCpuTracker.java435 int[] pids = Process.getPids(statsFile, curPids); in collectStats() local
436 int NP = (pids == null) ? 0 : pids.length; in collectStats()
440 int pid = pids[i]; in collectStats()
614 return pids; in collectStats()
/frameworks/base/core/jni/
Dandroid_util_Process.cpp1240 Vector<jint> pids; in android_os_Process_getPidsForCommands() local
1278 pids.add(pid); in android_os_Process_getPidsForCommands()
1286 jintArray pidArray = env->NewIntArray(pids.size()); in android_os_Process_getPidsForCommands()
1292 if (pids.size() > 0) { in android_os_Process_getPidsForCommands()
1293 env->SetIntArrayRegion(pidArray, 0, pids.size(), pids.array()); in android_os_Process_getPidsForCommands()

12