Home
last modified time | relevance | path

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

/frameworks/native/include/binder/
DProcessInfoService.h37 status_t getProcessStatesImpl(size_t length, /*in*/ int32_t* pids, /*out*/ int32_t* states);
52 static status_t getProcessStatesFromPids(size_t length, /*in*/ int32_t* pids, in getProcessStatesFromPids() argument
54 return ProcessInfoService::getInstance().getProcessStatesImpl(length, /*in*/ pids, in getProcessStatesFromPids()
DIProcessInfoService.h31 /*in*/ int32_t* pids,
35 /*in*/ int32_t* pids,
/frameworks/native/libs/binder/
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()
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()
/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
DBatteryStats.java5279 SparseArray<? extends Uid.Pid> pids = uid.getPidStats(); in dumpLocked() local
5280 if (pids != null) { in dumpLocked()
5281 for (int j=0; j<pids.size(); j++) { in dumpLocked()
5282 Uid.Pid pid = pids.valueAt(j); in dumpLocked()
5289 pw.print(" PID "); pw.print(pids.keyAt(j)); in dumpLocked()
/frameworks/base/services/core/java/com/android/server/
DWatchdog.java401 ArrayList<Integer> pids = new ArrayList<Integer>(); in run() local
402 pids.add(Process.myPid()); in run()
403 ActivityManagerService.dumpStackTraces(true, pids, null, null, in run()
421 ArrayList<Integer> pids = new ArrayList<Integer>(); in run() local
422 pids.add(Process.myPid()); in run()
423 if (mPhonePid > 0) pids.add(mPhonePid); in run()
427 !waitedHalf, pids, null, null, NATIVE_STACKS_OF_INTEREST); in run()
/frameworks/base/services/core/java/com/android/server/am/
DHealthStatsBatteryStatsWriter.java53 SparseArray<? extends BatteryStats.Uid.Pid> pids; in writeUid() local
135 pids = uid.getPidStats(); in writeUid()
136 N = pids.size(); in writeUid()
139 writePid(writer, pids.valueAt(i)); in writeUid()
140 uidWriter.addStats(UidHealthStats.STATS_PIDS, Integer.toString(pids.keyAt(i)), writer); in writeUid()
DActivityManagerService.java5261 int[] pids = Process.getPidsForCommands(nativeProcs); in dumpStackTraces() local
5262 if (pids != null) { in dumpStackTraces()
5263 for (int pid : pids) { in dumpStackTraces()
5796 public Debug.MemoryInfo[] getProcessMemoryInfo(int[] pids) { in getProcessMemoryInfo() argument
5798 Debug.MemoryInfo[] infos = new Debug.MemoryInfo[pids.length]; in getProcessMemoryInfo()
5799 for (int i=pids.length-1; i>=0; i--) { in getProcessMemoryInfo()
5804 proc = mPidsSelfLocked.get(pids[i]); in getProcessMemoryInfo()
5809 Debug.getMemoryInfo(pids[i], infos[i]); in getProcessMemoryInfo()
5824 public long[] getProcessPss(int[] pids) { in getProcessPss() argument
5826 long[] pss = new long[pids.length]; in getProcessPss()
[all …]
/frameworks/base/core/java/com/android/internal/os/
DProcessCpuTracker.java410 int[] pids = Process.getPids(statsFile, curPids); in collectStats() local
411 int NP = (pids == null) ? 0 : pids.length; in collectStats()
415 int pid = pids[i]; in collectStats()
589 return pids; in collectStats()
/frameworks/base/core/jni/
Dandroid_util_Process.cpp1117 Vector<jint> pids; in android_os_Process_getPidsForCommands() local
1155 pids.add(pid); in android_os_Process_getPidsForCommands()
1163 jintArray pidArray = env->NewIntArray(pids.size()); in android_os_Process_getPidsForCommands()
1169 if (pids.size() > 0) { in android_os_Process_getPidsForCommands()
1170 env->SetIntArrayRegion(pidArray, 0, pids.size(), pids.array()); in android_os_Process_getPidsForCommands()
/frameworks/base/tests/MemoryUsage/src/com/android/tests/memoryusage/
DMemoryUsageTest.java294 int[] pids = { in getPss() local
297 MemoryInfo meminfo = am.getProcessMemoryInfo(pids)[0]; in getPss()
/frameworks/base/core/java/android/app/
DIActivityManager.java356 public boolean killPids(int[] pids, String reason, boolean secure) throws RemoteException; in killPids() argument
406 public Debug.MemoryInfo[] getProcessMemoryInfo(int[] pids) in getProcessMemoryInfo() argument
490 public long[] getProcessPss(int[] pids) throws RemoteException; in getProcessPss() argument
DActivityManagerNative.java1624 int[] pids = data.createIntArray(); in onTransact() local
1627 boolean res = killPids(pids, reason, secure); in onTransact()
1837 int[] pids = data.createIntArray(); in onTransact() local
1838 Debug.MemoryInfo[] res = getProcessMemoryInfo(pids); in onTransact()
2297 int[] pids = data.createIntArray(); in onTransact() local
2298 long[] pss = getProcessPss(pids); in onTransact()
5064 public boolean killPids(int[] pids, String reason, boolean secure) throws RemoteException { in killPids() argument
5068 data.writeIntArray(pids); in killPids()
5321 public Debug.MemoryInfo[] getProcessMemoryInfo(int[] pids) in getProcessMemoryInfo() argument
5326 data.writeIntArray(pids); in getProcessMemoryInfo()
[all …]
DActivityManager.java3076 public Debug.MemoryInfo[] getProcessMemoryInfo(int[] pids) { in getProcessMemoryInfo() argument
3078 return ActivityManagerNative.getDefault().getProcessMemoryInfo(pids); in getProcessMemoryInfo()
/frameworks/base/core/java/android/os/storage/
DIMountService.java1612 int[] pids = getStorageUsers(path); in onTransact() local
1614 reply.writeIntArray(pids); in onTransact()
/frameworks/base/services/core/java/com/android/server/wm/
DWindowManagerService.java9543 int[] pids = new int[pidCandidates.size()]; in reclaimSomeSurfaceMemoryLocked() local
9544 for (int i=0; i<pids.length; i++) { in reclaimSomeSurfaceMemoryLocked()
9545 pids[i] = pidCandidates.keyAt(i); in reclaimSomeSurfaceMemoryLocked()
9548 if (mActivityManager.killPids(pids, "Free memory", secure)) { in reclaimSomeSurfaceMemoryLocked()