Commit Graph

20099 Commits

Author SHA1 Message Date
Treehugger Robot
02e36f349a Merge "[zip] Make implementations of zip interfaces final" am: d0329c51d3 am: 621a421e6d am: 2148f2f861
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2299823

Change-Id: I3c8dcfe0fa9d25e3c85857eaadf7185ec9481b33
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-11-15 03:40:21 +00:00
Treehugger Robot
2148f2f861 Merge "[zip] Make implementations of zip interfaces final" am: d0329c51d3 am: 621a421e6d
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2299823

Change-Id: I1b116509eceda7758a3e38c960409d2650d2afab
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-11-15 03:21:10 +00:00
Treehugger Robot
621a421e6d Merge "[zip] Make implementations of zip interfaces final" am: d0329c51d3
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2299823

Change-Id: Ibff6f914720a192e416425fb18242edb27d5c790
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-11-15 03:07:13 +00:00
Treehugger Robot
d0329c51d3 Merge "[zip] Make implementations of zip interfaces final" 2022-11-15 02:37:03 +00:00
Jeremy Meyer
558358612b Merge "implement drawable frros" 2022-11-14 22:35:08 +00:00
Jorge Gil
bc425d503d Merge "Add WCT#setDragResizing to optimize fluid resizing" into tm-qpr-dev am: 1f17bf7eba am: f28339c869
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20378671

Change-Id: I3cdea614c657c696c551d31672b215cb80eeb789
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-11-14 22:24:21 +00:00
Daniel Norman
9650e7a388 Merge "Introduce A11yService#takeScreenshotOfWindow()" 2022-11-14 21:45:11 +00:00
Jorge Gil
f28339c869 Merge "Add WCT#setDragResizing to optimize fluid resizing" into tm-qpr-dev am: 1f17bf7eba
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20378671

Change-Id: I0d828b42ae8a3d6b62c15a0c3f3f78809e1a3663
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-11-14 21:37:55 +00:00
Jorge Gil
1f17bf7eba Merge "Add WCT#setDragResizing to optimize fluid resizing" into tm-qpr-dev 2022-11-14 21:09:24 +00:00
Nolan Scobie
43e36c49c0 Merge "Change hwui_unit_tests (and benchmarks) to push to non-root writable dir" 2022-11-14 20:31:55 +00:00
Michael Groover
9e5123da48 Merge "Revert "Revert "Add unaudited exported flag to exposed runtime receivers""" 2022-11-14 20:10:34 +00:00
TreeHugger Robot
69e66c663d Merge "Reland "Extand the long press duration"" 2022-11-14 19:33:40 +00:00
Ats Jenk
0942d7786b Merge changes I1d593900,I179c69c1 into tm-qpr-dev am: 2d7fb7b2b5 am: 83ec5817f6
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20428903

Change-Id: I77c8b2c4ecba4408c88cae5e5c4e91524aefe783
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-11-14 18:43:23 +00:00
Jeremy Meyer
a761f3325e implement drawable frros
Test: unit tests
Bug: 251283316
Change-Id: Iead53711c54596c3787eeba6dcf9ced129f94426
2022-11-14 18:38:12 +00:00
Ats Jenk
83ec5817f6 Merge changes I1d593900,I179c69c1 into tm-qpr-dev am: 2d7fb7b2b5
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20428903

Change-Id: Id91f7008efd09c4f3dd333d105d8b582e3841397
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-11-14 18:37:10 +00:00
Ats Jenk
2d7fb7b2b5 Merge changes I1d593900,I179c69c1 into tm-qpr-dev
* changes:
  Move home task behind visible task
  Move desktop mode logic out of ShellTaskOrganizer
2022-11-14 18:27:15 +00:00
Brandon Liu
ce231553c8 Merge "Fix tests affected by sparse.apk" 2022-11-14 18:22:49 +00:00
Sam Dubey
10904780f2 Merge "Disable inernal app before running tests" 2022-11-14 16:42:27 +00:00
Nolan Scobie
2b9dbe9d56 Merge "Fix erroneous self deletion on SkImage creation failure" am: e5aac985ab am: f86aa37f8f
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2300663

Change-Id: Ib3b8016963d633ad448528cb4b275d4d946f14f5
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-11-14 16:36:31 +00:00
Nolan Scobie
f86aa37f8f Merge "Fix erroneous self deletion on SkImage creation failure" am: e5aac985ab
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2300663

Change-Id: Id324fe7b381feb0229e7d5a50cc13b178cdac154
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-11-14 16:07:00 +00:00
Cosmin Băieș
fc03fbd025 Merge changes from topic "revert-20437706-revert-20313761-IME tracking - hide-HZXGDCCPOZ-XOCVITMXNR"
* changes:
  Revert^2 "Input latency & reliability tracking - hide flow"
  Revert^2 "Input latency & reliability tracking"
2022-11-14 14:36:36 +00:00
Jerry Chang
026d936ec3 Merge "Make multi-instances split opt-in based" into tm-qpr-dev am: 1e20bf871c am: 018d33893a
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20295364

Change-Id: I16be9c0ce748743b4e90ed4d1c69c735439d4b24
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-11-14 14:23:46 +00:00
Jerry Chang
018d33893a Merge "Make multi-instances split opt-in based" into tm-qpr-dev am: 1e20bf871c
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20295364

Change-Id: I86937369cbd3d309333fd10a9afd2669c866d81c
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-11-14 13:51:16 +00:00
Sam Dubey
261cc40187 Disable inernal app before running tests
Debuggable reamdump data collection dialog is triggering up while
running tests. These are causing flakes. While a better fix would be
figuring out why these are triaggered, the wm tests should be
independent of internal apps which an end user of Android won't see.

Test: Forrest
Bug: 258578781
Bug: 239384214
Change-Id: Ia4c0c670fe3e35f84640787cb8fce70e74edb264
2022-11-14 13:34:59 +00:00
Jerry Chang
1e20bf871c Merge "Make multi-instances split opt-in based" into tm-qpr-dev 2022-11-14 13:29:46 +00:00
Chilun Huang
2c85bb7cd6 Reland "Extand the long press duration"
This relands commit 8dc06e5335

The Different from the original patch:
Ignore the layers of popup windows.

The original CL description:
Align the long press duration to AutomationUtils.

Bug: 257099231
Bug: 258787797
Test: atest WMShellFlickerTests:CopyContentInSplit
Change-Id: I391e0e4e71aa0ae13221ecd571e187e1c10f7c96
2022-11-14 20:31:35 +08:00
TreeHugger Robot
5b48b2839c Merge "Revert "Extand the long press duration"" 2022-11-14 12:11:28 +00:00
Arthur Hung
f322cbd5cc Rephrase BackAnimationController and BackAnimationRunner
This CL did some refactors include:
- Make the back animation will follow these two phases to better
  understand.
  1. Phase 1 animation will start from gesture start, and end when
     gesture released.
  2. Phase 2 animation aka post commit animation will start after gesture
     released.
  3. When the animation is finished, make sure we could trigger the real
     back behavior and notify the core.

Bug: 238475694
Test: atest BackAnimationControllerTest
Change-Id: I251b9674a4aa9965c338ccf592efaeabdcecd5e8
2022-11-14 02:45:29 +00:00
Yurii Zubrytskyi
27038bc754 [zip] Make implementations of zip interfaces final
This is to prepare them to the changes in the interfaces that
remove virtual destructors

Bug: 237583012
Test: build

Merged-In: I60a28bcd4f0ef332bb2243f2feac4eedb908011f
Change-Id: I60a28bcd4f0ef332bb2243f2feac4eedb908011f
2022-11-11 15:54:10 -08:00
Evan Rosky
d13c6637cc Merge "Revert^4 "Enable Shell Transitions"" 2022-11-11 23:31:28 +00:00
Brandon Liu
742b11e05d Fix tests affected by sparse.apk
Regenerated sparse.apk with latest aapt2 and updated resource qualifier
to orientation from sdk version because config sdk version was fully
dropped in aapt2. Also added tests with runtime apk generated by Soong
build target to make these tests more comprehensive. Applied
parameterized test to avoid duplicate code.

Bug: b/249370927
Test: Added and verified affected atests pass
Change-Id: I94f6758d7862375fe4053f42fe89953d4afa48fd
2022-11-11 22:57:18 +00:00
Nolan Scobie
892cac2025 Fix erroneous self deletion on SkImage creation failure
TL;DR: Skia should always call releaseProc, and maybe sooner than we thought.

There are multiple scenarios where SkImage:MakeFromTexture will fail,
returning a nullptr and calling releaseProc due to a RefCntedCallback
falling out of scope. Previously this could cause mUsageCount to fall to
0, resulting in the AutoBackendTextureRelease deleting itself even
though DeferredLayerUpdater owned a ref and expected it to still exist.

Also added logging for some reasons that could cause the later call to
MakeFromTexture to fail.

Bug: b/246831853
Test: hwui_unit_tests
Change-Id: I7fd2566b9a85fe286f72b0fc42eba5450cac69b0
Merged-In: I7fd2566b9a85fe286f72b0fc42eba5450cac69b0
2022-11-11 16:13:25 -05:00
Daniel Norman
32afd29346 Introduce A11yService#takeScreenshotOfWindow()
This enables accessibility services to take a screenshot of
a window without any overlay windows drawn on top, which is
beneficial for ML-based understanding of the visual content
in the window.

Bug: 249830826
Test: atest AccessibilityTakeScreenshotTest
Test: use in an a11y service, observe screenshots
      contain only content from the requested windows
      and no overlays
Change-Id: Ic886aeace9cb2984a472273858281b4f2c3a0e46
2022-11-11 18:07:10 +00:00
Victor Chang
db82b37998 Revert "Extand the long press duration"
This reverts commit 8dc06e5335.

Reason for revert: b/258787797

Bug: 258787797
Change-Id: I417939d7d9f0344e4f260703cac9929d1e0633d1
2022-11-11 14:54:07 +00:00
Michael Wright
20f5fd8744 Add TouchSpotController to PointerController dump.
Bug: 254277939
Test: manually inspect `dumpsys input`
Change-Id: I3a50e13885df90253335f013cda28b5ce9d2def7
2022-11-11 14:04:13 +00:00
Michael Wright
21401ad9c0 s/displayID/displayId
Update local variable names in PointerController so they match the
general code style.

Bug: 254277939
Test: compiles
Change-Id: I7f71e12d48cf76ec8ff8fbaa435c18f9c2277096
2022-11-11 14:04:13 +00:00
Michael Wright
8357775f16 Add viewports to PointerController dump
Bug: 254277939
Test: manually inspect `dumpsys input`
Change-Id: I3286d4d86c50d1df004f7115ad072ebc62cf12f4
2022-11-11 14:04:12 +00:00
Michael Wright
72a89137e0 Add dump for PointerController.
Just a simple dump to start, but start pushing more PointerController
information into bugreports.

Bug: 254277939
Test: manually inspect `dumpsys input`
Change-Id: I7ca637aa8a8f1cc1188eddcf694f7c4aea7d5821
2022-11-11 14:04:12 +00:00
Cosmin Băieș
44ff0dd9eb Revert^2 "Input latency & reliability tracking - hide flow"
d638a60aae

Test: atest CtsSystemApiSignatureTestCases:android.signature.cts.api.system.SignatureTest#testRuntimeCompatibilityWithCurrentApi
Change-Id: I1ee7224b40fa3f4b744311eb4145fa13a87d835a
2022-11-11 12:22:55 +01:00
Chilun Huang
518b394962 Merge "Extand the long press duration" 2022-11-11 09:11:45 +00:00
Wei Sheng Shih
827093037e Merge "Generalize back animation and transition sequence..." 2022-11-11 06:42:49 +00:00
wilsonshih
da90308633 Generalize back animation and transition sequence...
for both shell and legacy transition system.

The general sequence will be:
1. Create animation leash in core, pass to remote animation runner.
2. Remote animation finish, collect finish transaction before
transition happen. Apply finish transaction here if back event won't
trigger.
3. Check whether next transition is triggered from back gesture via
checking the open/close targets.

The 3rd step introduce another change, which to let the back transition
happen. Instead of consume next transition, we should try to find out
whether the participant was the animation target, because we cannot
assume what the opening target will do in resume stage. For example,
the opening activity could finish itself, or start another activity at
onResume, so in either case, the opening activity will become closing
activity. We can only ensure that activity will participant in next
transition.
So the more robust way should be, find out those targets which were
animated. For shell transition, and add a flag to the corresponding
change, then the transition handler can determine what to do based on
the targets. For legacy transition, ignore those targets when estimate
the transition type in AppTransitionController#getTransitCompatType.

Bug: 238474994
Bug: 131727607
Test: varify transition can be handled for some unexpected scenario:
  1. launch new activity when close app.
  2. launch singleInstance activity when close app.
Test: do back gesture on both shell/legacy transiton system, verify
no flicker happen whenever the back is triggered.

Change-Id: I9364be25c608f7b5797577d26b57bc7d6f2dde9c
2022-11-11 03:11:22 +00:00
Jorge Gil
5a95db047e Add WCT#setDragResizing to optimize fluid resizing
Allows WM Shell to indicate the start/end of drag resizing, which
core can use as a signal to reuse a single (larger) surface size
for the entire drag resize operation to avoid continuous buffer
allocations after each size change.

Bug: 249808500
Test: drag resize a freeform window, verify WindowLayout requests
a fullscreen sized surface; atest TaskPositionerTest

Change-Id: I27e2b44270d7ea4f701fa8037f93b20dc691284b
2022-11-11 00:48:49 +00:00
Nolan Scobie
f89a38ac32 Change hwui_unit_tests (and benchmarks) to push to non-root writable dir
...and switch to more appropriate "general-tests" suite type.

This allows the test suite to be run in certain lab/infra scenarios,
like on ABTD.

Docs
device-tests to general-tests:
https://source.android.com/docs/core/tests/development/test-mapping#packaging_build_script_rules

Tests
Without this change:
https://android-build.googleplex.com/builds/abtd/run/L10000000957295240
(tooling fails to push content)
With this change:
https://android-build.googleplex.com/builds/abtd/run/L52900000957292742
(gets past tooling failure, and fails on an actually failing unit test)

Test: compare ABTD runs with and without this CL
Bug: 257123741
Change-Id: I33696a0f1c9279622138e4dc4c49d73c99f359eb
2022-11-10 17:38:02 -05:00
Evan Rosky
cc23c1824d Revert^4 "Enable Shell Transitions"
324b674209

Change-Id: Iff47a8ee6bc971435dbc7acad0dbf790ef9b822a
2022-11-10 21:14:48 +00:00
Cosmin Băieș
1619482379 Revert^2 "Input latency & reliability tracking"
1f4fd2d21e

Change-Id: I096456e9cd7449836b373ff392f2e9df58b3e661
2022-11-10 17:53:07 +01:00
Riddle Hsu
33e735d76d Merge "Fix potential crash when exit splash screen" am: 18b88655a4 am: f1ecd46905 am: 3a15cfb3c3
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2292500

Change-Id: Iafef0da764d3a49170cc9c52f839fc313184d9ce
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-11-10 13:44:18 +00:00
Pascal Mütschard
581fdec050 Merge changes from topic "revert-20313761-IME tracking - hide-HZXGDCCPOZ"
* changes:
  Revert "Input latency & reliability tracking"
  Revert "Input latency & reliability tracking - hide flow"
2022-11-10 13:22:35 +00:00
Pascal Mütschard
1f4fd2d21e Revert "Input latency & reliability tracking"
Revert submission 20313761-IME tracking - hide

Bug: b/258637227
Reason for revert: Breaks CtsSystemApiSignatureTestCases android.signature.cts.api.system.SignatureTest#testRuntimeCompatibilityWithCurrentApi
Reverted Changes:
Icf9ab3fc0:Input latency & reliability tracking - hide flow
I1096564d5:Input latency & reliability tracking - hide flow
I14e009250:Input latency & reliability tracking - hide flow
Ic32e36b2d:Input latency & reliability tracking
I56f96dc6b:Input latency & reliability tracking
I73dec2e9e:Input latency & reliability tracking

Change-Id: Ia376a1624fb6abf937eb2a335aa75cb3ca9831d8
2022-11-10 13:11:27 +00:00
Pascal Mütschard
d638a60aae Revert "Input latency & reliability tracking - hide flow"
Revert submission 20313761-IME tracking - hide

Bug: b/258637227
Reason for revert: Breaks CtsSystemApiSignatureTestCases android.signature.cts.api.system.SignatureTest#testRuntimeCompatibilityWithCurrentApi
Reverted Changes:
Icf9ab3fc0:Input latency & reliability tracking - hide flow
I1096564d5:Input latency & reliability tracking - hide flow
I14e009250:Input latency & reliability tracking - hide flow
Ic32e36b2d:Input latency & reliability tracking
I56f96dc6b:Input latency & reliability tracking
I73dec2e9e:Input latency & reliability tracking

Change-Id: I0d0ce41e3a4f0d19ff482c2f5ab4884b5f758134
2022-11-10 13:11:27 +00:00