diff options
author | Mohan Srinivasan <srmohan@google.com> | 2017-07-12 15:13:50 -0700 |
---|---|---|
committer | Mohan Srinivasan <srmohan@google.com> | 2017-07-13 11:34:48 -0700 |
commit | 12911fb35f1b0a73deaa1648c348bf20fcf245c5 (patch) | |
tree | e0f1d021850e60843605782e3cf2421cfe30ed31 /app-launcher | |
parent | a69f1ec5c0cbd01bac15c7a8e2d3a1b58945af1f (diff) | |
download | extras-12911fb35f1b0a73deaa1648c348bf20fcf245c5.tar.gz |
Add support for Go.
Add support for Go devices.
Test: Start app-launcher on Go and verify that the data reported looks
sane.
Change-Id: I1bc0bd23e7d807444f0ac35d7c18c8206bb7c12e
Signed-off-by: Mohan Srinivasan <srmohan@google.com>
Diffstat (limited to 'app-launcher')
-rwxr-xr-x | app-launcher/app-launcher | 57 |
1 files changed, 50 insertions, 7 deletions
diff --git a/app-launcher/app-launcher b/app-launcher/app-launcher index 703aafa0..94707fbb 100755 --- a/app-launcher/app-launcher +++ b/app-launcher/app-launcher @@ -238,6 +238,17 @@ cpufreq_angler () { done } +cpufreq_go() { + echo "Setting Governor to performance" + adb shell 'echo 0 > /proc/hps/enabled' + for i in 0 1 2 3 + do + adb shell "echo 1 > /sys/devices/system/cpu/cpu$i/online" + adb shell "echo performance > /sys/devices/system/cpu/cpu$i/cpufreq/scaling_governor" + adb shell "echo 1092000 > /sys/devices/system/cpu/cpu$i/cpufreq/scaling_max_freq" + done +} + get_taimen_walleye_devnames () { # This bit of code required to get the block dev for /system and /vendor # Suffix can be _a or _b, depending on what the active /system partition is @@ -297,12 +308,19 @@ get_fugu_devnames () { system_bdev_set=true } -get_volantis_devnames () { - # Hardcoding all of the mmcblk0 device for now +dev_name_default_mmc () { system_block_device=mmcblk0 system_bdev_set=true } +get_volantis_devnames () { + dev_name_default_mmc +} + +get_go_devnames () { + dev_name_default_mmc +} + system_stats_before() { if [ $system_bdev_set == true ]; then # Get BEFORE read stats for /system @@ -415,6 +433,17 @@ launch_phone_apps() { getstats $BASHPID-youtube-$model YouTube } +launch_go_apps() { + launch_app com.android.chrome com.google.android.apps.chrome.Main > $BASHPID-chrome-$model + getstats $BASHPID-chrome-$model Chrome + launch_app com.google.android.gm .ConversationListActivityGmail > $BASHPID-gmail-$model + getstats $BASHPID-gmail-$model Gmail + launch_app com.google.android.videos .mobile.usecase.home.RootActivity > $BASHPID-movies-$model + getstats $BASHPID-movies-$model Movies + launch_app com.android.vending com.google.android.finsky.activities.MainActivity > $BASHPID-play-$model + getstats $BASHPID-play-$model Play +} + usage() { echo 'Usage: app-launcher [-c|-v|-s <serial num>] -a|-b|-u num-iterations' echo 'where num-iterations >= 100' @@ -497,6 +526,13 @@ echo Found $model Device system_bdev_set=false case $model in + # Android Go + aosp_gobo | full_k37_y33_gms) + if [ $user_experience == false ]; then + cpufreq_go + fi + get_go_devnames + ;; taimen | muskie | walleye) if [ $user_experience == false ]; then cpufreq_taimen_walleye @@ -538,11 +574,18 @@ setup # # launch each app in turn # -if [ $model == "fugu" ]; then - launch_fugu_apps -else # Phone Apps - launch_phone_apps -fi +case $model in + # Android Go + aosp_gobo | full_k37_y33_gms) + launch_go_apps + ;; + fugu) + launch_fugu_apps + ;; + *) + launch_phone_apps + ;; +esac # cleanup rm $BASHPID* |