Commit Graph

16243 Commits

Author SHA1 Message Date
James O'Leary
a23d054838 Color appearance model library
Create colors using CAM16 hue and chroma, L*a*b* L*,
and map them to RGB without distortion.

Test: atest FrameworksCoreTests:com.android.internal.graphics.cam
.CamTest, all passed. No link, atest/my build are broken and cannot
upload results.
Bug: 186640057
Change-Id: I64b605dd452d64e57be0047d2e4672917c01c2a8
2021-04-29 11:40:47 -04:00
Yohei Yukawa
1d14a33860 Merge "Make IInputMethodPrivilegedOperations to async (4/N)" into sc-dev 2021-04-28 15:45:58 +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
b9e5094100 Merge "Add accessibility shortcut icon into adaptive icon" into sc-dev 2021-04-28 10:02:14 +00: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
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
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
20f2cdd39a Merge "Consolidate InputMethodManager#toggleSoftInput reliability" into sc-dev 2021-04-27 02:32:35 +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
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
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
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
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
33946ea33f Merge "Add listener for brightness-specific changes." into sc-dev 2021-04-24 15:38:20 +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
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
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
faa060ae15 Merge "Make AppTransition animations sharable (3/n)" into sc-dev 2021-04-23 04:03:10 +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
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
75f46d33c8 Merge "Make IInputMethodPrivilegedOperations to async (3/N)" into sc-dev 2021-04-22 04:50:11 +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
d9b11089e7 Merge "Implement Device Flag for shortcut integration with AppSearch" into sc-dev 2021-04-21 07:24:42 +00:00
Tianjie
6720f179f8 Check the return value of RoR preparation/clear
The corresponding functions already has a boolean return value in the
reboot escrow manager. So expose the return value to the recovery
system.

Test: build, check return value of request
Change-Id: I056956075868ab62ba6a43259242c4521c1c1bfe
2021-04-20 22:12:18 -07:00
Dmitri Plotnikov
442b6a80a4 Save power component names in the summary parcel for MeasuredEnergySnapshot
This is the second attempt at Ibb68bb2ee62678db5f3b30c4f2ef607006ccc81b, which
broke a test

Bug: 185534915
Test: mp :BatteryStatsViewer && adb shell am start -n com.android.frameworks.core.batterystatsviewer/.BatteryStatsViewerActivity
  and check that custom component is displayed as "GPU", not "CUSTOM_10000"
Test: atest FrameworksServicesTests:com.android.server.am.MeasuredEnergySnapshotTest

Change-Id: I9f65488a682233c49d47d73fc9426b76aab07627
2021-04-20 18:24:54 -07:00
Evan Severson
6a8d3dc686 Remove package manager feature for toggles
Create a dedicated api in the sensor privacy service to check if the
toggle is supported.

Also address some other api feedback and also rename the older mute
feature to all-sensors so that there are no longer overloaded methods
with different functions.

Test: Checkbuild, CtsSensorPrivacyTestCases, Manual
Fixes: 181681375
Change-Id: I655544846310e864ec8479ce8f93aee2860824f7
2021-04-20 16:37:55 -07:00
TreeHugger Robot
18ecd98109 Merge "[pm] remove incremental startable/unstartable code" into sc-dev 2021-04-20 22:03:22 +00:00
Dmitri Plotnikov
82a0d368cc Merge "Revert "Save power component names in the summary parcel for MeasuredEnergySnapshot"" into sc-dev 2021-04-20 19:03:12 +00:00
Dmitri Plotnikov
ff06a0ffb7 Revert "Save power component names in the summary parcel for MeasuredEnergySnapshot"
This reverts commit efa581e44e.

Reason for revert: Broke a test

Change-Id: Ib5ab56032ba4c4203cbc6f3eaf1e5d80c89a9717
2021-04-20 19:01:52 +00:00
Dmitri Plotnikov
1eb043a982 Merge "Save power component names in the summary parcel for MeasuredEnergySnapshot" into sc-dev 2021-04-20 18:50:54 +00:00
TreeHugger Robot
423adbf3b5 Merge "Fix updateBluetoothStateLocked comments" into sc-dev 2021-04-20 09:58:28 +00:00
Wilson Wu
c84b3e15df Make IInputMethodPrivilegedOperations to async (3/N)
-. Remove VoidResultCallback of reportFullscreenMode
   and let it be truly asynchronous.
-. Rename this method to reportFullscreenModeAsync.

Bug: 183587528
Test: atest CtsInputMethodTestCases
Test: Manually verified as follows.
   1. Build flame-userdebug and flash it.
   2. Make sure that the screen rotation is enabled.
   3. make -j SoftKeyboard
   4. adb install -r $OUT/system/app/SoftKeyboard/SoftKeyboard.apk
   5. adb shell ime enable com.example.android.softkeyboard/.SoftKeyboard
   6. adb shell ime set com.example.android.softkeyboard/.SoftKeyboard
   7. make -j EditTextVariations
   8. adb install -r $ANDROID_TARGET_OUT_TESTCASES/EditTextVariations/arm64/EditTextVariations.apk
   9. adb shell am start -n com.android.inputmethod.tools.edittextvariations/.EditTextVariations
  10. Make sure that the device is in the landscape mode,
      and the SoftKeyboard sample IME is not yet shown.
  11. adb shell dumpsys input_method | grep mFullscreenMode
      Then make sure the mFullscreenMode is "false"
  12. Tap the first edit field then make sure that SoftKeyboard
      sample IME becomes visible in the fullscreen mode.
  13. adb shell dumpsys input_method | grep mFullscreenMode
      Then make sure the mFullscreenMode is "true"
  14. Tap the down button on the navbar to hide the SoftKeyboard
      sample IME.
  15. adb shell dumpsys input_method | grep mFullscreenMode
      Then make sure the mFullscreenMode is "false"

Change-Id: I92e8b0d420be3dd16cc4f3ba29e0bde5f12ab2ce
2021-04-20 17:46:27 +08:00
TreeHugger Robot
3346694817 Merge "Add TestApi to trigger the onDetect function of HotwordDetectionService" into sc-dev 2021-04-20 09:23:33 +00:00