Commit Graph

652050 Commits

Author SHA1 Message Date
TreeHugger Robot
2194851f5c Merge changes from topic "native_hint" into sc-dev am: ea52c87596
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15326475

Change-Id: I8dde7d37c30d756108b007dd0cf09de057f4b913
2021-07-22 21:33:26 +00:00
TreeHugger Robot
ea52c87596 Merge changes from topic "native_hint" into sc-dev
* changes:
  Implement java PerformanceHintManager on top of native
  Switch HWUI to use native performance hint API
  Implement native PerformanceHint API
2021-07-22 21:15:04 +00:00
TreeHugger Robot
48a34fd890 Merge "Fix HDR for app-override brightness." into sc-dev am: 9ed99bd9d1
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15302104

Change-Id: I3a645c2c225b5177f0f7d0fae4d91d61adec93fa
2021-07-22 20:32:35 +00:00
TreeHugger Robot
6043cd6908 Merge "Apply theme color and fade-in transition effect at the top of One-handed mode" into sc-dev am: a08d1cb0f1
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15234619

Change-Id: I0ec888e0bcbe99a6a666920ea2455e01372a2d3a
2021-07-22 20:31:41 +00:00
TreeHugger Robot
9ed99bd9d1 Merge "Fix HDR for app-override brightness." into sc-dev 2021-07-22 20:29:38 +00:00
TreeHugger Robot
a08d1cb0f1 Merge "Apply theme color and fade-in transition effect at the top of One-handed mode" into sc-dev 2021-07-22 20:09:53 +00:00
Terry Wang
e1aee57d9e Merge "Fix validation crash for nextPageToken." into sc-dev am: f4b8e82790
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15345292

Change-Id: Ia2b6bac986f304bf9b17e3539f6a201b2aeb19cc
2021-07-22 19:35:30 +00:00
Terry Wang
f4b8e82790 Merge "Fix validation crash for nextPageToken." into sc-dev 2021-07-22 19:32:18 +00:00
Xiaoyu Jin
08a463f12a Merge "Log stats for Optimize" into sc-dev am: f5bfc7527c
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15262431

Change-Id: I28fa96a93c16b2645e304d003e50304ff074eb61
2021-07-22 19:23:01 +00:00
Xiaoyu Jin
f5bfc7527c Merge "Log stats for Optimize" into sc-dev 2021-07-22 19:16:15 +00:00
TreeHugger Robot
b6b8682f8d Merge "Enforfce a minimum padding to ensure space for the privacy dot" into sc-dev am: 995fce704b
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15163257

Change-Id: Ia78ec86fc51927c5c29022703712343c5d00b67c
2021-07-22 19:11:29 +00:00
TreeHugger Robot
8c3a9b98dd [automerger skipped] Merge "Import translations. DO NOT MERGE ANYWHERE" into sc-dev am: 524b7ac0ab -s ours
am skip reason: subject contains skip directive

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15340846

Change-Id: Ic893873fc72bfdbb7dd6dc22aa8f11953aed2b38
2021-07-22 19:10:34 +00:00
TreeHugger Robot
2bae3dde96 [automerger skipped] Merge "profcollect: Add verbose logging for ota status updates" into sc-dev am: 03951c2a33 -s ours
am skip reason: Merged-In I4cd6b9bdb15fec4e115fefbef69c0c1e687d2392 with SHA-1 d316cc49ae is already in history

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15356790

Change-Id: Id01794d1dea632f6430c8ee1e2e575b62999a36a
2021-07-22 19:10:13 +00:00
TreeHugger Robot
995fce704b Merge "Enforfce a minimum padding to ensure space for the privacy dot" into sc-dev 2021-07-22 19:10:05 +00:00
TreeHugger Robot
9753715c8e Merge "Add LightRevealScrim to dumpsys to rule it out as the cause of an elusive bug." into sc-dev am: 1afbd3c9c8
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15350198

Change-Id: I1da6562b1993747f5eeb2dfddb9613beffcd8456
2021-07-22 19:09:53 +00:00
Kevin Chyn
a7cd696a1a Merge changes I02898d24,I3b8d172b into sc-dev am: 8fa96139d5
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15350821

Change-Id: I9be401fddf0ec496f2c28171c775d00539caa9f7
2021-07-22 19:09:31 +00:00
TreeHugger Robot
524b7ac0ab Merge "Import translations. DO NOT MERGE ANYWHERE" into sc-dev 2021-07-22 19:01:43 +00:00
TreeHugger Robot
03951c2a33 Merge "profcollect: Add verbose logging for ota status updates" into sc-dev 2021-07-22 18:39:50 +00:00
TreeHugger Robot
1afbd3c9c8 Merge "Add LightRevealScrim to dumpsys to rule it out as the cause of an elusive bug." into sc-dev 2021-07-22 18:39:15 +00:00
Kevin Chyn
8fa96139d5 Merge changes I02898d24,I3b8d172b into sc-dev
* changes:
  9/n: Add test case for udfps rejection after face rejection
  8/n: Add additional multi-sensor reject logic
2021-07-22 18:38:44 +00:00
Jeff DeCew
05615c1212 Merge "Ensure the device wakes up from doze when tapping expand button" into sc-dev am: ba1e18b5c7
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15327940

Change-Id: If16926290130672f8cf6ea2e543d86d9471ba148
2021-07-22 17:53:35 +00:00
Matt Pietal
3786bd801e Merge "Fix multiple control providers" into sc-dev am: 0c89ea5d0f
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15359491

Change-Id: Ia9736faa368be157624366ff3ce9cbb3eb9c7e3a
2021-07-22 17:52:00 +00:00
Santos Cordon
0db446adb4 Fix HDR for app-override brightness.
- HBMController no longer listens to changes on the brightness setting
directly, and instead gets brightness updates from DPC. This was
necessary since some of the brightness-sources (such as app-override)
are not reflected in the actual setting.
- Clamp override and temporary brightness sources so that they cannot
push brightness beyond the bounds set by HbmController.
- Always save away the actual brightness setting in BrightnessInfo
cache, ignoring any temporary or override brightness values. This ensures
that Display.getBrightnessInfo() reflects the user setting, and not some
temporary brightness state.

Bug: 193392737
Test: manually test HDR with app-override
Test: atest HighBrightnessModeControllerTest
Change-Id: Iffe777a22d058ddb779dc6fc22c2382f6bbac1ab
2021-07-22 18:51:57 +01:00
Evan Laird
342dc78ab3 Merge "Hook up the sysui backend for status bar content rects" into sc-dev am: c5d6a8e70a
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14924825

Change-Id: I7da8314eaf264090aa1bfe204500b742081677b0
2021-07-22 17:51:43 +00:00
TreeHugger Robot
dc964c4e52 [automerger skipped] Merge "Unify the mismatch in the byte order of the address." into sc-dev am: e664dec81d -s ours
am skip reason: Merged-In I59a1b5538e4f3fea77a98cba2aa46649fc32ac6b with SHA-1 4d990467b2 is already in history

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15339447

Change-Id: I07aa729fd9154e61a37ccd815ac29bc9f9e0f555
2021-07-22 17:50:26 +00:00
George Burgess
5b9de16f63 Merge "MTP: fix a memory leak" into sc-dev am: a66b67936f
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15325117

Change-Id: I86436ed12f1759242448d3f13c7a1c1dcc3f3c11
2021-07-22 17:47:53 +00:00
Evan Laird
4b1b5a68dd Enforfce a minimum padding to ensure space for the privacy dot
Bug: 191998138
Test: atest StatusBarContentInsetsProviderTest
Change-Id: I3b28dd78f909321a54a3e196b67011d3165cbbd3
Merged-In: I3b28dd78f909321a54a3e196b67011d3165cbbd3
2021-07-22 17:40:55 +00:00
Jeff DeCew
ba1e18b5c7 Merge "Ensure the device wakes up from doze when tapping expand button" into sc-dev 2021-07-22 17:38:34 +00:00
Matt Pietal
0c89ea5d0f Merge "Fix multiple control providers" into sc-dev 2021-07-22 17:35:32 +00:00
Evan Laird
c5d6a8e70a Merge "Hook up the sysui backend for status bar content rects" into sc-dev 2021-07-22 17:34:12 +00:00
TreeHugger Robot
e664dec81d Merge "Unify the mismatch in the byte order of the address." into sc-dev 2021-07-22 17:29:13 +00:00
George Burgess
a66b67936f Merge "MTP: fix a memory leak" into sc-dev 2021-07-22 17:26:32 +00:00
Sergey Volnov
c33d8633a0 Merge "Revert "Revert "Revert "Launch admin policies settings screen if not possible to"" into sc-dev am: a9949c86c6
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15360870

Change-Id: I23acedf5ae29b89916b9fb153285a9cea1d2a58d
2021-07-22 17:22:15 +00:00
Nikita Ioffe
16627833ac Merge changes from topic "apex-installers-restriction" into sc-dev am: e8b129351c
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15347597

Change-Id: I744b1572ff539ff8e34c2551e48f0d0efe538a2a
2021-07-22 17:21:23 +00:00
Nikita Ioffe
6cbb784216 Restrict what APEXes different installers can update am: e501fd8379
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15331871

Change-Id: I3548f8a43e237fb3e7ee3d8ccaf303239153f5c1
2021-07-22 17:21:18 +00:00
TreeHugger Robot
27fcdbc32e Merge "Show "use fingerprint to open" msg for coex" into sc-dev am: c2e4423c8f
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15358778

Change-Id: I99d692bb3c691b1d9a1b96aba0eb206b3bde2d98
2021-07-22 17:17:14 +00:00
Sergey Volnov
a9949c86c6 Merge "Revert "Revert "Revert "Launch admin policies settings screen if not possible to"" into sc-dev 2021-07-22 16:54:52 +00:00
Nikita Ioffe
e8b129351c Merge changes from topic "apex-installers-restriction" into sc-dev
* changes:
  Reject non-staged APEX install if there is staged install of same APEX
  Restrict what APEXes different installers can update
2021-07-22 16:53:05 +00:00
TreeHugger Robot
c2e4423c8f Merge "Show "use fingerprint to open" msg for coex" into sc-dev 2021-07-22 16:41:17 +00:00
Sergey Volnov
f1564bc866 Revert "Revert "Revert "Launch admin policies settings screen if not possible to"
This reverts commit c3b5583cb0.

Reason for revert: Investigating b/194395139

Change-Id: I4700271436dd21fc08f093ee5f9964c855de600a
2021-07-22 16:29:25 +00:00
TreeHugger Robot
a42bf3c819 Merge "Revert "Revert "Launch admin policies settings screen if not possible to launch help page""" into sc-dev am: 8e530f8194
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15346893

Change-Id: Ie5831892b0f0c3ee66ff18d2c2c919af8331a241
2021-07-22 16:15:04 +00:00
Matt Pietal
939a99cd4d Fix multiple control providers
Found an error in the logs:

ControlsBindingControllerImpl: Provider for
token:android.os.Binder@147a7f9 does not exist anymore

And then noticed that the ControlsActivity was being started by
framework when transitioning between ControlsFavoritingActivity and
ControlsProviderSelelctionActivity. This is strictly due to window
animations being enabled, and framework realizing that the
ControlsActivity will be visible momentarily between
activities. Previously uiController.show() was in the onStart()
method, which resulted in ControlsBindingControllerImpl rebinding to a
different service.

By moving to onResume(), the call to uiController.show() can be
avoided, hence avoiding the service rebinding so the controls can
correctly be shown in the favoriting activity.

Fixes: 191589943
Test: manual (requires multiple control services)

Change-Id: I634ab7c386c2098dc8f9971d320a8b80b8cd429a
2021-07-22 11:57:19 -04:00
TreeHugger Robot
8e530f8194 Merge "Revert "Revert "Launch admin policies settings screen if not possible to launch help page""" into sc-dev 2021-07-22 15:53:27 +00:00
Bo Liu
0b2ad9f70d Implement java PerformanceHintManager on top of native
Note some exceptions became silence errors in this conversion.

Test: None
Bug: 194204196
Change-Id: Ia3cc7f2396f2e307a23b40b3f104a2fa90352196
2021-07-22 11:33:13 -04:00
Bo Liu
6a3fc60f43 Switch HWUI to use native performance hint API
Test: None
Bug: 194204196
Change-Id: I80dfdb5d56921c465406cc4534e82738c668d46d
2021-07-22 11:33:01 -04:00
Bo Liu
4426772eab Implement native PerformanceHint API
Test: atest PerformanceHintNativeTestCases
Bug: 194204196
Change-Id: Ie26e25e9ecf87046df92346dff54174934a8c73e
2021-07-22 11:31:49 -04:00
Jason Chang
966382b0c9 Apply theme color and fade-in transition effect at
the top of One-handed mode

1. Implement the Dynamic color theme at the top Tutorial area
but the color should not be the same as the recents UI.

2. Do not translate Tutorial icon & text vertically, then provide
quick subtle fade-in effect for Tutorial window.

3. Apply new icon for tutorial.

Bug: 193126258
Bug: 193589897

Test: Local verify when changing dark theme and wallpaper theme.
Test: Local verify Tutorial icon & text fade-in effect.
Test: atest SystemUITests
Test: atest WMShellTests
Test: Perfetto check enter & exit performance
Change-Id: I60f4e7a709f3a27fe6c7f480f1012caccdbbe5ec
2021-07-22 23:00:06 +08:00
Lyn Han
3f826d4783 Merge "Fix HUN input alignment with IME" into sc-dev am: 62180de361
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15333059

Change-Id: Ie4b0fc8af0e14df57a32d3eb41b9e0fc87d862c5
2021-07-22 14:48:48 +00:00
Lyn Han
62180de361 Merge "Fix HUN input alignment with IME" into sc-dev 2021-07-22 14:26:37 +00:00
Lyn Han
2e8074a574 Fix HUN input alignment with IME
SSA#updateHeadsUpStates defines the top HUN as having
    mustStayOnScreen = TRUE
    headsUpIsVisible = FALSE

However, SSA#updateChild sets
    headsUpIsVisible = TRUE
for the top HUN when shade is closed

When we tap the reply button and show IME, SSA#updateHeadsUpStates
does not recognize the top HUN as such and skips it when
reducing yTranslation by scrollY (which includes IME inset)

This change skips setting headsUpIsVisible on HUNs when shade is closed.

Fixes: 187485733
Test: expand HUN in portrait/landscape with largest font/display
      tap reply button to show IME
      => HUN shifts up to align bottom of input with top of IME
Change-Id: I236b01a7f9070ebe58457eab9ea8072703acb12c
2021-07-22 14:26:18 +00:00