Lines Matching refs:COMMAND
48 where=COMMAND
55 if [[ $where == COMMAND && $i -ge $COMP_CWORD ]]; then
60 COMMAND="devices connect disconnect push pull sync shell emu logcat lolcat forward jdwp install uninstall bugreport help version start-server kill-server get-state get-serialno status-window remount reboot reboot-bootloader root usb tcpip disable-verity"
64 COMPREPLY=( $(compgen -W "$OPTIONS $COMMAND" -- "$cur") )
67 local devices=$(command adb devices 2> /dev/null | grep -v "List of devices" | awk '{ print $1 }')
70 COMMAND)
72 COMPREPLY=( $(compgen -W "$COMMAND" -- "$cur") )
197 paths=$(command adb ${args[@]} shell echo '$'PATH 2> /dev/null | tr -d '\r' | tr : '\n')
198 COMMAND=$(command adb ${args[@]} shell ls $paths '2>' /dev/null | tr -d '\r' | {
200 command=${tmp##*/}
201 printf '%s\n' "$command"
204 COMPREPLY=( $(compgen -W "$COMMAND" -- "$cur") )
253 candidates=$(command adb ${args[@]} shell dumpsys -l 2> /dev/null | sed -e '1d;s/^ *//' | tr -d '\r')
340 command adb ${args[@]} shell pm list packages '2>' /dev/null 2> /dev/null | tr -d '\r' | {
406 if [[ $( command adb ${args[@]} shell ls -dF / '2>/dev/null' | tr -d '\r' ) == "d /" ]] ; then
408 command adb ${args[@]} shell ls -dF ${file}"*" '2>' /dev/null 2> /dev/null | tr -d '\r' | {
422 command adb ${args[@]} shell ls -dp ${file}"*" '2>/dev/null' 2> /dev/null | tr -d '\r'