Home
last modified time | relevance | path

Searched refs:battery (Results 1 – 2 of 2) sorted by relevance

/development/tools/labpretest/
Dlabpretest.sh76 local battery
79 while [ "$battery" = "" ]; do
80 battery=`$ADB -s $device shell dumpsys battery | tr -d '\r' | awk '/level:/ {print $2}'`
83 if [ $battery -lt $LIMIT ]; then
86 battery=`$ADB -s $device shell dumpsys battery | tr -d '\r' | awk '/level:/ {print $2}'`
87 if (( $battery >= $TARGET )); then break; fi
88 tick=$[$TARGET - $battery]
89 echo "battery charge level is $battery, sleeping for $tick seconds"
90 sleep $[$TARGET - $battery * 10]
92 log_print "resuming test run with battery level at $battery%"
[all …]
DREADME9 It will detect if it is in a low battery situation and wait for it to charge