This is a suspend/resume cycle test on Android. A script which will play the video then go to suspend and resume will be happened after 60 seconds followed by holding wake_lock.This is not platform independent as it is tightly coupled with the system and the way you have written your PM drivers.
am start -a android.intent.action.VIEW -d
sleep 30
echo "OFF Mode count $off_count ************!!!!!!!!!!!!!!!"
while [ 1 ]
do
input keyevent 82 // unlock home screen
input keyevent 3 // home screen
"file:///mnt/sdcard/AV_1080p.mp4"-t "video/*"//video is for 40 sec
echo "calling suspend"
echo 60 >/d/pm_debug/wakeup_timer_seconds
#echo mem > /sys/power/state
echo test>/sys/power/wake_unlock
echo "call power button"
input keyevent 26 //power button
sleep 7
echo "test" >/sys/power/wake_lock
input keyevent 82
input keyevent 3
echo "home came***"
off_count=`cat /d/pm_debug/count | grep DEVICE-OFF`
done
}
rand_test_loop
No comments:
Post a Comment