File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -71,18 +71,22 @@ jobs:
7171 arch : x86_64
7272 emulator-boot-timeout : 600
7373 disable-animations : true
74- # -no-window / -no-audio / -no-boot-anim reduce emulator overhead on the
75- # hosted runner; -gpu swiftshader_indirect avoids host-GPU dependency.
76- # Together these keep the event queue idle enough for IsolationActivity
77- # to launch within Macrobenchmark's 45-second window.
7874 emulator-options : -no-window -no-audio -no-boot-anim -gpu swiftshader_indirect
7975 script : |
80- # Belt-and-suspenders: disable animations explicitly even though
81- # disable-animations:true already does this — guards against any race
82- # between emulator boot and the adb commands in the action.
76+ # Wait for boot to complete
77+ adb wait-for-device
78+ adb shell 'while [[ -z $(getprop sys.boot_completed) ]]; do sleep 1; done'
79+ sleep 5
80+
81+ # Disable animations
8382 adb shell settings put global window_animation_scale 0
8483 adb shell settings put global transition_animation_scale 0
8584 adb shell settings put global animator_duration_scale 0
85+
86+ # Verify device is responsive
87+ adb shell getprop ro.build.version.release
88+
89+ # Run tests
8690 ./gradlew :benchmarks:connectedBenchmarkBenchmarkAndroidTest
8791
8892 - name : Parse Benchmark Results
You can’t perform that action at this time.
0 commit comments