Home
last modified time | relevance | path

Searched refs:pid (Results 1 – 25 of 34) sorted by relevance

12

/platform_testing/libraries/sts-common-util/host-side/src/com/android/sts/common/
DProcessUtil.java92 int pid = Integer.valueOf(pidComm[0]); in pidsOf() local
94 pidToCommand.put(pid, comm); in pidsOf()
167 public static Optional<String> getProcessName(ITestDevice device, int pid) in getProcessName() argument
171 device.executeShellV2Command(String.format("cat /proc/%d/cmdline", pid)); in getProcessName()
185 public static void waitPidExited(ITestDevice device, int pid) in waitPidExited() argument
187 waitPidExited(device, pid, PROCESS_WAIT_TIMEOUT_MS); in waitPidExited()
198 public static void waitPidExited(ITestDevice device, int pid, long timeoutMs) in waitPidExited() argument
204 res = device.executeShellV2Command(String.format("kill -0 %d", pid)); in waitPidExited()
233 public static void killPid(ITestDevice device, int pid, long timeoutMs) in killPid() argument
235 killPid(device, pid, 9, timeoutMs); in killPid()
[all …]
DFridaUtils.java154 public ByteArrayOutputStream withFridaScript(final String fridaJsScriptContent, int pid) in withFridaScript() argument
174 String.valueOf(pid), in withFridaScript()
200 for (Integer pid : runningPids) { in close()
202 ProcessUtil.killPid(device, pid.intValue(), 10_000L); in close()
/platform_testing/emu_test/
Drun_android_bridge_test.sh16 ( $1 $2 ) & pid=$!
17 ( sleep $3 && kill -HUP $pid ) 2>/dev/null & watcher=$!
18 if wait $pid 2>/dev/null; then
24 pkill -9 -g $pid
Drun_test.sh22 ( $1 $2 $3 $4 ) & pid=$!
23 ( sleep $5 && kill -HUP $pid ) 2>/dev/null & watcher=$!
24 if wait $pid 2>/dev/null; then
/platform_testing/libraries/flicker/utils/src/android/tools/parsers/events/
DEventLogParser.kt48 val (rawTimestamp, uid, pid, tid, priority, tag) = in <lambda>() constant
53 parseEvent(timestamp, pid.toInt(), uid, tid.toInt(), tag, eventData) in <lambda>()
62 pid: Int, in <lambda>()
70 FocusEvent.from(timestamp, pid, uid, tid, parseData(eventData)) in <lambda>()
73 CujEvent.fromData(pid, uid, tid, tag, eventData) in <lambda>()
76 CujEvent.fromData(pid, uid, tid, tag, eventData) in <lambda>()
79 CujEvent.fromData(pid, uid, tid, tag, eventData) in <lambda>()
82 Event(timestamp, pid, uid, tid, tag) in <lambda>()
/platform_testing/libraries/aupt-lib/src/android/support/test/aupt/
DProcessStatusTracker.java93 detail.pid0 = info.pid; in getProcessDetails()
95 int pid = mPidTracker.get(info.processName); in getProcessDetails() local
96 if (pid == -1) { in getProcessDetails()
97 mPidTracker.put(info.processName, info.pid); in getProcessDetails()
99 "pid detected - %s : %d", info.processName, info.pid)); in getProcessDetails()
103 } else if (pid == info.pid) { in getProcessDetails()
111 detail.pid1 = pid; in getProcessDetails()
120 int pid = mPidTracker.get(proc); in getProcessDetails() local
121 if (pid != -1) { in getProcessDetails()
197 int pid = Integer.valueOf(matcher.group(PS_PATTERN_PID_GROUP)); in getRunningAppProcesses() local
[all …]
/platform_testing/libraries/collectors-helper/memory/src/com/android/helpers/
DShowmapSnapshotHelper.java186 for (Integer pid : pids) { in getMetrics()
191 if (mRunGcPrecollection && zygoteChildrenPids.contains(pid)) { in getMetrics()
193 android.os.Trace.beginSection("IssueGCForPid: " + pid); in getMetrics()
197 mUiDevice.executeShellCommand("dumpsys meminfo -a " + pid); in getMetrics()
202 String showmapOutput = execShowMap(processName, pid); in getMetrics()
206 processName, pid, PROCESS_OOM_SCORE_IMPERCEPTIBLE)) { in getMetrics()
222 storeToFile(mTestOutputFile, processName, pid, showmapOutput, writer); in getMetrics()
226 updateChildProcessesDetails(processName, pid); in getMetrics()
276 int pid = Integer.parseInt(line); in getChildrenPids() local
277 childrenPids.add(pid); in getChildrenPids()
[all …]
DHeapDumpHelper.java90 String pid = getPid(processName); in getMetrics() local
92 if (pid.isEmpty()) { in getMetrics()
105 execHeapDump(pid, processName, finalHeapDumpPath, false); in getMetrics()
122 execHeapDump(pid, processName, finalNativeHeapDumpPath, true); in getMetrics()
159 String pid, String processName, String filePath, boolean isNativeHeapDump) in execHeapDump() argument
164 ? String.format(NATIVE_HEAPDUMP_CMD, pid, filePath) in execHeapDump()
165 : String.format(HEAPDUMP_CMD, pid, filePath); in execHeapDump()
DMemLeaksHelper.java112 for (Integer pid : pids.keySet()) { in getMeminfo()
115 dumpOutput = executeShellCommand(String.format(DUMPSYS_MEMIFNO_CMD, pid)); in getMeminfo()
118 Log.e(TAG, "Failed to run " + String.format(DUMPSYS_MEMIFNO_CMD, pid) + ".", ioe); in getMeminfo()
124 String.format(MEM_NAME_PATTERN, pid), in getMeminfo()
141 String processName = pids.get(pid); in getMeminfo()
DProcessShowmapHelper.java157 int pid; in sampleMemory() local
162 pid = NumberFormat.getInstance().parse(pidofOutput).intValue(); in sampleMemory()
171 showmapOutput = mUiDevice.executeShellCommand(String.format(SHOWMAP_CMD, pid)); in sampleMemory()
DTotalPssHelper.java154 proc.pid in getPss()
/platform_testing/libraries/flicker/utils/src/android/tools/traces/monitors/
DPerfettoTraceMonitor.kt66 val pid = stdout.trim().toInt() in doStart() constant
67 perfettoPid = pid in doStart()
70 allPerfettoPids.add(pid) in doStart()
282 fun killPerfettoProcess(pid: Int) { in killPerfettoProcess()
283 if (isPerfettoProcessUp(pid)) { in killPerfettoProcess()
284 executeShellCommand("kill $pid") in killPerfettoProcess()
288 private fun waitPerfettoProcessExits(pid: Int) { in waitPerfettoProcessExits()
290 if (!isPerfettoProcessUp(pid)) { in waitPerfettoProcessExits()
297 private fun isPerfettoProcessUp(pid: Int): Boolean { in isPerfettoProcessUp()
298 val out = String(executeShellCommand("ps -p $pid -o CMD")) in isPerfettoProcessUp()
/platform_testing/libraries/flicker/utils/src/android/tools/traces/surfaceflinger/
DTransaction.kt20 val pid: Int, constant in android.tools.traces.surfaceflinger.Transaction
34 "(pid=$pid, uid=$uid, requestedVSyncId=$requestedVSyncId, postTime=$postTime, " + in toString()
/platform_testing/libraries/systemui-helper/src/android/platform/helpers/
DProcessUtil.kt15 .map { pid -> "kill $pid" } in <lambda>() method
DCommonUtils.java123 for (String pid : currentPids) { in allSysUiProcessesRestarted()
124 if (initialPidsList.contains(pid)) { in allSysUiProcessesRestarted()
/platform_testing/libraries/flicker/utils/test/src/android/tools/traces/wm/
DTransitionTest.kt160 pid = 0, in getStartTransaction_directMatch()
199 pid = 0, in getStartTransaction_noMatch()
238 pid = 0, in getStartTransaction_indirectMatch()
277 pid = 0, in getFinishTransaction_directMatch()
316 pid = 0, in getFinsihTransaction_noMatch()
355 pid = 0, in getFinishTransaction_indirectMatch()
/platform_testing/libraries/device-collectors/src/main/java/android/device/collectors/
DScreenRecordCollector.java262 for (String pid : pids) { in cancel()
264 if (pid.isEmpty()) { in cancel()
268 getDevice().executeShellCommand(String.format("kill -2 %s", pid)); in cancel()
271 String.format("Sent SIGINT 2 to screenrecord process (%s)", pid)); in cancel()
DPerfettoTracingStrategy.java217 String pid = MetricUtility.readStringFromFile(perfettoPidFile); in cleanupPerfettoSessionsFromPreviousRuns() local
218 pids.add(Integer.parseInt(pid.trim())); in cleanupPerfettoSessionsFromPreviousRuns()
219 Log.i(getTag(), "Adding perfetto process for cleanup - ." + pid); in cleanupPerfettoSessionsFromPreviousRuns() local
/platform_testing/libraries/compatibility-common-util/tests/assets/
Dlogcat.txt5 09-03 17:48:05.707 359 359 W : debuggerd: handling request: pid=11071 uid=1041 gid=1005…
10 09-03 17:48:05.796 7072 7072 F DEBUG : pid: 11071, tid: 11189, name: AudioOut_D >>> /system/bi…
27 09-03 17:48:05.967 11272 11568 W NativeCrashListener: Couldn't find ProcessRecord for pid 11071
34 06-15 19:57:33.608 379 379 W : debuggerd: handling request: pid=12736 uid=1041 gid=1005…
39 06-15 19:57:33.670 26192 26192 F DEBUG : pid: 12736, tid: 12761, name: Binder:12736_2 >>> /syste…
62 06-15 19:57:33.839 934 2991 W NativeCrashListener: Couldn't find ProcessRecord for pid 12736
66 06-15 19:57:35.130 379 379 W : debuggerd: handling request: pid=26201 uid=1041 gid=1005…
72 06-15 19:57:35.191 26230 26230 F DEBUG : pid: 26201, tid: 26227, name: Binder:26201_3 >>> /syste…
95 06-15 19:57:35.346 934 2991 W NativeCrashListener: Couldn't find ProcessRecord for pid 26201
103 06-15 19:57:40.674 26283 26283 F DEBUG : pid: 26246, tid: 26282, name: Binder:26246_5 >>> /syste…
[all …]
/platform_testing/libraries/device-collectors/src/main/java/android/device/stressmodes/
DBackgroundTranscodingStressTestMode.java88 int pid = android.os.Process.myPid(); in testStarted() local
94 .setClientPid(pid) in testStarted()
/platform_testing/libraries/sts-common-util/host-side/tests/src/com/android/sts/common/util/
DTombstoneUtilsTest.java506 Optional<Integer> pid = pidsMap.keySet().stream().findAny(); in testWithAssertNoCrashesCatchesCrash() local
508 assertThat(pid.isPresent()).isTrue(); in testWithAssertNoCrashesCatchesCrash()
510 getDevice(), pid.get(), /* SIGSEGV */ 11, ProcessUtil.PROCESS_WAIT_TIMEOUT_MS); in testWithAssertNoCrashesCatchesCrash()
540 Optional<Integer> pid = pidsMap.keySet().stream().findAny(); in testWithAssertNoCrashesForNoCrashPriorCrashes() local
541 assertThat(pid.isPresent()).isTrue(); in testWithAssertNoCrashesForNoCrashPriorCrashes()
544 getDevice(), pid.get(), /* SIGSEGV */ 11, ProcessUtil.PROCESS_WAIT_TIMEOUT_MS); in testWithAssertNoCrashesForNoCrashPriorCrashes()
/platform_testing/utils/shell-as/
DREADME.md25 shell-as --pid 1 /system/bin/id
/platform_testing/libraries/compatibility-common-util/tests/src/com/android/compatibility/common/util/
DCrashUtilsTest.java505 int pid, in createCrashJson() argument
513 pid, tid, name, process, faultaddress, signal, abortMessage, ImmutableList.of()); in createCrashJson()
517 int pid, in createCrashJson() argument
527 json.put(CrashUtils.PID, pid); in createCrashJson()
/platform_testing/libraries/compatibility-common-util/src/com/android/compatibility/common/util/
DCrashUtils.java233 int pid = 0; in addAllCrashes() local
244 pid = Integer.parseInt(pidtidNameMatcher.group(1)); in addAllCrashes()
314 crash.put(PID, pid); in addAllCrashes()
/platform_testing/libraries/sts-common-util/host-side/src/com/android/sts/common/tradefed/testtype/
DSecurityTestCase.java414 String pid = tokens[0]; in logAndTerminateTestProcesses() local
421 CLog.w("Found dangling test process %s with PID %s, PGID %s", name, pid, pgid); in logAndTerminateTestProcesses()

12