case $DEVICE in
-(shamu|hammerhead|bullhead)
+(shamu|hammerhead|bullhead|ariel)
# no scaling necessary
xmax=0
ymax=0;;
upCount=5
UP="500 1400 500 400 $flingtime"
DOWN="500 400 500 1400 $flingtime";;
+(ariel)
+ flingtime=200
+ downCount=5
+ upCount=5
+ UP="500 1560 500 530 $flingtime"
+ DOWN="500 530 500 1560 $flingtime";;
(*)
echo "Error: No display information available for $DEVICE"
exit 1;;
sleep $waittime
swipe "$UP" $upCount
- t=$(startActivity $app)
- sleep $waittime
- swipe "$UP" $upCount
-
- t=$(startActivity $app)
- sleep $waittime
- swipe "$UP" $upCount
-
- doKeyevent BACK
- sleep $waittime
- swipe "$DOWN" $downCount
-
- doKeyevent BACK
sleep $waittime
swipe "$DOWN" $downCount
# default activities. Can dynamically generate with -g.
gmailActivity='com.google.android.gm/com.google.android.gm.ConversationListActivityGmail'
+clockActivity='com.google.android.deskclock/com.android.deskclock.DeskClock'
hangoutsActivity='com.google.android.talk/com.google.android.talk.SigningInActivity'
chromeActivity='com.android.chrome/_not_used'
+contactsActivity='com.google.android.contacts/com.android.contacts.activities.PeopleActivity'
youtubeActivity='com.google.android.youtube/com.google.android.apps.youtube.app.WatchWhileActivity'
cameraActivity='com.google.android.GoogleCamera/com.android.camera.CameraActivity'
playActivity='com.android.vending/com.google.android.finsky.activities.MainActivity'
calendarActivity='com.google.android.calendar/com.android.calendar.AllInOneActivity'
earthActivity='com.google.earth/com.google.earth.EarthActivity'
calculatorActivity='com.google.android.calculator/com.android.calculator2.Calculator'
+calculatorLActivity='com.android.calculator2/com.android.calculator2.Calculator'
sheetsActivity='com.google.android.apps.docs.editors.sheets/com.google.android.apps.docs.app.NewMainProxyActivity'
docsActivity='com.google.android.apps.docs.editors.docs/com.google.android.apps.docs.app.NewMainProxyActivity'
operaActivity='com.opera.mini.native/com.opera.mini.android.Browser'
fi
deviceName=$1
ADB="adb -s $deviceName shell "
- DEVICE=$(echo $4 | sed 's/product://')
+ if [ "$DEVICE" = "" -o "$DEVICE" = unknown ]; then
+ DEVICE=$(echo $4 | sed 's/product://')
+ fi
isOnDevice=0
fi
echo 0
return 0
elif [ "$1" = chrome ]; then
- if [ "$DEVICE" = volantis ]; then
+ if [ "$DEVICE" = volantis -o "$DEVICE" = ariel ]; then
vout $AM_START_NOWAIT -p "$(getPackageName $1)" http://www.theverge.com
$AM_START_NOWAIT -p "$(getPackageName $1)" http://www.theverge.com > /dev/null
set -- 0 0
# a bash script which should include adb commands to set up device):
# ./pwrtest.sh -F devtunables
#
+
defaultTime=30
garbageminutes=8
echo Wait 30s to complete boot activities...
sleep 30
echo Restart complete.
+ doTap 897 1075
+ sleep 2
doSwipe $onSwipe
restartfile=${restartfile:="./restarthook"}
if [ -f $restartfile ]; then
(-A) unset appList;;
(-L) appList=$2; shift; ret=1;;
(-T) capturesystrace=1;;
+ (-B) echo $$ > /dev/cpuset/background/tasks;;
(*)
echo "$0: unrecognized option: $1"
echo; echo "Usage: $0 [options]"
echo "-A : use all known applications"
+ echo "-B : run in background cpuset"
echo "-L applist : list of applications"
echo " default: $appList"
echo "-N : no app startups, just fling"
upCount=6
UP="70 400 70 100 $flingtime"
DOWN="70 100 70 400 $flingtime";;
-(angler)
+(angler|ariel|mtp8996)
flingtime=150
downCount=4
upCount=3
iterations=10
app=youtube
searchText="last week tonight with john oliver: online harassment"
+vidMinutes=15
function processLocalOption {
ret=0
case "$1" in
(-S) searchText="$2"; shift;;
+ (-t) vidMinutes="$2"; shift;;
(*)
echo "$0: unrecognized option: $1"
echo; echo "Usage: $0 [options]"
echo "-i iterations"
echo "-S youtube search text"
echo "-d device"
+ echo "-t vidMinutes"
exit 1;;
esac
return $ret
enableControls="1464 812"
fullScreen="1480 835"
;;
+(ariel)
+ searchButton="1440 70"
+ selectFirstVideo="228 224"
+ enableControls="1528 880"
+ fullScreen="1528 880"
+ ;;
+
(*)
echo "Error: No display information available for $DEVICE"
exit 1;;
sleep 0.5
doTap $fullScreen
# 15 minutes
- ((vidTime=60*15))
+ ((vidTime=60*vidMinutes))
sleep $vidTime
doKeyevent BACK
sleep 0.5