Commit Graph

16538 Commits

Author SHA1 Message Date
Jeff DeCew
eca47e4872 Merge "Change icon alignment for collapsed Conversation groups" into sc-dev am: ac431bc027
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14327163

Change-Id: I27e1fbf878e9b0815f4d50082b0fbfe3849e153c
2021-04-27 19:35:07 +00:00
Jeff DeCew
ac431bc027 Merge "Change icon alignment for collapsed Conversation groups" into sc-dev 2021-04-27 19:26:55 +00:00
Siim Sammul
c099784ff9 Merge "Enable binder latency collection from system_server for dogfood." into sc-dev am: 909042e9a4
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14293717

Change-Id: I345ab30aa8f03489cb47b09b000829ea5961250d
2021-04-27 17:41:36 +00:00
Siim Sammul
909042e9a4 Merge "Enable binder latency collection from system_server for dogfood." into sc-dev 2021-04-27 17:32:02 +00:00
Jeff DeCew
2bd9821e71 Change icon alignment for collapsed Conversation groups
Fixes: 185512447
Test: manual; visual testing
Change-Id: I4c007eef035b1bc225d0bea52c5b330ecabd670c
2021-04-27 09:36:08 -04:00
Ming-Shin Lu
2411f6be26 Merge "Consolidate InputMethodManager#toggleSoftInput reliability" into sc-dev am: 20f2cdd39a
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14140208

Change-Id: I269e8fa95dccd788bb0f2e6faebf7dc97e8b5419
2021-04-27 02:41:47 +00:00
Ming-Shin Lu
20f2cdd39a Merge "Consolidate InputMethodManager#toggleSoftInput reliability" into sc-dev 2021-04-27 02:32:35 +00:00
Dmitri Plotnikov
c1e48fa54a Merge "Use POWER_COMPONENT_ constants instead of TIME_COMPONENT_... constants" into sc-dev am: 840f73e773
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14298098

Change-Id: Ic85d6bdc9d39f242fb83d9d93f70d38fc2397f0e
2021-04-26 22:47:40 +00:00
Dmitri Plotnikov
840f73e773 Merge "Use POWER_COMPONENT_ constants instead of TIME_COMPONENT_... constants" into sc-dev 2021-04-26 22:44:26 +00:00
Jeff DeCew
99d35964c6 Merge "Fix layout oscillation at the root of a few bugs." into sc-dev am: 2c87b91f85
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14295214

Change-Id: I4212e46da5fc4b15707e5c7a622c8e622f1afb60
2021-04-26 22:10:02 +00:00
Jeff DeCew
2c87b91f85 Merge "Fix layout oscillation at the root of a few bugs." into sc-dev 2021-04-26 21:44:14 +00:00
TreeHugger Robot
8f09900d83 Merge "Async startInputOrWindowGainedFocus" into sc-dev am: ecfc497460
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14278088

Change-Id: Id554a6a5934bd55ab9f3668e8849d166c116a181
2021-04-26 19:22:51 +00:00
TreeHugger Robot
ecfc497460 Merge "Async startInputOrWindowGainedFocus" into sc-dev 2021-04-26 19:06:26 +00:00
Ming-Shin Lu
2c8068c98a Consolidate InputMethodManager#toggleSoftInput reliability
As previously InputMethodManager#toggleSoftInput is designed to tell
InputMethodService directly through IInputMethodSession to toggle
soft-keyboard visibility, this could be happened some unexpected IME
visibility issues that when the app calling this method in the wrong
state like the app toggling IME visibility when the app is off-screen
but unexpectedly it ends up showing soft-keyboard when the IME is in
invisible state.

To minimize the app compatibility without changing the public API
surface and reducing unexpected IME visibilty been toggled behavior
especially happens when switching the apps, changed the internal IPC
protocols to call IMMS#showSoftInput or IMMS#hideSoftInput directly
according the previous IME consumer requested visibility state,
so that in IMMS side can validate to see if the token user is
still focused and ready to toggle the IME visibility to show or hide.

As the result, we deprecated toggleSoftInput and
toggleSoftInputFromWindow to state the reason as the above, and
recommand to use showSoftInput or hideSoftInputFromWindow instead,
so that framework side no longer has to call {InputMethodSessionWrapper,
InputMethodSessionImpl}#toggleSoftInput.

Bug: 182071625
Test: m checkapi doc-comment-check-docs
Test: atest KeyboardVisibilityControlTest#testToggleSoftInput
Change-Id: I390dc029e7bcc30c200926a9bfbbbd0268a1f714
2021-04-27 01:34:12 +08:00
Jeff DeCew
fb33675a10 Fix layout oscillation at the root of a few bugs.
Note: The CL which introduced this bug was Ic9cd89e899a03010a523bee4f1ef72fbfbd8b43f

Test: visual, manual
Test: Use TalkBack to validate that the size of the touch target is still >48dp tall.
Test: Use an app (e.g. LINE) which only posts the most recent message in an update to send 2+ messages to the device (to make the unread number visible), and validate that 1) the text is visible, and 2) there are not thousands of View errors spamming adb.
Fixes: 182474419
Change-Id: Ia23113f5903fe2c508fc2dbad99160471dcec5fd
2021-04-26 10:36:58 -04:00
Siim Sammul
f95c09e3f4 Enable binder latency collection from system_server for dogfood.
Bug: 180584913
Test: code is unit tested
Change-Id: I68ab7f3bfc3364505ab6005933c2dc92f6eb486e
2021-04-26 14:22:26 +01:00
Wilson Wu
5e2d9f271d Async startInputOrWindowGainedFocus
We ignore the result if startInputReason is
WINDOW_FOCUS_GAIN_REPORT_WITH_CONNECTION or
WINDOW_FOCUS_GAIN_REPORT_WITHOUT_CONNECTION
in startInputOrWindowGainedFocus.

Introduce USE_REPORT_WINDOW_GAINED_FOCUS_ASYNC
flag to control following behavior:

-. Don't wait the result if it only report the
   focus gain. Have another IPC for this case
   to prevent the UI thread be blocked.

-. Throw the exception to the client side if it
   happened.

Bug: 185928120
Test: atest CtsInputMethodTestCases
Change-Id: Ic584203c1221fbae17f5e2d8f09e3992df061646
2021-04-26 17:13:03 +08:00
Lucas Dupin
19e83beb08 Merge "Color extraction OWNERS" am: 9ed1dac67c am: 4111abc621 am: f9215ba0ef am: 15565a139c
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1685208

Change-Id: Iee7ff943137aaa584611d3bab9deb8ecb209ce9c
2021-04-25 02:44:09 +00:00
Lucas Dupin
15565a139c Merge "Color extraction OWNERS" am: 9ed1dac67c am: 4111abc621 am: f9215ba0ef
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1685208

Change-Id: I68ae0f0233134718317dac205deac5a7a61d3d6d
2021-04-25 02:14:08 +00:00
Lucas Dupin
f9215ba0ef Merge "Color extraction OWNERS" am: 9ed1dac67c am: 4111abc621
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1685208

Change-Id: I4a1b6666bbb1abd91641b256c3b5a2ddd119ca04
2021-04-25 02:00:36 +00:00
Lucas Dupin
f4630aabde Merge "A new shade pull down animation" into sc-dev am: 477aab1fa3
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14177137

Change-Id: I00dd001d977ddcca3461cf259ae4301208c7287d
2021-04-25 01:27:10 +00:00
Lucas Dupin
477aab1fa3 Merge "A new shade pull down animation" into sc-dev 2021-04-25 01:03:18 +00:00
Lucas Dupin
370279459d Color extraction OWNERS
Bug: 184891403
Test: none
Change-Id: Ieba5767a8c6f465bf8eca28c277aba5b9a6b7f9b
2021-04-24 13:51:21 -07:00
Lucas Dupin
976de38e37 A new shade pull down animation
Test: manual
Test: atest ScrimViewTest
Test: atest ScrimControllerTest
Bug: 185683835
Fixes: 184891403
Change-Id: I1c51f3dc0d8afe97457aea8712c4322ebbda6ae4
2021-04-24 13:08:34 -07:00
Santos Cordon
c772dc3b8f Merge "Add listener for brightness-specific changes." into sc-dev am: 33946ea33f
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14018899

Change-Id: I60a7bebd1e92f0edb2f1ef1d6dfeff6eda09dc00
2021-04-24 15:59:26 +00:00
Santos Cordon
33946ea33f Merge "Add listener for brightness-specific changes." into sc-dev 2021-04-24 15:38:20 +00:00
TreeHugger Robot
45e5becea1 Merge "Avoid NetInitiatedActivity overlaid by non-system apps" into sc-dev am: 7edccec5c6
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14297371

Change-Id: Ib5d8ac03d12cf907e633798113dca88556d36d4b
2021-04-24 04:07:13 +00:00
TreeHugger Robot
7edccec5c6 Merge "Avoid NetInitiatedActivity overlaid by non-system apps" into sc-dev 2021-04-24 03:41:24 +00:00
Dmitri Plotnikov
70b37cbf6a Use POWER_COMPONENT_ constants instead of TIME_COMPONENT_... constants
Bug: 186006876
Test: atest FrameworksCoreTests:com.android.internal.os.BatteryStatsTests
Change-Id: Ie52616e8d7b0d5c848802af94aeb3d3780af117a
2021-04-23 14:39:28 -07:00
Santos Cordon
e5dae0ddc5 Add listener for brightness-specific changes.
Add FLAG to registerDisplayListener method to receive
brightness-specific changes.

getBrightnessInfo() method added to
android.view.Display to get brightness value, min, max
and highBrightnessMode status.

Bug: 168210311
Bug: 171023136
Test: atest com.android.server.display
Change-Id: I581e86e039cc7cf1bbca4cf7af03daa41dbddfe0
2021-04-23 22:18:55 +01:00
Yu-Han Yang
b7e17b9a74 Avoid NetInitiatedActivity overlaid by non-system apps
Bug: 181588735
Test: tests passing
Change-Id: I95868b786ed8a57f77f4f27fde96e88c6b9f04dc
2021-04-23 13:59:47 -07:00
Song Hu
69bca26d4c Merge "Query and surface Quick Share chip before screenshot image compress/export. Update chip intent, once image URL is available after compress/export." into sc-dev am: 0482828ca6
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14282677

Change-Id: I4d26df93ce73b7d010c4901c5c4b4cfac29e3065
2021-04-23 17:27:27 +00:00
Song Hu
0482828ca6 Merge "Query and surface Quick Share chip before screenshot image compress/export. Update chip intent, once image URL is available after compress/export." into sc-dev 2021-04-23 17:10:16 +00:00
Jorim Jaggi
82a9c3112a Merge "Only start tracing in the next frame" into sc-dev am: 469c53f256
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14294130

Change-Id: I969bd43cd592c96cc22c1953d8dd83542dd2404c
2021-04-23 16:45:53 +00:00
Jorim Jaggi
469c53f256 Merge "Only start tracing in the next frame" into sc-dev 2021-04-23 16:23:12 +00:00
Jorim Jaggi
e941d4e58b Only start tracing in the next frame
In order to match tracing markers with the metrics, we should start
the tracing marker at the beginning of the next frame, as this is
also the point in time where we start counting janky frames.

Test: Take trace, inspect
Bug: 185902609
Change-Id: I2ec70b3fc2d3236bc24891ef698fdd7ac2917b01
2021-04-23 15:20:10 +02:00
Song Hu
e55e544fef Query and surface Quick Share chip before screenshot image compress/export. Update chip intent, once image URL is available after compress/export.
Test: test on local device
Bug: 185423664
Change-Id: I2710a727d4fc4fabaa1404d965feaa0c97d502fc
2021-04-23 05:36:10 -07:00
Tony Huang
88a6250873 Merge "Make AppTransition animations sharable (3/n)" into sc-dev am: faa060ae15
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13640529

Change-Id: Ib8bf64e9aed632aca5f6184b9aca4d4003c708b2
2021-04-23 04:06:00 +00:00
Tony Huang
faa060ae15 Merge "Make AppTransition animations sharable (3/n)" into sc-dev 2021-04-23 04:03:10 +00:00
Tianjie Xu
0bc4425974 Merge changes I296c1011,I05695607 am: 58deb1cfc1 am: c9674eec21 am: 676422f239 am: cfab9a00a9
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1682127

Change-Id: Ida7d9f738cda5d876a4c634ec83ce710c48df204
2021-04-23 00:00:01 +00:00
Tianjie Xu
cfab9a00a9 Merge changes I296c1011,I05695607 am: 58deb1cfc1 am: c9674eec21 am: 676422f239
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1682127

Change-Id: If10475c3af8fc72442dbc8c2933b1f6561c87174
2021-04-22 23:40:17 +00:00
Tianjie Xu
676422f239 Merge changes I296c1011,I05695607 am: 58deb1cfc1 am: c9674eec21
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1682127

Change-Id: I8328f17b833c9b5673e5fab258be39e59e159c5f
2021-04-22 23:12:14 +00:00
Evan Severson
47426c23c0 Merge "Remove package manager feature for toggles" into sc-dev am: 171fe09c3c
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14194146

Change-Id: I8d9bb177b97bd549ab6683220b6b622bda62f335
2021-04-22 16:43:01 +00:00
Evan Severson
171fe09c3c Merge "Remove package manager feature for toggles" into sc-dev 2021-04-22 16:38:36 +00:00
Tony Huang
1c7fcdb9ca Make AppTransition animations sharable (3/n)
Handle animation include keyguard, voice interaction and relaunch
in default shell transition.

Bug: 178678389
Test: manual
Change-Id: I45e3f400bc3537bbbcd9d45f388312b8fe962579
2021-04-22 14:49:16 +08:00
Wilson Wu
d6ea7ae31f Merge "Make IInputMethodPrivilegedOperations to async (3/N)" into sc-dev am: 75f46d33c8
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14206614

Change-Id: I3bb4a0082e092f23309de9483a298c49d61bdac5
2021-04-22 05:10:06 +00:00
Wilson Wu
75f46d33c8 Merge "Make IInputMethodPrivilegedOperations to async (3/N)" into sc-dev 2021-04-22 04:50:11 +00:00
Dmitri Plotnikov
bed8984efb Merge "Save power component names in the summary parcel for MeasuredEnergySnapshot" into sc-dev am: 05b84c584e
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14254638

Change-Id: I464d144d52c9b63860e56773762fb31adc67e4f4
2021-04-21 21:03:19 +00:00
Dmitri Plotnikov
05b84c584e Merge "Save power component names in the summary parcel for MeasuredEnergySnapshot" into sc-dev 2021-04-21 20:58:32 +00:00
Pinyao Ting
90829a2c13 Merge "Implement Device Flag for shortcut integration with AppSearch" into sc-dev am: d9b11089e7
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14242637

Change-Id: I5ab619a9e28c17deac6cc80d61c19000186fe162
2021-04-21 07:52:05 +00:00