Commit Graph

11565 Commits

Author SHA1 Message Date
Lucas Dupin
d74516fa9e Merge "Do not let pattern be dragged" into qt-r1-dev
am: 1cab79144c

Change-Id: Ic0da5806f78a0fdc026c504e9f8a96bef4e862d3
2019-06-14 10:38:52 -07:00
Lucas Dupin
1cab79144c Merge "Do not let pattern be dragged" into qt-r1-dev 2019-06-14 17:25:18 +00:00
Hui Yu
9b15a84247 Merge "Fix the missing longwake finish event problem." into qt-dev am: eb5532eac8
am: f832f61e1c

Change-Id: I33f89a30e0daccaa40c938997e984ad1099cb2a3
2019-06-13 19:16:55 -07:00
Hui Yu
f832f61e1c Merge "Fix the missing longwake finish event problem." into qt-dev
am: eb5532eac8

Change-Id: Ie082baea99603bba6847da9cfdd959f6f5d01461
2019-06-13 18:56:06 -07:00
TreeHugger Robot
eb5532eac8 Merge "Fix the missing longwake finish event problem." into qt-dev 2019-06-14 01:03:34 +00:00
Lucas Dupin
fc8de93eed Do not let pattern be dragged
Test: drag accross pattern
Test: start dragging from edges
Test: start drawing, drag outside the bounds
Test: repeat on small and large device
Fixes: 132687980
Change-Id: Idab9279dd7cb002cbd43aab0ce1d48f265d39f04
2019-06-13 15:48:49 -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
63016e88c2 Merge "Create String before bundling AsyncTask" into qt-dev am: 3d0fbc98f8
am: 681ac74bd0

Change-Id: I0d9ac43c8577ad632a9cd3300e804ec564019aeb
2019-06-12 16:54:27 -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
Paul Crowley
81e014ce88 Merge "Create String before bundling AsyncTask" into qt-dev
am: 3d0fbc98f8

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

Change-Id: Ie595da6c0c53573aeeedd06621f445674a53725a
2019-06-12 13:12:25 -07:00
Christian Wailes
2997615e73 Merge "Removes unused code from the SystemServer/Zygote classes." into qt-dev
am: 7983bfb3e6

Change-Id: If63d2cbe8b3ba2061276826f88496db8ea283510
2019-06-12 13:09:40 -07: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
7145077860 Merge "Draw legacy nav bar background directly" into qt-dev am: 324cdd4ae0
am: c2b065cf90

Change-Id: If80e9ace51c78ad7814e60a6dfa0a00454420091
2019-06-12 11:36:10 -07: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
e335ed3ca4 Merge "Draw legacy nav bar background directly" into qt-dev
am: 324cdd4ae0

Change-Id: I3291e2788df951510c5abf3a23df226d5174a5c5
2019-06-12 11:22:27 -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
648b5d4b3b Fix unreadable clock
am: 89233c49aa

Change-Id: Ib2dff9f3dbc0359daf297d349bf8671969db9e7e
2019-06-11 21:31:22 -07:00
Lucas Dupin
89233c49aa 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
2019-06-12 04:22:24 +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
ef4f533d00 Merge "DecorView: Fix status guard" into qt-dev am: f5432f1862
am: 59ce261a24

Change-Id: I4667e94ab6c7ecefd0b40186081bc5bc115352fc
2019-06-11 10:48:43 -07:00
Adrian Roos
55fe653956 Merge "DecorView: Fix status guard" into qt-dev
am: f5432f1862

Change-Id: I0f455bb3e860e089dfe31b6d5e8109a74580989d
2019-06-11 10:45:09 -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
Christian Wailes
31e3b9cb80 Merge "Fixes two data races in USAP pool management." into qt-dev
am: 5e468cf4dd

Change-Id: I08c601277f24cf918000eb032e7d95f38e6c0c5c
2019-06-10 15:26:57 -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
c9298d4882 Merge "Guard against null mFunc in PooledLambdaImpl" into qt-dev am: e64acbea8e
am: 6fef220b46

Change-Id: I770a2850c36103b1a379dbe9035d191e963ad5d6
2019-06-10 13:57:29 -07: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
Eugene Susla
6fef220b46 Merge "Guard against null mFunc in PooledLambdaImpl" into qt-dev
am: e64acbea8e

Change-Id: I5591cb8fc6eefae6c82e8d1dc705f422484bd3ea
2019-06-10 13:39:25 -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
d595ffd2fb Merge "Sharesheet - Hide direct share area for low ram devices" into qt-dev am: fcc4d76a97
am: 1fd7d07ddf

Change-Id: I71b6c3e325b40b32cc732f909b9af87532763263
2019-06-10 10:39:07 -07: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
Matt Pietal
1fd7d07ddf Merge "Sharesheet - Hide direct share area for low ram devices" into qt-dev
am: fcc4d76a97

Change-Id: Ia4622b13fcb9befbf34932b86c247dc3057323a5
2019-06-10 10:33:44 -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
6cd0e8e3f5 Merge "Sharesheet - Adjust timeouts and logic for direct share" into qt-dev am: 503b489384
am: e214c2e1df

Change-Id: I0978602cef7d4f452202b2c7824f879588af8469
2019-06-10 08:05:07 -07: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
8b19acac90 Merge "Sharesheet - Adjust timeouts and logic for direct share" into qt-dev
am: 503b489384

Change-Id: Ibbbb8947eeaae6c2f883f725de8c6dec8b25792c
2019-06-10 08:00:10 -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
Christian Wailes
aa85aac5e2 Merge "Fixes two data races in USAP pool management." into qt-dev-plus-aosp
am: bc5237a4f1

Change-Id: I62f7e9636c40fe38bc7d860a572024a8dccd3fb3
2019-06-07 17:40:03 -07: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
27e91edd6b Revert "Take all VPN underlying networks into account when migrating traffic for" am: ac06c1022d
am: f0904ebfc0

Change-Id: I2695c296398aeb6e5378bba0c89c8ae0b3cd55c6
2019-06-07 02:43:33 -07:00