aosp12/packages/apps/TV/tests/jank
hcl 7be3fd486c init from android-12.1.0_r8 2023-01-09 17:11:35 +08:00
..
src/com/android/tv/tests/jank init from android-12.1.0_r8 2023-01-09 17:11:35 +08:00
Android.mk init from android-12.1.0_r8 2023-01-09 17:11:35 +08:00
AndroidManifest.xml init from android-12.1.0_r8 2023-01-09 17:11:35 +08:00
OWNERS init from android-12.1.0_r8 2023-01-09 17:11:35 +08:00
README.md init from android-12.1.0_r8 2023-01-09 17:11:35 +08:00

README.md

Jank tests for Live Channels

AOSP instructions

To run the jank tests

echo "Compiling"
m -j LiveTv TVTestInput TVJankTests
echo  "Installing"
adb install -r ${OUT}/system/priv-app/LiveTv/LiveTv.apk
adb install -r ${OUT}/system/app/TVTestInput/TVTestInput.apk
adb install -r ${OUT}/testcases/TVJankTests/TVJankTests.apk
echo "Setting up test input"
adb shell am instrument \
  -e testSetupMode jank \
  -w com.android.tv.testinput/.instrument.TestSetupInstrumentation
echo "Running the test"
adb shell am instrument \
  -w com.android.tv.tests.jank/android.support.test.runner.AndroidJUnitRunner

If it is your first time installing LiveTv you will need to do

adb root
adb remount
adb push ${OUT}/system/priv-app/LiveTv/LiveTv.apk /system/priv-app/LiveTv/LiveTv.apk
adb reboot