summaryrefslogtreecommitdiff
path: root/app-perf-tests
AgeCommit message (Collapse)Author
2024-08-30Make java_sdk_library dependencies explicit Jihoon Kang
modules should specify the submodule of java_sdk_library that the module actually depends on Test: CI Bug: 358613520 Change-Id: I01e0d07b31c4b46b31618405e0052d23914242f8
2023-04-26Update uiautomator references in packages/apps/DocumentsUI/ Yichun Li
* Remove unused dependencies. * Replace "ub-uiautomator" (v2.2.0) with "androidx.test.uiautomator_uiautomator" (v2.3.0). Bug: 235842600 Test: m DocumentsUI, presubmit Change-Id: Idc06a2ecce4d6ba29d796635c6a45b4d0444edd1
2023-01-31Refine FilesAppPerfTest to improve consistency Riddle Hsu
1. Query package name by intent rather than hardcoded. Otherwise the force-stop may not kill the target app. It is expected that metric files-cold-start-performance-median will increase, because it was warm-start (only provider is killed). 2. Change from looping "-> launcher activity -> target activity" to only "-> target activity", to eliminate uninterested factors from transition between home. 3. Wait until the removal of previous target activity is completed to start next iteration. So the metrics could be stabler by focusing on measuring the launch flow. 4. Remove waitForIdle to avoid non deterministic waiting according to accessibility event. It usually means UI interaction is idle but not the app is idle. This can also reduce test execution time by more than 70%, e.g. warm-start 40s to 9s. Bug: 258902050 Bug: 266684779 Test: atest FilesAppPerfTest Change-Id: I8da0050105f02e3ba405b4b3184f56450befd358
2021-08-05adding unit as part of metric name Shubham Basu
Bug: 195589487 Change-Id: Ib4c3e022be0f5dd4fb888d5a1a2409776fa7ce14
2021-02-21[LSC] Add LOCAL_LICENSE_KINDS to packages/apps/DocumentsUI am: d851bf18cd ↵ Bob Badour
am: f328f432dc am: 5eaffd0d8d Original change: https://android-review.googlesource.com/c/platform/packages/apps/DocumentsUI/+/1587898 MUST ONLY BE SUBMITTED BY AUTOMERGER Change-Id: I357726610109fc3873b47b3187af3344e7ca9b12
2021-02-16Use AndroidJUnitRunner for documentsui perf test. Gopinath Elanchezhian
Do not use deprecated InstrumentationTestCase. Bug: b/172498596 Test: atest DocumentsUIAppPerfTests Change-Id: I4472deace40e21a53a2087f74641389364816f1b
2021-02-12[LSC] Add LOCAL_LICENSE_KINDS to packages/apps/DocumentsUI Bob Badour
Added SPDX-license-identifier-Apache-2.0 to: app-perf-tests/Android.bp perf-tests/Android.bp tests/Android.bp Added SPDX-license-identifier-Apache-2.0 legacy_unencumbered to: Android.bp Bug: 68860345 Bug: 151177513 Bug: 151953481 Test: m all Exempt-From-Owner-Approval: janitorial work Change-Id: Ie39012d186473a97039ee877f959292d2aa226a3
2021-01-31Add libraries for crystalball migration Diksha Gohlyan
Bug: 172498596 Test: atest DocumentsUIAppPerfTests Change-Id: Ia02b1a02395abfa733fb145061c6d65e4213dc14
2018-10-24transform Android.mk to Android.bp felkachang
To speed up the build speed and testing cycle. Android build system find the all of Android.bp first and Android.mk later. * bpfmt -s -w Android.bp Fixes: 117403811 Test: atest DocumentsUITests Change-Id: Id9400f9e8d279a70846635d04eb4e5d744d07650
2018-04-17Migrated various apps under packages/apps/DocumentsUI/ to androidx KOUSHIK PANUGANTI
Bug: 76692459 Test: mmma packages/apps/DocumentsUI Change-Id: Ie4d4dc1fc15c27a567d47ce28baec26ab5076f83
2018-03-29Add DocumentsUIAppPerfTests to APCT suite metrics jdesprez
Add it to the suite version of APCT metric instrumentation. Test: build device-tests.zip Bug: 77280599 Change-Id: If1428a2e943e552a4770ae85dca68c166124b919
2018-02-23packages/apps/DocumentsUI: Set LOCAL_SDK_VERSION where possible. Anton Hansson
This change sets LOCAL_SDK_VERSION for all packages where this is possible without breaking the build, and LOCAL_PRIVATE_PLATFORM_APIS := true otherwise. Setting one of these two will be made required soon, and this is a change in preparation for that. Not setting LOCAL_SDK_VERSION makes the app implicitly depend on the bootclasspath, which is often not required. This change effectively makes depending on private apis opt-in rather than opt-out. Test: make relevant packages Bug: 73535841 Change-Id: Ia8cb832ecb40050a5573959dab15e2deec0fb4c0
2017-12-08Stop statically including legacy-android-test Paul Duffin
Statically including legacy-android-test leads to duplicate classes which causes build time problems (with Proguard) and runtime problems on older SDK versions. This change: * Stops statically including legacy-android-test. * Adds compile time dependencies on andoid.test.base, android.test.mock and android.test.runner where necessary. * Adds <uses-library android:name="android.test.runner"/> to any affected package to ensure that the classes that were included by legacy-android-test are still available at runtime. That also adds a dependency on android.test.base and android.test.mock. The following change descriptions were generated automatically and so may be a little repetitive. They are provided to give the reviewer enough information to check the comments match what has actually been changed and check the reasoning behind the changes. * app-perf-tests/Android.mk Added 'android.test.base' to LOCAL_JAVA_LIBRARIES because DocumentsUIAppPerfTests's source depends on its classes and because of these changes they are no longer present on the compilation path. Removed legacy-android-test from LOCAL_STATIC_JAVA_LIBRARIES because statically including the classes in DocumentsUIAppPerfTests results in duplicate classes which leads to build time and compile time issues. * perf-tests/Android.mk Added 'android.test.base' and 'android.test.mock' to LOCAL_JAVA_LIBRARIES because DocumentsUIPerfTests's source depends on their classes and because of these changes they are no longer present on the compilation path. Removed legacy-android-test from LOCAL_STATIC_JAVA_LIBRARIES because statically including the classes in DocumentsUIPerfTests results in duplicate classes which leads to build time and compile time issues. * tests/Android.mk Added 'android.test.base' and 'android.test.mock' to LOCAL_JAVA_LIBRARIES because DocumentsUITests's source depends on their classes and because of these changes they are no longer present on the compilation path. Removed legacy-android-test from LOCAL_STATIC_JAVA_LIBRARIES because statically including the classes in DocumentsUITests results in duplicate classes which leads to build time and compile time issues. Bug: 30188076 Test: make checkbuild Change-Id: Ic14e6ba4f57a82554eb8fae6038fabc8e1f19836
2017-04-26Use AAPT2 Alan Viverette
Test: make DocumentsUI Change-Id: Ie549c3bf1a1680b3a2821078757c78255a23ec53
2017-02-01Prepare for removal of legacy-test from default libraries Paul Duffin
In preparation for removing junit classes from the Android API the legacy-test target will be removed from the TARGET_DEFAULT_JAVA_LIBRARIES. This change adds explicit dependencies on junit and/or legacy-android-test to ensure that modules will compile properly once it is removed. Bug: 30188076 Test: make checkbuild Change-Id: I33c44d22d3e4e4e86013ce30d244b0bb433eb109
2016-09-16Move State to base and root stuff to roots. Steve McKay
And move Shared to base. And lots more to base. Change-Id: I8b01264a329473c13c59f0cd25a320ba73dbd82d
2016-09-15Move Activity classes to own packages. Steve McKay
FilesActivity > manager/ManageActivity DocumentsActivity > picker/PickActivity Change-Id: If2efb07fbebbd6ef84aa744af17c8cbeac05d770
2016-09-13Refactor SelectionModeListener. Garfield Tan
* Move ActionMode logic into a new class ActionModeController * Move SelectionDetails logic into MultiSelectionController * Merge canSelect() and onBeforeItemStateChange() * Add some basic unit tests for selecting unselectable items * Fix a bug that selects unselectable items using gestural selection * Convert MultiSelectManagerTests to JUnit4 Change-Id: I14642178ff39e7b990cc9f3fb0d9f40e6309e087
2016-04-04Fix perf tests for cold startup. Tomasz Mikolajewski
Kiling ia force-stopping was invalidating the entire roots cache. Bug: 27743087 Change-Id: Ib788cfeaa6e60c40b7277ba7ca0f2371816eded1
2016-03-17Add a performance test for launching DocumentsUI. Tomasz Mikolajewski
The test launches the DocumentsUI as picker, then waits until the main thread idles, which guarantees that roots are loaded and UI rendered. It confirms, that the recent system cache improves cold start performance by around 24% on my configuration (from 1685ms to 1357ms). Bug: 27370274 Change-Id: I738202ea434a7bfe7080fc0994f636ef0e7847cd