diff options
| author | 2024-01-31 13:41:06 -0700 | |
|---|---|---|
| committer | 2024-02-01 09:22:43 -0700 | |
| commit | 18a656bdeaf8f22e11a17203f4c3bb7c4d351942 (patch) | |
| tree | 3de74850e6b1ad6e33d16983184673aeb00b9488 /libs/hwui/FrameInfoVisualizer.cpp | |
| parent | 587b3becfeb43b129f12fb5ecd5d365be34b5039 (diff) | |
Background exceptions fail tests, more utils.
Some tests rely on reporting failures from another thread; upstream
JUnit quietly eats these exceptions, which can result in misleading
"pass" signals when migrating existing tests. To match the behavior
of a physical Android device, we now monitor for uncaught exceptions
and report them as test failures.
Some tests are relying on `ActivityManager` static methods, so offer
those on Ravenwood. Leaves "current user" as `USER_SYSTEM` for the
moment, but we'll likely think more about how to customize it as
part of bringing a real `ActivityManager` online.
Some tests rely on `VibrationAttributes` which is a basic holder
object, so offer it on Ravenwood.
Tests to verify all of above.
Bug: 319647875
Test: atest SystemUiRoboTests
Test: atest SystemUiRavenTests
Change-Id: I1bc5bbc7b4eadf1c6d19c0044012a945ce377a20
Diffstat (limited to 'libs/hwui/FrameInfoVisualizer.cpp')
0 files changed, 0 insertions, 0 deletions