Commit Graph

15966 Commits

Author SHA1 Message Date
TreeHugger Robot
dc22edcddb Merge "Promote mWindowContextToken to TestApi" into sc-dev 2021-02-02 15:55:35 +00:00
John Reck
7cf75f0b15 Merge "Add stretch plumbing" into sc-dev 2021-02-02 14:49:42 +00:00
Adrian Roos
84199909eb Merge changes from topic "nullablecollection" into sc-dev
* changes:
  API: Suppress existing NullableCollections lints (TaskOrganizer)
  API: Suppress existing NullableCollections lints (S edition)
2021-02-02 09:24:38 +00:00
Chenxi Ni
f5c2cf83e9 Merge "Fix InputConnection#performSpellCheck logic:" into sc-dev 2021-02-02 07:35:29 +00:00
Chris Ye
2b686e85f1 Merge "New API methods to access external battery info" into sc-dev 2021-02-02 06:42:37 +00:00
Charles Chen
bdd07c2982 Promote mWindowContextToken to TestApi
... to test it on WindowManager_LayoutParamsTest

Test: atest WindowManager_LayoutParamsTest
Bug: 159767464
Bug: 153369119
Change-Id: Ibec7ce213ca614c4c40bdb4ce8b7cad9b2ca958e
2021-02-02 09:52:41 +08:00
Yunfan Chen
2a1aab36e3 Merge "Reland "Keep runtime insets types during layout"" into sc-dev 2021-02-02 01:32:31 +00:00
TreeHugger Robot
31741788ab Merge "Add SOURCE_SENSOR to InputDevice API." into sc-dev 2021-02-02 01:02:37 +00:00
Kim Low
922ed181fe New API methods to access external battery info
Created new API methods that allow apps to access external battery info
of devices such as bluetooth connected gamepads.

Bug: 161633432
Test: atest android.hardware.input.cts.tests.SonyDualshock4BluetoothTest
      atest android.hardware.input.cts.tests.SonyDualshock3UsbTest

Change-Id: Iba59fc9a259818b03c24ee8c2c49601952ed65a3
Merged-In: Iba59fc9a259818b03c24ee8c2c49601952ed65a3
2021-02-01 22:16:44 +00:00
Chris Ye
4aea1b05f4 Add SOURCE_SENSOR to InputDevice API.
Add input device source type SOURCE_SENSOR to InputDevice API.
SOURCE_SENSOR is not used to identify KeyEvent or MotionEvent but it can
be used to classifiy an input device is sensor capable.

Bug: 170131554
Test: atest InputDeviceSensorManagerTest
Change-Id: Iae93a771e69dda1f7bb8577632ea48ca79189b30
Merged-In: Iae93a771e69dda1f7bb8577632ea48ca79189b30
2021-02-01 22:13:10 +00:00
Chavi Weingarten
1999828918 Merge "Added new arguments for screenshot request" into sc-dev 2021-02-01 21:57:29 +00:00
John Reck
5cb290bf54 Add stretch plumbing
Bug: 179047472
Test: builds & boots

Change-Id: I30b5d6683160af598f98555f61af1cf5a7639bbe
2021-02-01 14:41:07 -05:00
Adrian Roos
d7f33cd648 API: Suppress existing NullableCollections lints (S edition)
Bug: 152525509
Test: make checkapi
Change-Id: Idf96709bf93ef49ca5ad3cdd1f14d06e0d9e09d7
Exempt-From-Owner-Approval: API lint large scale change
2021-02-01 14:54:34 +00:00
Mariia Sandrikova
bc1f09bdb3 Merge "Allow status and navigation bars to be semi-transparent in letterbox mode." into sc-dev 2021-02-01 12:38:12 +00:00
Bernardo Rufino
bf1903d277 Merge "Open IM.getMaximumObscuringOpacityForTouch() and update docs." into sc-dev 2021-02-01 09:55:38 +00:00
Chenxi Ni
821234c8dd Fix InputConnection#performSpellCheck logic:
- Change to trigger full content spell check when calling InputConnection#performSpellCheck.
 - When calling InputConnection#performSpellCheck, forces to do spell check even user is editing the word.

Bug: 177947314
Test: atest CtsInputMethodTestCases:SpellCheckerTest
Test: Manually test the add to dictionary case with Gboard
Change-Id: I4f7c2e638e517fe91776ef0a285ee20e4cdc9a92
2021-02-01 17:49:16 +08:00
Yunfan Chen
6b0fd3669d Reland "Keep runtime insets types during layout"
This reverts commit 168bfd8e91.

Suspicious regression is not reproducible. Will keep communicate with
the POC and try to resolve them later.

Test: Treehugger
Test: testHideIme_WMS
Bug: 161689946
Change-Id: I029f94efb6b7054215888c6491e0d72cccf2ce09
2021-02-01 18:02:48 +09:00
Hongwei Wang
87528b5f9e Merge "Revert "SyncRtSurfaceTransactionApplier: Use BLASTSync"" into sc-dev 2021-01-30 00:15:49 +00:00
chaviw
98afaa6e1c Added new arguments for screenshot request
Added frameScaleX and frameScaleY to replace frameScale to allow callers
to specify an X and Y scale separately.

Added grayscale flag to allow the caller to take the screenshot
in grayscale.

Test: Screenshot in grayscale
Bug: 155825630
Change-Id: I00521c2fbc1a847586bde9c23beafa343115d4f5
2021-01-29 13:49:23 -08:00
TreeHugger Robot
ec5e4e5727 Merge "Add enable backpressure layer flag" into sc-dev 2021-01-29 17:52:52 +00:00
Mariia Sandrikova
3b9da58ab5 Allow status and navigation bars to be semi-transparent in letterbox mode.
Before this change, opaque bars were drawn over letterboxed activities to prevent showing a transparent bar over them because that can make notification icons or navigation buttons unreadable due to contrast between letterbox background and an activity. For instance, this happens when letterbox background is solid black while activity is white. To imporve UI in this case, semi-transparent bars are now allowed to be drawn over letterboxed activities.

Test: atest SystemUITests + manual letterbox testing
Fix: 175482966
Fix: 170216100
Change-Id: I35e35d01df7d25a5d77eb64af4e6b800f5020487
2021-01-29 17:28:15 +00:00
Hongwei Wang
de64ae1792 Revert "SyncRtSurfaceTransactionApplier: Use BLASTSync"
This reverts commit 2b0b88aa53.

Reason for revert: Regression, see b/178770656

Bug: 178770656
Test: Enter PiP from Play Movies
Change-Id: I2cf5bd035520676091f02ba977c671fcfbe60bf7
2021-01-29 17:27:56 +00:00
Shawn Lin
7ee87037f5 Merge "Create an API to get a cutout path" into sc-dev 2021-01-29 12:42:48 +00:00
TreeHugger Robot
116ad8d147 Merge "SyncRtSurfaceTransactionApplier: Use BLASTSync" into sc-dev 2021-01-28 23:58:12 +00:00
Vishnu Nair
cc0297c2b2 Add enable backpressure layer flag
Test: presubmit
Bug: 176967609
Change-Id: I1875f1d4098154fac55d48e1f68babc3eed5a8ff
2021-01-28 11:50:29 -08:00
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
Bernardo Rufino
03ec50d528 Open IM.getMaximumObscuringOpacityForTouch() and update docs.
Bug: 158002302
Test: atest WindowUntrustedTouchTest
Change-Id: I735169e0508678e07431704f184a938ffada53cc
Exempt-From-Owner-Approval: Approved on main branch
2021-01-28 15:30:54 +00:00
Santos Cordon
9fb0bb91c6 Merge "Add DisplayGroup ID to DisplayInfo" into sc-dev 2021-01-28 14:52:02 +00:00
shawnlin
f7ff55217c Create an API to get a cutout path
- Added a new API to get the cutout paths.
- Create a @hide class CutoutPathParserInfo
  - Used to store the needed info to create the cutout paths.
  - Will be used when DisplayCutout.getCutoutPath() is called to
    create the cutout paths.

Bug: 172646505
Test: atest DisplayCutoutTest DisplayContentTests WmDisplayCutoutTest
Change-Id: Ief92ce4466f6bffb2a9375388b71de43049b4eef
2021-01-28 19:12:54 +08: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
Robert Carr
2b0b88aa53 SyncRtSurfaceTransactionApplier: Use BLASTSync
Helps us down the path of deprecating deferred transaction. BLASTSync
should also be easier to debug and produce less overhead on the server.

Bug: 168505645
Test: Existing tests pass
Change-Id: I7447b54d93ee8db0c5b6307372ee91e08c489af4
2021-01-27 23:52:54 +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