Commit Graph

16780 Commits

Author SHA1 Message Date
Tiger Huang
ae12afe314 Merge "Send more system bar attributes to System UI for logging" into sc-v2-dev am: c3d3e0ea33
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15229896

Change-Id: If0adf5f4f92b5b975ea5a4cfde023d0ccbb13ecd
2021-07-12 20:19:25 +00:00
Tiger Huang
ecd2b0c563 Send more system bar attributes to System UI for logging
This CL sends the requested visibilities and the package name of the
focused app to System UI for logging.

Bug: 190543382
Test: atest RegisterStatusBarResultTest CommandQueueTest
            LightsOutNotifControllerTest
Change-Id: I6b3ceed1efc3075bf0c93620fe753ef2a6f79809
2021-07-09 02:28:15 +08:00
Matt Casey
99936dd728 Merge "Revert RecyclerViewCaptureHelper changes from ag/15083160" into sc-dev am: 5f5e03d3ef am: a02989742e
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15192923

Change-Id: I0c0fe0c7536772b4ff6888432f59644b369f0a46
2021-07-07 15:37:35 +00:00
Matt Casey
3c33ffbc46 Merge "Revert RecyclerViewCaptureHelper changes from ag/15083160" into sc-dev am: 5f5e03d3ef
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15192923

Change-Id: I4f79f1a42120685a22f93745d32679daacdadb0d
2021-07-07 15:22:54 +00:00
Matt Casey
a02989742e Merge "Revert RecyclerViewCaptureHelper changes from ag/15083160" into sc-dev am: 5f5e03d3ef
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15192923

Change-Id: Iea131ae9667c540ab8db2450705527779a7b51e8
2021-07-07 15:21:19 +00:00
Matt Casey
5f5e03d3ef Merge "Revert RecyclerViewCaptureHelper changes from ag/15083160" into sc-dev 2021-07-07 15:19:41 +00:00
Fiona Campbell
1307d7d84d Merge "Clean up framework brightness system" into sc-dev am: 2bb1f86a17 am: 4383b07070
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15175190

Change-Id: I364860a352c2bd946d07f599a7e7b2005d8fe087
2021-07-05 17:47:42 +00:00
Fiona Campbell
4383b07070 Merge "Clean up framework brightness system" into sc-dev am: 2bb1f86a17
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15175190

Change-Id: Iaeb3d421888359b0d0957103c3bf32ba8c4f8d06
2021-07-05 17:32:44 +00:00
Fiona Campbell
39d4900307 Merge "Clean up framework brightness system" into sc-dev am: 2bb1f86a17
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15175190

Change-Id: Ia3956f353098f2316de3f598911437a5e3176e8b
2021-07-05 17:31:53 +00:00
Fiona Campbell
2bb1f86a17 Merge "Clean up framework brightness system" into sc-dev 2021-07-05 17:22:46 +00:00
Michael Wachenschwanz
eb0a2a05da Merge "Move RPM stats collection out of BatteryStatsImpl.mLock" into sc-dev am: 42f68a76f5 am: f4e926e669
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15189209

Change-Id: I7bc7156ff74fd1fa7946d2b65a23ec029038e544
2021-07-03 01:51:18 +00:00
Michael Wachenschwanz
f4e926e669 Merge "Move RPM stats collection out of BatteryStatsImpl.mLock" into sc-dev am: 42f68a76f5
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15189209

Change-Id: I526ee6ea4a8633765d64ae8d59eaa77087ad7b3c
2021-07-03 01:46:29 +00:00
Michael Wachenschwanz
bbe27fc68c Merge "Move RPM stats collection out of BatteryStatsImpl.mLock" into sc-dev am: 42f68a76f5
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15189209

Change-Id: Ied79c86fd459e936779a44a2c81fafc18e761d42
2021-07-03 01:46:03 +00:00
Michael Wachenschwanz
42f68a76f5 Merge "Move RPM stats collection out of BatteryStatsImpl.mLock" into sc-dev 2021-07-03 01:41:41 +00:00
Fiona Campbell
7e8d205424 Clean up framework brightness system
Remove brightness_float setting.
Delete unused code.
Use display manager sync root for BrightnessSetting

Bug: 191472484
Test: atest com.android.server.display

Change-Id: I0cc722949081ba5a3aaa9f7fa4ff4e874578925b
2021-07-03 00:10:33 +01:00
Matt Casey
fb0dea3d3c Revert RecyclerViewCaptureHelper changes from ag/15083160
Changes in shared code with ListView implementation seem to have
had negative side effects with Telegram. Revert the old onScrollRequested
implementation for now.

Bug: 189475409
Test: Verify gaps missing from telegram long screenshots
      (and they don't run out of tiles)

Change-Id: Iff81293c6ec34bf3e024e930fe61ba9a1fd95b7b
2021-07-02 23:03:28 +00:00
Michael Wachenschwanz
62a9ff6718 Move RPM stats collection out of BatteryStatsImpl.mLock
Querying RPM stats on device with a large number of StateResidency info
can take a long time. Move the query to outside of the BatteryStats
lock to reduce the chance of lock contention.

Bug: 185970842
Test: atest android.cts.statsd.validation.ValidationTests#testPartialWakelock

Change-Id: I1c69b3f9c071e5d758cf4b22855c4b0ec221a5cf
2021-07-02 15:58:27 -07:00
TreeHugger Robot
c06482e5b9 Merge "Fix sharing shortcuts not showing for Work Profile. Check package by using selected profile PackageManager." into sc-dev am: 1bbe3ab314 am: 31405dca3e
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15180074

Change-Id: I7c568a768fb7490f9a0e068d585167d89134968a
2021-07-02 18:47:10 +00:00
TreeHugger Robot
fe884ea959 Merge "Fix sharing shortcuts not showing for Work Profile. Check package by using selected profile PackageManager." into sc-dev am: 1bbe3ab314
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15180074

Change-Id: I7634b673ae8ce1f11f6a8615750bb1f871b4a5f5
2021-07-02 18:37:28 +00:00
TreeHugger Robot
31405dca3e Merge "Fix sharing shortcuts not showing for Work Profile. Check package by using selected profile PackageManager." into sc-dev am: 1bbe3ab314
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15180074

Change-Id: I66ba4fa883043d6b974687dc10231ffc90394094
2021-07-02 18:36:02 +00:00
Song Hu
469f9d3253 Fix sharing shortcuts not showing for Work Profile. Check package by
using selected profile PackageManager.

Test: test on local device
Bug: 175240616
Fixes: 179798044
Change-Id: I30728705dbc60d0506b7d20a16bcc8f1eed9b6d0
(cherry picked from commit 0e4b75a215)
2021-07-02 17:16:28 +00:00
TreeHugger Robot
cd4b57ab32 Merge "Switch back to sync IInputMethodManager" into sc-dev am: 4e944d4634
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15176334

Change-Id: Ia3216ae5707e981d1e2543dd5192e9bc6e5a8cc0
2021-07-02 16:40:08 +00:00
Tiger Huang
7a696a23a5 Merge "Remove the light flag if the bar isn't specified light in theme" into sc-dev am: de8ea692b1
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15175031

Change-Id: I52d98f8bda7a795c72bff04688c0ce6586df44c8
2021-07-02 16:26:57 +00:00
Lucas Lin
0b810eddf2 Merge "Fix Ikev2 vpn cannot establish through startLegacyVpn()" into sc-dev am: 30d17bd9a1
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15125750

Change-Id: I641b290c50727a7e884b255c948ce892737879e6
2021-07-02 16:25:18 +00:00
TreeHugger Robot
5bab6c6116 Merge "Switch back to sync IInputMethodManager" into sc-dev am: 4e944d4634 am: 3760ff5953
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15176334

Change-Id: I451a75c64cfe4fdc8f4a683534408e3450947444
2021-07-02 15:52:56 +00:00
TreeHugger Robot
3760ff5953 Merge "Switch back to sync IInputMethodManager" into sc-dev am: 4e944d4634
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15176334

Change-Id: I98fc3154d5384ac6c0d75428c059d6fe8e4c7b68
2021-07-02 15:37:19 +00:00
TreeHugger Robot
4e944d4634 Merge "Switch back to sync IInputMethodManager" into sc-dev 2021-07-02 15:22:21 +00:00
Tiger Huang
7ca991f893 Merge "Remove the light flag if the bar isn't specified light in theme" into sc-dev am: de8ea692b1 am: e085ae55d8
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15175031

Change-Id: Id09301b267ca692db1f0c7ff9ee17c48346d09d5
2021-07-02 10:03:38 +00:00
Tiger Huang
e085ae55d8 Merge "Remove the light flag if the bar isn't specified light in theme" into sc-dev am: de8ea692b1
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15175031

Change-Id: I09f7b6f9beae28ad2ca6517d4b27ce8a91b2c046
2021-07-02 09:49:45 +00:00
Tiger Huang
de8ea692b1 Merge "Remove the light flag if the bar isn't specified light in theme" into sc-dev 2021-07-02 09:39:40 +00:00
Yohei Yukawa
9dde701446 Switch back to sync IInputMethodManager
This CL logically reverts recent CLs [1][2][3][4][5][6][7][8][9] to
switch back to the previous sync IPC approach in IInputMethodManager
except for the following two IPCs.

 * reportPerceptibleAsync
 * removeImeSurfaceFromWindowAsync

Reason for revert:
We need more time to understand its performance implications.

 [1]: If4b40244a2e0e3b11c38c1da9340ba8e5166ad64
      b9590fa1e1
 [2]: If79e063641a01b325c63eb9f871f5b992d7c0b72
      5a5648dcb5
 [3]: I1547b98b2aacf764e33aadc9ab784f2013f58f2f
      d833f0dab4
 [4]: I646ef4ae0570aae1812ea267f309441fdec6938d
      38fd020616
 [5]: Iaa63e01453da4ff0e3f446eac036b3be3180cb73
      4a820ccc41
 [6]: Id516fd1c961f43ac3e139c88d7ed004c188d458b
      0a32fd21ef
 [7]: Icb396ae5d74060af69c4ecb16723b2e37b9f2067
      c4663ba6a9
 [8]: I3eafbc28ed3acf3ba859885bf201cb06b3149b94
      f226a79fee
 [9]: Ic584203c1221fbae17f5e2d8f09e3992df061646
      5e2d9f271d

Bug: 163453493
Bug: 174892351
Fix: 190486491
Test: atest CtsInputMethodTestCases
Change-Id: If16ac0de536d9089eb04f6e07b1ee47378124658
Merged-In: If16ac0de536d9089eb04f6e07b1ee47378124658
2021-07-02 07:06:07 +00:00
Lucas Lin
a6de2ae4ff Merge "Fix Ikev2 vpn cannot establish through startLegacyVpn()" into sc-dev am: 30d17bd9a1 am: 558a160fff
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15125750

Change-Id: Iaead23ae52d43e31d5ee91c736fa2c5d661b6d12
2021-07-02 05:48:36 +00:00
Lucas Lin
558a160fff Merge "Fix Ikev2 vpn cannot establish through startLegacyVpn()" into sc-dev am: 30d17bd9a1
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15125750

Change-Id: Ia2405b8f996b91b357e6eab9d793f572013fdc45
2021-07-02 05:32:31 +00:00
Lucas Lin
30d17bd9a1 Merge "Fix Ikev2 vpn cannot establish through startLegacyVpn()" into sc-dev 2021-07-02 05:27:30 +00:00
Charles Chen
ebf2e81d46 Merge "Remove updateImeDisplayId" into sc-v2-dev am: 56e17bfcd8
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15065650

Change-Id: I3b0e814649cc9debd60c00bf2be933a50a59fb3a
2021-07-02 03:36:08 +00:00
Charles Chen
56e17bfcd8 Merge "Remove updateImeDisplayId" into sc-v2-dev 2021-07-02 03:20:32 +00:00
Tiger Huang
0eb56cb359 Remove the light flag if the bar isn't specified light in theme
Previously, PhoneWindow will add the light flag for the bar if it is
specified light in theme. It won't remove the light flag if the theme is
not light. The previous logic in PhoneWindow#generateLayout assumes the
decor view was newly created.

However, the decor view can be reused from the preserved window. This
happens if the activity is recreated. So if the previous activity was in
a light theme and the newly created activity is in a dark theme, we
should clear the light bar flags added in the previous activity.

Fix: 174502412
Test: 1. Set Dialer (Phone) to dark theme from Dialer's display options.
      2. Clear app data from Dialer's app info.
      3. Open Dialer again and see if the color of system bars are
         normal.
Change-Id: I3ea61322e4c3cfe26981e23792f42ab0b9a1e217
2021-07-01 23:25:51 +08:00
TreeHugger Robot
b374cdc56a Merge changes I5bdc1f46,Idd24fd51 into sc-dev am: cfe4767b40
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15113790

Change-Id: Ie084b6cf7847debdbb29b95d69d765686fa3a207
2021-06-30 22:17:02 +00:00
TreeHugger Robot
ac4597bf19 Merge changes I5bdc1f46,Idd24fd51 into sc-dev am: cfe4767b40 am: 3bbaa52c9e
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15113790

Change-Id: Id31712deabe80ed29e85a65b9d78387f0d8dd5a6
2021-06-30 22:07:52 +00:00
TreeHugger Robot
3bbaa52c9e Merge changes I5bdc1f46,Idd24fd51 into sc-dev am: cfe4767b40
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15113790

Change-Id: I40ea8875f98ea2e9efe21c13a17cf6d2e83bca3a
2021-06-30 22:04:19 +00:00
TreeHugger Robot
cfe4767b40 Merge changes I5bdc1f46,Idd24fd51 into sc-dev
* changes:
  Sharesheet style updates
  Update Edit icon.
2021-06-30 22:00:33 +00:00
Dmitri Plotnikov
9285cf57dd Merge "Fix boot time BatteryStats reset failure" into sc-dev am: ebf77ebc51 am: bea4bac02c
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15128655

Change-Id: I2d5f02809e76c8f9381917ed307de46a3a3ba029
2021-06-30 19:25:04 +00:00
Dmitri Plotnikov
f65cbbbe42 Merge "Fix boot time BatteryStats reset failure" into sc-dev am: ebf77ebc51
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15128655

Change-Id: Ic6603505265ed644c72a5042fc30011ea1fbd149
2021-06-30 19:12:49 +00:00
Dmitri Plotnikov
bea4bac02c Merge "Fix boot time BatteryStats reset failure" into sc-dev am: ebf77ebc51
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15128655

Change-Id: I4681840e210a25d27ecb03ff30da088721f2fc8b
2021-06-30 19:12:17 +00:00
Dmitri Plotnikov
ebf77ebc51 Merge "Fix boot time BatteryStats reset failure" into sc-dev 2021-06-30 18:53:20 +00:00
TreeHugger Robot
9274ed1674 Merge "Pause watchdog monitor for incfs native lib extraction" into sc-dev am: 920e1fd7a6 am: 6611a10a66
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15147287

Change-Id: I7b59474dc6bf65fa5912da0061b2fa2a4759a3f9
2021-06-30 18:34:07 +00:00
TreeHugger Robot
5e26f746c1 Merge "Pause watchdog monitor for incfs native lib extraction" into sc-dev am: 920e1fd7a6
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15147287

Change-Id: I91744e9e4b80a73f5831270251a119c49f03e230
2021-06-30 18:27:44 +00:00
TreeHugger Robot
6611a10a66 Merge "Pause watchdog monitor for incfs native lib extraction" into sc-dev am: 920e1fd7a6
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15147287

Change-Id: I41be5812173b379543da8d777673da3e7ce519a0
2021-06-30 18:27:00 +00:00
Dmitri Plotnikov
bcd46f1ed4 Fix boot time BatteryStats reset failure
We need some services to create a battery stats snapshot
captured at the time of battery reset.
The issue is that if the battery stats reset occurs during boot,
before the system is ready, those services may not be prepared.

The fix is to postpone battery stats reset until after the
system server is ready.

Also, we will now reset the stats if battery got partially charged
and discharged repeatedly without ever reaching the full charge.
This will prevent battery sessions from going on forever and
overflowing internal data structures.

This CL partially reverts 0ed84f1263

Bug: 192252233
Test: run PowerOnOffTest#testPowerOnOff repeatedly
Change-Id: Ib486e4caeeac7c933288c3a1055259c05f45c6c8
2021-06-30 17:07:58 +00:00
Yurii Zubrytskyi
337f73edc9 Pause watchdog monitor for incfs native lib extraction
Native library extraction potentially takes much longer time for
Incremental installations vs the regular ones: each page can
wait for up to 10s (adb) or 100ms (non-adb), adding up to the
full watchdog timeout of 1 min and triggering a reboot.

This CL pauses Watchdog for the thread that's running extraction
to make sure we don't try to fix a hanging single installation
with killing the OS.

Bug: 191166673
Fixes: 191166673
Test: atest package manager and incremental suites
Change-Id: I9c4c24f305e079f346a76b64d4841cdbd58734fa
2021-06-29 16:21:12 -07:00