Commit Graph

16558 Commits

Author SHA1 Message Date
Baligh Uddin
4938aed9ec Merge "Remove annotations that have been relocated" 2021-04-29 14:01:59 +00:00
Wilson Wu
d4f85e0d55 Merge "Make IInputMethodPrivilegedOperations to async (6/N)" into sc-dev am: f5cded5a11
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14326777

Change-Id: Ic62149144851084e9bd79307d12b0c9716b7eef3
2021-04-29 13:49:30 +00:00
Wilson Wu
37051aef38 Make IInputMethodPrivilegedOperations to async (6/N)
-. Remove VoidResultCallback of applyImeVisibility.
   and let it be truly asynchronous.
-. Rename this method to applyImeVisibilityAsync.

Bug: 183587528
Test: atest CtsInputMethodTestCases
Change-Id: Ica564c526223d32641a2485c0c0f3490fe4bfd39
2021-04-29 16:05:05 +08:00
Treehugger Robot
9ce6414a52 Merge "Internal graphics package owners" am: 1084a81a68 am: 8f7c666464 am: 3bbfa132e8 am: 1b68aeee56
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1690227

Change-Id: I5cc9389ee4e73d6510a339067383c2a53c43b595
2021-04-29 04:07:54 +00:00
Treehugger Robot
1b68aeee56 Merge "Internal graphics package owners" am: 1084a81a68 am: 8f7c666464 am: 3bbfa132e8
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1690227

Change-Id: If739aeeea360f864710746e133bedc335808da9d
2021-04-29 03:38:14 +00:00
Treehugger Robot
3bbfa132e8 Merge "Internal graphics package owners" am: 1084a81a68 am: 8f7c666464
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1690227

Change-Id: Ic7ba3d5ea2be74c0860eb61d80aac078e17b48de
2021-04-29 03:35:43 +00:00
Yohei Yukawa
2876311a9f Merge "Make IInputMethodPrivilegedOperations to async (5/N)" into sc-dev am: c09a657113
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14326776

Change-Id: I61c31f03ffa13101dc82ff2b08601ab3bedb7c80
2021-04-29 02:45:36 +00:00
Yohei Yukawa
c09a657113 Merge "Make IInputMethodPrivilegedOperations to async (5/N)" into sc-dev 2021-04-29 00:45:17 +00:00
Lucas Dupin
56b401709b Internal graphics package owners
Bug: 186640057
Test: none
Change-Id: I59af9cbaa0fbc1b3206b9b3d852e845413aa9e71
2021-04-28 14:09:00 -07:00
Yohei Yukawa
bf6e4a99ba Merge "Make IInputMethodPrivilegedOperations to async (4/N)" into sc-dev am: 1d14a33860
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14326772

Change-Id: Ic33ce6d323e04c6050c72da95e7b65e0f4a3abae
2021-04-28 16:11:43 +00:00
Yohei Yukawa
1d14a33860 Merge "Make IInputMethodPrivilegedOperations to async (4/N)" into sc-dev 2021-04-28 15:45:58 +00:00
Siim Sammul
9018fc8c95 Merge "Add a version of SettingsObserver to BinderCallsStats and make it public so it could be used to collect binder latency data from bluetooth and telephony." into sc-dev am: afbe75fd4a
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14236409

Change-Id: Ie1c32c1c4a8f929f043e2c4e6100565de1532a10
2021-04-28 11:39:51 +00:00
Siim Sammul
afbe75fd4a Merge "Add a version of SettingsObserver to BinderCallsStats and make it public so it could be used to collect binder latency data from bluetooth and telephony." into sc-dev 2021-04-28 11:38:42 +00:00
Jason Hsu
c413418819 Merge "Add accessibility shortcut icon into adaptive icon" into sc-dev am: b9e5094100
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14278147

Change-Id: I1e97c4a362186f462284d1996a1c36c9cb8436b5
2021-04-28 10:23:27 +00:00
Jason Hsu
b9e5094100 Merge "Add accessibility shortcut icon into adaptive icon" into sc-dev 2021-04-28 10:02:14 +00:00
Wilson Wu
e702c9d381 Make IInputMethodPrivilegedOperations to async (5/N)
-. Remove VoidResultCallback of notifyUserAction.
   and let it be truly asynchronous.
-. Rename this method to notifyUserActionAsync.

Bug: 183587528
Test: atest CtsInputMethodTestCases
Change-Id: I384fd689b6bd1d418ff5208444fbba2c1eac6f85
2021-04-28 14:40:08 +08:00
jasonwshsu
5ade32bdf6 Add accessibility shortcut icon into adaptive icon
* add/modify icons list: color correction, color inversion,
magnification, extra dim

Fix: 184081577
Test: manual test
Change-Id: I5ceee75f0263072805af23a7bbdfc68d7008db6e
2021-04-28 14:08:41 +08:00
Wilson Wu
78a23141be Make IInputMethodPrivilegedOperations to async (4/N)
-. Remove VoidResultCallback of updateStatusIcon
   and let it be truly asynchronous.
-. Rename this method to updateStatusIconAsync.

Bug: 183587528
Test: atest CtsInputMethodTestCases
Change-Id: Ic7759354ec06a3293ea370ab7afe7422eb2d9356
2021-04-28 12:56:38 +08:00
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
58f933471d Add a version of SettingsObserver to BinderCallsStats and make it public so it could be
used to collect binder latency data from bluetooth and telephony.

Test: latency collection is unit tested, this is just an alternative settings configuration
Bug: 180584913
Change-Id: Ide51afb7eb26a96c7692bceb0a22585a74f08aa7
2021-04-27 18:47:00 +01: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
Chris Wailes
68f38b2feb Remove annotations that have been relocated
These annotations have been relocated to frameworks/libs/modules-utils.
This CL removes the files and updates necessary build rules.

Bug: 183133670
Test: m
Change-Id: I834b9f5320e0b6fe8cb9feb7194c82085b805e07
2021-04-26 14:06:34 -07: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