Lines Matching refs:device
24 device=''
31 d) device="$OPTARG";;
80 battery=`$ADB -s $device shell dumpsys battery | tr -d '\r' | awk '/level:/ {print $2}'`
86 battery=`$ADB -s $device shell dumpsys battery | tr -d '\r' | awk '/level:/ {print $2}'`
113 while [ "$device" != "$fdevice" -a $n -le 30 ]; do
115 fdevice=`$FASTBOOT devices | sed -n "s/\($device\).*/\1/ p"`
140 $ADB -s $device reboot bootloader
158 $FASTBOOT -s $device reboot-bootloader
177 $FASTBOOT -s $device reboot
178 $ADB -s $device wait-for-device
195 local result=$($ADB -s $device shell getprop dev.bootcomplete)
201 result=$($ADB -s $device shell getprop dev.bootcomplete)
221 $FASTBOOT -s $device $1 $2 $3
239 $FASTBOOT -s $device flash $1 $2
257 $ADB -s $device $1 $2 $3 $4 $5
295 log_print "downloading bootloader image to $device"
334 log_print "downloading radio image to $device"
368 log_print "downloading system image to $device"
419 adb_command wait-for-device
439 product=`$FASTBOOT -s $device getvar product 2>&1 | sed -n 's/product: \([a-z]*\)\n*/\1/ p'`
461 if [ "$device" != "" ]; then
462 tmpdevice=`$ADB devices | sed -n "s/\($device\).*/\1/ p"`
463 if [ "$device" != "$tmpdevice" ]; then
464 tmpdevice=`$FASTBOOT devices | sed -n "s/\($device\).*/\1/ p"`
465 if [ "$device" != "$tmpdevice" ]; then
466 echo "Warning: device not found... $device"
469 echo "'Device '$device' found!'"
475 device=`$ADB devices | sed -n 's/.*\(^[0-9A-Z]\{2\}[0-9A-Z]*\).*/\1/ p'`
476 if [ `echo $device | wc -w` -ne 1 ]; then
482 if [ "$device" == "" ]; then
484 device=`$FASTBOOT devices | sed -n 's/.*\(^[0-9A-Z]\{2\}[0-9A-Z]*\).*/\1/ p'`
485 if [ `echo $device | wc -w` -ne 1 ]; then
490 if [ "$device" == "" ]; then
494 echo 'Device '$device' found!'
497 echo 'Hammering on '$device
500 echo 'Hammering on '$device
517 echo ________________ $(date +'%D %T') - $loop - $device ______________________
538 result=$($ADB -s $device shell getprop dev.bootcomplete)
544 result=$($ADB -s $device shell getprop dev.bootcomplete)
550 result=$($ADB -s $device shell pm path android)
556 result=$($ADB -s $device shell pm path android)
569 …$ADB -s $device shell monkey -p com.android.alarmclock -p com.android.browser -p com.android.calcu…
576 log_print "device $device has returned, testing completed, count = $loop"
577 echo `echo "Device $device has returned, testing completed, count = $loop." > $ROOT/$device.log`
579 log_print "device $device has returned, rinse and repeat count = $loop"
580 echo `echo "Device $device has returned, rinse and repeat count = $loop." > $ROOT/$device.log`