path: android-platform-tools_34.0.5-12/development/scripts/acov else echo "Flushing coverage for [$@] on the device..." adb shell kill -37 $(adb shell pidof $@) fi echo "Waiting $FLUSH_SLEEP seconds for coverage to be written..." path: android-platform-tools_34.0.5-12/development/scripts/acov-llvm.py if args.procnames: pids = adb_shell(['pidof'] + args.procnames, text=True).split() logging.info(f'flushing coverage for pids: {pids}') else: path: android-platform-tools_34.0.5-12/development/scripts/bash_util.bash return 0 fi local pid="$(do_adb shell pidof "$name")" if [[ -z "$pid" ]] ; then die "unknown process: $name" path: android-platform-tools_34.0.5-12/development/scripts/bash_util.bash } # If $1 is a number, just print it. Otherwise use adb shell pidof to try to resolve it into a pid. function resolve_pid() { local name="$1" path: android-platform-tools_34.0.5-12/system/core/shell_and_utilities/README.md insmod **ionice** **iorenice** kill **killall** load\_policy ln logname losetup **ls** lsmod **lsof** lsusb md5sum mkdir mknod mkswap mktemp modinfo more *mount* mountpoint mv netstat nice nl nohup od paste patch pgrep pidof pkill pmap printenv printf pwd readlink realpath **renice** restorecon rm rmdir rmmod route runcon sed seq setenforce setprop setsid sha1sum sleep sort path: android-platform-tools_34.0.5-12/system/core/shell_and_utilities/README.md microcom mkdir mkfifo mknod mkswap mktemp modinfo modprobe more mount mountpoint mv nbd-client nc netcat netstat nice nl nohup nproc nsenter od partprobe paste patch pgrep pidof ping ping6 pivot\_root pkill pmap printenv printf prlimit ps pwd pwdx readelf readlink realpath renice restorecon rev rfkill rm rmdir rmmod **rtcwake** runcon sed sendevent path: android-platform-tools_34.0.5-12/system/core/shell_and_utilities/README.md mkdir mkfifo mknod mkswap mktemp modinfo modprobe more mount mountpoint mv **nbd-client** **nc** **netcat** netstat nice nl nohup **nproc** **nsenter** od **partprobe** paste patch pgrep pidof **ping** **ping6** **pivot\_root** pkill pmap printenv printf **prlimit** ps pwd **pwdx** readlink realpath renice restorecon **rev** **rfkill** rm rmdir rmmod runcon sed sendevent seq setenforce **setfattr** path: android-platform-tools_34.0.5-12/system/core/shell_and_utilities/README.md microcom mkdir mkfifo mknod mkswap mktemp modinfo modprobe more mount mountpoint mv nbd-client nc netcat netstat nice nl nohup nproc nsenter od partprobe paste patch pgrep pidof ping ping6 pivot\_root pkill pmap printenv printf prlimit ps pwd pwdx readelf readlink realpath renice restorecon rev rfkill rm rmdir rmmod rtcwake runcon sed sendevent path: android-platform-tools_34.0.5-12/system/core/shell_and_utilities/README.md lsmod lsof lspci lsusb md5sum microcom mkdir mkfifo mknod mkswap mktemp modinfo modprobe more mount mountpoint mv netstat nice nl nohup od paste patch pgrep pidof pkill pmap printenv printf ps pwd readlink realpath renice restorecon rm rmdir rmmod runcon sed sendevent seq setenforce setprop setsid sha1sum sha224sum sha256sum sha384sum sha512sum sleep path: android-platform-tools_34.0.5-12/system/core/shell_and_utilities/README.md mkdir mkfifo mknod mkswap mktemp modinfo modprobe more mount mountpoint mv nbd-client nc netcat netstat nice nl nohup nproc nsenter od partprobe paste patch pgrep pidof ping ping6 pivot\_root pkill pmap printenv printf prlimit ps pwd pwdx **readelf** readlink realpath renice restorecon rev rfkill rm rmdir rmmod runcon sed sendevent seq setenforce setfattr path: android-platform-tools_34.0.5-12/system/core/shell_and_utilities/README.md head hostname hwclock id ifconfig inotifyd insmod kill load\_policy ln logname losetup lsmod lsusb md5sum mkdir mknod mkswap mktemp modinfo more mountpoint mv netstat nice nl nohup od paste patch pgrep pidof pkill pmap printenv printf pwd readlink realpath restorecon rm rmdir rmmod route runcon sed seq setenforce setprop setsid sha1sum sleep sort path: android-platform-tools_34.0.5-12/system/core/shell_and_utilities/README.md md5sum microcom mkdir mkfifo mknod mkswap mktemp modinfo modprobe more mount mountpoint mv nbd-client nc netcat netstat nice nl nohup nproc nsenter od partprobe paste patch pgrep pidof ping ping6 pivot\_root pkill pmap printenv printf prlimit ps pwd pwdx readelf readlink realpath renice restorecon rev rfkill rm rmdir rmmod rtcwake runcon sed sendevent path: android-platform-tools_34.0.5-12/system/core/shell_and_utilities/README.md losetup ls lsmod lsof **lspci** lsusb md5sum **microcom** mkdir **mkfifo** mknod mkswap mktemp modinfo **modprobe** more mount mountpoint mv netstat nice nl nohup od paste patch pgrep pidof pkill pmap printenv printf **ps** pwd readlink realpath renice restorecon rm rmdir rmmod runcon sed **sendevent** seq setenforce setprop setsid sha1sum **sha224sum** **sha256sum** **sha384sum** path: android-platform-tools_34.0.5-12/system/extras/tests/workloads/defs.sh if [ -z "$f" ]; then # Hmm. sf symbols may not be there... get the pid pid=$(${ADB}pidof /system/bin/surfaceflinger | tr "[ ]" "[ ]") f=$(grep " <...>-$pid.*tracing_mark_write.*$_app" $traceout 2>/dev/null | grep -v Starting | head -1 | tr [\(\)\[\] :] " ") path: android-platform-tools_34.0.5-12/development/scripts/pid if [ $EXACT == 1 ]; then PIDS="$(adb shell pidof $EXE)" else PIDS="$(adb shell pgrep -f $EXE)"