1
0
mirror of https://github.com/ARM-software/workload-automation.git synced 2025-04-19 01:00:45 +01:00

14 Commits

Author SHA1 Message Date
Luis Machado
0a9c16b4a4 Add missing gradle.properties file 2024-12-17 12:00:27 +00:00
Luis Machado
a44c5fb604 [workloads/jetnews] Update workload documentation to mention API level restrictions 2024-11-26 13:18:03 +00:00
Luis Machado
0dcae68715 [workloads/jetnews] Bump the minSdkVersion to 28 and targetSdkVersion to 34
API level 27 (Android 8.1/Oreo) doesn't report a frame metric called
"deadline missed", but the JankTest library expects to be able to find
data for that metric. If it is not found, an assertion is reported and
the run fails.

Given Android Oreo is reasonably old at this point, set the minimum SDK
version to 28 so we can gather all the metrics we need.

Also bump the targetSdkVersion to make it clear what version was used
for putting this code together.
2024-11-26 13:10:22 +00:00
Luis Machado
0cdccc137e [workloads/jetnews] Restore test default timeout, repeat count and fling speed 2024-11-13 17:55:56 +00:00
Luis Machado
c9ffbfb7cf [workloads/jetnews] Improve reliability of object detection
I noticed we were sometimes getting stale object exceptions. To help prevent
that situation from happening, pass around resource id's for the objects and
only fetch an instance of the objects whenever we need to click/scroll.

This means the time between fetching the object and using it is short, and
hopefully the object won't go stale or get recycled in that brief moment,
preventing the stale exceptions.
2024-11-13 17:48:41 +00:00
Luis Machado
5180fed72f [workloads/jetnews] Harden JetNews testing to cope with tablets/small phones
On tablets we have a landscape view by default, so we need to account for that
in our tests. On smaller phones, the landscape mode doesn't show the article
preview.

On both tablets and small screen phones, we need to be mindful of scrolling
too fast and missing an element we're looking for, either because a bigger
screen means we scroll faster or because a smaller screen means only a few
items are shown at one time.
2024-11-05 11:35:09 +00:00
Luis Machado
e85cca9ffc [workloads/jetnews] Fix more linter issues (E302 and E261) 2024-09-13 08:05:35 +01:00
Luis Machado
651fd236fe [workloads/jetnews] Disable too-many-ancestors linter for Jetnews class
Drop the warning as we already have cases where it was disabled in geekbench
and gfxbench.
2024-09-13 07:09:47 +01:00
Luis Machado
77b3dfc61d Fix linters/tests CI issues 2024-08-29 15:00:29 +01:00
Luis Machado
e046461bfa [workloads/jetnews] Add missing self reference 2024-08-29 14:48:25 +01:00
Luis Machado
fefaa3c86d [workload/jetnews] Use Jank testing classes to implement jank testing in a simpler way
Modify the JetNews workload to use the new jank testing classes. This allows
simplification of the code and also makes it more straightforward to implement
new workloads that also need to gather frame metrics.
2024-08-29 11:14:30 +01:00
Luis Machado
761cab17c9 [workload/JetNews] Update timestamp for gradle-wrapper.properties file.
Update timestamp to match date the file was created.
2024-08-29 11:09:37 +01:00
Luis Machado
9212b7f051 [workload/JetNews] Address reviewer comments
- Add JetNews workload description.
- Fixup copyright years.
- Adjust formatting.
- Add constraints to the workload's parameters.
- Fix comment typos.
- Remove unused commented-out code from app/build.gradle.
2024-07-26 15:45:51 +01:00
Luis Machado
b38e64a2a8 [workloads] Add JetNews jank tests workload
This patch adds the JetNews jank-testing workload. This is accomplished
through the uiauto helper library and the jank test classes.

This workload requires a JetNews app APK to be available. We plan to
make it available through the workload-automation-assets repo.

At the end of the run, users should end up with a json file containing all
the frame/jank metrics.

There are 3 parameters for this workload:

- tests: Specifies which of the 3 available tests to run (default is to run
         all of them)

- flingspeed: The speed of the fling interactions.

- repeat: How many times each of the selected tests is to be executed in a
          single measuring session.
2024-07-16 14:38:24 +01:00