Searched refs:pgrepRegex (Results 1 – 2 of 2) sorted by relevance
/platform_testing/libraries/sts-common-util/host-side/src/com/android/sts/common/ |
D | ProcessUtil.java | 76 public static Optional<Map<Integer, String>> pidsOf(ITestDevice device, String pgrepRegex) in pidsOf() argument 81 device.executeShellV2Command(String.format("pgrep -f -l %s", pgrepRegex)); in pidsOf() 86 "pgrep '%s' failed with stderr: %s", pgrepRegex, pgrepRes.getStderr())); in pidsOf() 107 public static Optional<Integer> pidOf(ITestDevice device, String pgrepRegex) in pidOf() argument 109 Optional<Map<Integer, String>> pids = pidsOf(device, pgrepRegex); in pidOf() 115 throw new IllegalArgumentException("More than one process found for: " + pgrepRegex); in pidOf() 126 public static Map<Integer, String> waitProcessRunning(ITestDevice device, String pgrepRegex) in waitProcessRunning() argument 128 return waitProcessRunning(device, pgrepRegex, PROCESS_WAIT_TIMEOUT_MS); in waitProcessRunning() 140 ITestDevice device, String pgrepRegex, long timeoutMs) in waitProcessRunning() argument 144 Optional<Map<Integer, String>> pidToCommand = pidsOf(device, pgrepRegex); in waitProcessRunning() [all …]
|
/platform_testing/libraries/sts-common-util/host-side/tests/src/com/android/sts/common/util/ |
D | TombstoneUtilsTest.java | 486 String pgrepRegex = "sleep"; in testWithAssertNoCrashesCatchesCrash() local 488 getDevice(), pgrepRegex, /* timeoutMs */ 60_000, /* expectExist */ false); in testWithAssertNoCrashesCatchesCrash() local 505 Map<Integer, String> pidsMap = ProcessUtil.waitProcessRunning(getDevice(), pgrepRegex); in testWithAssertNoCrashesCatchesCrash() 525 String pgrepRegex = "sleep"; in testWithAssertNoCrashesForNoCrashPriorCrashes() local 528 getDevice(), pgrepRegex, /* timeoutMs */ 60_000, /* expectExist */ false); in testWithAssertNoCrashesForNoCrashPriorCrashes() local 539 Map<Integer, String> pidsMap = ProcessUtil.waitProcessRunning(getDevice(), pgrepRegex); in testWithAssertNoCrashesForNoCrashPriorCrashes()
|