Commit Graph

16788 Commits

Author SHA1 Message Date
Matt Casey
84e2001338 Merge "Fix mPositionInWindow to not use global coords" into sc-dev am: 184c61395e
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15029245

Change-Id: I234f8d466d5c128fdc467ff8dff8176857c6c2ad
2021-06-22 15:07:37 +00:00
Adrian Roos
be1342f63e Merge "Insets Animations: Always dispatch onEnd when cancelled" into sc-dev am: e53e6f5c10
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15029085

Change-Id: Ie5832b5a022a0c6742efac628f35bb378f748e18
2021-06-22 15:04:36 +00:00
Arthur Hung
1d860209dd Merge "Update transform hint from relayout window (1/2)" into sc-dev am: 4c74c4e33f
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14909666

Change-Id: If99dcc63f27ab9256ac751f1baa2fb4e5b05cea0
2021-06-22 15:02:21 +00:00
TreeHugger Robot
579c354625 Merge "Added a hidden modelState to indicate model was deleted from device but available still." into sc-dev am: e4724a8e8f
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15031542

Change-Id: Ie7974c06a91cd0ae584bc5abc23e8ecedd72dbaa
2021-06-22 15:00:16 +00:00
Matt Casey
184c61395e Merge "Fix mPositionInWindow to not use global coords" into sc-dev 2021-06-22 12:44:33 +00:00
Adrian Roos
e53e6f5c10 Merge "Insets Animations: Always dispatch onEnd when cancelled" into sc-dev 2021-06-22 10:29:08 +00:00
Arthur Hung
4c74c4e33f Merge "Update transform hint from relayout window (1/2)" into sc-dev 2021-06-22 03:27:26 +00:00
TreeHugger Robot
84e98dfd76 Merge "MotionEvent: Add relative X and Y fields to PointerCoords" into sc-v2-dev 2021-06-22 00:41:37 +00:00
TreeHugger Robot
e4724a8e8f Merge "Added a hidden modelState to indicate model was deleted from device but available still." into sc-dev 2021-06-21 23:19:26 +00:00
Adam He
8b25ff8c9f Added a hidden modelState to indicate model was deleted from device but available
still.

Bug: 191518728
Test: atest CtsTranslationTestCases
Change-Id: I16ee0c2514052f9a8d6589646098c043d67a6703
2021-06-21 13:25:20 -07:00
Adrian Roos
29721a1319 Insets Animations: Always dispatch onEnd when cancelled
Previously, we only dispatched onEnd if onStart was already dispatched. However,
some animations might get cancelled after onPrepare but before onStart. In that
case, it is rather tricky for apps to actually cancel the animation.

Now we always dispatch onEnd if onPrepare has been dispatched already.

Fixes: 177983907
Test: atest WindowInsetsAnimationControllerTests
Change-Id: I3fa142110bd5593679f87561c138ed3318034fca
2021-06-21 21:34:51 +02:00
TreeHugger Robot
ad69605425 Merge "Fix potential null error in clearEvents." into sc-dev am: 6ea5a55ac5
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15023990

Change-Id: I2c56caf6dbab6ba8d5f6ca404f8a0a7b415395d4
2021-06-21 12:10:12 +00:00
TreeHugger Robot
cedbffebcf Merge "Removing remaining references of ActivityView in fw/base" into sc-dev am: dc86e26f54
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14829810

Change-Id: I07f5d9bd292021dcc1de2249cb844c9fdfdec630
2021-06-21 11:58:03 +00:00
Huihong Luo
666acfce30 Merge "Fix z-order for webview surface control" into sc-dev am: 17410b668f
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14414236

Change-Id: I950d70004c3c20f869eba7cec32c3d5f3827086d
2021-06-21 11:52:55 +00:00
Naomi Musgrave
faac561d67 Merge "Revert "Revert "Temporarily exclude Launcher from sandboxing; to be reverted once""" into sc-v2-dev 2021-06-21 10:23:01 +00:00
Paul Hobbs
5824b89763 Revert "Revert "Temporarily exclude Launcher from sandboxing; to be reverted once""
This reverts commit 202e35b7cf.

Reason for revert: Breaks Launcher tests (b/191395224, http://go/forrest-run/L01400000924167319)
Bug: 191395224
Bug: 191492708
Bug: 191488971
Change-Id: I325a024daed9cf643f7cd2cb9a536637c13262fa
2021-06-21 10:22:45 +00:00
Charles Chen
235a0bf9bd Merge changes from topic "ime_migration" into sc-v2-dev
* changes:
  Move IME log to WindowTokenClient
  Migrate InputMethodService to WindowProviderService
2021-06-21 08:46:33 +00:00
TreeHugger Robot
6ea5a55ac5 Merge "Fix potential null error in clearEvents." into sc-dev 2021-06-21 02:31:00 +00:00
TreeHugger Robot
dc86e26f54 Merge "Removing remaining references of ActivityView in fw/base" into sc-dev 2021-06-19 01:23:12 +00:00
Adam He
e33b1bf4e9 Fix potential null error in clearEvents.
* This is follow up from previous patch to fix an unresolved
comment.

* We're still changing the clearEvents mechanic to not null the list but
actually clear the list of events. We also change when the
flush->clearEvents call happen during the destroy process so it occurs
on the handlerThread when each session does its own cleanup.

Bug: 185162720
Test: atest CtsContentCaptureServiceTestCases
Change-Id: Ide5490903deec8c4bc8aae5dc76b1fadca29dbd0
2021-06-18 14:38:55 -07:00
Matt Casey
03e826d6b1 Fix mPositionInWindow to not use global coords
Got the wrong number when the window isn't at 0,0.

Bug: 183045126
Test: Examined logs to observe the window's insets didn't affect
      position in window.
Change-Id: Id3190a7422a56cbefc64d30a9961674b4822fcc3
2021-06-18 14:16:18 -04:00
Huihong Luo
34f42fdecd Fix z-order for webview surface control
Set the root surface control transparent, and set the z order of the newly created child surface control to -1.
A new callback is needed to update root surface control in sync from Java side.

Bug: 186750329
Test: use latest APKs from Webview team, play a video, mini toolbar should be visible
Change-Id: I0b37ee8f83fd2b41ff4f2856dbadd31ff6170baf
2021-06-18 10:14:22 -07:00
TreeHugger Robot
58ef180354 Merge "Revert "Temporarily exclude Launcher from sandboxing; to be reverted once"" into sc-v2-dev 2021-06-18 12:11:48 +00:00
Charles Chen
fc7a1b5b34 Migrate InputMethodService to WindowProviderService
Also introduce IWindowManager#getDisplayIdToLaunchIme to make IMS
be aware of the launched display to prevent extra onConfigurationChanged
callback

Bug: 149463653
Test: atest MultiDisplaySystemDecorationTests CtsInputMethodTestCases
Test: atest ContextTest ContextIsUiContextTest
Test: manual - moving IME between 2 displays and displayArea within
      display - config change received
Test: manual - the app to show IME crashed and focus is set to the
      next task - no config change

Change-Id: Ie565e30ed5dd3f2cfe27355a6dded76dc3adc14b
2021-06-18 11:44:30 +08:00
Ben Lin
5643e20db3 Merge "PiP: Move enter-PiP on-pause logic." into sc-v2-dev 2021-06-17 21:50:11 +00:00
Naomi Musgrave
202e35b7cf Revert "Temporarily exclude Launcher from sandboxing; to be reverted once"
This reverts commit 6574e37f7c.

Bug: 179308296
Bug: 186056836
Reason for revert: No longer needed, as Launcher has updated their
approach (verified in sc-v2)

Change-Id: Iadaa4fbf82708cadff518cdb6db973ee402cd094
2021-06-17 13:28:59 +00:00
Arthur Hung
8e0fedbdb1 Update transform hint from relayout window (1/2)
The transform hint is used to prevent allocating a buffer of a different
size when a window is rotated. We return the fixed rotation transform
and pass it to BLASTBufferQueue so the producer can choose to consume
the hint and allocate the buffer with the same size.

Bug: 188893403
Bug: 177029197
Test: atest WmTests
Test: gfxbenchmark
Test: atest libsurfaceflinger_unittest SurfaceFlinger_test
Change-Id: If631984cf6b4b74ccdf19547fd6a63e759ed5732
2021-06-17 12:21:45 +00:00
Yunfan Chen
56aad85b0d Merge "Layout status/nav bar and decor window as normal window" into sc-v2-dev 2021-06-17 01:46:00 +00:00
Ben Lin
6a55435011 PiP: Move enter-PiP on-pause logic.
Previously, we rely on #makeInvisible in other situations as the last
place to enter PIP before activity gets put to stopped (e.g. ARC++).
However with Shell transitions, #makeInvisible is now immediately called
as user starts the transition into Recents, which would cause app to
enter PIP right away. Thus, removing this part of the code, and instead
we will wait until the Recents transition is finished and try to pause
the app with userLeaveHint before visibility is committed.

Also, when shell transition is enabled, make an explicit transition when
dmissing PIP to properly commit the necessary window container changes
to WM. The tranition will just have no animation.

Bug: 165793917
Test: Enable Shell transition, enter PIP via gesture (non-auto enter
case)
Test: Enable Shell transition, dismiss PIP via dismiss bubble

Change-Id: Ic2c8691f5a1f359b822b1874b16a327bc689f34d
2021-06-16 13:32:28 -07:00
TreeHugger Robot
86428a3591 Merge "ContentCaptureEvent: Log composing and selection indices" into sc-dev am: 8f74aa34ee
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14960922

Change-Id: I68a7abf9d4da0dbfb1d1276814f65e7971fe6586
2021-06-16 09:10:09 +00:00
TreeHugger Robot
8f74aa34ee Merge "ContentCaptureEvent: Log composing and selection indices" into sc-dev 2021-06-16 08:46:41 +00:00
TreeHugger Robot
388d8a3657 Merge "ContentCapture: DEBUG flag to log raw text" into sc-dev am: 949b4d2940
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14982209

Change-Id: I1ee7c180158628fac9711a795ab04a78fbe33886
2021-06-16 06:34:52 +00:00
TreeHugger Robot
949b4d2940 Merge "ContentCapture: DEBUG flag to log raw text" into sc-dev 2021-06-16 06:32:35 +00:00
Ahaan Ugale
d224da0ed4 ContentCaptureEvent: Log composing and selection indices
Bug: 184311217
Test: manual
Change-Id: I808021473fe55bf2f0676c005bc0c077146a6785
2021-06-15 22:21:26 -07:00
Siarhei Vishniakou
c3fb5dcd53 Merge "Remove FLAG_INPUTFILTER_TRUSTED in MotionEventInjector" into sc-dev am: 5d552869af
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14676739

Change-Id: I6ad42551ed0bbd48270fb3386f717727b3374779
2021-06-15 21:55:49 +00:00
Siarhei Vishniakou
5d552869af Merge "Remove FLAG_INPUTFILTER_TRUSTED in MotionEventInjector" into sc-dev 2021-06-15 21:50:35 +00:00
TreeHugger Robot
78bb87d1c6 Merge "Make inline suggestions tooltip is not magnified" into sc-dev am: cac7ab9c5c
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14514105

Change-Id: I690b8b91aed71839ce7b19c32e7de209cb08a863
2021-06-15 21:36:45 +00:00
TreeHugger Robot
cac7ab9c5c Merge "Make inline suggestions tooltip is not magnified" into sc-dev 2021-06-15 21:22:09 +00:00
TreeHugger Robot
f290a87c1a Merge "Make some NoCopySpans can pass to ContentCaptureService" into sc-dev am: 7063bae045
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14891918

Change-Id: I5dc35c9b31952db6f44e21cb9166e83630aa8644
2021-06-15 18:53:57 +00:00
Antonio Kantek
ec6b2bbd6e Removing remaining references of ActivityView in fw/base
Bug: 179161778
Bug: 191165536
Test: atest CarServiceTest
Change-Id: Ic45091d565e1654c9177183f065e605b0ab0b56d
2021-06-15 11:23:12 -07:00
TYM Tsai
b8fe7ce3bb Make some NoCopySpans can pass to ContentCaptureService
The selection and composing spans are not parcelable. This patch makes
Content Capture can pass those metadata to the service.

Bug: 184311217
Test: atest CtsContentCaptureServiceTestCases
Test: atest FrameworksCoreTests:ContentCaptureEventTest
Change-Id: I455ee61998bfb19476f84c69b1a671113b6b6a98
2021-06-16 01:22:39 +08:00
Ahaan Ugale
0f163f5557 ContentCapture: DEBUG flag to log raw text
Bug: 184311217
Test: manual
Change-Id: I9a60bcf95574583c14f5962a3dde603abea85498
2021-06-15 09:05:16 -07:00
Huihong Luo
d74e376eae Merge "Fix NullPointerException on ThreadedRenderer" into sc-dev am: eee7cc8764
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14947021

Change-Id: I5a068f8c8c87cd299272ecf63f0d4439dc28e488
2021-06-14 16:51:45 +00:00
Huihong Luo
eee7cc8764 Merge "Fix NullPointerException on ThreadedRenderer" into sc-dev 2021-06-14 16:48:31 +00:00
Yunfan Chen
fce2e99c68 Layout status/nav bar and decor window as normal window
Use the general layout process for system bar windows. The hard-coded
logic of the bar position is also disabled by the patch. Such that, the
system UI will have the ability to layout the window freely.

The bars sometimes need to be layout with new rotation before the actual
rotation when we simulate the display with fixed layout. To support
that, new layout params for orientation is introduced to the layout params.

The bar may need to provide a different insets frame in gesture
navigation mode. That is for the IME to draw the hide button. Introduced
a new param called providedInternalInsets to resolve that usage.

The new flexible layout is protected by the flag
persist.debug.flexible_insets.

Bug: 161689946
Bug: 169329927
Test: DisplayPolicyTests InsetsSourceProviderTest
      InsetsStateControllerTest
Change-Id: If8ec79b3cb3b989eed578c44e8749b13fd2e8592
2021-06-14 21:06:48 +09:00
TreeHugger Robot
6cda59d41b Merge "Clear the ViewTranslationResponse on finishing UiTranslation." into sc-dev am: 2828678bd4
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14922772

Change-Id: I5bf07de96eda6f2a16e003714c0f17b072515ea7
2021-06-14 01:26:52 +00:00
TreeHugger Robot
2828678bd4 Merge "Clear the ViewTranslationResponse on finishing UiTranslation." into sc-dev 2021-06-14 01:12:59 +00:00
John Reck
25d806cb95 Merge "Improve picture capture debug path" into sc-dev am: b99e72f722
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14928133

Change-Id: I74a78fd84f96fac075150016af356906a612fcf6
2021-06-11 18:29:46 +00:00
Huihong Luo
1c3d52c130 Fix NullPointerException on ThreadedRenderer
The variable, mAttachInfo.mThreadedRenderer, might be null.

Bug: 188614814
Test: run x86_64 cts test: CtsInputMethodTestCases
Change-Id: I5c441d8948dd357992ad5ef94d03deff547baa37
2021-06-11 11:20:32 -07:00
John Reck
760051854e Improve picture capture debug path
* Fixes hardware bitmap capture
* Fixes mutable bitmap capture (no flickering)
* Adds basic single-frame LRU cache to avoid
  repeated readbacks of GPU resources
* Does up-front readback of GPU resources
* Moves serialization off RenderThread again thanks
  to up-front readback avoiding needing GPU access
  off-thread
* Reduces RAM usage & improves performance by serializing
  directly to output stream instead of first copying to
  a byte[]

Bug: 174223722
Test: PictureCaptureDemo mirrors the content
Change-Id: If7ec208b61d5b917e82087cc312880fc5a38c943
2021-06-11 01:52:14 +00:00