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

1132 Commits

Author SHA1 Message Date
Marc Bonnici
bf598d1873 Camerarecord: Updated to only use root if device is rooted.
Previously the workload would always try and use root to pull framestats file
causing it to fail on unrooted devices.
2017-05-31 10:36:38 +01:00
Marc Bonnici
c094a47f12 Camerarecord: Updated to uiautomator2 2017-05-31 10:36:38 +01:00
Marc Bonnici
6dab2b48ab Cameracapture: Updated to uiautomator2 2017-05-31 10:36:38 +01:00
Marc Bonnici
1809def83f Peacekeeper: Updated to Uiautomator2 2017-05-31 10:36:37 +01:00
Marc Bonnici
1158c62c55 Appshare: Updated to Uiautomator2 2017-05-31 10:36:37 +01:00
Marc Bonnici
d13defe242 Glbenchmark: Updated to Uiautomator2 2017-05-31 10:36:37 +01:00
Marc Bonnici
a9c5ab9bc8 Facebook: Updated to Uiautomator2 2017-05-31 10:36:37 +01:00
Marc Bonnici
27af97b795 Quadrant: Updated to Uiautomator2 2017-05-31 10:36:37 +01:00
Marc Bonnici
a0a189044e Applaunch: Updated to Uiautomator2
Certain configurations of this workload requires root and therefore on some
android devices, this will prompt to grant the app su permissions by default. To
ensure this does not interfere with the run, ensure that either, re-request
permission after reinstall/upgrade is not selected or grant access by default.
2017-05-31 10:36:37 +01:00
Marc Bonnici
eca6c10a75 Andebench: Updated to Uiautomator2 2017-05-31 10:36:37 +01:00
Marc Bonnici
01efbe1807 Googlephotos: Updated to Uiautomator2 2017-05-31 10:36:37 +01:00
Marc Bonnici
81f7f92b84 real_linpack: Updated to Uiautomator2 2017-05-31 10:36:37 +01:00
Marc Bonnici
95c98fd458 Antutu: Updated to Uiautomator2 2017-05-31 10:36:37 +01:00
Marc Bonnici
428abfb6a6 Geekbench: Updated to Uiautomator2 2017-05-31 10:36:37 +01:00
Marc Bonnici
a8bf8458ec Youtube: Updated to Uiautomator2 2017-05-31 10:36:37 +01:00
Marc Bonnici
862eeadb39 Vellamo: Updated to Uiautomator2 2017-05-31 10:36:36 +01:00
Marc Bonnici
ec66e1d166 Sqlitebm: Updated to Uiautomator2 2017-05-31 10:36:36 +01:00
Marc Bonnici
3e4ffa8cd5 Smartbench: Updated to Uiautomator2 2017-05-31 10:36:36 +01:00
Marc Bonnici
dc14e6ed11 Linpack: Updated to Uiautomator2 2017-05-31 10:36:36 +01:00
Marc Bonnici
47ccae1a6b Googleplaybooks: Updated to Uiautomator2 2017-05-31 10:36:36 +01:00
Marc Bonnici
a2eef179ef Gmail: Updated to work on new app version. 2017-05-31 10:36:36 +01:00
Marc Bonnici
7eb36b959b Gmail: Updated to Uiautomator2 2017-05-31 10:36:36 +01:00
Marc Bonnici
b5563113b1 Cfbench: Updated to Uiautomator2 2017-05-31 10:36:36 +01:00
Marc Bonnici
5720d3f214 Androbench: Updated to Uiautomator2 2017-05-31 10:36:36 +01:00
Marc Bonnici
5b82b90939 Skype: Updated to Uiautomator2 2017-05-31 10:36:36 +01:00
Marc Bonnici
bfcb829ab0 AdobeReader: Updated to Uiautomator2 2017-05-31 10:36:36 +01:00
Marc Bonnici
70f646f87d AndroidWorkload: Added unchangeable android permissions
Some android permissions are categorized as 'unchangeable' so we don't need to
try and set them.
2017-05-31 10:36:35 +01:00
Marc Bonnici
3f03dec7af CreateCommand: Updated to support new build system
Using the `android` command to create a new project has been deprecated in favour
of using Android Studio. To avoid this constraint a template project has been added
and this is simply duplicated with the relevant files populated when creating a new
project.
2017-05-31 10:36:35 +01:00
Marc Bonnici
076772da4d Uiautomator: Upgraded uiautomator base classes to Uiauto2
Uiautomator1 has been deprecated, therefore the uiautomation base classes have
been upgraded to use uiautomator2 and the new gradle build system.
Altered to retrieve `package_name` rather than `package` as per the previous commit.
2017-05-30 17:26:14 +01:00
Marc Bonnici
138c95745e AndroidWorkload: Renamed package parameter to package_name
Using the new instrumental based testing method, `package` is a reserved
parameter and is not passed to the workload correctly.
2017-05-30 12:06:50 +01:00
Marc Bonnici
f517e6c4da .gitignore: Updated for new uiauto2 gradle based builds 2017-05-30 12:06:50 +01:00
Marc Bonnici
8125c3e0a2 Android Workload: Updated to install and use Uiautomator 2 tests.
The new method of using uiautomation 2 is by using instrumented apk files rather
than JAR files. This commit updates the base workload has been updated to
install/uninstall the new uiautomation APK files and to invoke the relevant
instrumentation.
2017-05-30 12:06:50 +01:00
Marc Bonnici
81bdc7251b AndroidDevice: Pylint Fix 2017-05-30 12:06:36 +01:00
Marc Bonnici
b948d28c62 ResourceGetters: Added support for finding uiautoapk files.
Also ensures to check for a `.` to signify the start of a file extension to prevent
extensions with the same ending being mixed up.
2017-05-23 11:16:18 +01:00
Marc Bonnici
bc6af25366 AndroidResource: Add a UiautoApk resource type.
When moving to Uiautomation 2, tests are now complied into apk files rather than
jar files. To avoid conflicts with regular workload apks a new resource type is
added to retrieve the test files which will be renamed to have the extension
.uiautoapk
2017-05-23 11:15:55 +01:00
Marc Bonnici
5d8305cfdc Android Device: Add force flag to install_apk
A force flag has been added to the `install_apk` method which
ignores the check that the specified file is an apk. This is to support
the new UiAutomation Apk which have been given the extention .uiautoapk.
2017-05-17 13:47:39 +01:00
setrofim
e038fb924a Merge pull request #386 from marcbonnici/broadcast
Update media broadcast to work with android N
2017-05-12 08:01:04 +01:00
Marc Bonnici
51c92cb2f5 Workloads: Updated to use new media refresh method
Updated the base android workload and google photos workload to pass a list of
updated files rather than their directory.
2017-05-11 18:17:38 +01:00
Marc Bonnici
e98b653b3e AndroidDevice: Add refresh_device_files method
Adds a method to determine the appropriate method of triggering a media refresh
of a given list of file based on the devices android version and root status. If
a device is running android marshmallow and below or has root, trigger a refresh
of the files containing folder otherwise trigger a refresh of each individual
file.
2017-05-11 18:17:38 +01:00
Marc Bonnici
b1da0fe958 AndroidDevice: Add a common_base_path utility function
Adds a utility function to determine the lowest common base path of a passed list
of files.
2017-05-11 18:17:29 +01:00
Marc Bonnici
b10b5970c3 AndroidDevice: Add a broadcast_media_scan_file method
In android N it is no longer allowed to trigger a media refresh of a directory
without root, therefore this method has been added to trigger a refresh of an
individual file.
2017-05-11 09:44:49 +01:00
Marc Bonnici
e866cfed12 AndroidDevice: Add as_root flag to broadcast_media_mounted
Allows the `MEDIA_MOUNTED` broadcast to be performed as root as
this now requires elevated permission in android N.
2017-05-11 09:11:24 +01:00
Marc Bonnici
f5b40e3d64 AndroidUtils: Updated Android_Version_Map
Added Marshmallow and Nougat SDK versions codes to the version map.
2017-05-11 09:11:23 +01:00
Sergei Trofimov
cc3a815cb7 uxperf workloads: only broadcast media mounted if needed
Previously AndroidPerfWorkload broadcast media mounted unconditionally
inside push_assets and delete_assets. This change makes it so the
broadcast only happens if something was actually pushed/needs to be
delete.
2017-05-10 15:42:10 +01:00
setrofim
9ef8bddc4b Merge pull request #383 from jimboatarm/gbfix
Fix geekbench to use new ParameterDict types
2017-04-26 08:15:06 +01:00
James Hartley
a3011accf8 Fix geekbench to use new ParameterDict types
Tested using Huawei P10
2017-04-25 18:12:48 +01:00
Sergei Trofimov
317da0a1c4 trace-cmd: updating trace-cmd binary to a more recent version
The one we currently have is over two years old. This is, in particular,
for the following fixes:

https://git.kernel.org/pub/scm/linux/kernel/git/rostedt/trace-cmd.git/commit/?id=e5e453917f247faa7d37728d59001759e7005258
https://git.kernel.org/pub/scm/linux/kernel/git/rostedt/trace-cmd.git/commit/?id=709b47c3f7d4e41e89ee58a85cd106456f779445
2017-04-20 16:25:57 +01:00
Sergei Trofimov
7c79c24865 rt-app: fix classifer update
rt-app inserts its own classifiers into the results. Previosly, if was
replacing the existing classifier if there were any. Now, classifiers
are updated, rather than replaced.
2017-04-07 16:33:24 +01:00
Sergei Trofimov
6c5e52ad56 freqsweep: fixing additional classifiers
Properly handle the case where additional classifiers are not specified.
2017-04-07 10:05:29 +01:00
setrofim
1019b30174 Merge pull request #379 from marcbonnici/binary_sysfile
Device: Updated to set and retrieve binary data from sysfiles
2017-04-06 16:11:13 +01:00