Commit Graph

15938 Commits

Author SHA1 Message Date
Tiger Huang
a049b3853c Merge "Remove references to hidden APIs from public Javadoc" into sc-dev 2021-01-28 17:05:31 +00:00
Tiger Huang
a67dff0d7b Merge "Revert "Add logs to indicate why a surface is invalid"" into sc-dev 2021-01-28 17:00:23 +00:00
Santos Cordon
9fb0bb91c6 Merge "Add DisplayGroup ID to DisplayInfo" into sc-dev 2021-01-28 14:52:02 +00:00
Tiger Huang
9b07b38688 Revert "Add logs to indicate why a surface is invalid"
This reverts commit 596e4fd4f7.
Because the root cause has been identified.

Bug: 175954493
Test: presubmit
Change-Id: Idcde497ffee1f10a4289520e154aa8b39eed1f78
2021-01-28 15:49:26 +08:00
Tiger Huang
c054c43815 Remove references to hidden APIs from public Javadoc
Otherwise, there will be inaccessible links which may confuse the
document reader.

Fix: 174863732
Test: presubmit
Change-Id: I4d6763e1cc1171f7ae657886f24e27576f856180
2021-01-28 15:19:14 +08:00
TreeHugger Robot
e95f58c7bd Merge "Implement the behavior after receiving auto translation request." into sc-dev 2021-01-28 06:28:49 +00:00
Yunfan Chen
5b401d84d9 Merge "Revert "Keep runtime insets types during layout"" into sc-dev 2021-01-28 05:27:25 +00:00
Ady Abraham
83043c0c9c Merge "Use setFrameRate for high refresh rate deny list" into sc-dev 2021-01-28 02:17:43 +00:00
Sean Stout
50f6173c52 Add DisplayGroup ID to DisplayInfo
This allows for DisplayGroup to be used outside of the Display and Power
subsystems.

Bug: 175919470
test: make
Change-Id: I4346196202b3fff8ac42b0a52a395d6fe61d8ea8
2021-01-27 23:46:38 +00:00
Ady Abraham
aa47a68239 Use setFrameRate for high refresh rate deny list
Add visibility to SurfaceFlinger into the high refresh rate deny list
and let SurfaceFlinger handle it. Previously WM was setting the
preferredDisplayModeId on the denied app's window. The old way prevented
SurfaceFlinger to use the frame rate override feature as it didn't
know that a specific app is causing the refresh rate spec to be limited.

With this change, SurfaceFlinger will limit the display refresh rate
based on the high refresh rate deny list, and if possible, will use the
frame rate override feature to change the display rate to a multiple,
allowing other animations to be smooth while the denied app remains in
the low refresh rate.

Bug: 170502573
Test: manual
Change-Id: Ib75a3c229cea298b65aa56dc1c1b20ca016059c4
Merged-In: Ib75a3c229cea298b65aa56dc1c1b20ca016059c4
2021-01-27 23:02:38 +00:00
Joanne Chung
7f9a46a3d3 Implement the behavior after receiving auto translation request.
Send the TranslationRequest which collected from the UI toolkit to
the TranslationService. And apply the result to the UI toolkit to
show the translated text.

Bug: 172969740
Bug: 177887860
Test: Verified by using a sample app and made sure the full flow work
and the text was replaced with translated text.

Change-Id: I1db4d1eabe5bc65d8785f13f760af54f74e46c97
2021-01-27 15:36:40 +00:00
Yunfan Chen
168bfd8e91 Revert "Keep runtime insets types during layout"
This reverts commit b863e6e44b.

Reason for revert: Made G3Compat layout related tests flaky. See b/177911751

Bug: b/177911751
Test: Treehugger

Change-Id: I7e295beedc6581c01328a82b426a6d13feac2249
2021-01-27 21:14:30 +09:00
Wilson Wu
c4663ba6a9 Make IInputMethodManager to oneway (10/N)
1. Comply following methods to IVoidResultCallback to
emulate current behavior.

-. setAdditionalInputMethodSubtypes
-. removeImeSurface
-. removeImeSurfaceFromWindow

2. Add "oneway" to all methods which we already apply them
to result-callback model.

Bug: 163453493
Test: Manual test with keyboard
Test: atest CtsInputMethodTestCases
Test: atest DisplayImeControllerTest
Change-Id: Icb396ae5d74060af69c4ecb16723b2e37b9f2067
2021-01-27 09:12:47 +00:00
Chavi Weingarten
4fa4dd1056 Merge "Remove detachChildren" 2021-01-26 17:13:19 +00:00
Ahaan Ugale
70f17d9f8e Merge "Add initial View's APIs for auto translation" 2021-01-25 21:08:43 +00:00
chaviw
ce7428972d Remove detachChildren
There's no longer a need to have detachChildren since we only used it to
ensure the children were not deleted before the exit animation. The
timing when closing an app has changed so the app is not stopped until
everything has closed. This means the children of the window will not
try to remove themselves until after the animation completes

Test: Close app with SurfaceView. No hole in exit animation
Bug: 177557720

Change-Id: I48642864d5315b2bf563c675756283fa73554de4
2021-01-25 11:53:55 -08:00
Chavi Weingarten
d27752a9e6 Merge "Ensure opacity is update on the VRI SC when format changes" 2021-01-25 17:14:50 +00:00
Santos Cordon
c89c2f8ea1 Merge "Support folding display in screenshot controller." 2021-01-25 13:26:09 +00:00
Joanne Chung
a5fa9bc0f7 Add initial View's APIs for auto translation
The initial APIs for auto translation flow. The implementation of
sending request and dealing spans will on the follow up changes.

Bug: 172969740
Test: manual build pass. Use a sample app to call api get expected
result.

Change-Id: Ief45190026e6205ff18366c1aaba8f424a4df00c
2021-01-25 18:57:14 +08:00
Joanne Chung
d9e22f9ac9 Merge "Find the activity to notify Ui translation state" 2021-01-25 02:50:32 +00:00
Charles Chen
d14dcb3394 Merge "Introduce WM#LayoutParams mWindowContextToken" 2021-01-25 02:10:15 +00:00
Tiger Huang
5b28dc65de Merge "Remove beginLayoutLw and redundant logic about layout" 2021-01-24 21:07:27 +00:00
chaviw
987eb1ca65 Ensure opacity is update on the VRI SC when format changes
Opacity is set based on format change. Previously, WMS would recreate
the surface when the format was changed and set the new opacity.
However, since ag/13348893, format changes no longer recreate a surface.
Therefore, we also need to update the opacity flag when format is
changed in VRI.

Test: Play video from camera app
Fixes: 178062437
Change-Id: I3160a555bff24ab910235eaef9118d3aeed59355
2021-01-22 10:34:03 -08:00
Tiger Huang
61adf1f6ce Remove beginLayoutLw and redundant logic about layout
This CL makes every window always ready to layout. DisplayFrames and
InsetsState will be always up-to-date so that we don't need to update
them in beginLayoutLw anymore.

This CL also removes PRIVATE_FLAG_PRESERVE_GEOMETRY which is not used by
anyone.

This can be a step to make the client compute its window frame locally.

Bug: 161810301
Test: atest DisplayPolicyLayoutTests DisplayPolicyTests
            LaunchParamsControllerTests SizeCompatTests
            TaskLaunchParamsModifierTests WallpaperControllerTests
Change-Id: I43a3713246ae67fc4da40eae9bbd6d3c8e26cbb9
2021-01-22 18:24:21 +00:00
Santos Cordon
a31ffa9b4b Support folding display in screenshot controller.
Since the underlying display device can now change for the default
logical display, we need to remove some caching that is done in
screenshot controller to appropriately grab the correct display
content when a sceenshot is requested.

Test: Manually test that a screenshot is taken before and after
      a device's default display changed (folded device folds).
Bug: 173144019
Change-Id: I8c8057f0eba78676580fa23c90cdf72cb6f1df9d
2021-01-22 15:57:53 +00:00
Joanne Chung
9107e213a6 Find the activity to notify Ui translation state
The implementation after receiving UiTranslatinManager calls. The
implementation after receiving state change will on the follow up
changes.

Bug: 172969740
Test: manual. Use a sample code to call the APIs, the methods are
called as expected.

Change-Id: Ic41c994055b4c580e2bff75313b6498db51b6130
2021-01-22 17:35:41 +08:00
TreeHugger Robot
aca883298a Merge "Add supportedAttributes param for spell checker." 2021-01-21 19:45:17 +00:00
Josh Tsuji
fd577558f6 Merge "Adds the power button unlock animation and plumbs detailed wake/sleep reason to System UI." 2021-01-21 18:55:52 +00:00
Charles Chen
3c3b134e7d Introduce WM#LayoutParams mWindowContextToken
The window context token is passed to the server side by attaching
to the layout params in WM#addView to receive configuration changes.

Bug: 159767464
Bug: 153369119
Test: atest
WindowContextTest#testCreateWindowContextWindowManagerAttachClientToken

Change-Id: I658b09727b42eb9c2fa2cea63f8a312761e0a9aa
2021-01-21 17:46:57 +08:00
Linus Tufvesson
076c0697ee Merge "Update system application overlay api" 2021-01-21 09:42:02 +00:00
TreeHugger Robot
8197beb008 Merge "Make IInputMethodManager to oneway (9/N)" 2021-01-21 03:10:40 +00:00
TreeHugger Robot
68c6e0a8b6 Merge "Pass in window name along with focus request" 2021-01-21 01:23:35 +00:00
Kohsuke Yatoh
036c61877a Merge "Add missing textservice OWNERS files." am: 0f4112a760 am: 49023f3cd8 am: 782d427971
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1554552

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ie00b4339b17b58e4041b506d23c8f7a984839481
2021-01-21 01:20:06 +00:00
Josh Tsuji
cb27bd1a83 Adds the power button unlock animation and plumbs detailed wake/sleep reason to System UI.
Test: unlock the phone using either the power button or lifting it
Bug: 169693662
Change-Id: I567555e6ee04f369ce7f4b32744639be70583112
2021-01-20 20:08:37 -05:00
Kohsuke Yatoh
782d427971 Merge "Add missing textservice OWNERS files." am: 0f4112a760 am: 49023f3cd8
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1554552

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ifeae70e9e0e68b1f0420c95676c3a2445c9433ef
2021-01-21 01:00:21 +00:00
Kohsuke Yatoh
0f4112a760 Merge "Add missing textservice OWNERS files." 2021-01-20 23:16:33 +00:00
Chavi Weingarten
857a3713bb Merge "Remove preserve surfaces when surface format changes." 2021-01-20 22:08:10 +00:00
Kohsuke Yatoh
93d47b0487 Add supportedAttributes param for spell checker.
Bug: 166304720
Test: atest CtsInputMethodTestCases:SpellCheckerTest
Change-Id: I22f4a59a0c8ccb43f799351062f9fabca42403cd
2021-01-20 20:06:12 +00:00
Kohsuke Yatoh
b1d2fe86f7 Add missing textservice OWNERS files.
Test: n/a
Change-Id: I56939ce3a22c72ac489e4d9248de9e0ce4ee9413
2021-01-20 18:53:11 +00:00
Linus Tufvesson
1090a9bfc3 Update system application overlay api
Convert the SYSTEM_FLAG into a PRIVATE_FLAG and expose a method for
setting it.

This API is easier to use since it makes it possible to setup the
LayoutParams before having access to the Window.

Bug: 171177581
Test: atest CtsWindowManagerDeviceTestCases:HideOverlayWindowsTest
Change-Id: I0bf3857e3dbf67f8833b3b3847b2253d31b9d4a5
2021-01-20 17:37:14 +00:00
Galia Peycheva
f78234f112 Merge changes from topic "blur_system_api"
* changes:
  Make BackgroundBlurDrawable a SystemApi
  Make window background blurs SystemApi
  Add permission for blur SystemApi
2021-01-20 05:04:01 +00:00
TreeHugger Robot
3f8337ff57 Merge "Add APIs that can notify client ui translation state." 2021-01-20 04:43:54 +00:00
Tiger Huang
d4391287d5 Merge "Add BEHAVIOR_DEFAULT for visual immersive mode" 2021-01-20 04:20:40 +00:00
Treehugger Robot
ea8b0e9eb8 Merge "Make me an owner of accessibility frameworks" am: f79a0fd564 am: b8ec02815b am: d65928539b
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1553965

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I505c172ee9d683a56abf517a14e31534b58d784c
2021-01-19 22:57:32 +00:00
Treehugger Robot
d65928539b Merge "Make me an owner of accessibility frameworks" am: f79a0fd564 am: b8ec02815b
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1553965

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ic7d1237a3f2b08f6ce6017e29b189f1331b61bba
2021-01-19 22:43:42 +00:00
Mark Renouf
e857186c7d Merge "Guard against NPE when root view is detached" 2021-01-19 22:40:38 +00:00
Treehugger Robot
f79a0fd564 Merge "Make me an owner of accessibility frameworks" 2021-01-19 19:54:14 +00:00
TreeHugger Robot
0ba4311f04 Merge "Sync with blast transactions in SurfaceView" 2021-01-19 16:48:23 +00:00
Tiger Huang
d878909a9b Add BEHAVIOR_DEFAULT for visual immersive mode
BEHAVIOR_DEFAULT lets the user can use single gesture to navigate while
system bars are hidden in gesture navigation mode. The user doesn't
need to make navigation bar visible before performing navigation.

BEHAVIOR_DEFAULT will be the default behavior, which means if there is
no system bar behavior (or any legacy sysui flag about immersive)
specified, the behavior will be BEHAVIOR_DEFAULT instead of
BEHAVIOR_SHOW_BARS_BY_TOUCH.

BEHAVIOR_SHOW_BARS_BY_TOUCH and BEHAVIOR_SHOW_BARS_BY_SWIPE are
deprecated. Their behavior is equivalent to BEHAVIOR_DEFAULT now. The
logic about HideNavInputEventReceiver is removed.

Bug: 168913586
Test: atest WindowInsetsControllerTests ViewRootImplTest
            DisplayPolicyTests CommandQueueTest
            LightsOutNotifControllerTest RegisterStatusBarResultTest
Change-Id: Ic818e323abbb38b57bef9fc36fb1afef2a007f1b
2021-01-19 23:33:21 +08:00
Lan Wei
ff39778d5d Merge "Public some APIs in TextServicesManager for spell checker" 2021-01-19 13:10:03 +00:00