Tony Mak | e5ee705 | 2019-04-01 20:51:37 +0100 | [diff] [blame] | 1 | set -e |
Tony Mak | 751afc98 | 2019-04-02 18:23:54 +0100 | [diff] [blame] | 2 | make TextClassifierPerfTests perf-setup.sh |
| 3 | adb install ${OUT}/testcases/TextClassifierPerfTests/arm64/TextClassifierPerfTests.apk |
Tony Mak | e5ee705 | 2019-04-01 20:51:37 +0100 | [diff] [blame] | 4 | adb shell cmd package compile -m speed -f com.android.perftests.textclassifier |
Tony Mak | 751afc98 | 2019-04-02 18:23:54 +0100 | [diff] [blame] | 5 | adb push ${OUT}/obj/EXECUTABLES/perf-setup.sh_intermediates/perf-setup.sh /data/local/tmp/ |
| 6 | adb shell chmod +x /data/local/tmp/perf-setup.sh |
| 7 | adb shell /data/local/tmp/perf-setup.sh |
| 8 | adb shell am instrument -w -e package android.view.textclassifier com.android.perftests.textclassifier/androidx.test.runner.AndroidJUnitRunner |