Commit Graph

12299 Commits

Author SHA1 Message Date
Yuntao Xu
cd15c07bfa Merge "Convert CanvasCompare/Android.mk to Android.bp" am: 17da00b993 am: 8aa558e2dc am: 8b20c4f8d4
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1970059

Change-Id: I103baf5fb017f71959c1da02d88a1730d66a8151
2022-02-12 00:36:13 +00:00
Yuntao Xu
8b20c4f8d4 Merge "Convert CanvasCompare/Android.mk to Android.bp" am: 17da00b993 am: 8aa558e2dc
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1970059

Change-Id: Ia4f9fe509a12951943a195642ae6e7f026379ad1
2022-02-12 00:24:58 +00:00
Yuntao Xu
f653a61f5d Merge "Convert SimpleCamera/Android.mk to Android.bp" am: 2cd74cf430 am: 81b7ee70f6 am: b5bb0d8ae0
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1969919

Change-Id: I015558317f54263a8b52fe526f7f23f1020c69e7
2022-02-11 23:55:45 +00:00
Yuntao Xu
17da00b993 Merge "Convert CanvasCompare/Android.mk to Android.bp" 2022-02-11 23:51:34 +00:00
Yuntao Xu
b5bb0d8ae0 Merge "Convert SimpleCamera/Android.mk to Android.bp" am: 2cd74cf430 am: 81b7ee70f6
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1969919

Change-Id: I833df30c9a662452d19361c3ac81614aef2b5a0d
2022-02-11 23:37:02 +00:00
Yuntao Xu
2cd74cf430 Merge "Convert SimpleCamera/Android.mk to Android.bp" 2022-02-11 23:04:42 +00:00
Pablo Gamito
2c37d7a5e0 Merge "Remove fass assertions from tests" 2022-02-10 14:46:06 +00:00
Charles Chen
c69e76f3e9 Merge "Enable to add ComponentCallbacks to Activity" 2022-02-10 13:14:15 +00:00
Taran Singh
ded74d352f Merge changes I53808ec2,I6f1b8a93
* changes:
  Minimal test IME with Stylus HW support
  Fix IMS#onPrepareStylusHandwriting call
2022-02-10 12:57:03 +00:00
TreeHugger Robot
d25198a25e Merge "Disable flaky tests" 2022-02-10 09:16:48 +00:00
Nataniel Borges
d86a80274a Merge "Run flicker tests 3x" 2022-02-10 07:32:47 +00:00
Charles Chen
ba29cdb63e Enable to add ComponentCallbacks to Activity
This CL is mainly from the requirements to receive WindowMetrics
updates in Jetpack Library. It also benefits the developers if
they want to listen to Activity's configuration changes outside
Activity

Test: atest RegisterComponentCallbacksTest
Bug: 199442549
Change-Id: Iff5c0a4d9c61d30b84ff9aee465f1b6b06f1a48d
2022-02-10 14:55:33 +08:00
Taran Singh
8f2ae0b7b1 Minimal test IME with Stylus HW support
Minimal IME with Handwriting support that can draw ink trail and commit
random text after each session.

Test: Manually
      1. m -j HandwritingIme
      2. adb install out/../HandwritingIme.apk
      3. Simulate stylus with  I7723be718354872509a9e85beda10acdbe25dd48
      4. and enable the property in #3 with
         adb shell setprop <property> true
      5. Open any app with editor and swipe on EditText.
      6. HW ink window with ink will appear.
Bug: 217957587

Change-Id: I53808ec261bd4364797b93d57cf6a8ddfd615390
2022-02-10 04:55:52 +00:00
Dmitri Plotnikov
1383532e04 Merge "Remove BatteryStatsHelper and BatterySipper" 2022-02-09 18:32:08 +00:00
Nataniel Borges
77dff60b1b Disable flaky tests
Create specific class for shell transition when whole CUJ crashes

Bug: 209843622
Test: atest FlickerTests WMShellFlickerTests
Change-Id: I8d3d96af7303e6bd7bc4a540aa79b0f9ea3bf4a0
2022-02-09 19:02:17 +01:00
Chavi Weingarten
650ce9aea4 Merge "Make setRecentsScreenshotEnabled public" 2022-02-09 15:41:12 +00:00
Chun-Wei Wang
c86e0d1ab6 Merge "Code cleanup (9/n)" 2022-02-09 11:48:10 +00:00
Aaron Huang
96a396daad Merge "Have FrameworksVcnTests access hidden API" am: ca1c4e2fc2 am: bde1da0e0a am: 6a152302ba
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1960194

Change-Id: Ibee6d7723968749989451539b230a2c2d32f8e91
2022-02-09 11:39:32 +00:00
Treehugger Robot
ccde8cf7be Merge "Delete NetworkStatsFactoryBenchmark" am: 26de69ea34 am: c9a9de1777 am: 6d84b81ece
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1976231

Change-Id: I6cdfc54a8b8a83afddfb907f2d0edf3de1f17e10
2022-02-09 11:38:34 +00:00
Aaron Huang
6a152302ba Merge "Have FrameworksVcnTests access hidden API" am: ca1c4e2fc2 am: bde1da0e0a
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1960194

Change-Id: Ida0aa292032a8e993a057bc9c4af73da8751d864
2022-02-09 11:27:51 +00:00
Treehugger Robot
6d84b81ece Merge "Delete NetworkStatsFactoryBenchmark" am: 26de69ea34 am: c9a9de1777
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1976231

Change-Id: Iafa88ae2bff1cc4548ee0a0570049979f25b0952
2022-02-09 11:26:59 +00:00
Aaron Huang
ca1c4e2fc2 Merge "Have FrameworksVcnTests access hidden API" 2022-02-09 10:48:45 +00:00
Nataniel Borges
c95bc4d69a Run flicker tests 3x
We run the flicker tests multiple times to detect CLs that intoruce flakiness early. Currently we run 5 executions of each CUJ. However, due to lab capacity and impact in presubmit times, this CL reduces the repetitions to 3

Bug: 209843622
Test: atest FlickerTests WMShellFlickerTests
Change-Id: I165937fb82953d62c028ffe96a948d0ca00dbbe2
2022-02-09 11:11:54 +01:00
TreeHugger Robot
14da91737a Merge "Add default theme for flicker test app" 2022-02-09 06:36:41 +00:00
Dmitri Plotnikov
58fff8488b Remove BatteryStatsHelper and BatterySipper
These classes have been superseded by BatteryUsageStats

Bug: 217618527
Test: presubmit
Change-Id: Ia562365031048ad5b541dd08196e04e53e7cc547
2022-02-09 06:26:59 +00:00
Pablo Gamito
dc7dc570b8 Merge "Split inheritance structure between OpenAppFromLauncher and OpenAppFromLock tests" 2022-02-08 21:39:51 +00:00
Pablo Gamito
1574f79287 Split inheritance structure between OpenAppFromLauncher and OpenAppFromLock tests
OpenAppNonResizeableTest was inheriting from OpenAppTransition which specified assertions assuming the app was launched from the launcher but that isn't the case there, we launch from the lock screen

Test: atest FlickerTests:OpenAppColdTest FlickerTests:OpenAppFromOverviewTest FlickerTests:OpenAppNonResizeableTest

Bug: 213856453
Change-Id: I4bc1eca68598471452e4cac94903f0d92dba635b
2022-02-08 17:12:09 +01:00
Pablo Gamito
b85d6f1ad4 Remove fass assertions from tests
Assertions are very flaky, don't provide any immediately useful information in the current state and going to be replace soon anyways

Test: atest FlickerTests
Change-Id: Id8f7649b818237bc16051d808ef46ca875669faa
2022-02-08 17:10:10 +01:00
Riddle Hsu
5a68f5cd91 Add default theme for flicker test app
Otherwise its WidowManager.LayoutParams#windowAnimations is 0, then
it won't play animation (TransitionAnimation#loadAnimationAttr
returns null) so the the surface of closing app may be updated to
invisible at random timing that causes the test flaky.

Use darker gray as window background color to make it easier to
distinguish the visual result between home, starting window (gray)
and app content (orange).

Bug: 216297992
Bug: 213852103
Test: com.android.server.wm.flicker.launch.OpenAppColdTest
Change-Id: I3bb073dfa52484a63168b3aeb6e7f5f43bd02aac
2022-02-08 14:58:55 +00:00
Aaron Huang
23e4f46c1a Have FrameworksVcnTests access hidden API
(cherry picked from commit 023328e204)
Bug: 204153604
Test: build, FrameworksVcnTests
Change-Id: I2e92f27b4d10612d9000c0fc0d5866dd0313a336
Merged-In: I2e92f27b4d10612d9000c0fc0d5866dd0313a336
2022-02-08 14:31:46 +00:00
Remi NGUYEN VAN
95b018288b Delete NetworkStatsFactoryBenchmark
As commented in the test, it is broken today and barely builds.

Nothing seems to be referencing this library anywhere: remove it.

Ignore-AOSP-First: submitting in AOSP separately from topic
Bug: 197717846
Test: m
  (cherry-picked from ag/16781269)
Change-Id: I0dd12dfd3f9bf99c9723d58e2dc656ea7db3a1f3
Merged-In: I0dd12dfd3f9bf99c9723d58e2dc656ea7db3a1f3
2022-02-08 18:58:33 +08:00
Derek Sollenberger
a04c237023 Merge "Remove isOpaque from RuntimeShader" 2022-02-07 15:12:30 +00:00
Remi NGUYEN VAN
8c67bb002a Delete NetworkStatsFactoryBenchmark
As commented in the test, it is broken today and barely builds.

Nothing seems to be referencing this library anywhere: remove it.

Ignore-AOSP-First: submitting in AOSP separately from topic
Bug: 197717846
Test: m
Change-Id: I0dd12dfd3f9bf99c9723d58e2dc656ea7db3a1f3
2022-02-07 11:12:16 +09:00
Treehugger Robot
d4936a5bf3 Merge "Add background blur activity to silkfx" am: 81f5901e83 am: 9da79d3727 am: ea7dbe7167 am: 8c91cb7376
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1966459

Change-Id: I351da726fc4908ce7b40f017baff17ba3c41f43c
2022-02-05 00:08:17 +00:00
Treehugger Robot
8c91cb7376 Merge "Add background blur activity to silkfx" am: 81f5901e83 am: 9da79d3727 am: ea7dbe7167
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1966459

Change-Id: If84b6f842c22b4fa8e30382a6f269a3083b77952
2022-02-04 23:48:22 +00:00
Treehugger Robot
ea7dbe7167 Merge "Add background blur activity to silkfx" am: 81f5901e83 am: 9da79d3727
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1966459

Change-Id: I42cc386c66ae508d8a05a8332248ac3165b8698f
2022-02-04 23:28:21 +00:00
chaviw
62df8ad093 Make setRecentsScreenshotEnabled public
Enable setRecentsScreenshotEnabled as a public API to allow apps to
disable the screenshot that is shown in recents.

There's no need for a getter method because it's only set by the app so
it will not be changed by system

Test: SnapshotTaskTests
Fixes: 166729178
Change-Id: I06f1e4fa62ad50c050b6259e04a4af27cd25be67
2022-02-04 16:27:26 -06:00
Galia Peycheva
fe59c4de42 Add background blur activity to silkfx
Bug: 213292227
Test: m SilkFX && adb install $OUT/testcases/SilkFX/arm/SilkFX.apk
Test: adb shell am start -n com.android.test.silkfx/.materials.BackgroundBlurActivity
Change-Id: I1692a53460b64b5a49d14736b2b680069217fa1d
2022-02-04 19:40:57 +00:00
Makoto Onuki
ee975e9c0e Merge "Allow enabling component-alias via device config, on userdebug or eng devices" 2022-02-04 16:29:32 +00:00
Derek Sollenberger
7843e51a80 Remove isOpaque from RuntimeShader
Skia can now detect this performance optimization
automatically so there is no need to increase the
exposure of the public API.

Test: atest CtsUiRenderingTestCases
Bug: 201546136
Change-Id: I5f80259530a08506f54cef59b4b1940e940bfe91
2022-02-04 14:11:15 +00:00
Makoto Onuki
94695ee51b Allow enabling component-alias via device config, on userdebug or eng devices
Bug: 196254758
Test: atest ComponentAliasTests
Change-Id: Idcfbb2d8e269a8c8d4e29f54c57a1f3d08408b28
2022-02-03 14:53:44 -08:00
Nataniel Borges
cbe01b513c Merge "Fetch traces async" 2022-02-03 13:07:15 +00:00
Nataniel Borges
056b4f3a42 Merge "Launch main activity only 1x" 2022-02-03 09:32:02 +00:00
Yuntao Xu
dd82eca332 Convert CanvasCompare/Android.mk to Android.bp
Converted the Android.mk file to Android.bp.

Bug: 124261647
Test: compared the two apk files built by Make and Soong
Test: m CanvasCompare
Test: TreeHugger
Change-Id: I75e2534f8c6035d899764d2baa539127d8a96afe
2022-02-02 16:48:51 -08:00
Yuntao Xu
8136d49038 Convert SimpleCamera/Android.mk to Android.bp
1. Converted the SimpleCamera/Android.mk to Android.bp;
2. Converted the tests/Android.mk as well;
3. No renderscript files are found in the srcs.

Bug: 124261647
Test: compared the two apk files built by Make and Soong
Test: m SmartCamera
Test: m SmartCamera-tests
Test: TreeHugger
Change-Id: I324c1c744b5a7f836a32fe8409ab8abf19eeeae9
2022-02-02 16:18:05 -08:00
Lorenzo Colitti
defa379417 Merge "Have FrameworksVcnTests access hidden API" 2022-02-02 23:59:02 +00:00
Aaron Huang
023328e204 Have FrameworksVcnTests access hidden API
Bug: 204153604
Test: build, FrameworksVcnTests
Change-Id: I2e92f27b4d10612d9000c0fc0d5866dd0313a336
2022-02-02 14:41:00 +00:00
Justin McClain
beff3729c1 Implementing verification of PROFILE_SELF_TRUSTED.
Implementing PROFILE_SELF_TRUSTED for testing purposes.

Bug: 216476609
Test: SystemAttestationVerificationTest unit test
Change-Id: Ie0ecf2f88dcc9591ca41dc7d9f30f8727bb5fa1e
2022-02-01 19:44:35 +00:00
Nataniel Borges
ccc875cc97 Fetch traces async
Due to the large amount of traces on flicker, the tests take 15min+ to copy the files from the device to the host after the test execution. Instead, start copying the files asynchronously.

It is not possible to use the async mechanism from Tradefed's FilePullerLogCollector because it either: (1) pushes the files form the directory multiple times -- once per test -- creating a lot of duplicates; or (2) cleans up the directory without checking for new files, losing some files.

This CL creates an asynchronous file upload mechanism for flicker using coroutines

Bug: 216111397
Test: atest FlickerTests WMShellFlickerTests
Change-Id: I5bbae834cf3439950626823c6b665c733e27e517
2022-02-01 20:08:51 +01:00
Nataniel Borges
469918d283 Launch main activity only 1x
Currently we launch the activity for each iteration and that is not necessary. The test hsould launch it once

Bug: 209843622
Test: atest FlickerTests
Change-Id: Ibce9f17954771158cb6d85b213f40a215f0c0c30
2022-02-01 20:04:44 +01:00