Commit Graph

449000 Commits

Author SHA1 Message Date
Suprabh Shukla
0d51a8bcc0 Remove cancel listeners from pending intent alarms
The cancel listeners are created per PendingIntent instance and were
spamming the callback list stored inside PendingIntentRecord. In cases
where there is even a single live PendingIntent backed by this
PendingIntentRecord, all PendingIntent instances backed by this
PendingIntentRecord for which a callback was ever registered will leak.

Test: atest FrameworksMockingServicesTests:\
com.android.server.am.PendingIntentControllerTest
atest FrameworksMockingServicesTests:\
com.android.server.AlarmManagerServiceTest

Bug: 143091024
Change-Id: I65df12da0c437064e6e3719911926738c677c4eb
2019-11-04 11:59:36 -08:00
Keun-young Park
c4f77faf6e [automerger skipped] Merge "Migrate car sysui to use new createCar call and prevent crash" into qt-qpr1-dev am: eeb9a61f63
am: fe99b6cffc -s ours
am skip reason: change_id I69298f763a2a2e63c0cf8deae13f747ea19bbf9d with SHA1 faae648f39 is in history

Change-Id: I5d00b4e85dd2a747bb25649665ffe4cf1b65f843
2019-10-30 10:05:13 -07:00
Keun-young Park
fe99b6cffc Merge "Migrate car sysui to use new createCar call and prevent crash" into qt-qpr1-dev
am: eeb9a61f63

Change-Id: I0af4d6e6bff98ced05b1b1fa32341aa71d5e6cc1
2019-10-30 09:51:51 -07:00
Keun-young Park
eeb9a61f63 Merge "Migrate car sysui to use new createCar call and prevent crash" into qt-qpr1-dev 2019-10-30 16:37:28 +00:00
Mathieu Chartier
67caaa6d8f Merge "Fix test for renamed frameworks.jar" 2019-10-30 15:55:44 +00:00
wilsonshih
02b3ae47cf [automerger skipped] Merge "Consolidate ActivityStack#finishCurrentActivityLocked checking" am: 1b90887629 am: 02e3db1499
am: 9b8b62f753 -s ours
am skip reason: change_id If1907d71135158bafea69881205f351ab666025e with SHA1 50b81545bd is in history

Change-Id: I5e5985b57b208c49fc7067dac8d5557e8259c83a
2019-10-30 08:31:17 -07:00
Steve Elliott
fc34dee468 Merge "Mark test with @Test + comments" 2019-10-30 15:23:12 +00:00
Ray Essick
45216b4fdf Merge "parse{Int,Long,Rational}Range null checking" 2019-10-30 15:20:02 +00:00
wilsonshih
9b8b62f753 Merge "Consolidate ActivityStack#finishCurrentActivityLocked checking" am: 1b90887629
am: 02e3db1499

Change-Id: Icda846a1be23665eaa512efadd8ec1935f9ed555
2019-10-30 08:18:15 -07:00
Ray Essick
b0c3f3f971 parse{Int,Long,Rational}Range null checking
These allowed null parameters handling them with a try/catch block.
Avoid the exception overhead for this frequent case by comparing for null
before the try{} block.

Bug: 143173083
Test: boot, simple playback
Change-Id: I761a8f35839054d61bba5aa1c80eb45058b9db22
2019-10-30 15:17:05 +00:00
wilsonshih
02e3db1499 Merge "Consolidate ActivityStack#finishCurrentActivityLocked checking"
am: 1b90887629

Change-Id: Icbcdb2d841fd52306f067c7606b78918c6f70894
2019-10-30 08:05:57 -07:00
Treehugger Robot
1b90887629 Merge "Consolidate ActivityStack#finishCurrentActivityLocked checking" 2019-10-30 14:49:22 +00:00
TreeHugger Robot
904ad5d74b Merge "By default, rich events have log level VERBOSE" 2019-10-30 14:46:42 +00:00
Matt Pape
33f91f59fb Merge "Move namespace/prefix logic to Settings.Config." 2019-10-30 14:36:38 +00:00
Fabian Kozynski
f451d5aed0 Merge "Throw exception if IntentFilter is not valid" 2019-10-30 14:20:00 +00:00
Patrik Fimml
052a83953b Merge "Configurable SoftAP: Add System API." 2019-10-30 14:03:18 +00:00
Dave Mankoff
eb0e643c68 Merge "Instances of SystemUI must now define their own ComponentBinder" 2019-10-30 13:50:24 +00:00
Wale Ogunwale
ed38d4f967 Merge "Revert "Remove native calls to HWUI from Surface and use the public API instead"" 2019-10-30 13:33:31 +00:00
Beverly
264bb458dd By default, rich events have log level VERBOSE
So that on debuggable devices, we'll see SysuiLogs in
logcat for events logged that don't specify their log level

For logcat logs, don't include the timestamp

Test: manual
Change-Id: If2cb238e70acc5a551d4b4a4161dc0020536cec9
2019-10-30 13:33:23 +00:00
Derek Sollenberger
a320e92c56 Revert "Remove native calls to HWUI from Surface and use the public API instead"
This reverts commit 79201b16f1.

Reason for revert: breaks wm-presubmit

Change-Id: I3245e202f88b16d30b924e229cbc05fca37a3759
2019-10-30 13:17:41 +00:00
wilsonshih
d528106fbc Consolidate ActivityStack#finishCurrentActivityLocked checking
This CL is to fix a bug that found in
TransitionSelectionTests#testCloseTask_BothWallpaper_SlowStop may flaky
because when TopActivity launched & call finish(), the activity will destroy
too soon before BottomActivity resume & idle.

When TopActivity launched, suppose BottomActivity's nowVisible state should
be false because both activities are fullscreen activity & TopActivity should
cover BottomActivity.

After TopActivity called finish(), normally the activity should wait for
BottomActivity visible and then destroy, and this test is to verify if
TRANSIT_WALLPAPER_INTRA_CLOSE state will coming when opening & closing animation
target with wallpaper theme are animating case.

But the flakiness may happen if device is in low-performance stage, when
TopActivity launched, system calls setClientHidden for BottomActivity's all
windows to update its viewVisibility but can't update in time, and then
the next relayoutWindow comes, mis-detected BottomActivity's Floating child
window as drawn state, so that can't update BottomActivity's nowVisible
state as invisible with onWindowsGone().

So when TopActivity called finish(), TopActivity will soon going to destroy
state since BottomActivity is still in nowVisible state.

The fix is to add isNextNotYetVisible, if the next activity the nowVisible or visible
is not yet true, which means we need to add the current finishing
activity into stopping list and destory until the next activity idle.

Bug: 140088359
Test: atest TransitionSelectionTests
Change-Id: If1907d71135158bafea69881205f351ab666025e
Merged-In: If1907d71135158bafea69881205f351ab666025e
2019-10-30 20:30:13 +08:00
TreeHugger Robot
bdd75be3f4 Merge "[Tether04] Migrate EntitlementManager into module" 2019-10-30 11:21:39 +00:00
TreeHugger Robot
94cc0ba959 Merge "Add Tap Gesture for Aware Settings" 2019-10-30 10:17:13 +00:00
Nicolas Geoffray
a677489b59 Merge "Add checks to ensure only the ART memfd file is whitelisted." am: 555ffd1c0c am: 7f46f8631f
am: 3f879b7761

Change-Id: I6598a9a7925c4c9f4e7bd333c3cb6da6e2fc7cd1
2019-10-30 01:56:27 -07:00
Nicolas Geoffray
3f879b7761 Merge "Add checks to ensure only the ART memfd file is whitelisted." am: 555ffd1c0c
am: 7f46f8631f

Change-Id: I9a3f626c6fdc111560d9c5d52c12913aedf27c7e
2019-10-30 01:50:00 -07:00
Nicolas Geoffray
7f46f8631f Merge "Add checks to ensure only the ART memfd file is whitelisted."
am: 555ffd1c0c

Change-Id: Ibb59ad14a9fca0107bb18eb43a07600b0f0aa5fe
2019-10-30 01:37:31 -07:00
Nicolas Geoffray
555ffd1c0c Merge "Add checks to ensure only the ART memfd file is whitelisted." 2019-10-30 08:24:37 +00:00
markchien
67fac18ad9 [Tether04] Migrate EntitlementManager into module
Bug: 136040414
Test: -build, flash, boot
      -atest TetheringTests
      -atest FrameworksNetTests

Change-Id: Ifdfc6cd95377351c37946a146b60896f07ece59d
2019-10-30 15:59:34 +08:00
TreeHugger Robot
4cf863ec40 Merge "Add ActivityThreadClientTest to presubmit" 2019-10-30 07:56:13 +00:00
Tiger Huang
e91a82d763 Merge "Sends the correct content insets to status bar" 2019-10-30 06:59:36 +00:00
Tony Huang
40d8da39d2 Merge "Prevent return giant size thumbnail" 2019-10-30 06:39:53 +00:00
TreeHugger Robot
4eaacb257f Merge "Avoid a potential NPE." 2019-10-30 06:30:19 +00:00
TreeHugger Robot
e12235039e Merge "Do not blame network scorer apps for permission access." 2019-10-30 05:23:59 +00:00
Edgar Wang
32af83b2cb Add Tap Gesture for Aware Settings
- Add new settings provider key for tap gesture.

Bug: 142702985
Test: atest & manual
Change-Id: Ib76327b37a415512145a150a4b0e176a6cb114d7
2019-10-30 13:12:32 +08:00
TreeHugger Robot
04d47cdfde Merge "Add new system level APIs for accessing IMS state" 2019-10-30 03:35:53 +00:00
Derek Sollenberger
2db814af51 Merge "Remove native calls to HWUI from Surface and use the public API instead" 2019-10-30 03:11:06 +00:00
Keun-young Park
cefcf97730 Merge "Migrate car sysui to use new createCar call and prevent crash" 2019-10-30 02:56:54 +00:00
Xiangyu/Malcolm Chen
844855f11f [automerger skipped] Merge "Have getSupportedModemCount always rely on system properties." am: d7f38d742b am: 10cf5939c6
am: 9d813b92f8 -s ours
am skip reason: change_id I34e172c747dd52aa498037e64b758393793fddba with SHA1 a416d984b0 is in history

Change-Id: I670f965636e67abe0ae2a4f2bb23b860ba72c8fb
2019-10-29 19:51:08 -07:00
TreeHugger Robot
c504ce1db1 Merge "Don't dump SysUI config if other args are provided" 2019-10-30 02:46:42 +00:00
Xiangyu/Malcolm Chen
9d813b92f8 Merge "Have getSupportedModemCount always rely on system properties." am: d7f38d742b
am: 10cf5939c6

Change-Id: I3220634cf014483d8bfbfbf38f628fc22a9a952d
2019-10-29 19:38:56 -07:00
Xiangyu/Malcolm Chen
10cf5939c6 Merge "Have getSupportedModemCount always rely on system properties."
am: d7f38d742b

Change-Id: I338e12b9810d5cb4f2af188ab6f3652a2a104f83
2019-10-29 19:26:20 -07:00
Philip P. Moltmann
57344c24c3 Merge "Note with featureId from ContentProvider" 2019-10-30 02:21:51 +00:00
Xiangyu/Malcolm Chen
d7f38d742b Merge "Have getSupportedModemCount always rely on system properties." 2019-10-30 02:10:42 +00:00
TreeHugger Robot
b0ee7f5ab5 Merge "Add frontend constants and callback" 2019-10-30 02:06:59 +00:00
Chen Xu
b6ff2c26e3 Merge "cellbroadcast provider refactor" 2019-10-30 01:12:45 +00:00
Ruijie Bai
43bc62b8c8 Merge "Returns null not empty string if MEID is not available" am: 634c108060 am: 02445f14da
am: 7a318f0646

Change-Id: I41b8c9de8c7bd0c2a93c9f8444e77af84c50c293
2019-10-29 18:08:05 -07:00
Ruijie Bai
7a318f0646 Merge "Returns null not empty string if MEID is not available" am: 634c108060
am: 02445f14da

Change-Id: Iad4251e00f28f1e051bc6af79cbdb3179230442d
2019-10-29 17:57:11 -07:00
Hideki Ishii
4a4c2aec28 Merge "Prevent sending CLIR activation and deactivation code only" am: 5cd5e277dc am: 29ef902835
am: 432cf72f81

Change-Id: Ide5292389c2e91c8a7ce71e655ceec92a640cbf9
2019-10-29 17:55:55 -07:00
Ruijie Bai
02445f14da Merge "Returns null not empty string if MEID is not available"
am: 634c108060

Change-Id: I75230fdc0f1014f5fc5d3e986c951bf5ece4d545
2019-10-29 17:45:25 -07:00
Hideki Ishii
432cf72f81 Merge "Prevent sending CLIR activation and deactivation code only" am: 5cd5e277dc
am: 29ef902835

Change-Id: I9962a7b127cd32a3541eafc5447a2dd6a8511717
2019-10-29 17:43:58 -07:00