Commit Graph

11508 Commits

Author SHA1 Message Date
Adam He
209c597aba Merge "Fixed autofill compat mode regression caused by DecorContext" into qt-dev
am: 2f54cf120e

Change-Id: Idbb78b3f2455346d08370f189ad0289745f28a51
2019-06-25 15:17:19 -07:00
TreeHugger Robot
2f54cf120e Merge "Fixed autofill compat mode regression caused by DecorContext" into qt-dev 2019-06-25 21:32:01 +00:00
Eugene Susla
2fd77c3ce9 [DO NOT MERGE] Don't throw from PooledLambdaImpl#toString
am: 75632d616d

Change-Id: I74eb8dc3b62be5909e36bfd27154b98df625b139
2019-06-25 13:12:28 -07:00
Matt Pietal
6e97b7bd29 Merge "Sharesheet: Make max shortcut targets configurable" into qt-dev
am: 8f09cd3de1

Change-Id: I1a40f9ec9b9f196e1dd3b5eed077d0ec5dd730c7
2019-06-25 12:53:29 -07:00
Eugene Susla
224b4c761d Merge "[DO NOT MERGE] Don't throw from PooledLambdaImpl#toString" into qt-dev 2019-06-25 19:52:48 +00:00
Adam He
14c5b94058 Fixed autofill compat mode regression caused by DecorContext
Fixes: 135038324
Test: manual verification
Test: atest CtsAutoFillServiceTestCases
Change-Id: Iab32c24fdd9ad02308e79652422d1c4965be8e7c
2019-06-25 11:40:57 -07:00
Eugene Susla
75632d616d [DO NOT MERGE] Don't throw from PooledLambdaImpl#toString
Bug: 134594642
Test: presubmit
Change-Id: Ia0834a76e7ae9a222ec2698dcd989317bb20f2a0
(cherry picked from commit 7f000e1dd9)
2019-06-25 18:03:50 +00:00
Matt Pietal
3ed20a7555 Sharesheet: Make max shortcut targets configurable
Allow different values for different devices

Bug: 135617408
Test: Manual
Change-Id: I01c27834d6218b9f5502976ee2a561eb73c364fc
2019-06-24 12:39:17 -04:00
Dave Mankoff
59809cd9e1 DO NOT MERGE Allow the new BrightLineFalsingManager to be enabled via PhenoType.
am: e0321d5809

Change-Id: I7caa3c1d9722532167b4c0f91a115602c812619a
2019-06-22 17:31:23 -07:00
Dave Mankoff
e0321d5809 DO NOT MERGE Allow the new BrightLineFalsingManager to be enabled via PhenoType.
Test: atest SystemUITests
Bug: 111394067
Change-Id: I0ab9a72d66bf56a56df2de2ad2d247f299d1b748
Merged-In: I0ab9a72d66bf56a56df2de2ad2d247f299d1b748
2019-06-22 14:19:01 +00:00
Andreas Gampe
e4a6ca7231 Merge changes Ie70d0155,I0692a91d,I8c5041a4 am: 4507201da5
am: 70ad27cfb5

Change-Id: I7c11438bd295fd973f78302550e88833c84883b5
2019-06-21 13:52:40 -07:00
Andreas Gampe
8695b40720 LockAgent: Add option to synthesize Java crash logging
Add the ability to dump a "crash" to logcat.

Test: m
Test: manual
Change-Id: I0692a91df995883e526a718fe95f0d3568ac9328
2019-06-20 16:31:58 -07:00
Neil Fuller
15199a5868 Merge "Remove unused class" am: 09f6675744
am: 04ecb95ea9

Change-Id: I2f9c971db885bf7309438f2f44b18de4df62a709
2019-06-20 14:04:12 -07:00
Eugene Susla
aae1c818e2 [DO NOT MERGE] Fix race in AbstractSinglePendingRequestRemoteService
am: 45fcf147c1

Change-Id: I8283708a92b86721426bf35888f486883189319a
2019-06-19 20:26:50 -07:00
Eugene Susla
45fcf147c1 [DO NOT MERGE] Fix race in AbstractSinglePendingRequestRemoteService
Fixes: 135355306
Test: presubmit
Change-Id: I78d9840a9d7e04cd373c967b259a614990153841
2019-06-20 01:50:48 +00:00
Tim Joines
2b9196611e Merge "Add config to control full task snapshot scale" into qt-dev
am: 10b9def7cb

Change-Id: I6e07c1e6d9aa300e42e27daa10ad048af56fc40b
2019-06-19 15:03:46 -07:00
Winson Chung
ffde2ea8e5 Add config to control full task snapshot scale
- Also save the scale with the snapshot data instead of trying to infer it
  from the state
- Also recycle the reduced resolution snapshot copy after writing it

Bug: 135150767
Test: atest TaskSnapshotPersisterLoaderTest
Change-Id: I64a9ccf16f3966ad5c6d07ff0b6ce8e9dd710e40
2019-06-18 14:12:25 -07:00
Varun Anand
2471441b2d Merge changes Ieb8645ac,I6466ec14,I87deb82b,I995b108e,Ib6521459 am: f4c10e8bc2
am: 48f59a0fdf

Change-Id: I960e94b03b29282ae2b03f78a19ed2692bd88e05
2019-06-17 10:33:53 -07:00
Neil Fuller
fb402670bb Remove unused class
This class is no longer used and can be removed.

Bug: 16550209
Test: build / boot / treehugger
Change-Id: I31b9491a57a1246656bb549aa3435b77ab12b8d6
2019-06-17 16:44:28 +01:00
Hui Yu
9561558259 Merge "Fix the missing longwake finish event problem." into qt-dev
am: eb5532eac8

Change-Id: I4f1b554cbf5f9da1b7a922ce89b77537b6be6667
2019-06-13 19:11:28 -07:00
TreeHugger Robot
eb5532eac8 Merge "Fix the missing longwake finish event problem." into qt-dev 2019-06-14 01:03:34 +00:00
Benedict Wong
a84d9fa572 Revert "Revert "Take all VPN underlying networks into account when migrating traffic for""
This reverts commit d8220c2050.

Reason for revert: Fix available for deadlocks.

Bug: 134244752
Change-Id: Ib65214598837289bd39dbf040b56ab7835f893ba
2019-06-13 15:36:27 -07:00
Hui Yu
5b4edd6038 Fix the missing longwake finish event problem.
When starting a new batteystats history file, before inserting a new
CMD_CURRENT_TIME HistoryItem at beginning of the history
buffer, make a copy of the current HistoryItem. Otherwise the current
HistoryItem could be overriden by the CMD_CURRENT_TIME and we lose
a HistoryItem.

In b/130083227, the longwake start event happends before opening the new
history file, after CMD_CURRENT_TIME event, the longwake finish event
is missing. The fix is to make a copy of current HistoryItem before
adding CMD_CURRENT_TIME event.

Change-Id: I5048f98b6b47f54336fb01e354fb5a6284c84b43
Fix: 130083227
Test: b/130083227 can be reproduced by createFakeHistoryEvents() call,
missing longwake finish event can be seen after "TIME:" record. With the
fix, no more missing longwake finish event after "TIME:" record.
“adb shell dumpsys  batterystats --history-create-events 50000” to
create enough events to start new history files,
“adb shell dumpsys batterystats --history” to observe all history records.
2019-06-13 10:42:48 -07:00
Paul Crowley
681ac74bd0 Merge "Create String before bundling AsyncTask" into qt-dev
am: 3d0fbc98f8

Change-Id: I9eec3eed0a5f8088976f9d86ab69fa4292597b68
2019-06-12 16:47:59 -07:00
TreeHugger Robot
3d0fbc98f8 Merge "Create String before bundling AsyncTask" into qt-dev 2019-06-12 23:35:30 +00:00
Christian Wailes
63af175cf3 Merge "Removes unused code from the SystemServer/Zygote classes." into qt-dev
am: 7983bfb3e6

Change-Id: Icd72a60403a1cec0db1dc72251ab241c7aa60d41
2019-06-12 13:06:29 -07:00
Christian Wailes
7983bfb3e6 Merge "Removes unused code from the SystemServer/Zygote classes." into qt-dev 2019-06-12 19:45:41 +00:00
Jorim Jaggi
c2b065cf90 Merge "Draw legacy nav bar background directly" into qt-dev
am: 324cdd4ae0

Change-Id: Iaf32f0a0c5d72008240eb1588273f1dde7633148
2019-06-12 11:23:28 -07:00
Jorim Jaggi
86d30ff8e3 Draw legacy nav bar background directly
If we only use a view for it, it may not be visible depending on
what the app will do with the DecorView, i.e. set a weird clip
region. To fix that, we also draw the legacy navigation bar
background separately in a post-draw callback.

Test: TikTok
Test: Material app is still able to set bar color
Fixes: 131211797
Change-Id: Id744b98780f8f7f6dcd3482803a680a8f93be4c5
2019-06-12 18:19:41 +02:00
Lucas Dupin
4b8540a4f6 Merge "Fix unreadable clock" into qt-dev
am: c442c8e5f5

Change-Id: Ifc3d184fbd856df515bfa527028c8e736572e14e
2019-06-11 23:50:31 -07:00
Lucas Dupin
c442c8e5f5 Merge "Fix unreadable clock" into qt-dev 2019-06-12 06:24:52 +00:00
Lucas Dupin
a476c79c3a Fix unreadable clock
- Always use white text with shadows on media
- Use lock screen colors for shade theme
- Remove legacy wallpaper visibility listener
- Remove shadow from black title

Test: set white wallpaper
Test: set dark wallpaper
Test: set dark wallpaper on home, light on ls
Test: set dark wallpaper on ls, light on home
Test: atest SysuiColorExtractorTests
Fixes: 134119878
Change-Id: I64ee2dee14322b2c02891c3ffe5fc0b25d1f100b
Merged-In: I64ee2dee14322b2c02891c3ffe5fc0b25d1f100b
2019-06-12 02:10:43 +00:00
Chris Wailes
bed1976f85 Removes unused code from the SystemServer/Zygote classes.
This patch partially reversts ag/6991475 and ag/7161709.  These changes
are no longer needed due to a change in the graphics driver strategy for
Q.

In addition, the preloading of the graphics driver in the USAPs need to
be removed to avoid causing a memory regression on devices with graphics
driver preloading in the Zygote disabled.

Bug: 134526352
Test: Treehugger
Change-Id: I570037866d1ae90794c711622e6045ebbffa5b9c
Merged-In: I570037866d1ae90794c711622e6045ebbffa5b9c
(cherry picked from commit fcd68fd74b)
2019-06-11 16:34:40 -07:00
Adrian Roos
59ce261a24 Merge "DecorView: Fix status guard" into qt-dev
am: f5432f1862

Change-Id: I194348b7c2a90890a616f877a9470f54fcea829a
2019-06-11 10:44:09 -07:00
Adrian Roos
f5432f1862 Merge "DecorView: Fix status guard" into qt-dev 2019-06-11 17:34:32 +00:00
Adrian Roos
27db0caaca DecorView: Fix status guard
Fixes several issues with the status guard:
- poor background color for light status bar background
- guard & action mode need insets for the navigation bar in landscape
- status guard was not properly dismissed after completion of the action mode
- uses the proper non-zero root inset when LAYOUT_HIDE_NAVIGATION is unset & in landscape

Bug: 132924796
Test: make ApiDemos, use SystemUiModes activity to trigger action mode
Change-Id: Ie9ba2b6fb2c87a1825df85f756ffb062a45d4f55
2019-06-11 17:09:12 +02:00
Varun Anand
d8220c2050 Revert "Take all VPN underlying networks into account when migrating traffic for"
This reverts commit 95aa6d446f.

Reason for revert: This change has been implicated in 4-way deadlocks as seen in b/134244752.

Bug: 134244752
Change-Id: I2f1839d7776a613ca571af8a542755ddc5fc8760
Merged-In: Ibdaad3a4cbf0d8ef1ed53cfab1e454b9b878bae9
2019-06-10 16:00:48 -07:00
Christian Wailes
5e468cf4dd Merge "Fixes two data races in USAP pool management." into qt-dev 2019-06-10 22:09:43 +00:00
Eugene Susla
3d4f87f021 Merge "Guard against null mFunc in PooledLambdaImpl" into qt-dev
am: e64acbea8e

Change-Id: Id70c4176ad600aa74bcec853d28cdf7bd1fc6e86
2019-06-10 13:45:47 -07:00
TreeHugger Robot
e64acbea8e Merge "Guard against null mFunc in PooledLambdaImpl" into qt-dev 2019-06-10 20:28:11 +00:00
Matt Pietal
e1422bca65 Merge "Sharesheet - Hide direct share area for low ram devices" into qt-dev
am: fcc4d76a97

Change-Id: I1e2d8680afa856ee1f310d292eeb52ccb7826f8f
2019-06-10 10:36:14 -07:00
TreeHugger Robot
fcc4d76a97 Merge "Sharesheet - Hide direct share area for low ram devices" into qt-dev 2019-06-10 17:29:52 +00:00
Matt Pietal
e214c2e1df Merge "Sharesheet - Adjust timeouts and logic for direct share" into qt-dev
am: 503b489384

Change-Id: I909a6fab95581a4c001486aef84d70ccc5221e50
2019-06-10 08:00:11 -07:00
Matt Pietal
6e88b51026 Sharesheet - Hide direct share area for low ram devices
Make sure to force the item count to 0 to make sure the direct share
area stays hidden.

Bug: 134776740
Test: Low ram device, manual
Change-Id: I598752db5747b1c845495af7ae2f591488799352
2019-06-10 10:20:15 -04:00
Matt Pietal
ab73a887ef Sharesheet - Adjust timeouts and logic for direct share
Improve direct share loading by:
1. Do not issue redundant service calls within the watchdog timeout
period
2. Set a min and max watchdog timeout period, and if all services
return early, then informt the user we are done to so that they don't
have to wait until the max timeout period.
3. Be more specific on package changes. Resolver requires any change
to trigger a refresh, but chooser only needs to know about top level
package changes.

Bug: 134416594
Test: Manual
Change-Id: I075fd5b6f64c25637fd7ba7aa6b163dca81371a8
2019-06-10 07:24:51 -04:00
Chris Wailes
f68c4e2ffa Fixes two data races in USAP pool management.
The USAP pool management code contained two data races.  One could cause
a double decrement if a runtime thread executed the SIGCHLD handler
while the server was responding to a pool exit message from a USAP.  The
other data race could occur when the SIGCHLD handler executed in the
middle of a USAP pool flush.

The solution to the first race is to change the return value from a
helper function to ensure that the decrement only occurs when the entry
is invalidated through that specific invocation of the helper.

The second data race was fixed by using SIGTERM instead of SIGKILL when
flushing the USAP pool.  This allows the Zygote to clear the table
entries outside of the SIGCHLD handler, and the handler to avoid
duplicate bookkeeping cleanup when this occurs.  SIGTERM is used so that
it can be differentiated from other process termination events and so
that it can be blocked while the USAP is specializing, but hasn't yet
informed the Zygote of it's removal from the pool.  This issue and this
fix will no longer be necessary once the Zygote signal handler has been
replaced with a signalfd.

Bug: 132794985
Test: atest SignedConfigHostTest
Change-Id: Ie01637a10b356b80b5aa62291a97f2c167242827
Merged-In: Ie01637a10b356b80b5aa62291a97f2c167242827
(cherry picked from commit fb329ba7c8)
2019-06-07 16:51:48 -07:00
Eugene Susla
f8fc474c8f Guard against null mFunc in PooledLambdaImpl
Fixes: 134594642
Test: presubmit
Change-Id: I7b65d18df1625a276986a844569a1275c09df4e4
(cherry picked from commit 1cff0828e3)
2019-06-07 21:22:33 +00:00
Chris Wailes
f59ea2cc39 Fixes two data races in USAP pool management.
The USAP pool management code contained two data races.  One could cause
a double decrement if a runtime thread executed the SIGCHLD handler
while the server was responding to a pool exit message from a USAP.  The
other data race could occur when the SIGCHLD handler executed in the
middle of a USAP pool flush.

The solution to the first race is to change the return value from a
helper function to ensure that the decrement only occurs when the entry
is invalidated through that specific invocation of the helper.

The second data race was fixed by using SIGTERM instead of SIGKILL when
flushing the USAP pool.  This allows the Zygote to clear the table
entries outside of the SIGCHLD handler, and the handler to avoid
duplicate bookkeeping cleanup when this occurs.  SIGTERM is used so that
it can be differentiated from other process termination events and so
that it can be blocked while the USAP is specializing, but hasn't yet
informed the Zygote of it's removal from the pool.  This issue and this
fix will no longer be necessary once the Zygote signal handler has been
replaced with a signalfd.

Bug: 132794985
Test: atest SignedConfigHostTest
Change-Id: Ie01637a10b356b80b5aa62291a97f2c167242827
Merged-In: Ie01637a10b356b80b5aa62291a97f2c167242827
(cherry picked from commit fb329ba7c8)
2019-06-07 13:32:38 -07:00
Benedict Wong
f0904ebfc0 Revert "Take all VPN underlying networks into account when migrating traffic for"
am: ac06c1022d

Change-Id: Ie9e830962e702c5e66faa7239e6c5037ed3d791d
2019-06-07 02:33:33 -07:00
Benedict Wong
ac06c1022d Revert "Take all VPN underlying networks into account when migrating traffic for"
This reverts commit 917327b193.

Reason for revert: This change has been implicated in 4-way deadlocks as seen in b/134244752.

Bug: 134244752
Change-Id: Ibdaad3a4cbf0d8ef1ed53cfab1e454b9b878bae9
2019-06-07 09:18:01 +00:00