Commit Graph

14234 Commits

Author SHA1 Message Date
Automerger Merge Worker
b142ad4797 Merge "Refine TC request classes." into rvc-dev am: 031fe36d35 am: 94903244ad am: 5c5425a884 am: 881a0b52ac
Change-Id: I1c2baa06b3b0abf8efeca52782aa0d1ece451129
2020-03-13 20:49:48 +00:00
Automerger Merge Worker
1d9dac66f3 Merge "Hide autofill highlight if filling only the focused field." into rvc-dev am: 640c3b4f92 am: 7c39ab81fb am: 808d29a0eb am: 5e60ab5e12
Change-Id: I4c7d9e9cc30ab0574534259d279e200f296d38c0
2020-03-13 19:47:24 +00:00
Automerger Merge Worker
6b9364fb2b Merge "Sends click and long click events from the inline suggestion to host app" into rvc-dev am: f0e7d48fec am: c5861e7841 am: aab1934c2a am: a0cd973a99
Change-Id: If41d3fcf6c19b90b7ee57243d942fc8f2c99a423
2020-03-13 19:40:30 +00:00
Joanne Chung
031fe36d35 Merge "Refine TC request classes." into rvc-dev 2020-03-13 19:35:33 +00:00
Adam He
640c3b4f92 Merge "Hide autofill highlight if filling only the focused field." into rvc-dev 2020-03-13 18:52:57 +00:00
Feng Cao
f0e7d48fec Merge "Sends click and long click events from the inline suggestion to host app" into rvc-dev 2020-03-13 18:25:48 +00:00
Joanne Chung
97d3a45453 Refine TC request classes.
Centrialize SystemTextClassifier fields into a class, e.g. userId,
useDefault, callingPackageName. Then all the TextClassifer request
should contain this class object. This helps to scalability if we
want to add new fields.

Bug: 149080832
Test: atest FrameworksCoreTests:android.view.textclassifier
Test: atest FrameworksCoreTests:android.widget.TextViewActivityTest
Test: atest CtsTextClassifierTestCases
Test: Manual. Check the parameters are expected when doing smart
selection, smart linkfy.
Change-Id: I224208adac333e2da7b4213f0905f6fb0abb8b2e

Change-Id: Iaef82c1d6ec8893888258820ac103f1b988eecfa
2020-03-13 13:15:39 +08:00
Automerger Merge Worker
610ef50b3f Merge "Use separate thread if app doesn't listen to animations" into rvc-dev am: 92fd77548a am: 9d0fc001c3 am: 2b7fa59a53 am: 02be12046b
Change-Id: I2a4429a57fb2504821d635669e4d426ddf44face
2020-03-12 23:55:55 +00:00
Automerger Merge Worker
2a40264f66 Merge "WindowContainerTransaction: Support PIP Transition" into rvc-dev am: 83d02a976a am: 938c193ad3 am: 84b5ef9353 am: 74fc6a330e
Change-Id: Ibd679ff5e9b0b1b027d6bb6e37ac328e6585bea2
2020-03-12 23:27:21 +00:00
Automerger Merge Worker
6fa4447684 Merge "Revert "WindowInsetsController: Address API feedback"" into rvc-dev am: 1a18357853 am: 102e8111b1 am: 7e9e82f45b am: ea512e2ad3
Change-Id: I4e2c6568f15c7c733d9d3984ec6dce69708cf224
2020-03-12 23:22:37 +00:00
Feng Cao
deec8f0175 Sends click and long click events from the inline suggestion to host app
Test: manual, atest InlineSuggestionTest
Bug: 151185482

Change-Id: Iafeb4584feca8a1cb1374f81105fa22136eba183
2020-03-12 15:51:22 -07:00
Jorim Jaggi
92fd77548a Merge "Use separate thread if app doesn't listen to animations" into rvc-dev 2020-03-12 20:49:07 +00:00
Adam He
5061db8a34 Hide autofill highlight if filling only the focused field.
Fixes: 150953184
Test: atest CtsAutoFillServiceTestCases
Change-Id: Ifc23a70a41022931d6828ff9a14620bb8fc58604
2020-03-12 13:38:34 -07:00
Automerger Merge Worker
29b94423c3 Merge "WindowInsetsController: Address API feedback" into rvc-dev am: 3a4be4a7b1 am: 861d179469 am: eb84300377 am: 0874a68218
Change-Id: I1a9517c66f5c5a088d170865ea9bfa0143554561
2020-03-12 18:51:02 +00:00
Rob Carr
83d02a976a Merge "WindowContainerTransaction: Support PIP Transition" into rvc-dev 2020-03-12 18:39:18 +00:00
Jaineel Mehta
1a18357853 Merge "Revert "WindowInsetsController: Address API feedback"" into rvc-dev 2020-03-12 18:23:14 +00:00
Automerger Merge Worker
81fa40faaf Properly handle InlineSuggestionsRequest with 0 max suggestion count am: 44dc2bdcb2 am: f195fad986 am: 0dc2168866 am: 7e00298681
Change-Id: I00f01daa652dc4c82145c82e481bd1cba4ecc703
2020-03-12 17:57:34 +00:00
Jaineel Mehta
5e7097b21e Revert "WindowInsetsController: Address API feedback"
This reverts commit c549e19c5e.

Reason for revert: Droidcop: Potential culprit for Bug X - verifying through Forrest before revert submission. This is part of the standard investigation process, and does not mean your CL will be reverted.

Change-Id: I2ab42d96d2599dfcc946fa48b3940e2bd92b22b0
2020-03-12 17:46:17 +00:00
Automerger Merge Worker
9a7fdfe180 Merge "Implement wallpaper zoom hooking it to the shade" into rvc-dev am: 888edd6fdc am: 54f7f1997b am: 8eae55aeba am: cb7c334c3e
Change-Id: I222bd0a600e1e9da173d1387d71089309a9fd095
2020-03-12 16:21:24 +00:00
Adrian Roos
3a4be4a7b1 Merge "WindowInsetsController: Address API feedback" into rvc-dev 2020-03-12 16:13:43 +00:00
Automerger Merge Worker
f195fad986 Properly handle InlineSuggestionsRequest with 0 max suggestion count am: 44dc2bdcb2
Change-Id: I69aecf888c3a4cb9bffffb181b74efe9ceb07c96
2020-03-12 16:01:06 +00:00
TreeHugger Robot
507be52dc7 Merge "Properly handle InlineSuggestionsRequest with 0 max suggestion count" into rvc-dev 2020-03-12 13:02:28 +00:00
Lucas Dupin
888edd6fdc Merge "Implement wallpaper zoom hooking it to the shade" into rvc-dev 2020-03-12 04:07:51 +00:00
Feng Cao
44dc2bdcb2 Properly handle InlineSuggestionsRequest with 0 max suggestion count
Test: manual, atest InlineSuggestionsRequestTest
Bug: 150142709

Change-Id: Id0bba142526641964087d29bf515b7d7a817bae0
2020-03-11 18:11:52 -07:00
Automerger Merge Worker
21e6a66b20 Merge "WindowContext: Add @WindowType intdef" into rvc-dev am: 76b221c84b am: 22c79f5dfe am: e94751f933 am: dcadf88af7
Change-Id: I2fe3e7b68ef635df902c5f23edb7b9dfdc87dce7
2020-03-11 22:42:02 +00:00
Automerger Merge Worker
dab5e4f545 Merge "Temporary fix to disable augmented autofill requests coming from password fields." into rvc-dev am: f5589a71e0 am: 09822e4df1 am: a4ba34860f am: d059f5dfd1
Change-Id: I906a378e22bbbd5047dc49e9ac4fcade45a76138
2020-03-11 22:37:56 +00:00
TreeHugger Robot
76b221c84b Merge "WindowContext: Add @WindowType intdef" into rvc-dev 2020-03-11 22:02:27 +00:00
Jorim Jaggi
6d5c801c78 Use separate thread if app doesn't listen to animations
There is no need to introduce jank risk and run the inset
animations on the main thread if the app doesn't listen to
animation events. In that case, move the animations onto a
separate thread.

Bug: 118118435
Test: Inspect systrace
Change-Id: Ib6e4b4ce8e9dd8e27761ced6eb8d7700b6236a32
2020-03-11 22:58:59 +01:00
TreeHugger Robot
f5589a71e0 Merge "Temporary fix to disable augmented autofill requests coming from password fields." into rvc-dev 2020-03-11 21:43:58 +00:00
Adrian Roos
c549e19c5e WindowInsetsController: Address API feedback
Change CancellationSignal to parameter instead of return value.

Fixes: 150472709
Test: atest InsetsControllerTest
Change-Id: Id4cb53fddcecac17b7926068046760df5130dc39
2020-03-11 17:23:31 +01:00
Adrian Roos
9c17e537c7 WindowContext: Add @WindowType intdef
Fixes: 151156902
Test: make checkapi
Change-Id: I966f8cd305189a54a5de48b03e5b4bdd51700fdf
2020-03-11 16:08:16 +01:00
Automerger Merge Worker
e142a5d02d Merge "Add OnControllableInsetsChangedListener" into rvc-dev am: 8dc835316a am: cdb0cc4c0a am: 6af7d6ec49 am: 8007c4b63b
Change-Id: I6790e6a0f47f238d3e089fb50166b750030f7991
2020-03-11 14:58:20 +00:00
Automerger Merge Worker
cdb0cc4c0a Merge "Add OnControllableInsetsChangedListener" into rvc-dev am: 8dc835316a
Change-Id: I523ee0cae91e4e673f78e77e0af5e06d8559a6eb
2020-03-11 13:54:46 +00:00
Automerger Merge Worker
aa18efa1d7 Enter to touch mode by down or scroll event from any type of a device. am: 718c4da0cd
Change-Id: I239fb55c64106d3fd0a36a290b304b806b727f56
2020-03-11 13:48:44 +00:00
TreeHugger Robot
15725d999d Merge "Enter to touch mode by down or scroll event from any type of a device." into rvc-dev 2020-03-11 13:35:13 +00:00
Jorim Jaggi
8dc835316a Merge "Add OnControllableInsetsChangedListener" into rvc-dev 2020-03-11 13:33:33 +00:00
Automerger Merge Worker
8e077016d1 Merge "TaskOrganizer: Send newest TaskInfo in taskVanished" into rvc-dev am: 2832f868d7 am: 7e49303089 am: 8a4d628994 am: fe54efcf3b
Change-Id: Ib9546f94f20f4b0f1a37bb2cbe59ad865dbb20cf
2020-03-11 00:16:06 +00:00
Rob Carr
ab17978c71 TaskOrganizer: Send newest TaskInfo in taskVanished
When leaving PIP SysUI might need to know the target mode
and bounds to animate correctly. taskInfoChanged may
not have yet been dispatched though. A simple solution is
to provide the info in TaskVanished.

Bug: 150716630
Test: Existing tests pass
Change-Id: I871f745198d6b4bc92cc5701128c5489c154f4f9
2020-03-10 14:34:51 -07:00
Leon Scroggins
f0a23ce8dd Merge "App transitions/thumbnails: Switch to HardwareBuffer" 2020-03-10 20:58:39 +00:00
Lucas Dupin
13f4b8a158 Implement wallpaper zoom hooking it to the shade
This adds a notion of per caller wallpaper zoom, in order to support
simultaneous clients.

The shade might be pulled down while in overview, for example, and we
must coordinate between launcher and systemui.

Bug: 149792636
Bug: 146387434
Test: atest NotificationShadeWindowViewTest
Test: atest WallpaperControllerTests
Test: manual
Change-Id: I588ba56d3d2704845d033ea2a5890ce812b9ee07
2020-03-10 10:52:28 -07:00
Adam He
ef0fe20852 Temporary fix to disable augmented autofill requests coming from
password fields.

Bug: 141703197
Test: atest android.autofillservice.cts.augmented
Change-Id: I05330988899a4c21d69c655a39c29fd0fea298c3
2020-03-10 10:47:09 -07:00
Robert Carr
2bed621c15 WindowContainerTransaction: Support PIP Transition
We support the PIP transition by adding setChildWindowingMode
and setWindowingMode primitives. This allows the organizer to
replicate the old behavior during the enter pip animation of
switching the Task to PIP but having the activity continue to
render it's full-screen UI, or the opposite on the other
transition. This is a temporary solution to handle
the boundaries between Fullscreen and PIP states and the trade-off
between TaskOrg and WindowManager. Once TaskOrganizer controls
all windowing modes it won't be needed.

Bug: 149947030
Test: TaskOrganizerTests
Change-Id: I7eeb1b5fb8c5d00a00b6de976f61484f1d067048
2020-03-10 08:51:37 -07:00
Leon Scroggins III
7432f1831c App transitions/thumbnails: Switch to HardwareBuffer
Bug: 148155907
Bug: 150395371
Test: go/wm-smoke

These previously used a GraphicBuffer created from a HARDWARE Bitmap to
parcel the Bitmap. As part of moving UI Rendering into a mainline
module, which will not include/expose GraphicBuffer,
Bitmap#createGraphicBufferHandle is being replaced by
Bitmap#getHardwareBuffer. Switch over to the now public API.

Change-Id: Id714a48a10fd03a03faa371e206e0c478ae1a4b7
2020-03-10 11:46:10 -04:00
Automerger Merge Worker
46783f48b3 Merge "Do not set early wakeup flag for inset animations" into rvc-dev am: ed3c321c9f am: 976aa9e24f am: c913d92b4c am: a268bacfc2
Change-Id: I071f64a373e02c9ea8d3d7af804032fb77a8a3c3
2020-03-10 13:11:47 +00:00
Jorim Jaggi
ed35b1779b Add OnControllableInsetsChangedListener
It's useful for apps to know which inset types they can currently
control, as otherwise they have to poll by calling
controlInsetsAnimation repeatedly.

This can be used when apps want to apply a custom animation
immediately during startup as soon as possible.

Fixes: 150780468
Test: InsetsControllerTest
Test: CTS will be added soon
Test: WindowInsetsActivity
Change-Id: Ic0388c11d759843d3ac9edd8ef23904c9ce05c46
2020-03-10 12:23:58 +00:00
Automerger Merge Worker
88da78569e Merge "Added @IntDef for DATA_SHARE_ERROR_ constants" into rvc-dev am: 4a4e1e45d0 am: 279f3dcc8b am: fd59e23273 am: 9a3f690ab2
Change-Id: If504d51dcfc93c99c0c88188c45733ce71cda6eb
2020-03-10 12:16:10 +00:00
Jorim Jaggi
ed3c321c9f Merge "Do not set early wakeup flag for inset animations" into rvc-dev 2020-03-10 12:12:09 +00:00
Yara Hassan
4a4e1e45d0 Merge "Added @IntDef for DATA_SHARE_ERROR_ constants" into rvc-dev 2020-03-10 11:04:12 +00:00
Automerger Merge Worker
d602ad7d7d Merge "Generate WindowInsets with new insets API" into rvc-dev am: 2a77f43bee am: c20552508d am: d93350c51c am: 687bd9460e
Change-Id: I51e4642bbcfc0cca08f658ae59d2e9ceb99f534b
2020-03-10 09:44:29 +00:00
Charles Chen
2a77f43bee Merge "Generate WindowInsets with new insets API" into rvc-dev 2020-03-10 08:46:30 +00:00