Commit Graph

646965 Commits

Author SHA1 Message Date
Bill Yi
bbc3407ca0 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I972bd00ce968d535581fe083947fe362d96bc870
2021-07-23 12:51:53 +00:00
Jing Ji
5d411d76ea Merge "Fix potential FD leak with PhantomProcessRecord bookkeeping" into sc-dev 2021-07-23 00:11:12 +00:00
Jing Ji
cbf8dc63ba Merge "Don't reset the reported proc state while cleaning up the process" into sc-dev 2021-07-23 00:01:25 +00:00
TreeHugger Robot
5cac66cb4e Merge "Skip operation on content overlay if task's vanished" into sc-dev 2021-07-22 23:20:20 +00:00
TreeHugger Robot
9470519d04 Merge "Lock icon is a set distance from the bottom of display" into sc-dev 2021-07-22 22:14:43 +00:00
Winson Chung
d4dd12ee06 Merge "Skip animating out bubble screenshot if surface is not ready" into sc-dev 2021-07-22 22:10:46 +00:00
Hongwei Wang
1817bc47bd Skip operation on content overlay if task's vanished
The stack trace in b/194344478 and b/194280568 is actually from the
preceding ActivityThreadTest test, which does not fail but does crash
certain test cases after that.

Since we may set a start delay on the content overlay fading out
animation, there is chance that onTaskVanished happens before it is
actually started. It's also possible that onTaskVanished happens during
the content overlay fadeout. This CL should have addressed both cases.

Bug: 194344478
Bug: 194280568
Test: atest --iteration 5 \
      ActivityThreadTest#testHandlePictureInPictureRequested_overriddenToEnter \
      ScreenshotTests#testScreenshotSecureLayers \
      TaskStackChangedListenerTest#testTaskChangeCallBacks
Change-Id: I81c0622966df32e02db7cb5aa3cd42d7c4af735e
Merged-In: I81c0622966df32e02db7cb5aa3cd42d7c4af735e
2021-07-22 21:38:57 +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
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
f4b8e82790 Merge "Fix validation crash for nextPageToken." into sc-dev 2021-07-22 19:32:18 +00:00
Jing Ji
e61bb742bf Fix potential FD leak with PhantomProcessRecord bookkeeping
We're tracking the phantom processes with the combination of
its process name and pid/uid, while if the process name changes
it'll be removed from the internal bookkeping, we should close
the FD to that process upon then.

Bug: 194146206
Test: atest AppChildProcessTest
Test: atest CtsAppTestCases:ActivityManagerTest
Change-Id: I62064afe55aa8bc51a2d523bc5d8fe6e97f171a8
2021-07-22 12:28:04 -07:00
Xiaoyu Jin
f5bfc7527c Merge "Log stats for Optimize" into sc-dev 2021-07-22 19:16:15 +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
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
Jing Ji
c69ea31c19 Don't reset the reported proc state while cleaning up the process
It'll be used to feed into the app kill stats.

Meanwhile, use the real process UID instead of the package UID for
indexing the app kill stats container internally, it'll be better
in terms of aligning with the caller UID in queries.

Bug: 194364213
Test: atest ApplicationExitInfoTest
Test: atest CtsAppExitTestCases:ActivityManagerAppExitInfoTest
Test: Manual - dumpsys activity exit-info
Change-Id: I5c966086bb90675294b5dfc1c5cdb0c163f05170
2021-07-22 10:54:08 -07: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
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
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
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
Beverly
622d439580 Lock icon is a set distance from the bottom of display
Instead of 'jumping' when Now Playing is shown/hidden.

Test: manual
Fixes: 192926771
Change-Id: I909ddca91be4539c88668494db51d236feeb1ec6
2021-07-22 15:17:03 +00: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
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
Fabian Kozynski
ef8407ab7d Merge "Hide RSSI next to single carrier name" into sc-dev 2021-07-22 13:11:40 +00:00
Beverly
2b88dc67bb Show "use fingerprint to open" msg for coex
If face auth fails and fingerprint is running,
show the "use fingerprint to open" msg.

Fixes: 194358779
Test: manual
Change-Id: I249fcf550ac1ca5881d55566a4366937263690bf
2021-07-22 09:06:22 -04:00
arangelov
c3b5583cb0 Revert "Revert "Launch admin policies settings screen if not possible to
launch help page""

This reverts commit c2d0388962.

Reason for revert: Reverting the revert and avoiding the TH failure

Fixes: 191727929
Change-Id: I741f35aab78ba32f69f204dbdf4ebcf632bd741c
2021-07-22 12:05:55 +01:00
Nikita Ioffe
db9892300e Reject non-staged APEX install if there is staged install of same APEX
There is a interesting interaction between staged and non-staged
installs of the same APEX. Let's say an installer staged v1 -> v2 APEX
update, and then does a non-staged update to v3. After device is
rebooted, apexd will apply the staged v1 -> v2 session, silently
downgrading an APEX from v3.

For apks, this problem is solved by storing an expected version. When an
APK session is being applied during boot, Package Manager will check if
the currently installed version is equal to the expected one stored in
the staged session. If they mismatch, an install is failed.
Unfortunately, implementing the same logic in apexd will require a
non-trivial refactoring which is too late to do in S. Instead we are
just going to fail the non-staged installation.

Test: atest StagedInstallInternalTest
Bug: 187864524
Change-Id: I9000f40cede9a324a5059a09deb8eb5be13b21f9
2021-07-22 12:05:41 +01:00
Wei Sheng Shih
61d71ccaae Merge "Using BaseIconFactory to draw legacy icon." into sc-dev 2021-07-22 10:06:34 +00:00
Eric Laurent
43993b70c4 Merge "RESTRICT AUTOMERGE Restart recognition when failing to deliver event" into sc-dev 2021-07-22 07:47:46 +00:00
TreeHugger Robot
c630f87976 Merge "Remove deprecated, hidden versions of changed public APIs." into sc-dev 2021-07-22 07:44:54 +00:00
Yi Kong
83d9b454e9 profcollect: Add verbose logging for ota status updates
Test: presubmit
Bug: 178561556
Change-Id: I4cd6b9bdb15fec4e115fefbef69c0c1e687d2392
Merged-In: I4cd6b9bdb15fec4e115fefbef69c0c1e687d2392
(cherry picked from commit d316cc49ae)
2021-07-22 15:43:22 +08:00
Winson Chung
b9b673fb4a Skip animating out bubble screenshot if surface is not ready
Bug: 193634894
Test: atest SystemUITests
Change-Id: Ifb2ba00be2e8dc497300feb39bacb88b9021df4a
2021-07-22 04:29:56 +00:00
Andrii Kulian
0492d8febe Mark an ActivityThreadTest as flaky
Bug: 194242735
Test: Build
Change-Id: I2452db8523438de4d06c938c3c3fa1d8a9aa0f4e
Merged-In: I2452db8523438de4d06c938c3c3fa1d8a9aa0f4e
(cherry picked from commit 0b6ea59fe0)
2021-07-22 03:17:44 +00:00
Ray Essick
11badea7d3 Merge "Describe Video Encoding Floor" into sc-dev 2021-07-22 03:10:53 +00:00